a9787b4bd66a291c4d093ef1a1b2ec397105f0cd
[gnulib.git] / ChangeLog
1 2012-05-03  Bruno Haible  <bruno@clisp.org>
2
3         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5
6 2012-05-03  Bruno Haible  <bruno@clisp.org>
7
8         Avoid "guessing no" guesses when cross-compiling to glibc systems.
9         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
10         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
11         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
12         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
13         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
14         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
15         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
16         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
17         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
18         compiling to glibc systems, set gl_cv_func_chown_slash_works,
19         gl_cv_func_chown_ctime_works to "guessing yes".
20         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
21         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
22         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
24         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
25         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
26         compiling to glibc systems, set gl_cv_func_open_directory_works to
27         "guessing yes".
28         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
29         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
30         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
31         "guessing yes".
32         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
33         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
34         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
35         compiling to glibc systems, set gl_cv_func_floorf_ieee to
36         "guessing yes".
37         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
39         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
40         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
41         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
42         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
43         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
44         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
45         "guessing yes".
46         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
47         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
48         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
49         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
50         "guessing yes".
51         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
52         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
53         "guessing yes".
54         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
55         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
56         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
57         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
58         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
59         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
60         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
61         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
62         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
63         compiling to glibc systems, set gl_cv_func_log10f_ieee to
64         "guessing yes".
65         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
66         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
67         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
68         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
69         "guessing yes".
70         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
71         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
72         "guessing yes".
73         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
74         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
75         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
76         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
77         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
78         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
79         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
80         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
81         compiling to glibc systems, set gl_cv_func_mkfifo_works to
82         "guessing yes".
83         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
84         compiling to glibc systems, set gl_cv_func_mknod_works to
85         "guessing yes".
86         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
87         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
88         "guessing yes".
89         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
90         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
91         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
92         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
93         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
94         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
95         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
96         compiling to glibc systems, set gl_cv_func_svid_putenv to
97         "guessing yes".
98         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
99         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
100         "guessing yes".
101         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
102         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
103         "guessing yes".
104         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
105         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
106         to "guessing yes".
107         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
108         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
109         to "guessing yes".
110         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
111         compiling to glibc systems, set gl_cv_func_rmdir_works to
112         "guessing yes".
113         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
114         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
115         gl_cv_func_unlink_parent_fails to "guessing yes".
116         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
117         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
118         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
119         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
120         gl_cv_func_rename_dest_works to "guessing yes".
121         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
122         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
123         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
124         compiling to glibc systems, set gl_cv_func_roundf_ieee to
125         "guessing yes".
126         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
127         compiling to glibc systems, set gl_cv_func_roundl_ieee to
128         "guessing yes".
129         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
130         compiling to glibc systems, set gl_cv_func_setenv_works to
131         "guessing yes".
132         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
133         compiling to glibc systems, set gl_cv_func_unsetenv_works to
134         "guessing yes".
135         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
136         compiling to glibc systems, set gl_cv_func_sleep_works to
137         "guessing yes".
138         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
139         compiling to glibc systems, set gl_cv_func_stat_file_slash to
140         "guessing yes".
141         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
142         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
143         "guessing yes".
144         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
145         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
146         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
147         compiling to glibc systems, set gl_cv_func_truncf_ieee to
148         "guessing yes".
149         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
150         compiling to glibc systems, set gl_cv_func_truncl_ieee to
151         "guessing yes".
152         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
153         compiling to glibc systems, set gl_cv_func_usleep_works to
154         "guessing yes".
155         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
156         compiling to glibc systems, set gl_cv_func_futimesat_works to
157         "guessing yes".
158
159 2012-05-03  Bruno Haible  <bruno@clisp.org>
160
161         Say "guessing yes" or "guessing no" when cross-compiling.
162         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
163         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
164         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
165         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
166         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
167         am_cv_func_working_getline to "guessing yes" or "guessing no".
168         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
169         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
170         (gl_FUNC_MEMMEM): When cross-compiling, set
171         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
172         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
173         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
175         set gl_cv_func_strcasestr_works_always to "guessing yes" or
176         "guessing no".
177         (gl_FUNC_STRCASESTR): When cross-compiling, set
178         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
179         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
180         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
181         (gl_FUNC_STRSTR): When cross-compiling, set
182         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
183         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
184         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
185         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
186         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
187
188 2012-05-01  Bruno Haible  <bruno@clisp.org>
189
190         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
191         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
192         * build-aux/reloc-ldflags: Likewise.
193         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
194
195 2012-05-01  Bruno Haible  <bruno@clisp.org>
196
197         gnulib-tool: Remove transitional code.
198         * gnulib-tool: Don't warn about --import with 0 arguments any more.
199         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
200
201 2012-05-01  Bruno Haible  <bruno@clisp.org>
202
203         getcwd: Fix misindentation.
204         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
205
206 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
207
208         exclude: process exclude and include directives in order
209         This restores the pre-2009 behavior, and is part of a fix of a
210         grep bug reported by Quentin Arce in
211         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
212         * lib/exclude.c (struct exclude): Remove 'tail' member.
213         (new_exclude_segment): Prepend the new segment instead of appending.
214         Return void, since that's now more convenient.
215         (file_pattern_matches): Renamed from excluded_file_pattern_p.
216         (file_name_matches): Renamed from excluded_file_name_p.
217         (file_pattern_matches, file_name_matches):
218         Return true if the pattern matches, not if it excludes.
219         All callers changed.
220         (excluded_file_name): Process the list in reverse order;
221         since the list is now reversed this restores the pre-2009 behavior.
222         (add_exclude): Adjust to new reversed-order list.  Use local var
223         rather than macro, for clarity.
224         * tests/test-exclude7.sh: Adjust to corrected behavior.
225
226         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
227         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
228         it's not possible here.  Handle the case of \ at end of pattern
229         without dumping core.
230         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
231
232         _Noreturn: future-proof non-GNU and non-MSVC compilers
233         * build-aux/snippet/_Noreturn.h (_Noreturn):
234         * m4/gnulib-common.m4 (gl_COMMON_BODY):
235         Do not define _Noreturn if __STDC_VERSION__ indicates this is
236         C11 or later.  This is more likely to work with random future C
237         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
238         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
239
240         exclude: handle wildcards with FNM_EXTMATCH
241         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
242         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
243         comment that "has wildcards" really means "has or may have
244         wildcards".  Simplify by avoiding the need to call strcspn.
245
246 2012-04-29  Bruno Haible  <bruno@clisp.org>
247
248         gnulib-tool: Fix list of authors.
249         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
250
251 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
252
253         bootstrap: support Automake-NG in $buildreq
254         * bootstrap (check_versions): Handle automake and aclocal from
255         Automake-NG specially.  They can be specified as respectively
256         the "automake-ng" and "aclocal-ng" requirements.
257
258 2012-04-25  Eric Blake  <eblake@redhat.com>
259
260         bootstrap: only force latest Makefile.in.in for gettext module
261         * build-aux/bootstrap (with_gettext): Only install latest
262         Makefile.in.in for projects requesting bleeding edge gettext.
263
264 2012-04-22  Bruno Haible  <bruno@clisp.org>
265
266         doc: Mention reason for replacement on glibc/Linux systems.
267         * doc/posix-functions/dprintf.texi: Mention the problem with special
268         'long double' values.
269         * doc/posix-functions/fprintf.texi: Likewise.
270         * doc/posix-functions/printf.texi: Likewise.
271         * doc/posix-functions/snprintf.texi: Likewise.
272         * doc/posix-functions/sprintf.texi: Likewise.
273         * doc/posix-functions/vdprintf.texi: Likewise.
274         * doc/posix-functions/vfprintf.texi: Likewise.
275         * doc/posix-functions/vprintf.texi: Likewise.
276         * doc/posix-functions/vsnprintf.texi: Likewise.
277         * doc/posix-functions/vsprintf.texi: Likewise.
278         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
279         platforms with F_DUPFD_CLOEXEC problems.
280         * doc/posix-functions/glob.texi: Mention which platforms are affected
281         by the problem with symbolic links.
282         * doc/posix-functions/linkat.texi: Mention the problem with
283         AT_SYMLINK_FOLLOW on Linux.
284
285 2012-04-22  Bruno Haible  <bruno@clisp.org>
286
287         pwrite: Don't replace on all platforms.
288         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
289
290 2012-04-22  Bruno Haible  <bruno@clisp.org>
291
292         rint* tests: Avoid gcc warnings.
293         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
294         * tests/test-rintf.c (INFINITY, NAN): Likewise.
295         * tests/test-rintl.c (INFINITY, NAN): Likewise.
296
297 2012-04-21  Bruno Haible  <bruno@clisp.org>
298
299         users.txt: Update.
300         * users.txt: Add freedink, wdiff. Update URLs for projects that have
301         switched from CVS to git, bzr, or svn.
302
303 2012-04-21  Bruno Haible  <bruno@clisp.org>
304
305         Large File Support for native Windows platforms.
306
307         * m4/largefile.m4 (gl_LARGEFILE): New macro.
308         * modules/largefile (configure.ac): Require gl_LARGEFILE.
309
310         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
311         type.
312         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
313         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
314         * doc/posix-headers/sys_types.texi: Mention the effect of the
315         'largefile' module.
316
317         * lib/fcntl.in.h: Add comments about off_t.
318         * modules/fcntl-h (Depends-on): Add sys_types.
319
320         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
321         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
322         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
323         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
324         * modules/unistd (Depends-on): Add sys_types.
325         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
326
327         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
328         instead of lseek.
329         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
330         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
331         * modules/lseek (Depends-on): Add sys_types.
332
333         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
334         msvc-nothrow.h.
335         (SetFileSize): New function.
336         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
337         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
338         if Large File Support is requested.
339         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
340         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
341
342         * lib/stdio.in.h: Add comments about off_t.
343         * modules/stdio (Depends-on): Add sys_types.
344
345         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
346         instead of ftello.
347         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
348         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
349         (gl_PREREQ_FTELLO): New macro.
350         * modules/ftello (Depends-on): Add sys_types.
351         (configure.ac): Incoke gl_PREREQ_FTELLO.
352
353         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
354         instead of fseeko.
355         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
356         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
357         (gl_PREREQ_FSEEKO): New macro.
358         * modules/fseeko (Depends-on): Add sys_types.
359         (configure.ac): Invoke gl_PREREQ_FSEEKO.
360
361         * lib/sys_stat.in.h: Add comments about off_t.
362         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
363         64-bit integer for st_size in 'struct stat'.
364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
365         Define _GL_WINDOWS_64_BIT_ST_SIZE.
366         * modules/sys_stat (Depends-on): Add sys_types.
367         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
368
369         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
370         instead of stat or _stat.
371
372         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
373         'struct _stati64' instead of fstat and 'struct stat'.
374         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
375         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
376
377         Reported by Ray Satiro <raysatiro@yahoo.com>.
378
379 2012-04-19  Eric Blake  <eblake@redhat.com>
380
381         bootstrap: accommodate older libtool
382         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
383         Reported by Daniel P. Berrange.
384
385 2012-04-19  Jim Meyering  <meyering@redhat.com>
386
387         announce-gen: avoid failure due to lack of Digest::SHA1
388         Even with the preferred Digest::SHA available, this script
389         would fail when the backup module, Digest::SHA1, was not installed.
390         * build-aux/announce-gen: Quote the conditional use of "use".
391         Reported by Reuben Thomas in:
392         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
393
394         bootstrap: don't let a user's CDPATH setting affect this script
395         When CDPATH is set, cd will sometimes generate output.
396         When "cd" is run in a subshell whose output matters, that
397         surprising-to-some output can cause malfunction.
398         Unsetting CDPATH turns off this shell "feature."
399         * build-aux/bootstrap (CDPATH): Unset.
400         Reported by Reuben Thomas in:
401         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
402         and inspired by his patch here:
403         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
404
405 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
406         and Jim Meyering  <meyering@redhat.com>
407
408         maint.mk: catch "see @xref{}" and similar
409         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
410         prohibit "See also @xref{", "Also see @pxref{", and similar.
411
412 2012-04-16  Jim Meyering  <meyering@redhat.com>
413
414         bootstrap: really use gnulib's po/Makefile.in.in
415         * build-aux/bootstrap: Correct the source file name in previous change.
416         Reported by Akim Demaille.
417
418         configmake: correct minor inconsistency in Makefile rule
419         * modules/configmake (Makefile.am): All other rules like this one
420         run the final "mv -f ..." in the same backslash-continued command
421         as the one that does everything else.  This one put the mv -f ...
422         command on a separate, non-backslash-continued line.
423         Make it like the others.
424
425         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
426         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
427         the one from gettext.  Reported by Akim Demaille.
428
429 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
430
431         Fix recursion of install-* into po directories.
432         Bison's install-pdf bug reported by Hans Aberg at
433         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
434         * build-aux/po/Makefile.in.in (install-dvi, install-html)
435         (install-info, install-pdf, install-ps): New targets.
436
437 2012-04-16  Jim Meyering  <meyering@redhat.com>
438
439         maint: avoid spurious "make sc_maint" failure
440         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
441         exempt all *.class file names, for lib/javaversion.class.
442
443 2012-04-15  Bruno Haible  <bruno@clisp.org>
444
445         lseek: Make configure test independent of environment.
446         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
447         Windows, we know that lseek() on pipes is broken; skip the runtime
448         test.
449
450 2012-04-14  Bruno Haible  <bruno@clisp.org>
451
452         stat: Bypass buggy override in mingw64.
453         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
454         * lib/stat.c (stat) [mingw64]: Define to _stat.
455         * doc/posix-functions/stat.texi: Mention mingw64 bug.
456
457 2012-04-14  Bruno Haible  <bruno@clisp.org>
458
459         pathmax: Fix compilation error on MSVC 9.
460         * modules/pathmax (Depends-on): Add unistd.
461
462 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
463
464         README: document pointer comparison assumption
465         * README (Portability guidelines): Document assumption about
466         pointer comparisons, in response to a recent bug-gnulib comment by
467         Jeffrey Kegler.
468
469 2012-04-12  Bruno Haible  <bruno@clisp.org>
470
471         Tests for module 'getrusage'.
472         * modules/getrusage-tests: New file.
473         * tests/test-getrusage.c: New file.
474
475         New module 'getrusage'.
476         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
477         warn-on-use.h.
478         (getrusage): New declaration.
479         * lib/getrusage.c: New file.
480         * m4/getrusage.m4: New file.
481         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
482         is declared.
483         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
484         HAVE_GETRUSAGE.
485         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
486         snippet/c++defs, snippet/warn-on-use.
487         (Makefile.am): Update generation of sys/resource.h. Substitute
488         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
489         * modules/getrusage: New file.
490         * doc/posix-functions/getrusage.texi: Mention the new module.
491
492 2012-04-12  Bruno Haible  <bruno@clisp.org>
493
494         Tests for module 'sys_resource'.
495         * modules/sys_resource-tests: New file.
496         * tests/test-sys_resource.c: New file.
497
498         New module 'sys_resource'.
499         * lib/sys_resource.in.h: New file.
500         * m4/sys_resource_h.m4: New file.
501         * modules/sys_resource: New file.
502         * doc/posix-headers/sys_resource.texi: Mention the new module.
503
504 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
505
506         ioctl: Fix compilation error on mingw.
507         * lib/ioctl.c: Include <windows.h>.
508         Also reported by Ray Satiro <raysatiro@yahoo.com>.
509
510 2012-04-04  Jim Meyering  <meyering@redhat.com>
511
512         regex: correct #pragma guard expression
513         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
514         not 4.3.  Correct its cpp guard expression.
515
516 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
517
518         regex: remove unnecessary type punning
519         Problem reported by Vladimir Serbinenko in
520         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
521         * lib/regex.h (struct re_pattern_buffer): Change the type of
522         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
523         Fix comment to match code.
524         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
525         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
526         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
527         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
528         (set_regs):
529         Omit no-longer-necessary casts.
530
531 2012-04-03  Bruno Haible  <bruno@clisp.org>
532
533         Tests for module 'ilogbl'.
534         * modules/ilogbl-tests: New file.
535         * tests/test-ilogbl.c: New file.
536
537         New module 'ilogbl'.
538         * lib/math.in.h (ilogbl): New declaration.
539         * lib/ilogbl.c: New file.
540         * m4/ilogbl.m4: New file.
541         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
543         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
544         Split sed invocation, to avoid the limit of 100 substitutions of
545         HP-UX 'sed'.
546         * modules/ilogbl: New file.
547         * tests/test-math-c++.cc: Check the declaration of ilogbl.
548         * doc/posix-functions/ilogbl.texi: Mention the new module.
549
550 2012-04-03  Bruno Haible  <bruno@clisp.org>
551
552         Tests for module 'ilogbf'.
553         * modules/ilogbf-tests: New file.
554         * tests/test-ilogbf.c: New file.
555
556         New module 'ilogbf'.
557         * lib/math.in.h (ilogbf): New declaration.
558         * lib/ilogbf.c: New file.
559         * m4/ilogbf.m4: New file.
560         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
562         REPLACE_ILOGBF.
563         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
564         REPLACE_ILOGBF.
565         * modules/ilogbf: New file.
566         * tests/test-math-c++.cc: Check the declaration of ilogbf.
567         * doc/posix-functions/ilogbf.texi: Mention the new module.
568
569 2012-04-03  Bruno Haible  <bruno@clisp.org>
570
571         Tests for module 'ilogb'.
572         * modules/ilogb-tests: New file.
573         * tests/test-ilogb.c: New file.
574         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
575         tests/test-logb-ieee.h.
576
577         New module 'ilogb'.
578         * lib/math.in.h (ilogb): New declaration.
579         * lib/ilogb.c: New file.
580         * m4/ilogb.m4: New file.
581         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
583         REPLACE_ILOGB.
584         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
585         REPLACE_ILOGB.
586         * modules/ilogb: New file.
587         * tests/test-math-c++.cc: Check the declaration of ilogb.
588         * doc/posix-functions/ilogb.texi: Mention the new module.
589
590 2012-04-03  Bruno Haible  <bruno@clisp.org>
591
592         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
593         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
594         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
595         (main): Check their values.
596         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
597         problem.
598
599 2012-04-03  Bruno Haible  <bruno@clisp.org>
600
601         Tests for module 'logbl-ieee'.
602         * modules/logbl-ieee-tests: New file.
603         * tests/test-logbl-ieee.c: New file.
604
605         New module 'logbl-ieee'.
606         * modules/logbl-ieee: New file.
607
608         Tests for module 'logb-ieee'.
609         * modules/logb-ieee-tests: New file.
610         * tests/test-logb-ieee.c: New file.
611
612         New module 'logb-ieee'.
613         * modules/logb-ieee: New file.
614
615         Tests for module 'logbf-ieee'.
616         * modules/logbf-ieee-tests: New file.
617         * tests/test-logbf-ieee.c: New file.
618         * tests/test-logb-ieee.h: New file.
619
620         New module 'logbf-ieee'.
621         * modules/logbf-ieee: New file.
622
623 2012-04-03  Bruno Haible  <bruno@clisp.org>
624
625         Tests for module 'logbl'.
626         * modules/logbl-tests: New file.
627         * tests/test-logbl.c: New file.
628
629         New module 'logbl'.
630         * lib/math.in.h (logbl): New declaration.
631         * lib/logbl.c: New file.
632         * m4/logbl.m4: New file.
633         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
635         REPLACE_LOGBL.
636         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
637         REPLACE_LOGBL.
638         * modules/logbl: New file.
639         * tests/test-math-c++.cc: Check the declaration of logbl.
640         * doc/posix-functions/logbl.texi: Mention the new module.
641
642 2012-04-02  Bruno Haible  <bruno@clisp.org>
643
644         Tests for module 'logbf'.
645         * modules/logbf-tests: New file.
646         * tests/test-logbf.c: New file.
647
648         New module 'logbf'.
649         * lib/math.in.h (logbf): New declaration.
650         * lib/logbf.c: New file.
651         * m4/logbf.m4: New file.
652         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
654         REPLACE_LOGBF.
655         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
656         REPLACE_LOGBF.
657         * modules/logbf: New file.
658         * tests/test-math-c++.cc: Check the declaration of logbf.
659         * doc/posix-functions/logbf.texi: Mention the new module.
660
661 2012-04-02  Bruno Haible  <bruno@clisp.org>
662
663         logb tests: More tests.
664         * tests/test-logb.h: New file, based on tests/test-logb.c and
665         tests/test-frexp.h.
666         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
667         (main): Just invoke test_function.
668         * modules/logb-tests (Files): Add tests/test-logb.h,
669         tests/minus-zero.h, tests/randomd.c.
670         (Makefile.am): Add randomd.c to test_logb_SOURCES.
671
672         logb: Provide replacement and workarounds.
673         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
674         is 1.
675         * lib/logb.c: New file.
676         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
677         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
679         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
680         * modules/logb (Files): Add lib/logb.c.
681         (Depends-on): Add isfinite, frexp, isnand.
682         (configure.ac): Compile the replacement code logb.c if needed.
683         * tests/test-math-c++.cc: Check the declaration of logb.
684         * doc/posix-functions/logb.texi: Mention the replacement and the bug
685         with subnormal numbers.
686
687 2012-04-02  Bruno Haible  <bruno@clisp.org>
688
689         log10* tests: Speed up.
690         * tests/test-log10.h (test_function): Reduce amount of random numbers
691         to test.
692
693 2012-04-01  Bruno Haible  <bruno@clisp.org>
694
695         logf-ieee: Fix test whether logf works.
696         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
697
698 2012-04-01  Bruno Haible  <bruno@clisp.org>
699
700         log10l: Work around log10l-ieee test failure on IRIX 6.5.
701         * lib/log10l.c: Include <float.h>
702         (log10l): On IRIX, normalize the +Infinity value.
703         * modules/log10l (Depends-on): Add 'float'.
704         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
705         +Infinity.
706
707         log10f-ieee: Work around test failure on NetBSD 5.1.
708         * m4/log10f-ieee.m4: New file.
709         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
710         test whether log10f works with a negative argument. Replace it if not.
711         * lib/log10f.c (log10f): For negative arguments, return NaN.
712         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
713         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
714         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
715
716         log10f-ieee: Work around test failure on Solaris 9.
717         * modules/log10f-ieee (Depends-on): Add log10-ieee.
718         (configure.ac): Require gl_FUNC_LOG10F.
719
720         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
721         * m4/log10-ieee.m4: New file.
722         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
723         whether log10 works with a negative argument. Replace it if not.
724         * lib/log10.c (log10): For negative arguments, return NaN.
725         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
726         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
727         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
728
729         Tests for module 'log10l-ieee'.
730         * modules/log10l-ieee-tests: New file.
731         * tests/test-log10l-ieee.c: New file.
732
733         New module 'log10l-ieee'.
734         * modules/log10l-ieee: New file.
735
736         Tests for module 'log10-ieee'.
737         * modules/log10-ieee-tests: New file.
738         * tests/test-log10-ieee.c: New file.
739
740         New module 'log10-ieee'.
741         * modules/log10-ieee: New file.
742
743         Tests for module 'log10f-ieee'.
744         * modules/log10f-ieee-tests: New file.
745         * tests/test-log10f-ieee.c: New file.
746         * tests/test-log10-ieee.h: New file.
747
748         New module 'log10f-ieee'.
749         * modules/log10f-ieee: New file.
750
751 2012-04-01  Bruno Haible  <bruno@clisp.org>
752
753         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
754         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
755         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
756         workaround.
757         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
758         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
760         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
761         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
762         (Depends-on): Update conditions.
763         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
764         IRIX 6.5, OSF/1 5.1 problems.
765
766 2012-04-01  Bruno Haible  <bruno@clisp.org>
767
768         log10f: Work around OSF/1 5.1 bug.
769         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
770         * lib/log10f.c (log10f): If logf exists, use it and provide just the
771         workaround.
772         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
773         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
775         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
776         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
777         (Depends-on): Update conditions.
778         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
779
780 2012-04-01  Bruno Haible  <bruno@clisp.org>
781
782         log10: Work around OSF/1 5.1 bug.
783         * lib/math.in.h (log10): New declaration.
784         * lib/log10.c: New file.
785         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
786         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
787         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
789         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
790         * modules/log10 (Files): Add lib/log10.c.
791         (Depends-on): Add math.
792         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
793         * tests/test-math-c++.cc: Check the declaration of log10.
794         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
795
796 2012-03-31  Bruno Haible  <bruno@clisp.org>
797
798         log10l tests: More tests.
799         * modules/log10l-tests (Files): Add tests/test-log10l.h,
800         tests/minus-zero.h, tests/randoml.c.
801         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
802         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
803         (main): Invoke test_function.
804
805         log10f tests: More tests.
806         * modules/log10f-tests (Files): Add tests/test-log10.h,
807         tests/minus-zero.h, tests/randomf.c.
808         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
809         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
810         (main): Invoke test_function.
811
812         log10 tests: More tests.
813         * tests/test-log10.h: New file.
814         * modules/log10-tests (Files): Add tests/test-log10.h,
815         tests/minus-zero.h, tests/randomd.c.
816         (Makefile.am): Add randomd.c to test_log10_SOURCES.
817         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
818         (main): Invoke test_function.
819
820 2012-03-31  Simon Josefsson  <simon@josefsson.org>
821
822         fflush: Fix syntax error.
823         * lib/fflush.c: Include unused-parameter.h, needed for
824         _GL_UNUSED_PARAMETER.
825         * modules/fflush (Depends-on): Add snippet/unused-parameter.
826
827 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
828
829         regex: pacify GCC when compiling GRUB
830         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
831         a diagnostic.  Reported by Vladimir Serbinenko in
832         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
833
834 2012-03-29  Eric Blake  <eblake@redhat.com>
835
836         stdio: don't assume gets any more
837         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
838         support.
839         * modules/stdio (Makefile.am): Likewise.
840         * lib/stdio-read.c (gets): Likewise.
841         * tests/test-stdio-c++.cc: Likewise.
842         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
843         * lib/stdio.in.h (gets): Make warning occur in more places.
844         * doc/posix-functions/gets.texi (gets): Update documentation.
845         Reported by Christer Solskogen.
846
847         maint.mk: fix syntax checks without exclusions
848         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
849         Reported by Daniel P. Berrange.
850
851         strerror_r: avoid compiler warning
852         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
853         level.
854
855         fflush: avoid compiler warning
856         * lib/fflush.c (update_fpos_cache): Mark variables that are
857         potentially unused.
858
859 2012-03-25  Bruno Haible  <bruno@clisp.org>
860
861         Tests for module 'localeconv'.
862         * modules/localeconv-tests: New file.
863         * tests/test-localeconv.c: New file.
864
865         New module 'localeconv'.
866         * lib/locale.in.h (localeconv): New declaration.
867         * lib/localeconv.c: New file.
868         * m4/localeconv.m4: New file.
869         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
870         REPLACE_LOCALECONV.
871         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
872         REPLACE_LOCALECONV.
873         * modules/localeconv: New file.
874         * modules/nl_langinfo (Depends-on): Add localeconv.
875         * modules/human (Depends-on): Likewise.
876         * doc/posix-functions/localeconv.texi: Mention the new module.
877
878 2012-03-25  Bruno Haible  <bruno@clisp.org>
879
880         locale: Provide a complete 'struct lconv'.
881         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
882         'struct lconv' does not contain int_p_cs_precedes.
883         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
884         * doc/posix-headers/locale.texi: Update.
885
886         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
887         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
888         * doc/posix-headers/locale.texi: Update.
889
890         locale: Provide a working 'struct lconv'.
891         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
892         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
893         'struct lconv' does not even contain decimal_point.
894         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
895         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
896         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
897         * doc/posix-headers/locale.texi: Mention the problems with
898         'struct lconv'.
899         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
900
901 2012-03-24  Bruno Haible  <bruno@clisp.org>
902
903         Enable common subexpression optimization in GCC.
904         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
905         macros.
906         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
907         GCC attribute 'const'.
908         (uc_locale_language): Declare with GCC attribute 'pure'.
909         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
910         with GCC attribute 'const'.
911         * lib/unictype.in.h (uc_is_general_category_withtable,
912         uc_combining_class, uc_combining_class_name,
913         uc_combining_class_long_name, uc_bidi_class_name,
914         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
915         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
916         uc_decimal_value, uc_digit_value, uc_numeric_value,
917         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
918         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
919         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
920         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
921         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
922         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
923         Declare with GCC attribute 'const'.
924         (uc_general_category_name, uc_general_category_long_name,
925         uc_general_category_byname, uc_general_category,
926         uc_is_general_category, uc_combining_class_byname,
927         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
928         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
929         Declare with GCC attribute 'pure'.
930         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
931         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
932         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
933         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
934         with GCC attribute 'pure'.
935         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
936         'const'.
937         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
938         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
939         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
940         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
941         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
942         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
943         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
944         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
945         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
946         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
947         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
948         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
949         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
950         GCC attribute 'pure'.
951         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
952         'const'.
953         * lib/uniwidth.in.h (uc_width): Simplify declaration.
954         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
955         u32_strwidth): Declare with GCC attribute 'pure'.
956
957         Enable common subexpression optimization in GCC.
958         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
959         (alphasort): Declare with GCC attribute 'pure'.
960         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
961         (atoll): Declare with GCC attribute 'pure'.
962         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
963         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
964         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
965         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
966         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
967         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
968         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
969
970 2012-03-24  Bruno Haible  <bruno@clisp.org>
971
972         gnulib-tool: Avoid unintended error output from 'cmp'.
973         * gnulib-tool (func_add_file, func_update_file, func_import): Use
974         "cmp -s", not "cmp > /dev/null".
975
976 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
977
978         gnulib-tool: fix imprecise comments w.r.t. an automake bug
979
980         It's not just Automake versions < 1.9b that creates an empty
981         pkgdatadir at installation time if pkgdata_DATA is specified
982         to empty; modern automake versions do this as well, at least
983         until automake 1.11.4 (not yet released at the moment of writing,
984         but soon to appear).  That behaviour was generally considered a
985         feature rather than a bug, at least until this discussion:
986         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
987
988         See also automake bugs #10997 and #11030.
989
990         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
991         reference to relevant automake bug numbers.
992         (func_emit_tests_Makefile_am): Likewise.
993
994 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
995
996         announce-gen: use Digest::SHA when possible
997         * build-aux/announce-gen: Use Digest::SHA when possible, falling
998         back to Digest::SHA1 if necessary.
999
1000 2012-03-20  Jim Meyering  <meyering@redhat.com>
1001
1002         tests: avoid gcc warnings about argv vs. const initializers
1003         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1004         warnings about discarding 'const' qualifier from pointer target type.
1005         * tests/test-posix_spawn2.c (main): Likewise.
1006
1007 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1008
1009         README-release: simplify slightly
1010         * top/README-release: Run "git checkout master" only once.
1011
1012 2012-03-15  Mark Wielaard  <mark@klomp.org>
1013
1014         git-merge-changelog: add specific example on how to use with hg.
1015         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1016
1017 2012-03-18  Mark Wielaard  <mark@klomp.org>
1018
1019         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1020
1021 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1022
1023         git-version-gen: don't let "prefix" envvar cause trouble
1024         * build-aux/git-version-gen (prefix): Initialize properly,
1025         so as not to use a value specified via the environment.
1026         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1027
1028 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1029
1030         regex: diagnose too-large repeat counts in EREs
1031         Previously, the code did not diagnose the too-large repeat count
1032         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1033         as if it were 'b\{1000000000}', which is unexpected.
1034         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1035         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1036         is a reasonable one for this problem.  Another option would be to
1037         create a new REG_OVERFLOW error for repeat counts that are too large.
1038         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1039         count is too large, so that the caller can distinguish the two cases.
1040         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1041         "Too large" return code, and that repeat counts are one example of this.
1042
1043 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1044
1045         doc: some glibc x32 integer width issues
1046         * doc/posix-headers/sys_types.texi (sys/types.h):
1047         * doc/posix-headers/time.texi (time.h):
1048         Mention that glibc x32 does not conform to POSIX in a couple of
1049         areas related to integer widths.
1050
1051 2012-03-15  Bruno Haible  <bruno@clisp.org>
1052
1053         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1054         * lib/fma.c (VOLATILE): New macro.
1055         (FUNC): Use it to work around a GCC compiler bug.
1056
1057 2012-03-13  Bruno Haible  <bruno@clisp.org>
1058
1059         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1060         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1061         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1062         REPLACE_HYPOTL to 1.
1063         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1064
1065 2012-03-13  Bruno Haible  <bruno@clisp.org>
1066
1067         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1068         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1069         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1070         REPLACE_REMAINDERL to 1.
1071         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1072         bug.
1073
1074 2012-03-13  Bruno Haible  <bruno@clisp.org>
1075
1076         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1077         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1078         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1079         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1080         too big rounding errors.
1081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1082         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1083         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1084         (Depends-on): Update conditions.
1085         * tests/test-sqrtl.c (my_ldexpl): New function.
1086         (main): Add test of a particular value.
1087         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1088
1089 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1090
1091         doc: Update timer_* platform portability notes.
1092         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1093         that always return ENOSYS.
1094         * doc/posix-functions/timer_delete.texi: Likewise.
1095         * doc/posix-functions/timer_gettime.texi: Likewise.
1096         * doc/posix-functions/timer_settime.texi: Likewise.
1097
1098 2012-03-13  Bruno Haible  <bruno@clisp.org>
1099
1100         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1101         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1102         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1103         REPLACE_CBRTL to 1.
1104         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1105
1106 2012-03-13  Bruno Haible  <bruno@clisp.org>
1107
1108         remainderl: Avoid compilation error on AIX >= 5.2.
1109         * lib/math.in.h (remainderl): Undefine macro from the system header.
1110
1111 2012-03-13  Bruno Haible  <bruno@clisp.org>
1112
1113         Avoid compilation errors with MSVC option -fp:strict.
1114         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1115         * lib/cbrtf.c: Likewise.
1116         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1117
1118 2012-03-12  Bruno Haible  <bruno@clisp.org>
1119
1120         uninorm: Don't crash in out-of-memory conditions.
1121         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1122         gracefully.
1123         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1124         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1125
1126 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1127
1128         quote: fix syntax-check
1129         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1130         also exports quote_quoting_options.
1131
1132 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1133
1134         Collapse list of copyright years to ranges.  See
1135         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1136         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1137         build-aux/csharpexec.sh.in, build-aux/gnupload,
1138         build-aux/install-reloc, build-aux/javacomp.sh.in,
1139         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1140         build-aux/move-if-change, build-aux/reloc-ldflags,
1141         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1142
1143 2012-03-11  Bruno Haible  <bruno@clisp.org>
1144
1145         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1146         * m4/log2f-ieee.m4: New file.
1147         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1148         whether log2f works with a minus zero argument. Replace it if not.
1149         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1150         (Depends-on): Add log2-ieee.
1151         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1152         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1153
1154         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1155         * m4/log2-ieee.m4: New file.
1156         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1157         whether log2 works with a minus zero argument. Replace it if not.
1158         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1159         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1160         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1161
1162         Tests for module 'log2l-ieee'.
1163         * modules/log2l-ieee-tests: New file.
1164         * tests/test-log2l-ieee.c: New file.
1165
1166         New module 'log2l-ieee'.
1167         * modules/log2l-ieee: New file.
1168
1169         Tests for module 'log2-ieee'.
1170         * modules/log2-ieee-tests: New file.
1171         * tests/test-log2-ieee.c: New file.
1172
1173         New module 'log2-ieee'.
1174         * modules/log2-ieee: New file.
1175
1176         Tests for module 'log2f-ieee'.
1177         * modules/log2f-ieee-tests: New file.
1178         * tests/test-log2f-ieee.c: New file.
1179         * tests/test-log2-ieee.h: New file.
1180
1181         New module 'log2f-ieee'.
1182         * modules/log2f-ieee: New file.
1183
1184 2012-03-11  Bruno Haible  <bruno@clisp.org>
1185
1186         Tests for module 'log2l'.
1187         * modules/log2l-tests: New file.
1188         * tests/test-log2l.c: New file.
1189
1190         New module 'log2l'.
1191         * lib/math.in.h (log2l): New declaration.
1192         * lib/log2l.c: New file.
1193         * m4/log2l.m4: New file.
1194         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1196         REPLACE_LOG2L.
1197         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1198         REPLACE_LOG2L.
1199         * modules/log2l: New file.
1200         * tests/test-math-c++.cc: Check the declaration of log2l.
1201         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1202         and OSF/1 problems.
1203
1204 2012-03-11  Bruno Haible  <bruno@clisp.org>
1205
1206         Tests for module 'log2f'.
1207         * modules/log2f-tests: New file.
1208         * tests/test-log2f.c: New file.
1209
1210         New module 'log2f'.
1211         * lib/math.in.h (log2f): New declaration.
1212         * lib/log2f.c: New file.
1213         * m4/log2f.m4: New file.
1214         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1216         REPLACE_LOG2F.
1217         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1218         REPLACE_LOG2F.
1219         * modules/log2f: New file.
1220         * tests/test-math-c++.cc: Check the declaration of log2f.
1221         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1222         and OSF/1 and Cygwin problems.
1223
1224 2012-03-11  Bruno Haible  <bruno@clisp.org>
1225
1226         Tests for module 'log2'.
1227         * modules/log2-tests: New file.
1228         * tests/test-log2.c: New file.
1229         * tests/test-log2.h: New file.
1230
1231         New module 'log2'.
1232         * lib/math.in.h (log2): New declaration.
1233         * lib/log2.c: New file.
1234         * m4/log2.m4: New file.
1235         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1236         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1237         REPLACE_LOG2.
1238         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1239         REPLACE_LOG2.
1240         * modules/log2: New file.
1241         * tests/test-math-c++.cc: Check the declaration of log2.
1242         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1243         and OSF/1 and Cygwin problems.
1244
1245 2012-03-11  Bruno Haible  <bruno@clisp.org>
1246
1247         exp2* tests: More tests.
1248         * tests/test-exp2.h (test_function): Test all integral arguments that
1249         don't need to overflow or denormalized numbers.
1250         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1251         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1252         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1253
1254 2012-03-10  Bruno Haible  <bruno@clisp.org>
1255
1256         log1pl-ieee: Work around test failure on AIX 7.1.
1257         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1258
1259         log1pl-ieee: Work around test failure on IRIX 6.5.
1260         * m4/log1pl-ieee.m4: New file.
1261         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1262         test whether log1pl works with a minus zero argument. Replace it if
1263         not.
1264         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1266         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1267         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1268         (Depends-on): Update conditions.
1269         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1270         m4/signbit.m4.
1271         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1272         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1273
1274         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1275         * m4/log1pf-ieee.m4: New file.
1276         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1277         test whether log1pf works with a minus zero argument. Replace it if
1278         not.
1279         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1280         m4/signbit.m4.
1281         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1282         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1283
1284         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1285         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1286         (configure.ac): Require gl_FUNC_LOG1PF.
1287
1288         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1289         * m4/log1p-ieee.m4: New file.
1290         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1291         whether log1p works with a minus zero argument. Replace it if not.
1292         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1294         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1295         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1296         (Depends-on): Update conditions.
1297         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1298         m4/signbit.m4.
1299         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1300         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1301
1302         Tests for module 'log1pl-ieee'.
1303         * modules/log1pl-ieee-tests: New file.
1304         * tests/test-log1pl-ieee.c: New file.
1305
1306         New module 'log1pl-ieee'.
1307         * modules/log1pl-ieee: New file.
1308
1309         Tests for module 'log1p-ieee'.
1310         * modules/log1p-ieee-tests: New file.
1311         * tests/test-log1p-ieee.c: New file.
1312
1313         New module 'log1p-ieee'.
1314         * modules/log1p-ieee: New file.
1315
1316         Tests for module 'log1pf-ieee'.
1317         * modules/log1pf-ieee-tests: New file.
1318         * tests/test-log1pf-ieee.c: New file.
1319         * tests/test-log1p-ieee.h: New file.
1320
1321         New module 'log1pf-ieee'.
1322         * modules/log1pf-ieee: New file.
1323
1324 2012-03-10  Bruno Haible  <bruno@clisp.org>
1325
1326         Tests for module 'log1pl'.
1327         * modules/log1pl-tests: New file.
1328         * tests/test-log1pl.c: New file.
1329
1330         New module 'log1pl'.
1331         * lib/math.in.h (log1pl): New declaration.
1332         * lib/log1pl.c: New file.
1333         * m4/log1pl.m4: New file.
1334         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1336         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1337         * modules/log1pl: New file.
1338         * tests/test-math-c++.cc: Check the declaration of log1pl.
1339         * doc/posix-functions/log1pl.texi: Mention the new module.
1340
1341 2012-03-10  Bruno Haible  <bruno@clisp.org>
1342
1343         Tests for module 'log1pf'.
1344         * modules/log1pf-tests: New file.
1345         * tests/test-log1pf.c: New file.
1346
1347         New module 'log1pf'.
1348         * lib/math.in.h (log1pf): New declaration.
1349         * lib/log1pf.c: New file.
1350         * m4/log1pf.m4: New file.
1351         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1353         REPLACE_LOG1PF.
1354         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1355         REPLACE_LOG1PF.
1356         * modules/log1pf: New file.
1357         * tests/test-math-c++.cc: Check the declaration of log1pf.
1358         * doc/posix-functions/log1pf.texi: Mention the new module.
1359
1360 2012-03-10  Bruno Haible  <bruno@clisp.org>
1361
1362         log1p tests: More tests.
1363         * tests/test-log1p.h: New file.
1364         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1365         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1366         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1367         (main): Invoke test_function.
1368
1369         log1p: Provide replacement for Minix and MSVC.
1370         * lib/math.in.h (log1p): New declaration.
1371         * lib/log1p.c: New file.
1372         * m4/log1p.m4: New file.
1373         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1375         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1376         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1377         (Depends-on): Add math, isnand, log, round.
1378         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1379         HAVE_LOG1P is 0.
1380         * tests/test-math-c++.cc: Check the declaration of log1p.
1381         * doc/posix-functions/log1p.texi: Mention the replacement.
1382
1383 2012-03-10  Bruno Haible  <bruno@clisp.org>
1384
1385         math tests: Small simplification.
1386         * tests/test-exp.h (test_function): Use the same err_bound for
1387         'double' on platforms with sizeof (long double) == sizeof (double)
1388         than on platforms with sizeof (long double) > sizeof (double).
1389         * tests/test-exp2.h (test_function): Likewise.
1390         * tests/test-expm1.h (test_function): Likewise.
1391         * tests/test-log.h (test_function): Likewise.
1392
1393 2012-03-10  Bruno Haible  <bruno@clisp.org>
1394
1395         Fix some comments.
1396         * lib/expl.c: Fix an ambiguous comment.
1397         * lib/expm1.c: Likewise.
1398         * lib/expm1l.c: Likewise.
1399         * lib/exp2.c: Likewise.
1400         * lib/exp2l.c: Likewise.
1401
1402 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1403
1404         regex: allow inclusion of <regex.h> before <limits.h>
1405         Without this patch, portable programs had to include <limits.h> before
1406         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1407         I ran into this problem with a test version of GNU grep on Solaris 8.
1408         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1409         This is done conditionally so that this change can be merged
1410         back to glibc.
1411         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1412         using the included regex.
1413
1414         fts: depend on fdopendir
1415         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1416         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1417         problem was introduced when fdopendir was split out.
1418
1419 2012-03-10  Bruno Haible  <bruno@clisp.org>
1420
1421         Remove unused variables.
1422         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1423         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1424
1425 2012-03-10  Bruno Haible  <bruno@clisp.org>
1426
1427         isnanf-nolibm: Fix last commit.
1428         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1429
1430         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1431         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1432
1433 2012-03-10  Bruno Haible  <bruno@clisp.org>
1434
1435         logf-ieee: Work around test failure on NetBSD 5.1.
1436         * m4/logf-ieee.m4: New file.
1437         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1438         whether logf works with a negative argument. Replace it if not.
1439         * lib/logf.c (logf): For negative arguments, return NaN.
1440         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1441         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1442         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1443
1444         logf-ieee: Work around test failure on Solaris 9.
1445         * modules/logf-ieee (Depends-on): Add log-ieee.
1446         (configure.ac): Require gl_FUNC_LOGF.
1447
1448         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1449         * m4/log-ieee.m4: New file.
1450         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1451         log works with a negative argument. Replace it if not.
1452         * lib/log.c (log): For negative arguments, return NaN.
1453         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1454         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1455         * doc/posix-functions/log.texi: Mention the log-ieee module.
1456
1457         Tests for module 'logl-ieee'.
1458         * modules/logl-ieee-tests: New file.
1459         * tests/test-logl-ieee.c: New file.
1460
1461         New module 'logl-ieee'.
1462         * modules/logl-ieee: New file.
1463
1464         Tests for module 'log-ieee'.
1465         * modules/log-ieee-tests: New file.
1466         * tests/test-log-ieee.c: New file.
1467
1468         New module 'log-ieee'.
1469         * modules/log-ieee: New file.
1470
1471         Tests for module 'logf-ieee'.
1472         * modules/logf-ieee-tests: New file.
1473         * tests/test-logf-ieee.c: New file.
1474         * tests/test-log-ieee.h: New file.
1475
1476         New module 'logf-ieee'.
1477         * modules/logf-ieee: New file.
1478
1479 2012-03-10  Bruno Haible  <bruno@clisp.org>
1480
1481         log: Fix bug introduced on 2012-03-09.
1482         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1483
1484 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1485
1486         timer-time: link explicitly with pthreads on glibc
1487         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1488         to support static linking, when newer glibc is
1489         detected, as that contains pthread emulation of
1490         POSIX timer functions where required.
1491         * modules/timer-time: Depend on threadlib to
1492         pull in the appropriate library to link.
1493
1494 2012-03-10  Bruno Haible  <bruno@clisp.org>
1495
1496         log* tests: More tests.
1497         * tests/test-log.h: New file.
1498         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1499         (main): Invoke test_function.
1500         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1501         (main): Invoke test_function.
1502         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1503         (main): Invoke test_function.
1504         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1505         tests/randomd.c.
1506         (Makefile.am): Add randomd.c to test_log_SOURCES.
1507         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1508         tests/randomf.c.
1509         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1510         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1511         tests/randoml.c.
1512         (Depends-on): Add 'float'.
1513         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1514
1515 2012-03-09  Bruno Haible  <bruno@clisp.org>
1516
1517         logl: Work around OSF/1 5.1 bug.
1518         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1519         * lib/logl.c (logl): If logl exists, use it and provide just the
1520         workaround.
1521         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1522         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1524         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1525         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1526         (Depends-on): Update conditions.
1527         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1528
1529 2012-03-09  Bruno Haible  <bruno@clisp.org>
1530
1531         logf: Work around OSF/1 5.1 bug.
1532         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1533         * lib/logf.c (logf): If logf exists, use it and provide just the
1534         workaround.
1535         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1536         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1538         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1539         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1540         (Depends-on): Update conditions.
1541         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1542
1543 2012-03-09  Bruno Haible  <bruno@clisp.org>
1544
1545         log: Work around OSF/1 5.1 bug.
1546         * lib/math.in.h (log): New declaration.
1547         * lib/log.c: New file.
1548         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1549         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1550         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1552         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1553         * modules/log (Files): Add lib/log.c.
1554         (Depends-on): Add math.
1555         (configure.ac): If REPLACE_LOG is 1, compile an override.
1556         * tests/test-math-c++.cc: Check the declaration of log.
1557         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1558
1559 2012-03-09  Jim Meyering  <meyering@redhat.com>
1560
1561         readtokens.c: adjust wording in a comment
1562         * lib/readtokens.c: Insert omitted "that" in a comment.
1563
1564 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1565
1566         modechange: add notations +40, 00440, etc.
1567         * lib/modechange.c (mode_compile): Support new notations
1568         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1569
1570 2012-03-08  Bruno Haible  <bruno@clisp.org>
1571
1572         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1573         * m4/exp2l-ieee.m4: New file.
1574         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1575         test whether exp2l works with a NaN argument and with a negative
1576         infinity argument. Replace it if not.
1577         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1579         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1580         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1581         (Depends-on): Update conditions.
1582         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1583         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1584         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1585
1586         Tests for module 'exp2l-ieee'.
1587         * modules/exp2l-ieee-tests: New file.
1588         * tests/test-exp2l-ieee.c: New file.
1589
1590         New module 'exp2l-ieee'.
1591         * modules/exp2l-ieee: New file.
1592
1593         Tests for module 'exp2-ieee'.
1594         * modules/exp2-ieee-tests: New file.
1595         * tests/test-exp2-ieee.c: New file.
1596
1597         New module 'exp2-ieee'.
1598         * modules/exp2-ieee: New file.
1599
1600         Tests for module 'exp2f-ieee'.
1601         * modules/exp2f-ieee-tests: New file.
1602         * tests/test-exp2f-ieee.c: New file.
1603         * tests/test-exp2-ieee.h: New file.
1604
1605         New module 'exp2f-ieee'.
1606         * modules/exp2f-ieee: New file.
1607
1608 2012-03-08  Bruno Haible  <bruno@clisp.org>
1609
1610         Tests for module 'exp2l'.
1611         * modules/exp2l-tests: New file.
1612         * tests/test-exp2l.c: New file.
1613
1614         New module 'exp2l'.
1615         * lib/math.in.h (exp2l): New declaration.
1616         * lib/exp2l.c: New file.
1617         * lib/expl-table.c: New file, extracted from lib/expl.c.
1618         * lib/expl.c (gl_expl_table): New declaration.
1619         (expl): Remove expl_table. Update reference.
1620         * m4/exp2l.m4: New file.
1621         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1623         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1624         * modules/exp2l: New file.
1625         * modules/expl (Files): Add lib/expl-table.c.
1626         (configure.ac): Compile also expl-table.c.
1627         * tests/test-math-c++.cc: Check the declaration of exp2l.
1628         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1629         problem.
1630
1631 2012-03-08  Bruno Haible  <bruno@clisp.org>
1632
1633         Tests for module 'exp2f'.
1634         * modules/exp2f-tests: New file.
1635         * tests/test-exp2f.c: New file.
1636
1637         New module 'exp2f'.
1638         * lib/math.in.h (exp2f): New declaration.
1639         * lib/exp2f.c: New file.
1640         * m4/exp2f.m4: New file.
1641         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1643         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1644         * modules/exp2f: New file.
1645         * tests/test-math-c++.cc: Check the declaration of exp2f.
1646         * doc/posix-functions/exp2f.texi: Mention the new module and the
1647         IRIX problem.
1648
1649 2012-03-08  Bruno Haible  <bruno@clisp.org>
1650
1651         Tests for module 'exp2'.
1652         * modules/exp2-tests: New file.
1653         * tests/test-exp2.c: New file.
1654         * tests/test-exp2.h: New file.
1655
1656         New module 'exp2'.
1657         * lib/math.in.h (exp2): New declaration.
1658         * lib/exp2.c: New file.
1659         * m4/exp2.m4: New file.
1660         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1662         REPLACE_EXP2.
1663         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1664         REPLACE_EXP2.
1665         * modules/exp2: New file.
1666         * tests/test-math-c++.cc: Check the declaration of exp2.
1667         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1668         and OpenBSD problems.
1669
1670 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1671
1672         savedir: fix comment typo
1673         * lib/savedir.c (savedirstream): Fix typo in comment.
1674
1675 2012-03-08  Bruno Haible  <bruno@clisp.org>
1676
1677         test-readtokens.c: use const; remove unwarranted cast
1678         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1679
1680 2012-03-08  Bruno Haible  <bruno@clisp.org>
1681
1682         fmal: Avoid compilation error on AIX.
1683         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1684         AIX 5.2..7.1.
1685
1686 2012-03-08  Bruno Haible  <bruno@clisp.org>
1687
1688         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1689         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1690         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1691         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1692         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1693         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1694         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1695
1696 2012-03-08  Bruno Haible  <bruno@clisp.org>
1697
1698         remainderf: Override buggy system function on IRIX 6.5.
1699         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1700         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1701         when it exists.
1702         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1703
1704 2012-03-08  Jim Meyering  <meyering@redhat.com>
1705
1706         test-readtokens.c: avoid const-related compilation warnings
1707         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1708
1709 2012-03-07  Jim Meyering  <meyering@redhat.com>
1710             Bruno Haible  <bruno@clisp.org>
1711
1712         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1713         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1714         tests/randomd.c.
1715         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1716         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1717         tests/randoml.c.
1718         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1719
1720 2012-03-07  Bruno Haible  <bruno@clisp.org>
1721
1722         expm1l: Avoid compilation error on AIX.
1723         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1724         AIX 5.2..7.1.
1725
1726 2012-03-07  Bruno Haible  <bruno@clisp.org>
1727
1728         expm1l: Don't override undeclared system function on IRIX 6.5.
1729         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1730         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1731         it exists. Set HAVE_DECL_EXPM1L.
1732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1733         HAVE_EXPM1L.
1734         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1735         HAVE_EXPM1L.
1736         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1737
1738 2012-03-07  Bruno Haible  <bruno@clisp.org>
1739
1740         remainderl: Don't override undeclared system function on IRIX 6.5.
1741         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1742         HAVE_REMAINDERL.
1743         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1744         declared when it exists. Set HAVE_DECL_REMAINDERL.
1745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1746         not HAVE_REMAINDERL.
1747         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1748         HAVE_REMAINDERL.
1749         * doc/posix-functions/remainderl.texi: Mention missing declaration
1750         problem.
1751
1752 2012-03-07  Bruno Haible  <bruno@clisp.org>
1753
1754         rintf: Don't override undeclared system function on IRIX 6.5.
1755         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1756         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1757         exists. Set HAVE_DECL_RINTF.
1758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1759         HAVE_RINTF.
1760         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1761         HAVE_RINTF.
1762         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1763
1764 2012-03-07  Bruno Haible  <bruno@clisp.org>
1765
1766         roundl: Avoid compilation error on AIX.
1767         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1768         AIX 5.2..7.1.
1769
1770 2012-03-07  Bruno Haible  <bruno@clisp.org>
1771
1772         roundl: Don't override undeclared system function on IRIX 6.5.
1773         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1774         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1775         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1776         * modules/roundl (configure.ac): For replacement code, test
1777         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1778         (Depends-on): Update conditions.
1779         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1780
1781 2012-03-07  Bruno Haible  <bruno@clisp.org>
1782
1783         roundf: Don't override undeclared system function on IRIX 6.5.
1784         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1785         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1786         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1787         * modules/roundf (configure.ac): For replacement code, test
1788         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1789         (Depends-on): Update conditions.
1790         * modules/roundf-ieee (Depends-on): Update conditions.
1791         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1792
1793 2012-03-07  Bruno Haible  <bruno@clisp.org>
1794
1795         round: Don't override undeclared system function on IRIX 6.5.
1796         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1797         argument.
1798         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1799         also when it is not declared. Set HAVE_ROUND. For replacement code,
1800         test HAVE_ROUND, not HAVE_DECL_ROUND.
1801         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1802         not HAVE_DECL_ROUND.
1803         (Depends-on): Update conditions.
1804         * modules/round-ieee (Depends-on): Update conditions.
1805         * doc/posix-functions/round.texi: Mention the IRIX problem.
1806
1807 2012-03-07  Bruno Haible  <bruno@clisp.org>
1808
1809         copysignf: Don't override undeclared system function on IRIX 6.5.
1810         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1811         HAVE_COPYSIGNF.
1812         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1813         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1815         not HAVE_COPYSIGNF.
1816         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1817         HAVE_COPYSIGNF.
1818         * doc/posix-functions/copysignf.texi: Mention missing declaration
1819         problem.
1820
1821 2012-03-07  Jim Meyering  <meyering@redhat.com>
1822
1823         readtokens: add tests
1824         * modules/readtokens-tests: New file.
1825         * tests/test-readtokens.c: New file.
1826
1827 2012-03-07  Jim Meyering  <meyering@redhat.com>
1828
1829         quotearg: the module must now include quote.h
1830         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1831         So must the module.
1832         * modules/quotearg (Files): Add quote.h.
1833
1834 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1835
1836         readtokens: avoid core dumps with unusual calling patterns
1837         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1838         * lib/readtokens.c: Include limits.h.
1839         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1840         (readtoken): Don't cache the delimiters; the cache code was buggy
1841         if !delim && saved_delim, or if the new n_delim differs from the old.
1842         Also, it wasn't thread-safe.
1843
1844 2012-03-07  Bruno Haible  <bruno@clisp.org>
1845
1846         quote: Adhere to common module description layout.
1847         * modules/quote (Makefile.am): Add back empty section.
1848
1849 2012-03-06  Akim Demaille  <demaille@gostai.com>
1850
1851         quote: fuse into quotearg
1852         This patch is made for the benefit of Bison.
1853         quote does not leave the choice of the quoting style to the user.
1854         quoting_style provides poor customizability, yet quoting_options,
1855         which is very rich, is hidden inside quotearg.c.  So in order to
1856         allow quote customization, move its implementation to quotearg.c.
1857         * lib/quote.c: Remove.
1858         * modules/quote: Adjust.
1859         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1860         warning: provide all the members of literal structs.
1861         (quote_quoting_options): New.
1862         (quote, quote_n): Import implementation from quote.c.
1863         * lib/quote.h: Import the comments from quote.c.
1864         (quote_quoting_options): New.
1865
1866 2012-03-06  Bruno Haible  <bruno@clisp.org>
1867
1868         Tests for module 'expm1l-ieee'.
1869         * modules/expm1l-ieee-tests: New file.
1870         * tests/test-expm1l-ieee.c: New file.
1871
1872         New module 'expm1l-ieee'.
1873         * modules/expm1l-ieee: New file.
1874
1875         Tests for module 'expm1f-ieee'.
1876         * modules/expm1f-ieee-tests: New file.
1877         * tests/test-expm1f-ieee.c: New file.
1878
1879         New module 'expm1f-ieee'.
1880         * modules/expm1f-ieee: New file.
1881
1882         Tests for module 'expm1-ieee'.
1883         * modules/expm1-ieee-tests: New file.
1884         * tests/test-expm1-ieee.c: New file.
1885         * tests/test-expm1-ieee.h: New file.
1886
1887         New module 'expm1-ieee'.
1888         * modules/expm1-ieee: New file.
1889         * m4/expm1-ieee.m4: New file.
1890         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1891         whether expm1 works with a minus zero argument. Replace it if not.
1892         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1894         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1895         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1896         (Depends-on): Update conditions.
1897         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1898         AIX problem.
1899
1900 2012-03-06  Bruno Haible  <bruno@clisp.org>
1901
1902         Work around expm1f bug on IRIX 6.5.
1903         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1904         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1905         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1906         not work.
1907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1908         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1909         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1910         (Depends-on): Update conditions.
1911         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1912
1913 2012-03-06  Bruno Haible  <bruno@clisp.org>
1914
1915         Tests for module 'expm1l'.
1916         * modules/expm1l-tests: New file.
1917         * tests/test-expm1l.c: New file.
1918
1919         New module 'expm1l'.
1920         * lib/math.in.h (expm1l): New declaration.
1921         * lib/expm1l.c: New file.
1922         * m4/expm1l.m4: New file.
1923         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1925         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1926         * modules/expm1l: New file.
1927         * tests/test-math-c++.cc: Check the declaration of expm1l.
1928         * doc/posix-functions/expm1l.texi: Mention the new module.
1929
1930 2012-03-06  Bruno Haible  <bruno@clisp.org>
1931
1932         Tests for module 'expm1f'.
1933         * modules/expm1f-tests: New file.
1934         * tests/test-expm1f.c: New file.
1935
1936         New module 'expm1f'.
1937         * lib/math.in.h (expm1f): New declaration.
1938         * lib/expm1f.c: New file.
1939         * m4/expm1f.m4: New file.
1940         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1942         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1943         * modules/expm1f: New file.
1944         * tests/test-math-c++.cc: Check the declaration of expm1f.
1945         * doc/posix-functions/expm1f.texi: Mention the new module.
1946
1947 2012-03-06  Bruno Haible  <bruno@clisp.org>
1948
1949         Tests for module 'expm1'.
1950         * modules/expm1-tests: New file.
1951         * tests/test-expm1.c: New file.
1952         * tests/test-expm1.h: New file.
1953
1954         New module 'expm1'.
1955         * lib/math.in.h (expm1): New declaration.
1956         * lib/expm1.c: New file.
1957         * m4/expm1.m4: New file.
1958         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1960         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1961         * modules/expm1: New file.
1962         * tests/test-math-c++.cc: Check the declaration of expm1.
1963         * doc/posix-functions/expm1.texi: Mention the new module.
1964
1965 2012-03-06  Bruno Haible  <bruno@clisp.org>
1966
1967         math: Ensure declarations of math functions.
1968         * modules/acosf (Depends-on): Add 'extensions'.
1969         * modules/asinf (Depends-on): Likewise.
1970         * modules/atan2f (Depends-on): Likewise.
1971         * modules/atanf (Depends-on): Likewise.
1972         * modules/cbrt (Depends-on): Likewise.
1973         * modules/cbrtf (Depends-on): Likewise.
1974         * modules/cbrtl (Depends-on): Likewise.
1975         * modules/copysignf (Depends-on): Likewise.
1976         * modules/copysignl (Depends-on): Likewise.
1977         * modules/cosf (Depends-on): Likewise.
1978         * modules/coshf (Depends-on): Likewise.
1979         * modules/expf (Depends-on): Likewise.
1980         * modules/fabsf (Depends-on): Likewise.
1981         * modules/fabsl (Depends-on): Likewise.
1982         * modules/fmaf (Depends-on): Likewise.
1983         * modules/fmal (Depends-on): Likewise.
1984         * modules/fmodf (Depends-on): Likewise.
1985         * modules/fmodl (Depends-on): Likewise.
1986         * modules/frexpf (Depends-on): Likewise.
1987         * modules/frexpl (Depends-on): Likewise.
1988         * modules/hypot (Depends-on): Likewise.
1989         * modules/hypotf (Depends-on): Likewise.
1990         * modules/hypotl (Depends-on): Likewise.
1991         * modules/ldexpf (Depends-on): Likewise.
1992         * modules/ldexpl (Depends-on): Likewise.
1993         * modules/log10f (Depends-on): Likewise.
1994         * modules/log10l (Depends-on): Likewise.
1995         * modules/log1p (Depends-on): Likewise.
1996         * modules/logb (Depends-on): Likewise.
1997         * modules/logf (Depends-on): Likewise.
1998         * modules/modff (Depends-on): Likewise.
1999         * modules/modfl (Depends-on): Likewise.
2000         * modules/powf (Depends-on): Likewise.
2001         * modules/remainderf (Depends-on): Likewise.
2002         * modules/remainderl (Depends-on): Likewise.
2003         * modules/rintf (Depends-on): Likewise.
2004         * modules/rintl (Depends-on): Likewise.
2005         * modules/sinf (Depends-on): Likewise.
2006         * modules/sinhf (Depends-on): Likewise.
2007         * modules/sqrtf (Depends-on): Likewise.
2008         * modules/tanf (Depends-on): Likewise.
2009         * modules/tanhf (Depends-on): Likewise.
2010         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2011         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2012         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2013         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2014         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2015         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2016         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2017         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2018         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2019         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2020         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2021         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2022         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2023         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2024         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2025         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2026         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2027         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2028         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2029         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2030         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2031         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2032         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2033         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2035         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2036         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2037         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2038         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2039         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2040         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2041         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2042         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2043         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2044         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2045         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2046         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2047         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2048         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2049         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2050         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2051
2052 2012-03-06  Bruno Haible  <bruno@clisp.org>
2053
2054         math: Update module names in warnings.
2055         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2056         tanl): Use specific module name in warn-on-use warning.
2057
2058 2012-03-06  Bruno Haible  <bruno@clisp.org>
2059
2060         expl: Simplify computation.
2061         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2062
2063 2012-03-05  Bruno Haible  <bruno@clisp.org>
2064
2065         exp* tests: More tests.
2066         * tests/test-exp.h: New file.
2067         * tests/test-exp.c: Include <float.h> and test-exp.h.
2068         (main): Invoke test_function.
2069         * tests/test-expf.c: Include <float.h> and test-exp.h.
2070         (main): Invoke test_function.
2071         * tests/test-expl.c: Include <float.h> and test-exp.h.
2072         (main): Invoke test_function.
2073         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2074         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2075         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2076         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2077         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2078         (Depends-on): Add 'float'.
2079         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2080
2081         expl: Fix precision of computed result.
2082         * lib/expl.c: Completely rewritten.
2083         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2084         (Maintainer): Add me.
2085         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2086
2087 2012-03-05  Bruno Haible  <bruno@clisp.org>
2088
2089         cbrt* tests: More tests.
2090         * tests/test-cbrt.h: New file.
2091         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2092         (main): Invoke test_function.
2093         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2094         (main): Invoke test_function.
2095         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2096         (main): Invoke test_function.
2097         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2098         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2099         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2100         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2101         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2102         (Depends-on): Add 'float'.
2103         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2104
2105 2012-03-05  Bruno Haible  <bruno@clisp.org>
2106
2107         hypot* tests: More tests.
2108         * tests/test-hypot.h: New file, partially extracted from
2109         tests/test-hypotl.c.
2110         * tests/test-hypot.c: Include test-hypot.h.
2111         (main): Invoke test_function.
2112         * tests/test-hypotf.c: Include test-hypot.h.
2113         (main): Invoke test_function.
2114         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2115         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2116         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2117         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2118         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2119         tests/randomf.c.
2120         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2121         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2122         tests/randoml.c.
2123         (Depends-on): Add 'fpucw', 'float'.
2124         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2125
2126 2012-03-05  Bruno Haible  <bruno@clisp.org>
2127
2128         fpucw: Doc about FreeBSD.
2129         * lib/fpucw.h: Mention FreeBSD in comments.
2130
2131 2012-03-04  Bruno Haible  <bruno@clisp.org>
2132
2133         sqrt* tests: More tests.
2134         * tests/test-sqrt.h: New file.
2135         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2136         (main): Invoke test_function.
2137         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2138         (main): Invoke test_function.
2139         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2140         (main): Invoke test_function.
2141         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2142         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2143         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2144         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2145         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2146         (Depends-on): Add 'float'.
2147         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2148
2149 2012-03-04  Bruno Haible  <bruno@clisp.org>
2150
2151         remainder* tests: More tests.
2152         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2153         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2154         (main): Invoke test_function.
2155         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2156         (main): Invoke test_function.
2157         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2158         (main): Invoke test_function.
2159         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2160         tests/randomd.c.
2161         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2162         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2163         tests/randomf.c.
2164         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2165         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2166         tests/randoml.c.
2167         (Depends-on): Add 'float'.
2168         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2169
2170 2012-03-04  Bruno Haible  <bruno@clisp.org>
2171
2172         remainder, remainderf, remainderl: Fix computation for large quotients.
2173         * lib/remainder.c: Completely rewritten.
2174         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2175         USE_FLOAT.
2176         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2177         USE_LONG_DOUBLE.
2178         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2179         isnand, isinf. Remove round, fma.
2180         * modules/remainderf (Files): Add lib/remainder.c.
2181         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2182         Remove roundf, fmaf.
2183         * modules/remainderl (Files): Add lib/remainder.c.
2184         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2185         isinf. Remove roundl, fmal.
2186         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2187         REMAINDER_LIBM.
2188         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2189         REMAINDERF_LIBM.
2190         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2191         REMAINDERL_LIBM.
2192
2193 2012-03-04  Bruno Haible  <bruno@clisp.org>
2194
2195         fmod* tests: More tests.
2196         * tests/test-fmod.h (my_ldexp): New function.
2197         (test_function): Reduce amount of random numbers to test. Add tests
2198         of very large quotients x / y.
2199         * tests/test-fmod.c (MAX_EXP): New macro.
2200         * tests/test-fmodf.c (MAX_EXP): Likewise.
2201         * tests/test-fmodl.c (MAX_EXP): Likewise.
2202
2203 2012-03-04  Bruno Haible  <bruno@clisp.org>
2204
2205         fmod, fmodl: Fix computation for large quotients x / y.
2206         * lib/fmod.c: Completely rewritten.
2207         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2208         USE_LONG_DOUBLE.
2209         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2210         isnand. Remove fma.
2211         * modules/fmodl (Files): Add lib/fmod.c.
2212         (Depends-on): Add float, isfinite, signbit, fabsl,
2213         frexpl, ldexpl, isnanl. Remove fma.
2214         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2215         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2216
2217 2012-03-03  Bruno Haible  <bruno@clisp.org>
2218
2219         fmod* tests: More tests.
2220         * tests/test-fmod.h: New file.
2221         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2222         (main): Invoke test_function.
2223         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2224         (main): Invoke test_function.
2225         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2226         (main): Invoke test_function.
2227         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2228         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2229         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2230         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2231         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2232         (Depends-on): Add 'float'.
2233         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2234
2235 2012-03-03  Bruno Haible  <bruno@clisp.org>
2236
2237         rint* tests: More tests.
2238         * tests/test-rint.h: New file, partially extracted from
2239         tests/test-rintl.c.
2240         * tests/test-rint.c: Include test-rint.h.
2241         (main): Invoke test_function.
2242         * tests/test-rintf.c: Include test-rint.h.
2243         (main): Invoke test_function.
2244         * tests/test-rintl.c: Include test-rint.h.
2245         (main): Invoke test_function.
2246         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2247         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2248         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2249         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2250         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2251         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2252
2253 2012-03-03  Bruno Haible  <bruno@clisp.org>
2254
2255         modf* tests: More tests.
2256         * tests/test-modf.h: New file.
2257         * tests/test-modf.c: Include <float.h> and test-modf.h.
2258         (main): Invoke test_function.
2259         * tests/test-modff.c: Include <float.h> and test-modf.h.
2260         (main): Invoke test_function.
2261         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2262         (main): Invoke test_function.
2263         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2264         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2265         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2266         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2267         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2268         (Depends-on): Add 'float'.
2269         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2270
2271 2012-03-03  Bruno Haible  <bruno@clisp.org>
2272
2273         fabs* tests: More tests.
2274         * tests/test-fabs.h: New file, partially extracted from
2275         tests/test-fabsl.c.
2276         * tests/test-fabs.c (RANDOM): New macro.
2277         * tests/test-fabsf.c (RANDOM): New macro.
2278         * tests/test-fabsl.c (RANDOM): New macro.
2279         * modules/fabs-tests (Files): Add tests/randomd.c.
2280         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2281         * modules/fabsf-tests (Files): Add tests/randomf.c.
2282         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2283         * modules/fabsl-tests (Files): Add tests/randoml.c.
2284         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2285
2286 2012-03-03  Bruno Haible  <bruno@clisp.org>
2287
2288         ldexp* tests: More tests.
2289         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2290         * tests/test-ldexp.c (RANDOM): New macro.
2291         * tests/test-ldexpf.c (RANDOM): New macro.
2292         * tests/test-ldexpl.c (RANDOM): New macro.
2293         * modules/ldexp-tests (Files): Add tests/randomd.c.
2294         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2295         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2296         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2297         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2298         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2299
2300 2012-03-03  Bruno Haible  <bruno@clisp.org>
2301
2302         frexp* tests: More tests.
2303         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2304         * tests/test-frexp.c (RANDOM): New macro.
2305         * tests/test-frexpf.c (RANDOM): New macro.
2306         * tests/test-frexpl.c (RANDOM): New macro.
2307         * modules/frexp-tests (Files): Add tests/randomd.c.
2308         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2309         * modules/frexpf-tests (Files): Add tests/randomf.c.
2310         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2311         * modules/frexpl-tests (Files): Add tests/randoml.c.
2312         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2313
2314 2012-03-03  Bruno Haible  <bruno@clisp.org>
2315
2316         Support for pseudo-random numbers in tests.
2317         * tests/randomf.c: New file.
2318         * tests/randomd.c: New file.
2319         * tests/randoml.c: New file.
2320         * tests/macros.h (randomf, randomd, randoml): New declarations.
2321
2322 2012-03-03  Bruno Haible  <bruno@clisp.org>
2323
2324         frexp* tests: Refactor.
2325         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2326         * tests/test-frexp.c: Include and use it.
2327         * tests/test-frexpf.c: Likewise.
2328         * tests/test-frexpl.c: Likewise.
2329         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2330         * modules/frexpf-tests (Files): Likewise.
2331         * modules/frexpl-tests (Files): Likewise.
2332
2333 2012-03-02  Jim Meyering  <meyering@redhat.com>
2334
2335         maint: don't specify XZ_OPT=-9ev in dist-related rule
2336         Using xz's -9 option is warranted only if you have a very large
2337         tarball (see xz's documentation for the sizes vs. presets), and
2338         requires 64MiB of memory at decompression time.
2339         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2340         Automake's default of just "-e" is fine.  Override on a
2341         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2342
2343 2012-03-01  Eric Blake  <eblake@redhat.com>
2344
2345         maint.mk: allow announcement for non-gnulib project
2346         * maint.mk (announcement): Skip gnulib version if not used.
2347
2348 2012-03-01  Jim Meyering  <meyering@redhat.com>
2349
2350         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2351         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2352         envvar settings cannot interfere.  Otherwise, setting envvars like
2353         prohibit=foo require=bar, etc. would cause spurious test failures.
2354
2355 2012-03-01  Eric Blake  <eblake@redhat.com>
2356
2357         maint.mk: add per-line exclusions to prohibitions
2358         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2359         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2360         (sc_const_long_option): Use it.
2361
2362 2012-03-01  Bruno Haible  <bruno@clisp.org>
2363
2364         Tests for module 'expl-ieee'.
2365         * modules/expl-ieee-tests: New file.
2366         * tests/test-expl-ieee.c: New file.
2367
2368         New module 'expl-ieee'.
2369         * modules/expl-ieee: New file.
2370
2371         Tests for module 'exp-ieee'.
2372         * modules/exp-ieee-tests: New file.
2373         * tests/test-exp-ieee.c: New file.
2374
2375         New module 'exp-ieee'.
2376         * modules/exp-ieee: New file.
2377
2378         Tests for module 'expf-ieee'.
2379         * modules/expf-ieee-tests: New file.
2380         * tests/test-expf-ieee.c: New file.
2381         * tests/test-exp-ieee.h: New file.
2382
2383         New module 'expf-ieee'.
2384         * modules/expf-ieee: New file.
2385
2386 2012-02-29  Bruno Haible  <bruno@clisp.org>
2387
2388         cbrtl-ieee: Work around test failure on IRIX 6.5.
2389         * m4/cbrtl-ieee.m4: New file.
2390         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2391         test whether cbrtl works with a minus zero argument. Replace it if not.
2392         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2394         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2395         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2396         (Depends-on): Update conditions.
2397         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2398         m4/signbit.m4.
2399         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2400         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2401         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2402
2403         Tests for module 'cbrtl-ieee'.
2404         * modules/cbrtl-ieee-tests: New file.
2405         * tests/test-cbrtl-ieee.c: New file.
2406
2407         New module 'cbrtl-ieee'.
2408         * modules/cbrtl-ieee: New file.
2409
2410         Tests for module 'cbrt-ieee'.
2411         * modules/cbrt-ieee-tests: New file.
2412         * tests/test-cbrt-ieee.c: New file.
2413
2414         New module 'cbrt-ieee'.
2415         * modules/cbrt-ieee: New file.
2416
2417         Tests for module 'cbrtf-ieee'.
2418         * modules/cbrtf-ieee-tests: New file.
2419         * tests/test-cbrtf-ieee.c: New file.
2420         * tests/test-cbrt-ieee.h: New file.
2421
2422         New module 'cbrtf-ieee'.
2423         * modules/cbrtf-ieee: New file.
2424
2425 2012-02-29  Bruno Haible  <bruno@clisp.org>
2426
2427         cbrtf: Work around bug in IRIX 6.5 system function.
2428         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2429         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2430         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2431         work.
2432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2433         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2434         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2435         (Depends-on): Update conditions.
2436         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2437
2438 2012-02-29  Bruno Haible  <bruno@clisp.org>
2439
2440         Tests for module 'cbrtl'.
2441         * modules/cbrtl-tests: New file.
2442         * tests/test-cbrtl.c: New file.
2443
2444         New module 'cbrtl'.
2445         * lib/math.in.h (cbrtl): New declaration.
2446         * lib/cbrtl.c: New file.
2447         * m4/cbrtl.m4: New file.
2448         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2450         HAVE_DECL_CBRTL.
2451         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2452         HAVE_DECL_CBRTL.
2453         * modules/cbrtl: New file.
2454         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2455         * doc/posix-functions/cbrtl.texi: Mention the new module.
2456
2457 2012-02-29  Bruno Haible  <bruno@clisp.org>
2458
2459         Tests for module 'cbrtf'.
2460         * modules/cbrtf-tests: New file.
2461         * tests/test-cbrtf.c: New file.
2462
2463         New module 'cbrtf'.
2464         * lib/math.in.h (cbrtf): New declaration.
2465         * lib/cbrtf.c: New file.
2466         * m4/cbrtf.m4: New file.
2467         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2469         HAVE_DECL_CBRTF.
2470         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2471         HAVE_DECL_CBRTF.
2472         * modules/cbrtf: New file.
2473         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2474         * doc/posix-functions/cbrtf.texi: Mention the new module.
2475
2476 2012-02-29  Bruno Haible  <bruno@clisp.org>
2477
2478         cbrt: Provide replacement on MSVC and Minix.
2479         * lib/math.in.h (cbrt): New declaration.
2480         * lib/cbrt.c: New file.
2481         * m4/cbrt.m4: New file.
2482         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2484         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2485         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2486         (Depends-on): Add dependencies.
2487         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2488         * tests/test-math-c++.cc: Check the declaration of cbrt.
2489         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2490         replacement.
2491
2492 2012-02-29  Bruno Haible  <bruno@clisp.org>
2493
2494         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2495         * m4/hypotl-ieee.m4: New file.
2496         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2497         test whether hypotl works with mixed NaN and Infinity arguments.
2498         Replace it if not.
2499         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2501         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2502         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2503         (Depends-on): Update conditions.
2504         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2505         (Depends-on): Add hypot-ieee.
2506         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2507         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2508
2509         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2510         * m4/hypotf-ieee.m4: New file.
2511         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2512         test whether hypotf works with mixed NaN and Infinity arguments.
2513         Replace it if not.
2514         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2515         (Depends-on): Add hypot-ieee.
2516         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2517         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2518
2519         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2520         * lib/math.in.h (hypot): New declaration.
2521         * lib/hypot.c: New file.
2522         * m4/hypot-ieee.m4: New file.
2523         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2524         whether hypot works with mixed NaN and Infinity arguments. Replace it
2525         if not.
2526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2527         REPLACE_HYPOT.
2528         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2529         * modules/hypot (Files): Add lib/hypot.c.
2530         (Depends-on): Add dependencies.
2531         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2532         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2533         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2534         * tests/test-math-c++.cc: Check the declaration of hypot.
2535         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2536
2537         Tests for module 'hypotl-ieee'.
2538         * modules/hypotl-ieee-tests: New file.
2539         * tests/test-hypotl-ieee.c: New file.
2540
2541         New module 'hypotl-ieee'.
2542         * modules/hypotl-ieee: New file.
2543
2544         Tests for module 'hypot-ieee'.
2545         * modules/hypot-ieee-tests: New file.
2546         * tests/test-hypot-ieee.c: New file.
2547
2548         New module 'hypot-ieee'.
2549         * modules/hypot-ieee: New file.
2550
2551         Tests for module 'hypotf-ieee'.
2552         * modules/hypotf-ieee-tests: New file.
2553         * tests/test-hypotf-ieee.c: New file.
2554         * tests/test-hypot-ieee.h: New file.
2555
2556         New module 'hypotf-ieee'.
2557         * modules/hypotf-ieee: New file.
2558
2559 2012-02-29  Bruno Haible  <bruno@clisp.org>
2560
2561         Remove unused variables.
2562         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2563         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2564         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2565         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2566
2567 2012-02-29  Eric Blake  <eblake@redhat.com>
2568
2569         termios: fix pid_t always, not just for tcgetsid
2570         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2571         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2572         just when building tcgetsid.
2573
2574 2012-02-29  Bruno Haible  <bruno@clisp.org>
2575
2576         Tests for module 'hypotl'.
2577         * modules/hypotl-tests: New file.
2578         * tests/test-hypotl.c: New file.
2579
2580         New module 'hypotl'.
2581         * lib/math.in.h (hypotl): New declaration.
2582         * lib/hypotl.c: New file.
2583         * m4/hypotl.m4: New file.
2584         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2586         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2587         * modules/hypotl: New file.
2588         * tests/test-math-c++.cc: Check the hypotl declaration.
2589         * doc/posix-functions/hypotl.texi: Mention the new module.
2590
2591 2012-02-29  Eric Blake  <eblake@redhat.com>
2592
2593         tcgetsid: fix cygwin header bug
2594         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2595
2596         docs: update cygwin progress
2597         * doc/posix-functions/llround.texi (llround): Added in cygwin
2598         1.7.8.
2599         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2600         * doc/glibc-functions/program_invocation_name.texi
2601         (program_invocation_name): Likewise.
2602         * doc/glibc-functions/program_invocation_short_name.texi
2603         (program_invocation_short_name): Likewise.
2604         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2605         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2606         Likewise.
2607         * doc/posix-functions/pthread_spin_destroy.texi
2608         (pthread_spin_destroy): Added in cygwin 1.7.10.
2609         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2610         Likewise.
2611         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2612         Likewise.
2613         * doc/posix-functions/pthread_spin_trylock.texi
2614         (pthread_spin_trylock): Likewise.
2615         * doc/posix-functions/pthread_spin_unlock.texi
2616         (pthread_spin_unlock): Likewise.
2617         * doc/posix-functions/pthread_setschedprio.texi
2618         (pthread_setschedprio): Likewise.
2619         * doc/posix-functions/pthread_attr_getstack.texi
2620         (pthread_attr_getstack): Likewise.
2621         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2622         (pthread_attr_getstackaddr): Likewise.
2623         * doc/glibc-functions/pthread_getattr_np.texi
2624         (pthread_getattr_np): Likewise.
2625         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2626         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2627         * doc/posix-functions/clock_settime.texi (clock_settime):
2628         Likewise.
2629         * doc/posix-functions/pthread_attr_getguardsize.texi
2630         (pthread_attr_getguardsize): Likewise.
2631         * doc/posix-functions/pthread_attr_setguardsize.texi
2632         (pthread_attr_setguardsize): Likewise.
2633         * doc/posix-functions/pthread_attr_setstack.texi
2634         (pthread_attr_setstack): Likewise.
2635         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2636         (pthread_attr_setstackaddr): Likewise.
2637         * doc/posix-functions/clock_getcpuclockid.texi
2638         (clock_getcpuclockid): Likewise.
2639         * doc/posix-functions/pthread_getcpuclockid.texi
2640         (pthread_getcpuclockid): Likewise.
2641         * doc/glibc-functions/error.texi (error): Likewise.
2642         * doc/glibc-functions/error_at_line.texi (error_at_line):
2643         Likewise.
2644         * doc/glibc-functions/error_message_count.texi
2645         (error_message_count): Likewise.
2646         * doc/glibc-functions/error_one_per_line.texi
2647         (error_one_per_line): Likewise.
2648         * doc/glibc-functions/error_print_progname.texi
2649         (error_print_progname): Likewise.
2650         * doc/posix-functions/pthread_condattr_getclock.texi
2651         (pthread_condattr_getclock): Likewise.
2652         * doc/posix-functions/pthread_condattr_setclock.texi
2653         (pthread_condattr_setclock): Likewise.
2654         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2655         Likewise.
2656         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2657         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2658         * doc/glibc-functions/get_current_dir_name.texi
2659         (get_current_dir_name): Likewise.
2660         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2661         Likewise.
2662         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2663         wrong return type.
2664         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2665         1.7.11.
2666
2667 2012-02-29  Bruno Haible  <bruno@clisp.org>
2668
2669         Tests for module 'hypotf'.
2670         * modules/hypotf-tests: New file.
2671         * tests/test-hypotf.c: New file.
2672
2673         New module 'hypotf'.
2674         * lib/math.in.h (hypotf): New declaration.
2675         * lib/hypotf.c: New file.
2676         * m4/hypotf.m4: New file.
2677         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2679         REPLACE_HYPOTF.
2680         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2681         REPLACE_HYPOTF.
2682         * modules/hypotf: New file.
2683         * tests/test-math-c++.cc: Check the hypotf declaration.
2684         * doc/posix-functions/hypotf.texi: Mention the new module.
2685
2686         hypot: Prepare for hypotf module.
2687         * m4/hypot.m4: New file.
2688         * modules/hypot (Files): Add m4/hypot.m4.
2689         (configure.ac): Invoke gl_FUNC_HYPOT.
2690
2691 2012-02-29  Bruno Haible  <bruno@clisp.org>
2692
2693         hypot tests: More tests.
2694         * tests/test-hypot.c: Include <float.h>.
2695         (main): Add tests about overflow and underflow.
2696
2697 2012-02-29  Bruno Haible  <bruno@clisp.org>
2698
2699         math code: Add comments.
2700         * lib/acosl.c: Add comment about related glibc source files.
2701         * lib/asinl.c: Likewise.
2702         * lib/atanl.c: Likewise.
2703         * lib/expl.c: Likewise.
2704         * lib/logl.c: Likewise.
2705         * lib/sincosl.c: Likewise.
2706         * lib/sinl.c: Likewise.
2707         * lib/tanl.c: Likewise.
2708         * lib/trigl.c: Likewise.
2709         * lib/cosl.c: Likewise. Fix comments.
2710
2711 2012-02-28  Bruno Haible  <bruno@clisp.org>
2712
2713         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2714         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2715         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2716         HUGE_VALL are defined.
2717         (numeric_equald): Renamed from numeric_equal.
2718         (numeric_equalf, numeric_equall): New functions.
2719         (main): Check also HUGE_VALF, HUGE_VALL.
2720         * modules/math-tests (Files): Add tests/macros.h.
2721         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2722         HUGE_VALL.
2723
2724 2012-02-28  Bruno Haible  <bruno@clisp.org>
2725
2726         doc: Move ISO C11 feature notes into POSIX chapters.
2727         * doc/posix-functions/aligned_alloc.texi: Renamed from
2728         doc/glibc-functions/aligned_alloc.texi.
2729         * doc/posix-functions/quick_exit.texi: Renamed from
2730         doc/glibc-functions/quick_exit.texi.
2731         * doc/posix-headers/uchar.texi: Renamed from
2732         doc/glibc-headers/uchar.texi.
2733         * doc/posix-functions/c16rtomb.texi: Renamed from
2734         doc/glibc-functions/c16rtomb.texi.
2735         * doc/posix-functions/c32rtomb.texi: Renamed from
2736         doc/glibc-functions/c32rtomb.texi.
2737         * doc/posix-functions/mbrtoc16.texi: Renamed from
2738         doc/glibc-functions/mbrtoc16.texi.
2739         * doc/posix-functions/mbrtoc32.texi: Renamed from
2740         doc/glibc-functions/mbrtoc32.texi.
2741         * doc/gnulib.texi: Update.
2742         (Glibc uchar.h): Remove section.
2743         Suggested by Eric Blake.
2744
2745 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2746
2747         stdnoreturn: port to MSVC better
2748         MSVC standard headers use __declspec(noreturn), so #define noreturn
2749         to empty on that platform.  Reported by Bruno Haible in
2750         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2751         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2752         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2753
2754 2012-02-28  Bruno Haible  <bruno@clisp.org>
2755
2756         doc: Mention new glibc headers and functions.
2757         * doc/glibc-headers/uchar.texi: New file.
2758         * doc/glibc-functions/aligned_alloc.texi: New file.
2759         * doc/glibc-functions/c16rtomb.texi: New file.
2760         * doc/glibc-functions/c32rtomb.texi: New file.
2761         * doc/glibc-functions/clock_adjtime.texi: New file.
2762         * doc/glibc-functions/fanotify_init.texi: New file.
2763         * doc/glibc-functions/fanotify_mark.texi: New file.
2764         * doc/glibc-functions/inet6_opt_append.texi: New file.
2765         * doc/glibc-functions/inet6_opt_find.texi: New file.
2766         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2767         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2768         * doc/glibc-functions/inet6_opt_init.texi: New file.
2769         * doc/glibc-functions/inet6_opt_next.texi: New file.
2770         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2771         * doc/glibc-functions/inet6_rth_add.texi: New file.
2772         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2773         * doc/glibc-functions/inet6_rth_init.texi: New file.
2774         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2775         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2776         * doc/glibc-functions/inet6_rth_space.texi: New file.
2777         * doc/glibc-functions/login.texi: New file.
2778         * doc/glibc-functions/mbrtoc16.texi: New file.
2779         * doc/glibc-functions/mbrtoc32.texi: New file.
2780         * doc/glibc-functions/name_to_handle_at.texi: New file.
2781         * doc/glibc-functions/ntp_gettimex.texi: New file.
2782         * doc/glibc-functions/open_by_handle_at.texi: New file.
2783         * doc/glibc-functions/prlimit.texi: New file.
2784         * doc/glibc-functions/process_vm_readv.texi: New file.
2785         * doc/glibc-functions/process_vm_writev.texi: New file.
2786         * doc/glibc-functions/recvmmsg.texi: New file.
2787         * doc/glibc-functions/scandirat.texi: New file.
2788         * doc/glibc-functions/sendmmsg.texi: New file.
2789         * doc/glibc-functions/setns.texi: New file.
2790         * doc/glibc-functions/timespec_get.texi: New file.
2791         * doc/gnulib.texi: Include them.
2792         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2793         sections.
2794         Reported by Eric Blake.
2795
2796 2012-02-28  Bruno Haible  <bruno@clisp.org>
2797
2798         Avoid compilation errors with MSVC option -fp:strict.
2799         * lib/floor.c: Use MSVC specific pragma fenv_access.
2800         * lib/ceil.c: Likewise.
2801         * lib/trunc.c: Likewise.
2802         * lib/round.c: Likewise.
2803         * lib/rint.c: Likewise.
2804         * lib/fma.c: Likewise.
2805         * lib/integer_length.c: Likewise.
2806         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2807         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2808         * tests/test-floor2.c: Likewise.
2809         * tests/test-floorf2.c: Likewise.
2810         * tests/test-ceil2.c: Likewise.
2811         * tests/test-ceilf2.c: Likewise.
2812         * tests/test-trunc2.c: Likewise.
2813         * tests/test-truncf2.c: Likewise.
2814         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2815
2816 2012-02-27  Bruno Haible  <bruno@clisp.org>
2817
2818         Tests for module 'sqrtl-ieee'.
2819         * modules/sqrtl-ieee-tests: New file.
2820         * tests/test-sqrtl-ieee.c: New file.
2821
2822         New module 'sqrtl-ieee'.
2823         * modules/sqrtl-ieee: New file.
2824
2825         Tests for module 'sqrt-ieee'.
2826         * modules/sqrt-ieee-tests: New file.
2827         * tests/test-sqrt-ieee.c: New file.
2828
2829         New module 'sqrt-ieee'.
2830         * modules/sqrt-ieee: New file.
2831
2832         Tests for module 'sqrtf-ieee'.
2833         * modules/sqrtf-ieee-tests: New file.
2834         * tests/test-sqrtf-ieee.c: New file.
2835         * tests/test-sqrt-ieee.h: New file.
2836
2837         New module 'sqrtf-ieee'.
2838         * modules/sqrtf-ieee: New file.
2839
2840 2012-02-27  Bruno Haible  <bruno@clisp.org>
2841
2842         remainderl-ieee: Work around test failure on OSF/1.
2843         * m4/remainderl-ieee.m4: New file.
2844         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2845         present, test whether remainderl works with a zero second argument.
2846         Replace it if not.
2847         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2849         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2850         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2851         (Depends-on): Update conditions.
2852         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2853         (Depends-on): Add remainder-ieee.
2854         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2855         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2856         module.
2857
2858         remainderf-ieee: Work around test failure on OSF/1.
2859         * m4/remainderf-ieee.m4: New file.
2860         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2861         present, test whether remainderf works with a zero second argument.
2862         Replace it if not.
2863         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2865         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2866         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2867         (Depends-on): Update conditions.
2868         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2869         (Depends-on): Add remainder-ieee.
2870         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2871         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2872         module.
2873
2874         remainder-ieee: Work around test failure on OSF/1.
2875         * m4/remainder-ieee.m4: New file.
2876         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2877         present, test whether remainder works with a zero second argument.
2878         Replace it if not.
2879         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2881         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2882         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2883         (Depends-on): Update dependencies.
2884         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2885         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2886         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2887
2888         Tests for module 'remainderl-ieee'.
2889         * modules/remainderl-ieee-tests: New file.
2890         * tests/test-remainderl-ieee.c: New file.
2891
2892         New module 'remainderl-ieee'.
2893         * modules/remainderl-ieee: New file.
2894
2895         Tests for module 'remainder-ieee'.
2896         * modules/remainder-ieee-tests: New file.
2897         * tests/test-remainder-ieee.c: New file.
2898
2899         New module 'remainder-ieee'.
2900         * modules/remainder-ieee: New file.
2901
2902         Tests for module 'remainderf-ieee'.
2903         * modules/remainderf-ieee-tests: New file.
2904         * tests/test-remainderf-ieee.c: New file.
2905         * tests/test-remainder-ieee.h: New file.
2906
2907         New module 'remainderf-ieee'.
2908         * modules/remainderf-ieee: New file.
2909
2910 2012-02-27  Bruno Haible  <bruno@clisp.org>
2911
2912         modff, modfl: Fix configure syntax error.
2913         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2914         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2915
2916 2012-02-27  Bruno Haible  <bruno@clisp.org>
2917
2918         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2919         * m4/fmodl-ieee.m4: New file.
2920         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2921         whether fmodl works with zero arguments. Replace it if not.
2922         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2923         (Depends-on): Add fmod-ieee.
2924         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2925         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2926
2927         fmodf-ieee: Work around test failure on OSF/1.
2928         * m4/fmodf-ieee.m4: New file.
2929         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2930         whether fmodf works with zero arguments. Replace it if not.
2931         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2933         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2934         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2935         (Depends-on): Update dependencies.
2936         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2937         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2938         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2939
2940         fmodf-ieee: Work around test failure on MSVC 9.
2941         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2942         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2943
2944         fmod-ieee: Work around test failures on OSF/1, mingw.
2945         * m4/fmod-ieee.m4: New file.
2946         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2947         whether fmod works with zero arguments. Replace it if not.
2948         * lib/math.in.h (fmod): New declaration.
2949         * lib/fmod.c: New file.
2950         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2952         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2953         * modules/fmod (Files): Add lib/fmod.c.
2954         (Depends-on): Add math, isinf, trunc, fma.
2955         (configure.ac): Arrange to compile lib/fmod.c if needed.
2956         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2957         m4/signbit.m4.
2958         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2959         * tests/test-math-c++.cc: Check the declaration of fmod.
2960         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2961
2962         fmodl-ieee: Fix test failures.
2963         * lib/fmodl.c (fmodl): Treat Inf specially.
2964         * modules/fmodl (Depends-on): Add isinf.
2965
2966         Tests for module 'fmodl-ieee'.
2967         * modules/fmodl-ieee-tests: New file.
2968         * tests/test-fmodl-ieee.c: New file.
2969
2970         New module 'fmodl-ieee'.
2971         * modules/fmodl-ieee: New file.
2972
2973         Tests for module 'fmod-ieee'.
2974         * modules/fmod-ieee-tests: New file.
2975         * tests/test-fmod-ieee.c: New file.
2976
2977         New module 'fmod-ieee'.
2978         * modules/fmod-ieee: New file.
2979
2980         Tests for module 'fmodf-ieee'.
2981         * modules/fmodf-ieee-tests: New file.
2982         * tests/test-fmodf-ieee.c: New file.
2983         * tests/test-fmod-ieee.h: New file.
2984
2985         New module 'fmodf-ieee'.
2986         * modules/fmodf-ieee: New file.
2987
2988 2012-02-27  Bruno Haible  <bruno@clisp.org>
2989
2990         Tests for module 'rintl-ieee'.
2991         * modules/rintl-ieee-tests: New file.
2992         * tests/test-rintl-ieee.c: New file.
2993
2994         New module 'rintl-ieee'.
2995         * modules/rintl-ieee: New file.
2996
2997         Tests for module 'rint-ieee'.
2998         * modules/rint-ieee-tests: New file.
2999         * tests/test-rint-ieee.c: New file.
3000
3001         New module 'rint-ieee'.
3002         * modules/rint-ieee: New file.
3003
3004         Tests for module 'rintf-ieee'.
3005         * modules/rintf-ieee-tests: New file.
3006         * tests/test-rintf-ieee.c: New file.
3007         * tests/test-rint-ieee.h: New file.
3008
3009         New module 'rintf-ieee'.
3010         * modules/rintf-ieee: New file.
3011
3012 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3013
3014         regex: re_search etc. should return -2 when memory exhausted
3015         This bug was uncovered when testing 'grep'.  Without the fix,
3016         re_search and friends return -1 when memory is exhausted, but -1
3017         means no match, and this causes grep to falsely report no-match
3018         instead of memory-exhaustion.  See
3019         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3020         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3021         trouble; this can occur if re_search_internal ran out of memory.
3022
3023 2012-02-26  Bruno Haible  <bruno@clisp.org>
3024
3025         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3026         * m4/modfl-ieee.m4: New file.
3027         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3028         whether modfl works with Inf. Replace it if not.
3029         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3031         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3032         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3033         (Depends-on): Update dependencies.
3034         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3035         m4/signbit.m4.
3036         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3037         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3038
3039         modfl-ieee: Fix dependencies.
3040         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3041
3042         modfl-ieee: Fix test failures.
3043         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3044         * modules/modfl (Depends-on): Add isfinite, isinf.
3045
3046         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3047         * m4/modff-ieee.m4: New file.
3048         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3049         whether modff works with NaN and Inf. Replace it if not.
3050         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3052         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3053         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3054         (Depends-on): Update dependencies.
3055         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3056         m4/signbit.m4.
3057         (Depends-on): Add modf-ieee.
3058         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3059         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3060
3061         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3062         * m4/modf-ieee.m4: New file.
3063         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3064         whether modf works with NaN and Inf. Replace it if not.
3065         * lib/math.in.h (modf): New declaration.
3066         * lib/modf.c: New file.
3067         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3069         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3070         * modules/modf (Files): Add lib/modf.c.
3071         (Depends-on): Add math, isfinite, trunc, isinf.
3072         (configure.ac): Addrange to compile lib/modf.c if needed.
3073         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3074         m4/signbit.m4.
3075         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3076         * tests/test-math-c++.cc: Check the declaration of modf.
3077         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3078
3079         Tests for module 'modfl-ieee'.
3080         * modules/modfl-ieee-tests: New file.
3081         * tests/test-modfl-ieee.c: New file.
3082
3083         New module 'modfl-ieee'.
3084         * modules/modfl-ieee: New file.
3085
3086         Tests for module 'modf-ieee'.
3087         * modules/modf-ieee-tests: New file.
3088         * tests/test-modf-ieee.c: New file.
3089
3090         New module 'modf-ieee'.
3091         * modules/modf-ieee: New file.
3092
3093         Tests for module 'modff-ieee'.
3094         * modules/modff-ieee-tests: New file.
3095         * tests/test-modff-ieee.c: New file.
3096         * tests/test-modf-ieee.h: New file.
3097
3098         New module 'modff-ieee'.
3099         * modules/modff-ieee: New file.
3100
3101 2012-02-26  Bruno Haible  <bruno@clisp.org>
3102
3103         Tests for module 'fabsl-ieee'.
3104         * modules/fabsl-ieee-tests: New file.
3105         * tests/test-fabsl-ieee.c: New file.
3106
3107         New module 'fabsl-ieee'.
3108         * modules/fabsl-ieee: New file.
3109
3110         Tests for module 'fabs-ieee'.
3111         * modules/fabs-ieee-tests: New file.
3112         * tests/test-fabs-ieee.c: New file.
3113
3114         New module 'fabs-ieee'.
3115         * modules/fabs-ieee: New file.
3116
3117         Tests for module 'fabsf-ieee'.
3118         * modules/fabsf-ieee-tests: New file.
3119         * tests/test-fabsf-ieee.c: New file.
3120         * tests/test-fabs-ieee.h: New file.
3121
3122         New module 'fabsf-ieee'.
3123         * modules/fabsf-ieee: New file.
3124
3125 2012-02-26  Bruno Haible  <bruno@clisp.org>
3126
3127         Tests for module 'fmal-ieee'.
3128         * modules/fmal-ieee-tests: New file.
3129         * tests/test-fmal-ieee.c: New file.
3130
3131         New module 'fmal-ieee'.
3132         * modules/fmal-ieee: New file.
3133
3134         Tests for module 'fma-ieee'.
3135         * modules/fma-ieee-tests: New file.
3136         * tests/test-fma-ieee.c: New file.
3137
3138         New module 'fma-ieee'.
3139         * modules/fma-ieee: New file.
3140
3141         Tests for module 'fmaf-ieee'.
3142         * modules/fmaf-ieee-tests: New file.
3143         * tests/test-fmaf-ieee.c: New file.
3144         * tests/test-fma-ieee.h: New file.
3145
3146         New module 'fmaf-ieee'.
3147         * modules/fmaf-ieee: New file.
3148
3149 2012-02-26  Bruno Haible  <bruno@clisp.org>
3150
3151         Tests for module 'ldexpl-ieee'.
3152         * modules/ldexpl-ieee-tests: New file.
3153         * tests/test-ldexpl-ieee.c: New file.
3154
3155         New module 'ldexpl-ieee'.
3156         * modules/ldexpl-ieee: New file.
3157
3158         Tests for module 'ldexp-ieee'.
3159         * modules/ldexp-ieee-tests: New file.
3160         * tests/test-ldexp-ieee.c: New file.
3161
3162         New module 'ldexp-ieee'.
3163         * modules/ldexp-ieee: New file.
3164
3165         Tests for module 'ldexpf-ieee'.
3166         * modules/ldexpf-ieee-tests: New file.
3167         * tests/test-ldexpf-ieee.c: New file.
3168         * tests/test-ldexp-ieee.h: New file.
3169
3170         New module 'ldexpf-ieee'.
3171         * modules/ldexpf-ieee: New file.
3172
3173 2012-02-26  Bruno Haible  <bruno@clisp.org>
3174
3175         Refactor frexp*-ieee tests.
3176         * tests/test-frexp-ieee.h: New file.
3177         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3178         (main): Just call test_function.
3179         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3180         (main): Just call test_function.
3181         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3182         (main): Just call test_function.
3183         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3184         * modules/frexp-ieee-tests (Files): Likewise.
3185         * modules/frexpl-ieee-tests (Files): Likewise.
3186
3187         Tests for module 'frexpl-ieee'.
3188         * modules/frexpl-ieee-tests: New file.
3189         * tests/test-frexpl-ieee.c: New file.
3190
3191         New module 'frexpl-ieee'.
3192         * modules/frexpl-ieee: New file.
3193
3194         Tests for module 'frexp-ieee'.
3195         * modules/frexp-ieee-tests: New file.
3196         * tests/test-frexp-ieee.c: New file.
3197
3198         New module 'frexp-ieee'.
3199         * modules/frexp-ieee: New file.
3200
3201         Tests for module 'frexpf-ieee'.
3202         * modules/frexpf-ieee-tests: New file.
3203         * tests/test-frexpf-ieee.c: New file.
3204
3205         New module 'frexpf-ieee'.
3206         * modules/frexpf-ieee: New file.
3207
3208 2012-02-26  Bruno Haible  <bruno@clisp.org>
3209
3210         roundl-ieee tests: More tests.
3211         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3212         (main): Add tests for [MX] shaded specification in POSIX.
3213         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3214         (Depends-on): Add isnanl-nolibm.
3215
3216         round-ieee tests: More tests.
3217         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3218         (main): Add tests for [MX] shaded specification in POSIX.
3219         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3220         (Depends-on): Add isnand-nolibm.
3221
3222         roundf-ieee tests: More tests.
3223         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3224         (main): Add tests for [MX] shaded specification in POSIX.
3225         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3226         (Depends-on): Add isnanf-nolibm.
3227
3228         truncl-ieee tests: More tests.
3229         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3230         (main): Add tests for [MX] shaded specification in POSIX.
3231         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3232         (Depends-on): Add isnanl-nolibm.
3233
3234         trunc-ieee tests: More tests.
3235         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3236         (main): Add tests for [MX] shaded specification in POSIX.
3237         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3238         (Depends-on): Add isnand-nolibm.
3239
3240         truncf-ieee tests: More tests.
3241         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3242         (main): Add tests for [MX] shaded specification in POSIX.
3243         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3244         (Depends-on): Add isnanf-nolibm.
3245
3246         ceill-ieee tests: More tests.
3247         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3248         (main): Add tests for [MX] shaded specification in POSIX.
3249         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3250         (Depends-on): Add isnanl-nolibm.
3251
3252         ceil-ieee tests: More tests.
3253         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3254         (main): Add tests for [MX] shaded specification in POSIX.
3255         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3256         (Depends-on): Add isnand-nolibm.
3257
3258         ceilf-ieee tests: More tests.
3259         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3260         (main): Add tests for [MX] shaded specification in POSIX.
3261         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3262         (Depends-on): Add isnanf-nolibm.
3263
3264         floorl-ieee tests: More tests.
3265         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3266         (main): Add tests for [MX] shaded specification in POSIX.
3267         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3268         (Depends-on): Add isnanl-nolibm.
3269
3270         floor-ieee tests: More tests.
3271         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3272         (main): Add tests for [MX] shaded specification in POSIX.
3273         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3274         (Depends-on): Add isnand-nolibm.
3275
3276         floorf-ieee tests: More tests.
3277         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3278         (main): Add tests for [MX] shaded specification in POSIX.
3279         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3280         (Depends-on): Add isnanf-nolibm.
3281
3282 2012-02-26  Bruno Haible  <bruno@clisp.org>
3283
3284         fpieee: More comments.
3285         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3286
3287 2012-02-25  Bruno Haible  <bruno@clisp.org>
3288
3289         Tests for module 'log10l'.
3290         * modules/log10l-tests: New file.
3291         * tests/test-log10l.c: New file.
3292         * tests/test-math-c++.cc: Check the declaration of log10l.
3293
3294         New module 'log10l'.
3295         * lib/math.in.h (log10l): New declaration.
3296         * lib/log10l.c: New file.
3297         * m4/log10l.m4: New file.
3298         * modules/log10l: New file.
3299         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3301         HAVE_DECL_LOG10L.
3302         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3303         HAVE_DECL_LOG10L.
3304         * doc/posix-functions/log10l.texi: Mention the new module.
3305
3306 2012-02-25  Bruno Haible  <bruno@clisp.org>
3307
3308         fmodl, remainder*: Avoid wrong results due to rounding errors.
3309         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3310         expected bounds.
3311         * lib/remainderf.c (remainderf): Likewise.
3312         * lib/remainder.c (remainder): Likewise.
3313         * lib/remainderl.c (remainderl): Likewise.
3314
3315 2012-02-25  Bruno Haible  <bruno@clisp.org>
3316
3317         Tests for module 'remainderl'.
3318         * modules/remainderl-tests: New file.
3319         * tests/test-remainderl.c: New file.
3320         * tests/test-math-c++.cc: Check the declaration of remainderl.
3321
3322         New module 'remainderl'.
3323         * lib/math.in.h (remainderl): New declaration.
3324         * lib/remainderl.c: New file.
3325         * m4/remainderl.m4: New file.
3326         * modules/remainderl: New file.
3327         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3329         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3330         HAVE_REMAINDERL.
3331         * doc/posix-functions/remainderl.texi: Mention the new module.
3332
3333 2012-02-25  Bruno Haible  <bruno@clisp.org>
3334
3335         Tests for module 'remainderf'.
3336         * modules/remainderf-tests: New file.
3337         * tests/test-remainderf.c: New file.
3338         * tests/test-math-c++.cc: Check the declaration of remainderf.
3339
3340         New module 'remainderf'.
3341         * lib/math.in.h (remainderf): New declaration.
3342         * lib/remainderf.c: New file.
3343         * m4/remainderf.m4: New file.
3344         * modules/remainderf: New file.
3345         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3347         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3348         HAVE_REMAINDERF.
3349         * doc/posix-functions/remainderf.texi: Mention the new module.
3350
3351 2012-02-25  Bruno Haible  <bruno@clisp.org>
3352
3353         remainder: Support for MSVC.
3354         * lib/math.in.h (remainder): New declaration.
3355         * lib/remainder.c: New file.
3356         * m4/remainder.m4: New file.
3357         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3358         (Depends-on): Add math, round, fma.
3359         (configure.ac): Use results of gl_FUNC_REMAINDER.
3360         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3362         HAVE_DECL_REMAINDER.
3363         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3364         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3365         * tests/test-math-c++.cc: Check the declaration of remainder.
3366         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3367         problems are fixed.
3368
3369 2012-02-25  Bruno Haible  <bruno@clisp.org>
3370
3371         Tests for module 'fmodl'.
3372         * modules/fmodl-tests: New file.
3373         * tests/test-fmodl.c: New file.
3374         * tests/test-math-c++.cc: Check the declaration of fmodl.
3375
3376         New module 'fmodl'.
3377         * lib/math.in.h (fmodl): New declaration.
3378         * lib/fmodl.c: New file.
3379         * m4/fmodl.m4: New file.
3380         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3382         REPLACE_FMODL.
3383         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3384         REPLACE_FMODL.
3385         * modules/fmodl: New file.
3386         * doc/posix-functions/fmodl.texi: Mention the new module.
3387
3388 2012-02-25  Bruno Haible  <bruno@clisp.org>
3389
3390         Tests for module 'modfl'.
3391         * modules/modfl-tests: New file.
3392         * tests/test-modfl.c: New file.
3393         * tests/test-math-c++.cc: Check the declaration of modfl.
3394
3395         New module 'modfl'.
3396         * lib/math.in.h (modfl): New declaration.
3397         * lib/modfl.c: New file.
3398         * m4/modfl.m4: New file.
3399         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3401         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3402         * modules/modfl: New file.
3403         * doc/posix-functions/modfl.texi: Mention the new module.
3404
3405 2012-02-25  Bruno Haible  <bruno@clisp.org>
3406
3407         Tests for module 'fabsl'.
3408         * modules/fabsl-tests: New file.
3409         * tests/test-fabsl.c: New file.
3410         * tests/test-math-c++.cc: Check the declaration of fabsl.
3411
3412         New module 'fabsl'.
3413         * lib/math.in.h (fabsl): New declaration.
3414         * lib/fabsl.c: New file.
3415         * m4/fabsl.m4: New file.
3416         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3418         REPLACE_FABSL.
3419         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3420         REPLACE_FABSL.
3421         * modules/fabsl: New file.
3422         * doc/posix-functions/fabsl.texi: Mention the new module.
3423
3424 2012-02-25  Bruno Haible  <bruno@clisp.org>
3425
3426         fabs tests: More tests.
3427         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3428         (zero): New variable.
3429         (main): Add tests for signed zero.
3430         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3431
3432         fabsf tests: More tests.
3433         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3434         (zero): New variable.
3435         (main): Add tests for signed zero.
3436         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3437
3438 2012-02-24  Bruno Haible  <bruno@clisp.org>
3439
3440         atanl: Provide function definition on MSVC.
3441         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3442         function pointer.
3443         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3444
3445 2012-02-24  Bruno Haible  <bruno@clisp.org>
3446
3447         acosl: Provide function definition on MSVC.
3448         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3449         function pointer.
3450         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3451
3452 2012-02-24  Bruno Haible  <bruno@clisp.org>
3453
3454         asinl: Provide function definition on MSVC.
3455         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3456         function pointer.
3457         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3458
3459 2012-02-24  Bruno Haible  <bruno@clisp.org>
3460
3461         tanl: Provide function definition on MSVC.
3462         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3463         function pointer.
3464         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3465
3466 2012-02-24  Bruno Haible  <bruno@clisp.org>
3467
3468         cosl: Provide function definition on MSVC.
3469         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3470         function pointer.
3471         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3472
3473 2012-02-24  Bruno Haible  <bruno@clisp.org>
3474
3475         sinl: Provide function definition on MSVC.
3476         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3477         function pointer.
3478         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3479
3480 2012-02-24  Bruno Haible  <bruno@clisp.org>
3481
3482         logl: Provide function definition on MSVC.
3483         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3484         function pointer.
3485         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3486
3487 2012-02-24  Bruno Haible  <bruno@clisp.org>
3488
3489         expl: Provide function definition on MSVC.
3490         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3491         function pointer.
3492         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3493
3494 2012-02-24  Bruno Haible  <bruno@clisp.org>
3495
3496         sqrtl: Provide function definition on MSVC.
3497         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3498         a function pointer.
3499         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3500
3501 2012-02-24  Bruno Haible  <bruno@clisp.org>
3502
3503         ceill: Provide function definition on MSVC.
3504         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3505         used as a function pointer.
3506         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3507
3508 2012-02-24  Bruno Haible  <bruno@clisp.org>
3509
3510         floorl: Provide function definition on MSVC.
3511         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3512         used as a function pointer.
3513         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3514
3515 2012-02-24  Bruno Haible  <bruno@clisp.org>
3516
3517         ceilf: Provide function definition on MSVC.
3518         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3519         used as a function pointer.
3520         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3521
3522 2012-02-24  Bruno Haible  <bruno@clisp.org>
3523
3524         floorf: Provide function definition on MSVC.
3525         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3526         used as a function pointer.
3527         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3528
3529 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3530
3531         stdnoreturn: new module
3532         This implements a replacement for C11's <stdnoreturn.h>.
3533         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3534         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3535         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3536         * tests/test-stdnoreturn.c: New files.
3537
3538 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3539
3540         regex: fix false multibyte matches in some regular expressions
3541         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3542         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3543         * lib/regex_internal.c (re_string_skip_chars):
3544         Fix miscomputation of remain_len that may cause incomplete
3545         multi-byte character and false match.
3546
3547 2012-02-24  Jim Meyering  <meyering@redhat.com>
3548
3549         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3550         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3551         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3552         Remove now-unnecessary str''cmp obfuscation.
3553         Suggested by Akim Demaille.
3554
3555 2012-02-24  Bruno Haible  <bruno@clisp.org>
3556
3557         streq: Rename macro.
3558         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3559         * NEWS: Mention the change.
3560         * lib/mbrtowc.c (mbrtowc): Update.
3561         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3562         * lib/wcwidth.c (wcwidth): Update.
3563         Suggested by Akim Demaille and Jim Meyering.
3564
3565 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3566
3567         regex: fix typo in definition of MIN
3568         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3569         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3570
3571 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3572             Bruno Haible  <bruno@clisp.org>
3573
3574         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3575         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3576         entries into a stack-allocated buffer directly.
3577         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3578
3579 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3580             Bruno Haible  <bruno@clisp.org>
3581
3582         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3583
3584          - There were several instances of this pattern:
3585
3586              for (;;) {
3587                n = acl (f, GETACLCNT, 0, NULL);
3588                [ allocate an array A of size N ]
3589                if (acl (f, GETACL, n, a) == n)
3590                  break;
3591              }
3592
3593            This loop might never terminate if some other process is constantly
3594            manipulating the file's ACL.  The loop should be rewritten to
3595            terminate.
3596
3597          - The acl (... GETACLNT ...) call is merely an optimization; its value
3598            is merely a hint as to how big to make the array.  A better
3599            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3600            and just guess a reasonably-big size, growing the size and trying
3601            again if it's not large enough.  This guarantees termination, and
3602            saves a system call.
3603
3604         * lib/acl-internal.h: Include <limits.h>.
3605         (MIN, SIZE_MAX): New macros.
3606         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3607         a stack-allocated buffer, and use malloc if it does not fit. Don't
3608         use GETACLCNT.
3609         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3610
3611 2012-02-19  Bruno Haible  <bruno@clisp.org>
3612
3613         acl: Fix endless loop on Solaris with vxfs.
3614         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3615         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3616         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3617         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3618         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3619         Reported by Bill Jones in
3620         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3621
3622 2012-02-19  Bruno Haible  <bruno@clisp.org>
3623
3624         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3625         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3626         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3627         that this function returns 0 in some more cases.
3628
3629 2012-02-19  Bruno Haible  <bruno@clisp.org>
3630
3631         acl: Update doc references.
3632         * doc/acl-resources.txt: Update links to Solaris documentation.
3633
3634 2012-02-19  Bruno Haible  <bruno@clisp.org>
3635
3636         Fix test failure in many locales on Solaris 11.
3637         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3638         'tr' arguments.
3639         * tests/test-pipe-filter-ii1.c (main): Likewise.
3640         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3641         expressions in the C locale.
3642         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3643         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3644
3645 2012-02-19  Bruno Haible  <bruno@clisp.org>
3646
3647         gnulib-tool: Improve usage message.
3648         * gnulib-tool (func_usage): Move doc of --help and --version to the
3649         section "Operation modes".
3650
3651 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3652
3653         README-release: make it easier to execute commands
3654         * top/README-release: break commands out on to separate lines.
3655
3656 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3657
3658         GNUmakefile: simplify detection of unconfigured trees
3659         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3660         whether the tree make is being run from is already configured or
3661         not.  Related simplifications.
3662
3663 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3664
3665         * gnulib-tool (func_usage): Document --help and --version.
3666
3667 2012-02-11  Jim Meyering  <meyering@redhat.com>
3668
3669         bootstrap: don't exit 0 upon gnulib-tool failure
3670         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3671         its exit status, not 0.
3672
3673 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3674
3675         README-release: various improvements
3676         * top/README-release: Give a command to push changes for the
3677         release.  Add "distcheck" to list of other pre-release checks.
3678         Fix instance of "make stable" which should be "make TYPE".
3679
3680 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3681
3682         maint: replace FSF snail-mail addresses with URLs
3683         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3684         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3685         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3686         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3687         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3688         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3689         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3690         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3691         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3692         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3693         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3694         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3695         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3696         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3697         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3698         * lib/glthread/thread.c, lib/glthread/thread.h:
3699         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3700         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3701         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3702         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3703         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3704         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3705         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3706         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3707         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3708         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3709         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3710         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3711         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3712         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3713         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3714         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3715         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3716         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3717         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3718         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3719         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3720         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3721         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3722         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3723         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3724         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3725         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3726         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3727         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3728         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3729         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3730         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3731         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3732         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3733         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3734         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3735         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3736         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3737         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3738         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3739         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3740         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3741         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3742         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3743         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3744         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3745         * tests/test-poll.c, tests/test-quotearg-simple.c:
3746         * tests/test-quotearg.c, tests/test-quotearg.h:
3747         * tests/test-round-ieee.c, tests/test-round1.c:
3748         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3749         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3750         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3751         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3752         * tests/test-strerror.c, tests/test-strerror_r.c:
3753         * tests/test-strsignal.c, tests/test-strverscmp.c:
3754         * tests/test-xmemdup0.c:
3755         Replace FSF snail mail addresses with URLs, as per GNU coding
3756         standards.  See glibc bug
3757         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3758
3759 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3760
3761         README-release: capitalize a word and split a line
3762         * top/README-release: Fix punctuation and spacing.
3763
3764 2012-02-08  Akim Demaille  <demaille@gostai.com>
3765
3766         fatal-signal: use C prototypes (with explicit void).
3767         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3768         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3769
3770 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3771
3772         regex: spelling fix
3773         * lib/regexec.c: spelling fix
3774
3775         regex: rely on stdint.h for SIZE_MAX
3776         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3777
3778 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3779
3780         regex: merge glibc changes
3781
3782         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3783         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3784         (init_word_char): Work even if bitset words are not exactly 32 or
3785         64 bits wide.  Don't assume there are no padding bits.
3786         * lib/regex.c [_LIBC]: Do not include <config.h>.
3787         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3788         and -Wtype-limits.
3789         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3790         needless disagreement with glibc.  All uses changed.  Define it to
3791         1 only if _GNU_SOURCE, to match glibc.
3792         (_REG_RM_NAME): Remove; no longer needed, since the names in
3793         question are now all protected by __USE_GNU.
3794         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3795         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3796         * lib/regex_internal.h (MIN): New macro.
3797
3798         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3799         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3800
3801         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3802         * lib/regex_internal.c (re_string_fetch_byte_case):
3803         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3804         is miscompiled, and it turns out it is because of an incorrect
3805         attribute on re_string_fetch_byte_case.  Unlike
3806         re_string_peek_byte_case, this one is really not pure, it modifies
3807         memory (increments pstr->cur_idx), and with the pure attribute GCC
3808         assumed it doesn't and it cached the presumed value of
3809         regexp->cur_idx in a variable across the
3810          for (;; ++i)
3811            {
3812              if (i >= BRACKET_NAME_BUF_SIZE)
3813                return REG_EBRACK;
3814              if (token->type == OP_OPEN_CHAR_CLASS)
3815                ch = re_string_fetch_byte_case (regexp);
3816              else
3817                ch = re_string_fetch_byte (regexp);
3818              if (re_string_eoi(regexp))
3819                return REG_EBRACK;
3820              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3821                break;
3822              elem->opr.name[i] = ch;
3823            }
3824
3825         2011-11-29 Andreas Schwab <schwab@redhat.com>
3826         * lib/regcomp.c (build_equiv_class):
3827         Fix access after end of search string in regex matcher.
3828
3829         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3830         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3831
3832         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3833         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3834
3835         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3836         * lib/regcomp.c (parse_branch, parse_sub_exp):
3837         More regex memory leak fixes and tests.
3838         (parse_sub_exp, parse_bracket_exp):
3839         Fix memory leak for some invalid regular expressions.
3840
3841         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3842         * lib/regex_internal.c, lib/regexec.c:
3843         Fix unnecessary overallocation due to incomplete character.  When
3844         incomplete characters are found at the end of a string the code
3845         ran amok and allocated lots of memory.  Stricter limits are now in
3846         place.
3847
3848         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3849         * lib/regex.h: Update documentation.
3850
3851         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3852         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3853
3854         2010-05-05 Andreas Schwab <schwab@redhat.com>
3855         * lib/regexec.c (find_collation_sequence_value):
3856         Fix lookup of collation sequence value during regexp matching.
3857
3858         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3859         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3860
3861         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3862         * lib/regex.h: Cleanup namespace.
3863
3864         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3865         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3866
3867         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3868         * lib/regex_internal.h: Prevent some declarations and definitions
3869         to be seen when used in tests.
3870
3871         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3872         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3873         __libc_lock_* macros if not _LIBC.
3874         (struct re_dfa_t): Add lock.
3875
3876 2012-02-07  Eric Blake  <eblake@redhat.com>
3877
3878         maint.mk: also prohibit lower-case @var@
3879         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3880         lower case, like @top_srcdir@.
3881
3882 2012-02-04  Eric Blake  <eblake@redhat.com>
3883
3884         canonicalize: avoid uninitialized memory use
3885         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3886         random '/' left in dest.
3887         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3888
3889 2012-02-04  Bruno Haible  <bruno@clisp.org>
3890
3891         isatty: Fix test failure of ptsname_r on native Windows.
3892         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3893         and don't set errno.
3894         (isatty): Test first whether fd is valid. Set errno when returning 0.
3895
3896 2012-02-04  Bruno Haible  <bruno@clisp.org>
3897
3898         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3899         * tests/test-spawn-pipe-main.c: Include progname.h.
3900         (main): Invoke set_program_name.
3901         * modules/spawn-pipe-tests (Depends-on): Add progname.
3902
3903         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3904         * tests/test-nonblocking-socket-main.c: Include progname.h.
3905         (main): Invoke set_program_name.
3906         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3907
3908         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3909         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3910         (main): Invoke set_program_name.
3911         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3912
3913 2012-02-04  Eric Blake  <eblake@redhat.com>
3914
3915         canonicalize-lgpl: fix // handling
3916         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3917
3918         canonicalize: fix // handling
3919         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3920         /// to //, since only // is special.
3921
3922 2012-02-04  Bruno Haible  <bruno@clisp.org>
3923
3924         ioctl: Fix test failure on native Windows.
3925         * lib/ioctl.c: Include msvc-nothrow.h.
3926         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3927
3928 2012-02-04  Bruno Haible  <bruno@clisp.org>
3929
3930         fsync: Avoid test failure on native Windows.
3931         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3932         read-only.
3933
3934 2012-02-04  Bruno Haible  <bruno@clisp.org>
3935
3936         sys_select: Avoid syntax error on OpenBSD 5.0.
3937         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3938         currently being included, just include the system's <sys/select.h>.
3939
3940 2012-02-04  Bruno Haible  <bruno@clisp.org>
3941
3942         sys_select: Avoid syntax error on OpenBSD 5.0.
3943         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3944         <sys/select.h>, not before.
3945         Reported by Jiri B <jirib@devio.us>.
3946
3947 2012-02-04  Bruno Haible  <bruno@clisp.org>
3948
3949         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3950         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3951         global variables.
3952         * tests/test-get-rusage-data.c (main): Likewise.
3953         Reported by Jim Meyering.
3954
3955 2012-02-04  Bruno Haible  <bruno@clisp.org>
3956
3957         stdioext: Fix last commit.
3958         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3959
3960 2012-02-03  Bruno Haible  <bruno@clisp.org>
3961
3962         stdioext: Add tentative support for Plan9.
3963         * lib/stdio-impl.h: Include <errno.h>.
3964         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3965         * lib/freadable.c (freadable): Likewise.
3966         * lib/fwritable.c (fwritable): Likewise.
3967         * lib/fbufmode.c (fbufmode): Likewise.
3968         * lib/freading.c (freading): Likewise.
3969         * lib/fwriting.c (fwriting): Likewise.
3970         * lib/freadptr.c (freadptr): Likewise.
3971         * lib/freadseek.c (freadptrinc): Likewise.
3972         * lib/freadahead.c (freadahead): Likewise.
3973         * lib/fpurge.c (fpurge): Likewise.
3974         * lib/fseeko.c (rpl_fseeko): Likewise.
3975         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3976         Reported by Jens Staal <staal1978@gmail.com>.
3977
3978 2012-02-02  Jim Meyering  <meyering@redhat.com>
3979
3980         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3981         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3982         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3983         not even to try to add the attribute.  Instead, add a pragma to suppress
3984         the suggestion/warning.
3985
3986 2012-01-31  Karl Berry  <karl@gnu.org>
3987
3988         setstate doc: typo.
3989         * doc/posix-functions/setstate.texi (setstate): { not (.
3990
3991 2012-01-31  Bruno Haible  <bruno@clisp.org>
3992
3993         popen: Make more robust on Windows.
3994         * lib/popen.c: On native Windows, use the _popen based code even if
3995         HAVE_POPEN is set.
3996         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3997         environment variable on native Windows.
3998
3999 2012-01-30  Bruno Haible  <bruno@clisp.org>
4000
4001         pclose: Fix typo.
4002         * lib/stdio.in.h (pclose): Fix typo in warning message.
4003
4004 2012-01-30  Bruno Haible  <bruno@clisp.org>
4005
4006         doc about getlogin_r, setstate.
4007         * doc/posix-functions/getlogin_r.texi: List the incompatible
4008         declaration problem under "not fixed by gnulib".
4009         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4010         problem on Solaris 11 and other platforms.
4011
4012 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4013             Bruno Haible  <bruno@clisp.org>
4014
4015         poll tests: Make test more robust.
4016         * tests/test-poll.c: Include macros.h.
4017         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4018         return value of various I/O operations.
4019         * modules/poll-tests (Files): Add tests/macros.h.
4020
4021 2012-01-30  Bruno Haible  <bruno@clisp.org>
4022
4023         sys_stat: Fix support for mingw64 and MSVC.
4024         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4025         header files already do it.
4026         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4027         stat itself.
4028         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4029
4030 2012-01-30  Bruno Haible  <bruno@clisp.org>
4031
4032         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4034         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4035
4036 2012-01-29  Bruno Haible  <bruno@clisp.org>
4037
4038         quotearg: Fix test failure on MacOS X 10.5.
4039         * tests/test-quotearg-simple.c: Include localcharset.h.
4040         (main): If the locale encoding is not ASCII, bypass the tests of
4041         locale_quoting_style and clocale_quoting_style.
4042         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4043
4044 2012-01-29  Jim Meyering  <meyering@redhat.com>
4045
4046         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4047         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4048         detect uses of canonicalize_file_name.
4049
4050 2012-01-28  Bruno Haible  <bruno@clisp.org>
4051
4052         test-framework-sh: Fix test failure with AIX 7.1 diff.
4053         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4054         in column 1, like 'diff -c' does.
4055         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4056         whether 'diff -u' is used. Instead, test whether the output contains
4057         some '@' character.
4058
4059 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4060
4061         strtoimax: eliminate need for stdint.h, inttypes.h checks
4062         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4063         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4064         the prerequisites for a recently-introduced strtoimax test.
4065         I guess this might cause strtoimax to be replaced when not
4066         strictly necessary on older hosts, but this shouldn't introduce
4067         any bugs and it should make Emacs 'configure' faster on typical
4068         modern hosts.  Problem discovered when importing the latest gnulib
4069         to an Emacs test version.
4070         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4071
4072 2012-01-28  Bruno Haible  <bruno@clisp.org>
4073
4074         sys_time: Override 'struct timeval' on some native Windows platforms.
4075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4076         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4077         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4078         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4079         needs to be overridden.
4080         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4081         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4082         * tests/test-sys_select.c: Check that the tv_sec member has the same
4083         size as a 'time_t'.
4084         * tests/test-sys_time.c: Likewise.
4085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4086         is set, set also REPLACE_GETTIMEOFDAY.
4087         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4088         convert the resulting 'struct timeval' before returning.
4089         * lib/select.c: Include <sys/time.h>.
4090         (select, timeval): Undefine at the right place.
4091         * modules/select (Depends-on): Add sys_time.
4092         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4093         some Windows platforms.
4094         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4095
4096 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4097
4098         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4099         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4100         an integer.
4101         * lib/fcntl.c (dupfd): Likewise.
4102         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4103
4104 2012-01-28  Bruno Haible  <bruno@clisp.org>
4105
4106         fcntl: Avoid compilation error on native Windows.
4107         * modules/fcntl (Depends-on): Add 'close'.
4108
4109 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4110
4111         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4112         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4113         pointer to an integer.
4114         * lib/poll.c (IsConsoleHandle): Likewise.
4115         * lib/isatty.c (IsConsoleHandle): Likewise.
4116
4117 2012-01-28  Jim Meyering  <meyering@redhat.com>
4118
4119         doc: clarify README-release
4120         * top/README-release: Clarify: you should make a point to have
4121         the latest stable versions of build tools in your PATH, and the
4122         reference to buildreq is solely for its list of tool names, not
4123         for its minimal-functional version numbers.
4124         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4125
4126         maint.mk: use more readable (yet functionally equivalent) quoting
4127         It is common to quote a single quote in a single quoted string like
4128         this:  '...'\''...'.  Unless you know the idiom, that looks like
4129         gibberish, so prefer to double-quote the string when possible.
4130         Then you can use a more readable, lone single quote: "...'..."
4131         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4132         "don't" is more readable than the equivalent 'don'\''t'.
4133         (sc_cast_of_x_alloc_return_value): Likewise.
4134         (sc_cast_of_alloca_return_value): Likewise.
4135         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4136         rather than '\'':'\''.
4137
4138 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4139
4140         stdalign: relax _Alignof and tighten _Alignas test
4141         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4142         as it was too strict: alignof must divide offsetof, but it need
4143         not equal offsetof.  Inspired by Joseph S. Myers's comment
4144         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4145         Conversely, tighten the _Alignas test a bit, as the resulting
4146         alignment must be exactly 8.
4147
4148 2012-01-27  Bruno Haible  <bruno@clisp.org>
4149
4150         stdalign: Document the last change.
4151         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4152
4153 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4154
4155         stdalign: check that alignof and offsetof are consistent
4156         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4157         Problem reported for gnulib by Richard W.M. Jones in
4158         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4159
4160 2012-01-27  Jim Meyering  <meyering@redhat.com>
4161
4162         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4163         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4164         convert a sequence with gaps to the minimal containing range.
4165         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4166         * tests/test-update-copyright.sh: Test for this.
4167         The FSF confirmed it is ok to do this, assuming there is at
4168         least one significant change per year in the affected range:
4169         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4170
4171 2012-01-26  Bruno Haible  <bruno@clisp.org>
4172
4173         pipe2: refine doc about thread-safety
4174         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4175         multithread-safety problem.
4176         * doc/glibc-functions/accept4.texi: Likewise.
4177
4178 2012-01-26  Bruno Haible  <bruno@clisp.org>
4179
4180         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4181         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4182         In the test program, include <fcntl.h>, for O_RDONLY.
4183
4184 2012-01-26  Eric Blake  <eblake@redhat.com>
4185
4186         pipe2: document lack of thread-safety in replacement
4187         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4188         issue in replacement.
4189         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4190         Based on a report by Eric Wong.
4191
4192 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4193             Bruno Haible  <bruno@clisp.org>
4194
4195         malloca: Avoid warnings on x86_64 mingw64.
4196         * lib/malloca.c: Include <stdint.h>.
4197         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4198         * modules/malloca (Depends-on): Add stdint.
4199         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4200
4201 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4202
4203         obstack: remove __STDC__ conditionals
4204         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4205         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4206         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4207         m4/include_next.m4 as the only gnulib-maintained places that still
4208         refer to __STDC__.
4209
4210 2012-01-24  Bruno Haible  <bruno@clisp.org>
4211
4212         havelib: Modern quoting.
4213         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4214         the recent change to the GNU coding standards.
4215
4216 2012-01-24  Bruno Haible  <bruno@clisp.org>
4217
4218         stdint: Improve support for Android.
4219         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4220         Reported by Simon Josefsson <simon@josefsson.org>.
4221
4222 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4223
4224         doc: omit trailing empty lines from INSTALL etc.
4225         * doc/Makefile (INSTALL): Omit trailing empty lines.
4226         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4227         omit trailing empty lines.  This simplifies the build procedure.
4228
4229 2012-01-23  Jim Meyering  <meyering@redhat.com>
4230
4231         tests: avoid spurious warnings about gl_sockets_startup
4232         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4233         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4234         reporting a "statement with no effect".
4235         * tests/test-accept.c (main): Mark as "(void)".
4236         * tests/test-accept4.c (main): Likewise.
4237         * tests/test-bind.c (main): Likewise.
4238         * tests/test-connect.c (main): Likewise.
4239         * tests/test-getpeername.c (main): Likewise.
4240         * tests/test-getsockname.c (main): Likewise.
4241         * tests/test-getsockopt.c (main): Likewise.
4242         * tests/test-listen.c (main): Likewise.
4243         * tests/test-recv.c (main): Likewise.
4244         * tests/test-recvfrom.c (main): Likewise.
4245         * tests/test-send.c (main): Likewise.
4246         * tests/test-sendto.c (main): Likewise.
4247         * tests/test-setsockopt.c (main): Likewise.
4248         * tests/test-shutdown.c (main): Likewise.
4249
4250 2012-01-21  Bruno Haible  <bruno@clisp.org>
4251
4252         locale-fr.m4: Fix for Android.
4253         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4254         failure of the test program on Bionic libc.
4255
4256 2012-01-21  Jim Meyering  <meyering@redhat.com>
4257
4258         bootstrap: fail when bootstrap_post_import_hook fails
4259         Otherwise, it's far too easy to miss diagnostics emitted
4260         between gnulib-tool's output and that of running configure.
4261         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4262
4263 2012-01-17  Jim Meyering  <meyering@redhat.com>
4264
4265         maint: enable sc_trailing_blank
4266         * build-aux/pmccabe.css: Remove trailing blanks.
4267         * doc/acl-cygwin.txt: Likewise.
4268         * doc/gnu-oids.texi: Likewise
4269         * cfg.mk: Enable sc_trailing_blank.
4270         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4271
4272 2012-01-17  Jim Meyering  <meyering@redhat.com>
4273
4274         maint: enable sc_prohibit_openat_without_use
4275         * cfg.mk: Enable sc_prohibit_openat_without_use.
4276         Exempt lib/selinux-at.c.
4277
4278 2012-01-17  Jim Meyering  <meyering@redhat.com>
4279
4280         maint: enable sc_prohibit_cloexec_without_use
4281         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4282         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4283
4284 2012-01-17  Jim Meyering  <meyering@redhat.com>
4285
4286         maint: enable sc_prohibit_intprops_without_use
4287         * cfg.mk: Enable sc_prohibit_intprops_without_use
4288         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4289
4290 2012-01-17  Jim Meyering  <meyering@redhat.com>
4291
4292         maint: enable sc_prohibit_hash_pjw_without_use
4293         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4294         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4295         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4296         following " (".
4297
4298 2012-01-17  Jim Meyering  <meyering@redhat.com>
4299
4300         maint: enable double-word-prohibiting rule
4301         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4302         Exempt three files.
4303
4304 2012-01-17  Jim Meyering  <meyering@redhat.com>
4305
4306         maint: remove empty lines at EOF, but excluding modules/*
4307         Apply syntax rules at home as well as abroad.  Most changes
4308         were induced by running this:
4309           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4310             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4311             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4312         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4313         Exempt modules/* and two binary files.
4314         Also exempt doc/INSTALL*, per request from Bruno Haible.
4315         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4316         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4317         * doc/Copyright/request-assign.future: Likewise.
4318         * doc/Copyright/request-disclaim.changes: Likewise.
4319         * doc/INSTALL: Likewise.
4320         * doc/INSTALL.ISO: Likewise.
4321         * doc/INSTALL.UTF-8: Likewise.
4322         * doc/acl-cygwin.txt: Likewise.
4323         * doc/acl-resources.txt: Likewise.
4324         * doc/fdl-1.2.texi: Likewise.
4325         * doc/fdl-1.3.texi: Likewise.
4326         * doc/fdl.texi: Likewise.
4327         * lib/argp-pin.c: Likewise.
4328         * lib/round.c: Likewise.
4329         * lib/unicase/u16-totitle.c: Likewise.
4330         * lib/unictype/block_test.c: Likewise.
4331         * lib/uninorm/canonical-decomposition.c: Likewise.
4332         * m4/README: Likewise.
4333         * m4/relocatable-lib.m4: Likewise.
4334         * tests/test-isnand-nolibm.c: Likewise.
4335         * tests/test-isnand.c: Likewise.
4336         * tests/uninorm/NormalizationTest.txt: Likewise.
4337
4338 2012-01-17  Jim Meyering  <meyering@redhat.com>
4339
4340         maint: add framework to run syntax-check rules against gnulib sources
4341         * cfg.mk: New file, to disable all currently-failing tests.
4342         We'll enable them one by one, as they are made to pass.
4343         * Makefile (sc_maint): New rule.
4344
4345 2012-01-21  Bruno Haible  <bruno@clisp.org>
4346
4347         stdint: Add support for Android.
4348         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4349         include the system's <stdint.h>.
4350         Reported by Simon Josefsson <simon@josefsson.org>.
4351
4352 2012-01-19  Jim Meyering  <meyering@redhat.com>
4353
4354         bootstrap: add bootstrap_post_import_hook
4355         Bison does still need something like the gnulib_mk_hook whose
4356         invocation I had to remove along with slurp in commit 767ccd40.
4357         Technically, we could get along without it, but doing so would
4358         have required living with a warning and a mandatory post-bootstrap
4359         automake rerun.
4360         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4361         (bootstrap_post_import_hook): New function.
4362         Invoke it after gnulib-tool --import and before autoreconf.
4363
4364 2012-01-18  Jim Meyering  <meyering@redhat.com>
4365
4366         gitlog-to-changelog: don't use "no_"-prefixed variable name
4367         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4368         to enable both --cluster and --no-cluster.  Change variable name,
4369         s/\$no_cluster/$cluster/, and reverse usage to match.
4370
4371         gitlog-to-changelog: use "||", not "or" in expressions
4372         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4373         expressions.
4374
4375 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4376
4377         gitlog-to-changelog: new option --no-cluster
4378         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4379         clustering of adjacent commit messages.
4380
4381 2012-01-17  Jim Meyering  <meyering@redhat.com>
4382
4383         maint: spell file systems with two words, not one
4384         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4385         two words, not one.
4386
4387 2012-01-16  Jim Meyering  <meyering@redhat.com>
4388
4389         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4390         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4391
4392 2012-01-16  Eric Blake  <eblake@redhat.com>
4393
4394         bootstrap: cater to autoconf 2.59
4395         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4396         is not available.
4397
4398         bootstrap: properly check for libtool
4399         * build-aux/bootstrap (libtoolize): Also run libtool when older
4400         usage is detected.
4401
4402 2012-01-15  Bruno Haible  <bruno@clisp.org>
4403
4404         Improve support for MSVC 9.
4405         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4406         clashes on MSVC.
4407         * lib/fcntl.in.h: Likewise.
4408         * lib/stdlib.in.h: Likewise.
4409         * lib/sys_stat.in.h: Likewise.
4410
4411 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4412
4413         gnupload: we hold the master copy of this script now
4414         For motivation and more information, see:
4415         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4416         * build-aux/gnupload: Make it clear in the heading comments that the
4417         master copy of this file is maintained by gnulib.  Since we are at
4418         it, bump its copyright year and ...
4419         ($scriptversion): ... the date in its version.
4420         ($usage): Patches and bug reports should be sent to the gnulib list,
4421         not the automake one.
4422         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4423         anymore.
4424
4425 2012-01-15  Bruno Haible  <bruno@clisp.org>
4426
4427         Fix module 'random'.
4428         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4429         initstate, setstate are declared.
4430
4431 2012-01-14  Bruno Haible  <bruno@clisp.org>
4432
4433         Tests for module 'random'.
4434         * modules/random-tests: New file.
4435         * tests/test-random.c: New file, based on tests/test-random_r.c.
4436
4437         New module 'random'.
4438         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4439         declarations.
4440         * lib/random.c: New file, based on glibc/stdlib/random.c.
4441         * m4/random.m4: New file.
4442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4443         HAVE_RANDOM.
4444         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4445         * modules/random: New file.
4446         * config/srclist.txt: Add an entry for random.c.
4447         * doc/posix-functions/random.texi: Mention the 'random' module.
4448         * doc/posix-functions/initstate.texi: Likewise.
4449         * doc/posix-functions/setstate.texi: Likewise.
4450         * doc/posix-functions/srandom.texi: Likewise.
4451
4452 2012-01-12  Bruno Haible  <bruno@clisp.org>
4453
4454         random_r: Use common idioms.
4455         * lib/random_r.c: Include <stdlib.h> first.
4456
4457         random_r: Override incompatible API on AIX, OSF/1.
4458         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4459         Override the system function if REPLACE_RANDOM_R is 1.
4460         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4461         and OSF/1, set REPLACE_RANDOM_R.
4462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4463         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4464         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4465         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4466         * doc/glibc-functions/random_r.texi: Likewise.
4467         * doc/glibc-functions/setstate_r.texi: Likewise.
4468
4469         random_r: Support for MSVC 9.
4470         * lib/random_r.c: Include stdint.h, not inttypes.h.
4471
4472 2012-01-12  Eric Blake  <eblake@redhat.com>
4473
4474         inet_ntop: guard extra work by IF_LINT
4475         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4476         better code generation when not checking for warnings.
4477         Suggested by Paul Eggert and Jim Meyering.
4478
4479         strptime: fix regression on mingw
4480         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4481         Fix regression.  Reported by Bruno Haible.
4482
4483 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4484             Bruno Haible  <bruno@clisp.org>
4485
4486         copy-file: add error-code-returning variant.
4487         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4488         (qcopy_file_preserving): New declaration.
4489         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4490         copy_file_preserving. Change return type to 'int'. Don't emit an error
4491         message here.
4492         (copy_file_preserving): New function.
4493         * tests/test-copy-file.c: Include <stdlib.h>.
4494         (main): Test qcopy_file_preserving if the environment variable
4495         NO_STDERR_OUTPUT is set.
4496         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4497         with NO_STDERR_OUTPUT
4498         * tests/test-copy-file-2.sh: Likewise.
4499
4500 2012-01-10  Bruno Haible  <bruno@clisp.org>
4501
4502         copy-file: Use 'quote' module consistently.
4503         * lib/copy-file.c (copy_file_preserving): Use quote().
4504
4505         copy-file: Refactor.
4506         * lib/copy-file.c: Include quote.h.
4507         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4508         message here.
4509         * modules/copy-file (Depends-on): Add quote.
4510
4511         acl: Export qcopy_acl.
4512         * lib/acl.h (qcopy_acl): New declaration.
4513         * lib/copy-acl.c (qcopy_acl): Make non-static.
4514
4515         acl: Rename a local variable.
4516         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4517
4518         acl: Align return values of copy_acl and qcopy_acl.
4519         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4520         maybe < -1.
4521
4522 2012-01-11  Eric Blake  <eblake@redhat.com>
4523
4524         strptime: silence gcc warnings
4525         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4526         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4527         Reported by Daniel P. Berrange.
4528
4529         inet_ntop: silence gcc warning
4530         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4531         Reported by Daniel P. Berrange.
4532
4533 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4534
4535         getloadavg test: skip the test on GNU/Linux without /proc mounted
4536         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4537         file.  When /proc is not mounted, it always fails with ENOENT.
4538         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4539         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4540
4541 2012-01-10  Bruno Haible  <bruno@clisp.org>
4542
4543         regex: Avoid link error on MSVC 9.
4544         * modules/regex (Depends-on): Add wctype.
4545
4546 2012-01-10  Bruno Haible  <bruno@clisp.org>
4547
4548         doc: Mention --with-tests option.
4549         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4550         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4551         --with-tests.
4552         Reported by Reuben Thomas.
4553
4554 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4555
4556         users.txt: order package names lexicographically.
4557         * users.txt: Order package names lexicographically.
4558
4559 2012-01-10  Jim Meyering  <meyering@redhat.com>
4560
4561         maint.mk: fix description in comment
4562         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4563
4564         ignore-value: remove deprecated ignore_ptr function
4565         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4566         * NEWS: Note this.
4567
4568 2012-01-09  Jim Meyering  <meyering@redhat.com>
4569
4570         test-init.sh: avoid a subshell
4571         * tests/test-init.sh: Remove protective subshell.
4572         Suggested by Bernhard Voelker.  While a subshell is normally
4573         required to protect against older shells (Solaris, FreeBSD) that
4574         warn about a missing program before performing redirection, the
4575         shell-selection tests performed by init.sh probably exclude any
4576         offending shell.
4577
4578 2012-01-08  Bruno Haible  <bruno@clisp.org>
4579
4580         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4581         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4582         variable.
4583
4584 2012-01-08  Bruno Haible  <bruno@clisp.org>
4585
4586         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4587         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4588         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4589         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4590         macro.
4591         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4592         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4593         * lib/spawn_faction_addopen.c: Add workaround implementation if
4594         HAVE_WORKING_POSIX_SPAWN.
4595         * modules/spawn (Makefile): Substitute
4596         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4597         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4598         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4599         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4600         (Depends-on): Update conditions.
4601         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4602         the Solaris 11 bug.
4603
4604 2012-01-08  Bruno Haible  <bruno@clisp.org>
4605
4606         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4607         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4608         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4609         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4610         macro.
4611         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4612         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4613         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4614         HAVE_WORKING_POSIX_SPAWN.
4615         * modules/spawn (Makefile): Substitute
4616         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4617         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4618         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4619         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4620         (Depends-on): Update conditions.
4621         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4622         the Solaris 11 bug.
4623
4624 2012-01-08  Bruno Haible  <bruno@clisp.org>
4625
4626         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4627         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4628         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4629         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4630         HAVE_WORKING_POSIX_SPAWN.
4631         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4632         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4633         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4634         * lib/spawn_faction_addclose.c: Add workaround implementation if
4635         HAVE_WORKING_POSIX_SPAWN.
4636         * modules/spawn (Makefile): Substitute
4637         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4638         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4639         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4640         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4641         (Depends-on): Update conditions.
4642         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4643         the Solaris 11 bug.
4644
4645 2012-01-08  Bruno Haible  <bruno@clisp.org>
4646
4647         doc: Update for Solaris 11 2011-11.
4648         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4649         * m4/printf.m4: Update comments.
4650
4651 2012-01-08  Bruno Haible  <bruno@clisp.org>
4652
4653         mktime: Avoid compilation error on Solaris 11.
4654         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4655
4656 2012-01-08  Bruno Haible  <bruno@clisp.org>
4657
4658         doc: Small fix.
4659         * doc/posix-headers/nl_types.texi: Correct platforms list.
4660
4661 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4662
4663         Add lgpl-3.0 module.
4664         * MODULES.html.sh (Support for building documentation): Add
4665         lgpl-3.0.
4666         * modules/lgpl-3.0: New file.
4667
4668 2012-01-08  Jim Meyering  <meyering@redhat.com>
4669
4670         select.c: indent with spaces, not TABs
4671         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4672
4673 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4674
4675         quotearg: do not use grave accent for left quote
4676         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4677         locale_quoting_style.
4678         (quotearg_buffer_restyled): Fix example.
4679         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4680
4681 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4682
4683         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4684         Most programs do not have translation catalogs for English and much
4685         less separate catalogs for British and American English.  Drop the
4686         suggestion to translators about these two, and provide it
4687         automatically for Unicode locales.  Like most programs, even those
4688         using American English, we use single quotation marks.  This conflicts
4689         with the American typographic convention, but works better when you
4690         cite the entire error message within double quotes.  It also tries not
4691         to clash with established practice and with what non-gnulib programs
4692         will usually do.
4693         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4694         using an UTF-8 or GB-18030 locale.  The list of other locales with
4695         quotes was provided by Bruno Haible.
4696         (quotearg_buffer_restyled): Adjust instructions to translators.
4697         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4698         text, since this would be wrong when using Unicode.
4699         * modules/quotearg: Depend on c-strcaseeq.
4700
4701 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4702
4703         quotearg: fix Wikipedia link
4704         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4705
4706 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4707
4708         Fix for mingw with MSVC9.
4709         * m4/ld-version-script.m4: Check that compiler rejects version
4710         scripts with syntax errors.  Reported by Bruno Haible
4711         <bruno@clisp.org>.
4712
4713 2012-01-06  Bruno Haible  <bruno@clisp.org>
4714
4715         Talk about "native Windows API", not "Woe32".
4716         * lib/accept4.c: Update comments to mention native Windows.
4717         * lib/execute.c: Likewise.
4718         * lib/fatal-signal.c: Likewise.
4719         * lib/localcharset.c: Likewise.
4720         * lib/nanosleep.c: Likewise.
4721         * lib/nl_langinfo.c: Likewise.
4722         * lib/pclose.c: Likewise.
4723         * lib/pipe-filter-gi.c: Likewise.
4724         * lib/pipe-filter-ii.c: Likewise.
4725         * lib/pipe.c: Likewise.
4726         * lib/pipe2.c: Likewise.
4727         * lib/popen.c: Likewise.
4728         * lib/progreloc.c: Likewise.
4729         * lib/relocatable.c: Likewise.
4730         * lib/sigaction.c: Likewise.
4731         * lib/sigprocmask.c: Likewise.
4732         * lib/spawn-pipe.h: Likewise.
4733         * lib/spawn-pipe.c: Likewise.
4734         * lib/spawni.c: Likewise.
4735         * lib/stat-time.h: Likewise.
4736         * lib/w32spawn.h: Likewise.
4737         * tests/test-isatty.c: Likewise.
4738         * lib/config.charset: More comments.
4739         * doc/gnulib-intro.texi: Mention native Windows.
4740         * doc/posix-functions/_Exit_C99.texi: Likewise.
4741         * doc/posix-headers/fcntl.texi: Likewise.
4742
4743 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4744
4745         argp: Avoid crash if translator uses % characters in a translation.
4746         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4747         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4748
4749 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4750
4751         doc: C11 and C++11 are now official
4752         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4753         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4754         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4755         * modules/stdalign:
4756         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4757
4758 2012-01-06  Bruno Haible  <bruno@clisp.org>
4759
4760         uc-is-grapheme-break tests: Tweak.
4761         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4762         message.
4763
4764 2012-01-06  Bruno Haible  <bruno@clisp.org>
4765
4766         test-init.sh: correct the test for diff -u
4767         * tests/test-init.sh: Also redirect stdout to /dev/null.
4768
4769 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4770
4771         Use ', not `, for quoting output.
4772         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4773         (print_changelog_deltas, get_tool_versions, main program):
4774         * build-aux/git-version-gen:
4775         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4776         * build-aux/move-if-change (help):
4777         * build-aux/useless-if-before-free (usage, main program):
4778         * check-module (parse_module_file, usage)
4779         (find_included_lib_files, check_module):
4780         * lib/argmatch.c (main) [TEST]:
4781         * lib/argp-help.c (_help):
4782         * lib/getopt1.c (main) [TEST]:
4783         * lib/git-merge-changelog.c (usage):
4784         * lib/xstrtol-error.c (xstrtol_error):
4785         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4786         * m4/argz.m4 (gl_FUNC_ARGZ):
4787         * m4/bison.m4 (gl_BISON):
4788         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4789         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4790         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4791         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4792         * m4/gc-random.m4 (gl_GC_RANDOM):
4793         * m4/intl.m4 (gt_CHECK_DECL):
4794         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4795         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4796         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4797         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4798         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4799         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4800         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4801         * tests/test-dirname.c (main):
4802         * tests/test-getpass.c (main):
4803         * tests/test-iconvme.c (main):
4804         * tests/test-parse-datetime.c (LOG):
4805         * tests/test-xstrtoimax.sh:
4806         * tests/test-xstrtol.sh:
4807         * tests/test-xstrtoll.sh:
4808         * tests/test-xstrtoumax.sh:
4809         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4810         * top/GNUmakefile (abort-due-to-no-makefile):
4811         Quote 'like this', not `like this', as per the recent change to
4812         the GNU coding standards.
4813
4814 2012-01-05  Bruno Haible  <bruno@clisp.org>
4815
4816         strtoimax: Don't force a replacement on systems where intmax_t is int.
4817         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4818         'intmax_t' is not larger than 'int'.
4819         Reported by Pádraig Brady <P@draigBrady.com>.
4820
4821 2012-01-05  Bruno Haible  <bruno@clisp.org>
4822
4823         doc: Mention NetBSD bugs.
4824         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4825         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4826
4827 2012-01-05  Bruno Haible  <bruno@clisp.org>
4828
4829         strtoumax tests: Enhance tests.
4830         * tests/test-strtoumax.c (main): Add tests for large values.
4831
4832 2012-01-05  Bruno Haible  <bruno@clisp.org>
4833
4834         strtoimax: Work around AIX 5.1 bug.
4835         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4836         definition.
4837         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4838         Set HAVE_STRTOIMAX.
4839         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4840         REPLACE_STRTOIMAX.
4841         * modules/inttypes-incomplete (Makefile.am): Substitute
4842         REPLACE_STRTOIMAX.
4843         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4844         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4845         (Depends-on): Update conditions.
4846         * tests/test-strtoimax.c (main): Add tests for large values.
4847         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4848
4849 2012-01-05  Bruno Haible  <bruno@clisp.org>
4850
4851         inttypes: Modernize.
4852         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4853         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4854         (Makefile.am): Update inttypes.h rule.
4855
4856 2012-01-05  Jim Meyering  <meyering@redhat.com>
4857
4858         init.sh: don't waste a subshell just to redirect stderr
4859         * tests/init.sh: In testing for diff -u and diff -c, use a
4860         stderr-redirecting exec inside `...` rather than a subshell.
4861
4862         test-init.sh: avoid failure on HP-UX 11.00
4863         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4864         resolves to diff -c or cmp.  Reported by Bruno Haible.
4865
4866 2012-01-05  Bruno Haible  <bruno@clisp.org>
4867
4868         Tests for module 'strtoull'.
4869         * modules/strtoull-tests: New file.
4870         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4871
4872 2012-01-05  Bruno Haible  <bruno@clisp.org>
4873
4874         Tests for module 'strtoll'.
4875         * modules/strtoll-tests: New file.
4876         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4877
4878 2012-01-05  Bruno Haible  <bruno@clisp.org>
4879
4880         Tests for module 'strtoul'.
4881         * modules/strtoul-tests: New file.
4882         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4883
4884 2012-01-05  Bruno Haible  <bruno@clisp.org>
4885
4886         Tests for module 'strtol'.
4887         * modules/strtol-tests: New file.
4888         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4889
4890 2012-01-04  Jim Meyering  <meyering@redhat.com>
4891
4892         test-init.sh: accommodate Solaris 5.10's different diff -u output
4893         * tests/test-init.sh: Also exempt @@ lines from the comparison
4894         of diff output, since Solaris 5.10 and GNU diff formats differ.
4895         Reported by Stefano Lattarini.
4896
4897 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4898
4899         test-posixtm: don't assume signed integer wraparound
4900         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4901         after signed integer overflow.  Inspired by (though it may not
4902         fix) Bruno Haible's bug report in
4903         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4904
4905         Spell out "Windows 9x" and "Windows XP".
4906         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4907         "Windows 9x" and "WinXP" with "Windows XP".
4908
4909 2012-01-04  Jim Meyering  <meyering@redhat.com>
4910
4911         test-vc-list-files-cvs.sh: remove obsolete comment
4912         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4913         double exit.  Now that's all encapsulated via skip_ and Exit.
4914
4915 2012-01-04  Bruno Haible  <bruno@clisp.org>
4916
4917         Talk about "native Windows API", not "Win32".
4918         * lib/classpath.c: Update comments to mention native Windows.
4919         * lib/csharpexec.c: Likewise.
4920         * lib/dup2.c: Likewise.
4921         * lib/error.c: Likewise.
4922         * lib/fcntl.c: Likewise.
4923         * lib/filename.h: Likewise.
4924         * lib/findprog.c: Likewise.
4925         * lib/get-rusage-as.c: Likewise.
4926         * lib/get-rusage-data.c: Likewise.
4927         * lib/getpagesize.c: Likewise.
4928         * lib/javaexec.c: Likewise.
4929         * lib/msvc-inval.c: Likewise.
4930         * lib/msvc-nothrow.c: Likewise.
4931         * lib/nanosleep.c: Likewise.
4932         * lib/nonblocking.c: Likewise.
4933         * lib/printf-parse.c: Likewise.
4934         * lib/setlocale.c: Likewise.
4935         * lib/sigaction.c: Likewise.
4936         * lib/strerror_r.c: Likewise.
4937         * lib/tmpdir.c: Likewise.
4938         * lib/vasnprintf.c: Likewise.
4939         * lib/w32spawn.h: Likewise.
4940         * lib/waitpid.c: Likewise.
4941         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4942         * m4/locale-ar.m4: Likewise.
4943         * m4/locale-fr.m4: Likewise.
4944         * m4/locale-ja.m4: Likewise.
4945         * m4/locale-tr.m4: Likewise.
4946         * m4/locale-zh.m4: Likewise.
4947         * m4/printf.m4: Likewise.
4948         * tests/test-cloexec.c: Likewise.
4949         * tests/test-copy-acl.sh: Likewise.
4950         * tests/test-copy-file.sh: Likewise.
4951         * tests/test-file-has-acl.sh: Likewise.
4952         * tests/test-set-mode-acl.sh: Likewise.
4953         * tests/test-dup-safer.c: Likewise.
4954         * tests/test-dup2.c: Likewise.
4955         * tests/test-dup3.c: Likewise.
4956         * tests/test-fcntl.c: Likewise.
4957         * tests/test-nonblocking-pipe.h: Likewise.
4958         * tests/test-nonblocking-socket.h: Likewise.
4959         * tests/test-pipe.c: Likewise.
4960         * tests/test-pipe2.c: Likewise.
4961         * tests/test-spawn-pipe-child.c: Likewise.
4962         * doc/acl-resources.txt: Likewise.
4963         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4964         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4965         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4966         * lib/localcharset.c: Update comments to mention native Windows.
4967         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4968         * lib/localename.c: Likewise.
4969         * lib/progreloc.c: Likewise.
4970         * lib/relocatable.c: Likewise.
4971         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4972         (windows_compute_revents): Renamed from win32_compute_revents.
4973         (windows_compute_revents_socket): Renamed from
4974         win32_compute_revents_socket.
4975         * lib/select.c: Update comments to mention native Windows.
4976         (windows_poll_handle): Renamed from win32_poll_handle.
4977         * m4/threadlib.m4: Update comments to mention native Windows.
4978         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4979         --enable-threads=windows instead of --enable-threads=win32. Set
4980         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4981         * lib/glthread/lock.h: Update comments to mention native Windows.
4982         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4983         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4984         USE_WIN32_THREADS.
4985         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4986         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4987         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4988         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4989         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4990         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4991         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4992         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4993         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4994         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4995         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4996         * tests/test-tls.c: Likewise.
4997         Rationale:
4998         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4999         on both 32-bit and 64-bit Windows systems.
5000         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5001         line of distinction is between "native Windows" on one side and Unix/
5002         POSIX systems on the other side. More details in
5003         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5004         Suggested by Paul Eggert.
5005
5006 2012-01-03  Bruno Haible  <bruno@clisp.org>
5007
5008         isatty: Support for MSVC 9.
5009         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5010         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5011         (_isatty_nothrow): New function.
5012         (isatty): Use it instead of _isatty.
5013         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5014         * lib/poll.c (IsConsoleHandle): Likewise.
5015         * lib/select.c (IsConsoleHandle): Likewise.
5016         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5017         (gl_PREREQ_ISATTY): New macro.
5018         * modules/isatty (Depends-on): Add msvc-inval.
5019         (configure.ac): Invoke gl_PREREQ_ISATTY.
5020
5021 2012-01-03  Jim Meyering  <meyering@redhat.com>
5022
5023         maint.mk: remove temporary transition aid from over 1.5 years ago
5024         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5025         purpose was to aid in the transition (avoiding silent malfunction)
5026         from that old name to the new _sc_search_regexp.  This shim was
5027         added by commit 219c504b.
5028
5029         init.sh: do not try to accommodate compare arguments starting with "-"
5030         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5031         compare arguments that start with "-".  Besides, we do not worry
5032         about this when invoking diff or cmp; why start now with sed?
5033         Using "--" to separate options from argument would trigger sed
5034         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5035         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5036
5037 2012-01-02  Bruno Haible  <bruno@clisp.org>
5038
5039         Enhance tests for module 'isatty'.
5040         * modules/isatty-tests (Depends-on): Add pipe-posix.
5041         * tests/test-isatty.c: Include <fcntl.h>.
5042         (DEV_NULL): New macro.
5043         (main): Test the resut of isatty() also on regular files, pipes, and
5044         /dev/null.
5045
5046         New module 'isatty'.
5047         * lib/unistd.in.h (isatty): New declaration.
5048         * lib/isatty.c: New file, based on an idea of
5049         Bastien Roucariès <roucaries.bastien@gmail.com>.
5050         * m4/isatty.m4: New file.
5051         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5052         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5053         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5054         REPLACE_ISATTY.
5055         * modules/isatty: New file.
5056         * doc/posix-functions/isatty.texi: Mention the new module.
5057         Suggested by Paolo Bonzini.
5058
5059 2012-01-02  Bruno Haible  <bruno@clisp.org>
5060
5061         canonicalize: Tweak 2011-12-29 commit.
5062         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5063         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5064
5065 2012-01-02  Jim Meyering  <meyering@redhat.com>
5066
5067         gitlog-to-changelog: describe input syntax in --help output
5068         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5069
5070         gitlog-to-changelog: fix typo in --help: show backslash before email @
5071         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5072         in sources, but not in actual output.
5073
5074 2011-12-30  Jim Meyering  <meyering@redhat.com>
5075
5076         gitlog-to-changelog: don't malfunction when name contains %-directive
5077         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5078         in a name string cause trouble.  E.g., with a user name of "%s",
5079         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5080
5081 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5082
5083         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5084         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5085         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5086         the "  (tiny change)" notation that is appended to the standard
5087         ChangeLog "date  name  email" header line.
5088
5089 2012-01-01  Jim Meyering  <meyering@redhat.com>
5090
5091         test-framework-sh: init.sh: fix "make dist" failure
5092         When using gnulib-tool's --with-tests option and any module that
5093         depends on test-framework-sh, "make dist" would fail due to the
5094         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5095         in the gltests directory, and not in the gllib/ directory.
5096         One way to work around that is to move the EXTRA_DIST += init.sh
5097         from the primary module to the -tests one:
5098         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5099         * modules/test-framework-sh (Makefile.am): ...not here.
5100         Reported by Tom G. Christensen in
5101         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5102
5103         version-etc: update copyright year reported by --version
5104         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5105
5106 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5107
5108         canonicalize: only stat() if required
5109         * lib/canonicalize.c (canonicalize_filename_mode):
5110         Avoid calling l?stat() when both CAN_MISSING,
5111         and CAN_NOLINKS are set, as we neither need
5112         to resolve symlinks or test component existence.
5113
5114 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5115
5116         doc: cover st_ino issues once; add OpenVMS etc.
5117         * doc/posix-functions/stat.texi (stat):
5118         * doc/posix-functions/lstat.texi (lstat):
5119         * doc/posix-functions/fstatat.texi (fstatat):
5120         * doc/posix-functions/fstat.texi (fstat):
5121         Move general 'struct stat' stuff to sys_stat.texi,
5122         leaving behind a pointer.
5123         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5124         Merge duplicate info about 'struct stat' problems into here.
5125         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5126         and suggest partial workarounds.
5127
5128         same-inode: port to OpenVMS
5129         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5130         three st_ino values.
5131
5132 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5133
5134         canonicalize: fix references to stat() and lstat()
5135         * lib/canonicalize.c (canonicalize_filename_mode):
5136         Ensure references always resolve to a replacement
5137         function if required (even via a macro).
5138
5139 2011-12-30  Jim Meyering  <meyering@redhat.com>
5140
5141         gitlog-to-changelog: remove a little duplication
5142         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5143         rather than twice.
5144
5145 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5146
5147         canonicalize: add support for not resolving symlinks
5148         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5149         indicate we don't want to follow symlinks.  Also
5150         provide CAN_MODE_MASK to aid setting these existing
5151         mutually exclusive values.
5152         * lib/canonicalize.c (canonicalize_filename_mode):
5153         Extract the flags from can_mode parameter, which
5154         are currently just used to select between stat()
5155         and lstat().  Also ensure that mutually exclusive
5156         values are flagged immediately as invalid.
5157         * tests/test-canonicalize.c: Verify symlinks are
5158         not followed, and that invalid flag combinations
5159         are diagnosed.
5160
5161 2011-12-25  Jim Meyering  <meyering@redhat.com>
5162
5163         gitlog-to-changelog: do not clump multi-paragraph entries
5164         Identical header lines (date,name,email+coauthors) are suppressed,
5165         thus putting all entries with those same characteristics under
5166         a single header.  However, when a log entry consists of two or
5167         more paragraphs, it may not be clear where it starts and ends.
5168         This change makes it so that such an entry is always separated
5169         from others by a header line, even when that header would
5170         otherwise be suppressed.
5171         * build-aux/gitlog-to-changelog: Implement the above.
5172         Inspired by a related request from Stefano Lattarini in
5173         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5174
5175 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5176
5177         announce-gen: fix `cmd' typo in diagnostic
5178         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5179         diagnostic: a missing '$' meant that the command was not output.
5180
5181 2011-12-23  Jim Meyering  <meyering@redhat.com>
5182
5183         test-framework-sh: distribute init.sh
5184         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5185         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5186         fail due to the lack of init.sh.
5187
5188         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5189         * modules/atexit-tests: Rather than listing tests/init.sh,
5190         now that there's a module for it, simply depend on that new module.
5191         * modules/closein-tests: Likewise.
5192         * modules/exclude-tests: Likewise.
5193         * modules/getcwd-tests: Likewise.
5194         * modules/perror-tests: Likewise.
5195         * modules/pread-tests: Likewise.
5196         * modules/pwrite-tests: Likewise.
5197         * modules/vc-list-files-tests: Likewise.
5198         * modules/verify-tests: Likewise.
5199         * modules/xalloc-die-tests: Likewise.
5200         * modules/xstrtoimax-tests: Likewise.
5201         * modules/xstrtol-tests: Likewise.
5202         * modules/xstrtoll-tests: Likewise.
5203         * modules/xstrtoumax-tests: Likewise.
5204         * modules/yesno-tests: Likewise.
5205
5206 2011-12-22  Jim Meyering  <meyering@redhat.com>
5207
5208         test-framework-sh: add minimal tests of init.sh's compare function
5209         * modules/test-framework-sh-tests: New file.
5210         * tests/test-init.sh: New file.
5211
5212         test-framework-sh: new module
5213         * modules/test-framework-sh: New file.
5214         * MODULES.html.sh (Support for maintaining and releasing projects):
5215         List it.
5216
5217         init.sh: do not emit simulated diff output to stderr
5218         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5219
5220 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5221
5222         .gitignore: ignore gnulib.dvi and regex.info
5223         * doc/.gitignore:add gnulib.dvi and regex.info
5224
5225 2011-12-22  Jim Meyering  <meyering@redhat.com>
5226
5227         init.sh: correct previous change
5228         * tests/init.sh (compare): My previous change was wrong.
5229         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5230
5231         init.sh: avoid unwarranted test failure when using "set -e"
5232         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5233         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5234         a use like "compare exp out" would get evoke an unconditional failure.
5235
5236 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5237
5238         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5239         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5240         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5241         autoreconf that did not.
5242         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5243         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5244
5245 2011-12-17  Jim Meyering  <meyering@redhat.com>
5246
5247         bootstrap: remove some now-unneeded code
5248         This script arose back when gnulib-tool was young.
5249         Since then, it has seen improvements that render much of this
5250         script unnecessary.  In particular, it can now make symlinks
5251         to the files it uses.  Also, I no longer see as much value in
5252         marking files as read-only via comments.
5253         If you relied on the symlink-creation feature of the preceding
5254         version of this script, you can get most of that functionality
5255         by adding the --symlink option to the definition of
5256         gnulib_tool_option_extras in your bootstrap.conf file.
5257         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5258         Run autopoint and libtoolize *before* gnulib-tool.
5259         After it, run an abbreviated autoreconf, rather than a loop around
5260         all tools.
5261         (slirp, bt_mark_as_generated): Remove functions.
5262
5263 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5264
5265         ftoastr: fix typo
5266         * lib/ftoastr.h: Fix misspelling in comment.
5267
5268 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5269
5270         * top/README-release: fix punctuation.
5271
5272 2011-12-17  Jim Meyering  <meyering@redhat.com>
5273
5274         bootstrap: correct the recent buildreq change
5275         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5276         had no effect.
5277         * build-aux/bootstrap (buildreq): Bracket each search term with
5278         "*...*", so that the shell "case" statement works as intended.
5279         Add comments.
5280
5281 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5282
5283         build: let bootstrap resort to wget when downloading .po files
5284         * build-aux/bootstrap (download_po_files): Fallback to wget when
5285         downloading the .po files via rsync fails.  This is necessary to
5286         bootstrap from behind a strict firewall.
5287
5288 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5289
5290         stdint: don't assume C++11 when compiling with g++
5291         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5293         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5294         work also in C++ before C++11, as that improperly inhibits
5295         generating a substitute stdint.h for that case.
5296
5297 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5298
5299         alloca: protect comment from gnulib-tool
5300         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5301         that gnulib-tool doesn't think it's a license, and munge it to
5302         say "GCC version 3".
5303
5304 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5305
5306         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5307         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5308         $(abs_top_builddir) instead of $(top_builddir).
5309
5310 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5311
5312         strftime-tests: also test nanoseconds
5313         * tests/test-strftime.c (T): Add a test of %N.
5314
5315 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5316
5317         inttypes, stdint: add C++11 support
5318         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5319         when including inttypes.h and stdint.h.  Support this change to
5320         the standard.
5321         * doc/posix-headers/inttypes.texi (inttypes.h):
5322         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5323         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5324         Define if not defined already, for the benefit of pre-C++11 hosts.
5325         Define the standard format macros (e.g., PRId8) always.
5326         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5327         Likewise, if __cpluspus.  Define the standard constant and limit
5328         macros (e.g., INT8_C, INT8_MAX) always.
5329         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5330         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5331         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5332         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5333         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5334         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5335         Likewise.
5336
5337 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5338
5339         nonblocking tests: Fix test failure on Linux/PPC.
5340         Suggested by Prerna Saxena in
5341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5342         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5343         Set to 1100000.
5344
5345 2011-12-12  Jim Meyering  <meyering@redhat.com>
5346
5347         argmatch: don't hard-code `' when listing valid option arguments
5348         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5349         use the quote function to add quotes.  Use fputs rather than
5350         fprintf for the format string with no format directive.
5351
5352 2011-12-07  Eric Blake  <eblake@redhat.com>
5353
5354         bootstrap: detect tools required by gnulib-tool
5355         * build-aux/bootstrap (buildreq): Provide minimum implicit
5356         dependencies.
5357         * DEPENDENCIES: Mention patch as a prereq.
5358
5359 2011-12-04  Bruno Haible  <bruno@clisp.org>
5360
5361         sethostname: Port to Windows platforms.
5362         * lib/sethostname.c: Provide an alternate implementation for Windows
5363         platforms.
5364         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5365         (main): Skip the test if sethostname() fails with EPERM. On Windows
5366         platforms, don't check the result of gethostname().
5367
5368 2011-12-04  Bruno Haible  <bruno@clisp.org>
5369             Jim Meyering  <meyering@redhat.com>
5370
5371         tests: Avoid spurious error message on platforms without mktemp program.
5372         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5373
5374 2011-12-04  Bruno Haible  <bruno@clisp.org>
5375
5376         sethostname: Fix documentation.
5377         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5378         "not fixed" section.
5379
5380 2011-12-03  Bruno Haible  <bruno@clisp.org>
5381
5382         gnulib-tool: Verify that the License field is present and non-empty.
5383         * gnulib-tool (func_get_license_raw): New function, extracted from
5384         func_get_license.
5385         (func_get_license): Use it. Warn if the module is not a test module and
5386         has no license.
5387         Suggested by Jim Meyering.
5388
5389 2011-12-03  Bruno Haible  <bruno@clisp.org>
5390
5391         sethostname tests: Fix link error on mingw.
5392         * tests/test-sethostname1.c: New file, extracted from
5393         tests/test-sethostname.c.
5394         * tests/test-sethostname2.c: New file, extracted from
5395         tests/test-sethostname.c.
5396         * tests/test-sethostname.c: Remove file.
5397         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5398         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5399         (Depends-on): Add gethostname.
5400         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5401         Link the latter with $(GETHOSTNAME_LIB).
5402
5403         sethostname tests: Fix compilation error on mingw.
5404         * tests/test-sethostname.c: Don't include <sys/types.h>.
5405         (geteuid): Use a dummy value without uid_t.
5406         * modules/sethostname-tests (Depends-on): Remove sys_types.
5407
5408         sethostname tests: Avoid a gcc warning.
5409         * tests/test-sethostname.c (main): Remove an unused variable.
5410
5411         Tweak last commit.
5412         * modules/sethostname-tests (Files): Sort by decreasing importance.
5413         (configure.ac): Check for geteuid.
5414         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5415         the test when there's nothing to test. Drop an unnecessary cast.
5416         Improve an error message. Verify that the final sethostname() call
5417         succeeds.
5418
5419 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5420
5421         Add a test suite for the sethostname module.
5422         * modules/sethostname-tests: New file.  A test program
5423         for the sethostname module.
5424         * tests/test-sethostname.c: Likewise.
5425
5426 2011-12-03  Bruno Haible  <bruno@clisp.org>
5427
5428         Tweak last commit.
5429         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5430         Fix preprocessor directives indentation. Fix typos.
5431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5432         * modules/unistd (Makefile): Likewise.
5433
5434 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5435
5436         Integrate the sethostname module into unistd.
5437         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5438         into the unistd.h header.
5439         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5440         preprocessor directives.
5441         * modules/unistd: Setup the Makefile substitutions of the
5442         SETHOSTNAME preprocessor directives.
5443
5444 2011-12-03  Bruno Haible  <bruno@clisp.org>
5445
5446         Tweak last commit.
5447         * lib/sethostname.c: Don't include <string.h>.
5448         (sethostname): No need to copy the argument string to the stack. Don't
5449         call clearerr. Preserve errno when fprintf failed.
5450         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5451         Don't invoke AC_REPLACE_FUNCS.
5452         * modules/sethostname (Link): Remove empty section.
5453         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5454         failure problem.
5455
5456 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5457
5458         New module 'sethostname'.
5459         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5460         for systems that lack it.
5461         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5462         sethostname declaration and function.
5463         * modules/sethostname: New file.  Define the sethostname module.
5464
5465 2011-12-03  Bruno Haible  <bruno@clisp.org>
5466
5467         Tweak last commit.
5468         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5469
5470 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5471
5472         Split the HOST_NAME_MAX detection into a separate m4 macro.
5473         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5474         macro so it can be used by the pending sethostname module.
5475
5476 2011-12-03  Bruno Haible  <bruno@clisp.org>
5477
5478         Fix module descriptions syntax.
5479         * modules/argv-iter (License): Fix syntax.
5480         * modules/di-set (License): Likewise.
5481         * modules/ino-map (License): Likewise.
5482         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5483
5484 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5485
5486         stdalign: port to Clang 3.0
5487         Problem reported by Simon Josefsson in
5488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5489         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5490         which has <stdalign.h> but which does not define alignof.
5491         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5492
5493 2011-12-01  Eric Blake  <eblake@redhat.com>
5494
5495         mktempd: silence dd usage
5496         * build-aux/mktempd (rand_bytes): Silence dd.
5497
5498 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5499
5500         manywarnings: Don't mention gcc version in docstring.
5501         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5502         Jim Meyering <meyering@redhat.com>.
5503
5504 2011-11-30  Jim Meyering  <meyering@redhat.com>
5505
5506         hash: mark a few floating point constants with "f" suffix
5507         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5508         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5509         floating point constants with "f", since they're destined to be
5510         saved/used as "float"s.
5511
5512 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5513
5514         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5515         * tests/test-float.c (test_long_double): Correct and re-enable the
5516         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5517
5518 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5519
5520         Avoid subtracting two pointers that don't point into the same block.
5521         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5522         only pointers into the same memory block are subtracted. We cannot
5523         assume that sizeof (ptrdiff_t) == sizeof (void *).
5524
5525 2011-11-29  Eric Blake  <eblake@redhat.com>
5526
5527         maint.mk: add syntax check for use of compare from init.sh
5528         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5529         moved here from coreutils.
5530
5531         manywarnings: drop -Wunsuffixed-float-constants
5532         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5533         '1.0D', which is the only way to silence this warning for 'double'.
5534
5535 2011-11-29  Jim Meyering  <meyering@redhat.com>
5536
5537         hash: mark compute_bucket_size with the pure attribute
5538         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5539
5540         quotearg, propername: correct pragma guard expression
5541         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5542         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5543
5544 2011-11-28  Jim Meyering  <meyering@redhat.com>
5545
5546         propername: do not mark proper_name with the const attribute
5547         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5548         since it examines data pointed to by its parameter.
5549         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5550         the suggestion from -Wsuggest-attribute=const.
5551
5552         propername: mark one more function as const
5553         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5554
5555 2011-11-27  Jim Meyering  <meyering@redhat.com>
5556
5557         mark functions with const and pure attributes
5558
5559         Mark functions per suggestions from gcc-4.6 when using these options:
5560         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5561         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5562         Follow these guidelines: when possible, apply the attribute to
5563         an extern declaration, not to its definition.  Apply it to the
5564         definition only when the definition is static.
5565         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5566         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5567         * lib/base64.h (isbase64): Likewise.
5568         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5569         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5570         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5571         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5572         (c_tolower, c_toupper): Likewise.
5573         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5574         * lib/chdir-long.c (find_non_slash): Likewise.
5575         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5576         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5577         * lib/file-type.h (file_type): Likewise.
5578         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5579         * lib/filevercmp.c (verrevcmp): Likewise.
5580         * lib/freadahead.h (freadahead): Likewise.
5581         * lib/fts.c (fts_maxarglen): Likewise.
5582         * lib/hash-pjw.h (hash_pjw): Likewise.
5583         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5584         * lib/hash.c (is_prime, next_prime): Likewise.
5585         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5586         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5587         (hash_table_ok, hash_get_first, hash_string): Likewise.
5588         (compute_bucket_size): Likewise.
5589         * lib/i-ring.h (i_ring_empty): Likewise.
5590         * lib/isnan.c (isnanl): Likewise.
5591         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5592         * lib/memcasecmp.h (memcasecmp): Likewise.
5593         * lib/memchr2.h (memchr2): Likewise.
5594         * lib/memcmp2.h (memcmp2): Likewise.
5595         * lib/parse-datetime.y (lookup_zone): Likewise.
5596         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5597         [!WINDOWS_SOCKETS]: Likewise.
5598         * lib/strnlen1.h (strnlen1): Likewise.
5599         * lib/uniwidth.in.h (uc_width): Likewise.
5600         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5601         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5602         (quoting_options_from_style): Add a comment.
5603         * lib/propername.h (proper_name): Add a comment.
5604
5605 2011-11-27  Bruno Haible  <bruno@clisp.org>
5606
5607         Remove unused macros from !_LIBC code in glibc-borrowed files.
5608         * lib/fnmatch.c (STRCOLL): Remove macro.
5609         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5610         * lib/glob.c (__stat, __readdir64): Remove macros.
5611         * lib/tempname.c (__open64, __xstat64): Remove macros.
5612         Suggested by Paul Eggert.
5613
5614 2011-11-27  Bruno Haible  <bruno@clisp.org>
5615
5616         getcwd: Fix link error on MSVC 9.
5617         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5618
5619 2011-11-27  Bruno Haible  <bruno@clisp.org>
5620
5621         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5622         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5623         HAVE_OPENDIR is 0.
5624         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5625         HAVE_CLOSEDIR is 0.
5626         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5627         is 0.
5628         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5629
5630 2011-11-27  Bruno Haible  <bruno@clisp.org>
5631
5632         getcwd: Fix bug from 2011-08-17.
5633         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5634         platforms that need it.
5635         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5636         code of 4 to be a failure, not a success. This ensures that
5637         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5638
5639 2011-11-27  Bruno Haible  <bruno@clisp.org>
5640
5641         binary-io tests: Avoid test failure on mingw when libtool is used.
5642         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5643         Don't verify the size of t-bin-out1.tmp here.
5644         * tests/test-binary-io.sh: Verify it here.
5645         Reported by Simon Josefsson.
5646
5647 2011-11-26  Bruno Haible  <bruno@clisp.org>
5648
5649         Fix conflict between two instantiations of module 'unistd'.
5650         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5651         ${include_guard_prefix} also in the autoconf snippet.
5652         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5654         GNULIB_UNISTD_H_GETOPT.
5655         * modules/getopt-posix (configure.ac): Set the
5656         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5657         * modules/getopt-gnu (configure.ac): Likewise.
5658         * modules/unistd (Makefile.am): Change the substitution value of
5659         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5660         Reported by Simon Josefsson.
5661
5662 2011-11-25  Bruno Haible  <bruno@clisp.org>
5663
5664         pagealign_alloc: Doc and comments.
5665         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5666         module.
5667         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5668
5669 2011-11-25  Jim Meyering  <meyering@redhat.com>
5670
5671         test-update-copyright.sh: avoid false-positive failure
5672         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5673         around false positive failure on Cygwin/Windows.  The latter was
5674         matching erroneously-created files with names like
5675         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5676
5677 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5678
5679         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5680         * m4/valgrind-tests.m4: Check that the parameters that will be
5681         used works, not just a subset of them.  Reported by Bruno Haible
5682         <bruno@clisp.org>.
5683
5684 2011-11-24  Jim Meyering  <meyering@redhat.com>
5685
5686         test-stdalign.c: comment out long double tests
5687         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5688         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5689         error: '_Alignas' specifiers cannot reduce alignment of \
5690         'static_longdouble_alignas'.
5691
5692 2011-11-22  Jim Meyering  <meyering@redhat.com>
5693
5694         init.sh: make "compare /dev/null FILE" output more readable
5695         * tests/init.sh (compare_): Document the preferred order of arguments.
5696         (emit_diff_u_header_): New function.
5697         (compare_dev_null_): Emit a simulated diff, rather than just the
5698         contents of the unexpected file.  Suggestion from Bruno Haible.
5699
5700 2011-11-21  Jim Meyering  <meyering@redhat.com>
5701             Eric Blake  <eblake@redhat.com>
5702
5703         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5704         * tests/init.sh: Make our compare function slightly more portable.
5705         Reported by Bruno Haible in
5706         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5707
5708 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5709
5710         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5711         before using it, in code that ends up in config.h.
5712
5713 2011-11-20  Bruno Haible  <bruno@clisp.org>
5714
5715         getcwd: Work around getcwd bug on AIX 5..7.
5716         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5717         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5718         Use a different value for gl_cv_func_getcwd_path_max. Move the
5719         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5720         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5721         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5722         Define HAVE_MINIMALLY_WORKING_GETCWD.
5723         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5724         where it is not even minimally working, that is, on AIX.
5725         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5726         m4/getcwd-path-max.m4.
5727         (main): Update exit code computation.
5728         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5729         getcwd does not handle long file names.
5730
5731 2011-11-20  Bruno Haible  <bruno@clisp.org>
5732
5733         getcwd: Fix bug from 2009-09-10.
5734         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5735         like "no".
5736
5737 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5738
5739         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5740
5741 2011-11-20  Bruno Haible  <bruno@clisp.org>
5742
5743         fma tests: Avoid shadowing local variables.
5744         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5745         expected.
5746
5747 2011-11-20  Bruno Haible  <bruno@clisp.org>
5748
5749         copysignf tests: Fix.
5750         * tests/test-copysignf.c: Fix signature check.
5751
5752 2011-11-20  Bruno Haible  <bruno@clisp.org>
5753
5754         fma: Remove unused code.
5755         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5756         unused macros.
5757
5758 2011-11-20  Bruno Haible  <bruno@clisp.org>
5759
5760         sethostname: Fix doc about AIX.
5761         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5762         sethostname; it has it.
5763
5764         sethostname: Mention more portability problems.
5765         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5766         problem.
5767         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5768
5769 2011-11-19  Bruno Haible  <bruno@clisp.org>
5770
5771         Depend on module fcntl-h when AT_FDCWD is used.
5772         * modules/utimens (Depends-on): Add fcntl-h.
5773         * modules/areadlinkat (Depends-on): Likewise.
5774         * modules/areadlinkat-with-size (Depends-on): Likewise.
5775         * modules/faccessat (Depends-on): Likewise.
5776         * modules/fchmodat (Depends-on): Likewise.
5777         * modules/fchownat (Depends-on): Likewise.
5778         * modules/getcwd (Depends-on): Likewise.
5779         * modules/mkdirat (Depends-on): Likewise.
5780         * modules/mkfifoat (Depends-on): Likewise.
5781         * modules/readlinkat (Depends-on): Likewise.
5782         * modules/symlinkat (Depends-on): Likewise.
5783         * modules/dup2-tests (Depends-on): Likewise.
5784         * modules/fdutimensat-tests (Depends-on): Likewise.
5785         * modules/futimens-tests (Depends-on): Likewise.
5786
5787 2011-11-19  Bruno Haible  <bruno@clisp.org>
5788
5789         euidaccess: Update a comment.
5790         * lib/euidaccess.c: Update comment about platforms with faccessat.
5791
5792 2011-11-19  Bruno Haible  <bruno@clisp.org>
5793
5794         openat: Fix file list.
5795         * modules/openat (Files): Remove lib/at-func.c.
5796
5797 2011-11-19  Bruno Haible  <bruno@clisp.org>
5798
5799         fstatat: Simplify.
5800         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5801         gnulib should define rpl_fstatat, there is a
5802         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5803
5804 2011-11-19  Bruno Haible  <bruno@clisp.org>
5805
5806         Ensure 'inline' can be used in tests/test-utimens-common.h.
5807         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5808         * modules/futimens-tests (configure.ac): Likewise.
5809         * modules/utimens-tests (configure.ac): Likewise.
5810         * modules/utimensat-tests (configure.ac): Likewise.
5811
5812 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5813
5814         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5815         not hash_insert0.
5816         (hash_insert_if_absent): Doc fix.
5817
5818 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5819
5820         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5821
5822 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5823
5824         test-getcwd: disambiguate exit status
5825         * tests/test-getcwd.c (test_long_name): Return 0..7.
5826         (main): Exit with an unambiguous exit status.  The old
5827         code yielded a mysterious mixture of two failure codes.
5828
5829         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5830         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5831         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5832         rpl_fstatat or fstatat.  This should fix the other problem
5833         reported by Kai Habel in
5834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5835         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5837         and I reproduced it on a Solaris 8 host we still have in production.
5838
5839 2011-11-18  Jim Meyering  <meyering@redhat.com>
5840
5841         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5842         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5843         Add a sentence to the comment.
5844         (hash_insert0): New function that simply calls hash_insert_if_absent.
5845         * lib/hash.h (hash_insert_if_absent): Declare it.
5846         (hash_insert0): Add deprecation attribute.
5847         (_GL_ATTRIBUTE_DEPRECATED): Define.
5848         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5849         not hash_insert0.
5850         * NEWS: Mention it, even though it's not really an incompatible change.
5851
5852 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5853
5854         openat: avoid compilation failure due to lack of <errno.h> inclusion
5855         * lib/openat.c: Include <errno.h>.
5856
5857 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5858
5859         * modules/getcwd (Depends-on): Add fdopendir.
5860         This fixes one of the two problems reported by Kai Habel in
5861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5862
5863         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5864         stdalign problem reported by Ian Beckwith in
5865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5866         * modules/crypto/gc-arcfour (Depends-on):
5867         Depend conditionally on crypto/arcfour.
5868         * modules/crypto/gc-arctwo (Depends-on):
5869         Depend conditionally on crypto/arctwo.
5870         * modules/crypto/gc-des (Depends-on):
5871         Depend conditionally on crypto/des.
5872         * modules/crypto/gc-hmac-md5 (Depends-on):
5873         Depend conditionally on crypto/hmac-md5.
5874         * modules/crypto/gc-hmac-sha1 (Depends-on):
5875         Depend conditionally on crypto/hmac-sha1.
5876         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5877         * modules/crypto/gc-md4 (Depends-on):
5878         Depend conditionally on crypto/md4.
5879         * modules/crypto/gc-md5 (Depends-on):
5880         Depend conditionally on crypto/md5.
5881         * modules/crypto/gc-rijndael (Depends-on):
5882         Depend conditionally on crypto/rijndael.
5883         * modules/crypto/gc-sha1 (Depends-on):
5884         Depend conditionally on crypto/sha1.
5885         * modules/crypto/gc-arcfour:
5886         * modules/crypto/gc-arctwo:
5887         * modules/crypto/gc-des:
5888         * modules/crypto/gc-hmac-md5:
5889         * modules/crypto/gc-hmac-sha1:
5890         * modules/crypto/gc-md2:
5891         * modules/crypto/gc-md4:
5892         * modules/crypto/gc-md5:
5893         * modules/crypto/gc-rijndael:
5894         * modules/crypto/gc-sha1:
5895         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5896         now that the conditional dependencies do the work for us.
5897
5898 2011-11-17  Jim Meyering  <meyering@redhat.com>
5899
5900         tests: factor st_ctime-comparison out of two headers
5901         * tests/test-utimens-common.h (ctime_compare): Define.
5902         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5903         * tests/test-lutimens.h (test_lutimens): Likewise.
5904         * tests/test-utimens.h (test_utimens): Likewise.
5905
5906         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5907         Invoke the test program via an init.sh-using wrapper.
5908         * tests/test-getcwd.sh: New file.
5909         * modules/getcwd-tests (Files): Add it.
5910         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5911
5912 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5913
5914         gitlog-to-changelog: support multi-author commits.
5915         The FSF cares about keeping track of all authors of patches to its
5916         projects, but Git doesn't provide obvious support for multi-author
5917         changesets. Consensus seems to be forming around the use of extra
5918         Signed-off-by inspired lines in the log message formatted as
5919         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5920         multi-author commits between version control systems.
5921         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5922         log message and output in standard ChangeLog multi-author format.
5923         Reported by Peter Rosin <peda@lysator.liu.se>
5924
5925 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5926             Bruno Haible  <bruno@clisp.org>
5927
5928         Fix some modules' file list.
5929         * modules/fstatat (Files): Add m4/lstat.m4.
5930         * modules/openat (Files): Likewise.
5931         * modules/unlinkat (Files): Likewise.
5932
5933 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5934
5935         maint.mk: fix tight-scope.mk generation in VPATH builds.
5936         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5937         reference with $(srcdir) so that the file is found correctly even
5938         when running `make syntax-check' in a VPATH build.
5939
5940 2011-11-13  Bruno Haible  <bruno@clisp.org>
5941             Jim Meyering  <meyering@redhat.com>
5942
5943         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5944         * tests/init.sh (compare): Remove "No differences encountered" or
5945         synonymous output from the 'diff' program.
5946
5947 2011-11-13  Bruno Haible  <bruno@clisp.org>
5948
5949         Makefile: Tweak indentation.
5950         * Makefile: Use tab as first character in every line that contains rule
5951         commands.
5952
5953 2011-11-13  Bruno Haible  <bruno@clisp.org>
5954
5955         Syntax check for copyright statements.
5956         * check-copyright: New file.
5957         * Makefile (sc_check_copyright): New rule.
5958
5959 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5960
5961         * build-aux/git-version-gen: Add --prefix to configure the tag
5962         match string.
5963
5964 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5965
5966         * build-aux/git-version-gen: Add --help and --version.
5967
5968 2011-11-12  Jim Meyering  <meyering@redhat.com>
5969
5970         revamp the other test-exclude?.sh scripts to use init.sh, too
5971         * tests/test-exclude1.sh: Use init.sh.
5972         * tests/test-exclude2.sh: Likewise.
5973         * tests/test-exclude3.sh: Likewise.
5974         * tests/test-exclude4.sh: Likewise.
5975         * tests/test-exclude5.sh: Likewise.
5976         * tests/test-exclude6.sh: Likewise.
5977         * tests/test-exclude7.sh: Likewise.
5978         * tests/test-exclude8.sh: Likewise.
5979         * modules/exclude-tests (Files): List init.sh.
5980
5981         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5982         These shell scripts ignored failure of the binary test-exclude,
5983         so making the latter return 77 didn't cause them to be skipped.
5984         * tests/test-exclude5.sh: Exit with test-exclude's error status
5985         when that program fails.  Revamp to use init.sh.
5986         * tests/test-exclude2.sh: Likewise.
5987
5988         test-exclude: fix a typo
5989         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5990
5991 2011-11-11  Bruno Haible  <bruno@clisp.org>
5992
5993         obstack: Fix compilation error on MSVC 9.
5994         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5995
5996 2011-11-11  Jim Meyering  <meyering@redhat.com>
5997
5998         test-exclude: skip tests rather than failing on deficient systems
5999         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6000         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6001         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6002         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6003
6004 2011-11-10  Bruno Haible  <bruno@clisp.org>
6005
6006         ptsname_r test: Avoid gcc warning on glibc systems.
6007         * tests/test-ptsname_r.c (null_ptr): New function.
6008         (test_errors): Use it.
6009
6010 2011-11-10  Bruno Haible  <bruno@clisp.org>
6011
6012         ptsname_r: Avoid compilation error on OSF/1 5.1.
6013         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6015         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6016         function is not declared or incompatibly declared.
6017         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6018         * modules/ptsname_r (Depends-on, configure.ac): Update.
6019         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6020
6021 2011-11-10  Bruno Haible  <bruno@clisp.org>
6022
6023         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6024         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6025         When cross-compiling, guess yes on all platforms except AIX.
6026         Reported by Ludovic Courtès <ludo@gnu.org>.
6027
6028 2011-11-09  Bruno Haible  <bruno@clisp.org>
6029
6030         ptsname_r tests: Fix bugs.
6031         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6032         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6033
6034 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6035
6036         fstatat: work with cross-compilation
6037         Problem reported by Ludovic Courtès in
6038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6039         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6040         "cross-compiling" and assume the bug is present.  Replace
6041         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6042         an inverted sense, to be more conservative about our assumptions.
6043         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6044
6045 2011-11-09  Bruno Haible  <bruno@clisp.org>
6046
6047         Improve MODULES.html output.
6048         * modules/mkfifoat (Description): Use the word "function".
6049         * modules/readlinkat (Description): Likewise.
6050         * modules/symlinkat (Description): Likewise.
6051
6052 2011-11-09  Eric Blake  <eblake@redhat.com>
6053
6054         ptsname_r-tests: new test module
6055         * modules/ptsname_r-tests: New module.
6056         * tests/test-ptsname_r.c: New file.
6057
6058         ptsname_r: new module
6059         * modules/ptsname_r: New module.
6060         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6061         * lib/ptsname.c (__ptsname_r): Split...
6062         * lib/ptsname_r.c: ...into new file.
6063         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6064         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6065         * modules/stdlib (Makefile.am): Substitute witnesses.
6066         * lib/stdlib.in.h (ptsname_r): Declare it.
6067         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6068         * MODULES.html.sh (Misc): Likewise.
6069         * modules/ptsname (Depends-on): Alter dependency.
6070         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6071
6072 2011-11-09  Jim Meyering  <meyering@redhat.com>
6073
6074         announce-gen: be more concise when there's only one URL+tarball
6075         * build-aux/announce-gen (get_tool_versions): When you distribute
6076         only one type of tarball, combine the first two "Here are..."
6077         sections and make the key-checking grammar independent of
6078         how many tarballs there are.
6079
6080 2011-11-09  Eric Blake  <eblake@redhat.com>
6081
6082         openpty: provide a stub on mingw
6083         * lib/pty.in.h (includes): Provide forward declarations.
6084         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6085
6086         raise: fix mingw handling of SIGPIPE
6087         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6088
6089 2011-11-08  Bruno Haible  <bruno@clisp.org>
6090
6091         More conditional dependencies.
6092         * modules/faccessat (Depends-on): Add conditions.
6093         * modules/fchmodat (Depends-on): Likewise.
6094         * modules/fchownat (Depends-on): Likewise.
6095         * modules/fstatat (Depends-on): Likewise.
6096         * modules/mkfifoat (Depends-on): Likewise.
6097         * modules/readlinkat (Depends-on): Likewise.
6098         * modules/symlinkat (Depends-on): Likewise.
6099         * modules/unlinkat (Depends-on): Likewise.
6100         * modules/utimensat (Depends-on): Likewise.
6101         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6102         * modules/linkat (Depends-on): Refine the conditions.
6103         * modules/renameat (Depends-on): Likewise.
6104
6105 2011-11-08  Bruno Haible  <bruno@clisp.org>
6106
6107         faccessat: Move AC_LIBOBJ invocation to module description.
6108         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6109         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6110         invocation from here...
6111         * modules/faccessat (configure.ac): ... to here. Invoke
6112         gl_PREREQ_FACCESSAT.
6113
6114 2011-11-08  Bruno Haible  <bruno@clisp.org>
6115
6116         faccessat: Simplify autoconf macro.
6117         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6118         gl_FUNC_EUIDACCESS.
6119
6120 2011-11-08  Bruno Haible  <bruno@clisp.org>
6121
6122         renameat: Fix dependencies.
6123         * modules/renameat (Depends-on): Add stdbool.
6124
6125 2011-11-08  Bruno Haible  <bruno@clisp.org>
6126
6127         mkfifoat: Fix module description.
6128         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6129         not gl_UNISTD_MODULE_INDICATOR.
6130
6131 2011-11-08  Bruno Haible  <bruno@clisp.org>
6132
6133         fstatat: Remove unused dependency.
6134         * modules/fstatat (Depends-on): Remove fstat.
6135
6136 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6137
6138         GNUmakefile: behave when Makefile is missing.
6139         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6140
6141 2011-11-08  Bruno Haible  <bruno@clisp.org>
6142
6143         openat: Conditionalize dependencies.
6144         * lib/openat.c: Reduce the scope of some #includes.
6145         * modules/openat (Depends-on): Add conditions.
6146
6147 2011-11-07  Jim Meyering  <meyering@redhat.com>
6148
6149         maint.mk: extract GPG key ID without using a temporary file
6150         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6151         without using a temporary file.  Based on a suggestion from Werner Koch
6152         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6153
6154 2011-11-07  Eric Blake  <eblake@redhat.com>
6155
6156         grantpt: fix typo
6157         * lib/stdlib.in.h (grantpt): Check correct function.
6158
6159         maint.mk: silence new syntax check
6160         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6161
6162 2011-11-06  Bruno Haible  <bruno@clisp.org>
6163
6164         Doc about floating-point and math API.
6165         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6166         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6167
6168 2011-11-06  Bruno Haible  <bruno@clisp.org>
6169
6170         stdalign tests: Skip the test when compiled by Sun C.
6171         * tests/test-stdalign.c (main): Skip the test on Sun C.
6172
6173 2011-11-06  Bruno Haible  <bruno@clisp.org>
6174
6175         ansi-c++-opt: Complete the 2011-06-05 change.
6176         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6177         does not support namespaces, set the variable to "no", not to ":".
6178
6179 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6180
6181         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6182
6183 2011-11-06  Bruno Haible  <bruno@clisp.org>
6184
6185         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6186         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6187         (minus_zerol) [HP-UX]: New macro.
6188         (unary_minus) [HP-UX]: New function.
6189         (copysignl) [HP-UX]: Use unary_minus function.
6190
6191 2011-11-06  Bruno Haible  <bruno@clisp.org>
6192
6193         ldexp, ldexpf, ldexpl: Enhance tests.
6194         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6195         and tests/test-ldexpl.c.
6196         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6197         LDEXP, MIN_EXP, MAX_EXP): New macros.
6198         Include test-ldexp.h.
6199         (main): Just call test_function.
6200         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6201         infinity.h, nan.h.
6202         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6203         MAX_EXP): New macros.
6204         Include test-ldexp.h.
6205         (x, y): Remove variables.
6206         (main): Just call test_function.
6207         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6208         infinity.h, nan.h.
6209         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6210         MAX_EXP): New macros.
6211         Include test-ldexp.h.
6212         (x, y): Remove variables.
6213         (main): Just call test_function.
6214         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6215         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6216         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6217         (Depends-on): Add isnand-nolibm, signbit, float.
6218         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6219         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6220         (Depends-on): Add isnanf-nolibm, signbit, float.
6221
6222 2011-11-06  Bruno Haible  <bruno@clisp.org>
6223
6224         math tests: Cosmetics.
6225         * tests/test-math-c++.cc: Reorder declarations.
6226
6227 2011-11-05  Bruno Haible  <bruno@clisp.org>
6228
6229         fma*: Simplify test.
6230         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6231         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6232
6233         Tests for module 'fmal'.
6234         * modules/fmal-tests: New file.
6235         * tests/test-fmal1.c: New file.
6236         * tests/test-fmal2.c: New file.
6237
6238         New module 'fmal'.
6239         * lib/math.in.h (fmal): New declaration.
6240         * lib/fmal.c: New file.
6241         * m4/fmal.m4: New file.
6242         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6244         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6245         REPLACE_FMAL.
6246         * modules/fmal: New file.
6247         * doc/posix-functions/fmal.texi: Mention the new module and the various
6248         bugs.
6249
6250         Tests for module 'fmaf'.
6251         * modules/fmaf-tests: New file.
6252         * tests/test-fmaf1.c: New file.
6253         * tests/test-fmaf2.c: New file.
6254
6255         New module 'fmaf'.
6256         * lib/math.in.h (fmaf): New declaration.
6257         * lib/fmaf.c: New file.
6258         * m4/fmaf.m4: New file.
6259         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6261         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6262         REPLACE_FMAF.
6263         * modules/fmaf: New file.
6264         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6265         bugs.
6266
6267         Tests for module 'fma'.
6268         * modules/fma-tests: New file.
6269         * tests/test-fma1.c: New file.
6270         * tests/test-fma1.h: New file.
6271         * tests/test-fma2.c: New file.
6272         * tests/test-fma2.h: New file.
6273
6274         New module 'fma'.
6275         * lib/math.in.h (fma): New declaration.
6276         * lib/fma.c: New file.
6277         * m4/fma.m4: New file.
6278         * m4/fegetround.m4: New file.
6279         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6281         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6282         REPLACE_FMA.
6283         * modules/fma: New file.
6284         * doc/posix-functions/fma.texi: Mention the new module and the various
6285         bugs.
6286
6287         Extend gl_MATHFUNC.
6288         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6289         Support 'void' as argument type.
6290         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6291
6292 2011-11-05  Jim Meyering  <meyering@redhat.com>
6293
6294         maint.mk: also prohibit inclusion of dirent.h without use
6295         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6296
6297 2011-11-05  Bruno Haible  <bruno@clisp.org>
6298
6299         ldexpl tests: Avoid test failure on MSVC 9.
6300         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6301         value. Needed in order to enforce the conversion from a value greater
6302         than LDBL_MAX to Infinity.
6303
6304 2011-11-05  Bruno Haible  <bruno@clisp.org>
6305
6306         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6307         * modules/at-internal: New file, extracted from modules/openat.
6308         * modules/openat-h: New file.
6309         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6310         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6311         * modules/openat (Description): Add reference to POSIX function.
6312         (Files): Remove lib/openat.h, lib/openat-proc.c.
6313         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6314         intprops, unistd.
6315         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6316         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6317         gl_FCNTL_MODULE_INDICATOR.
6318         (Include): Remove unistd.h, openat.h.
6319         * modules/areadlinkat (Files): Add lib/at-func.c.
6320         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6321         openat-die, openat-h, save-cwd.
6322         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6323         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6324         openat-die, openat-h, save-cwd, unistd.
6325         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6326         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6327         openat-h, save-cwd. Remove fcntl-h, openat.
6328         * modules/fchmodat (Files): Remove lib/openat.h.
6329         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6330         openat, stdbool, unistd.
6331         * modules/fchownat (Files): Remove lib/openat.h.
6332         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6333         openat, stdbool, sys_stat.
6334         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6335         lib/openat-proc.c.
6336         (Depends-on): Add at-internal.
6337         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6338         * modules/fstatat (Files): Remove lib/openat.h.
6339         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6340         stdbool, unistd.
6341         * modules/fts (Depends-on): Add openat-h.
6342         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6343         openat.
6344         * modules/mkdirat (Files): Remove lib/openat.h.
6345         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6346         openat, stdbool, sys_stat.
6347         * modules/mkfifoat (Files): Add lib/at-func.c.
6348         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6349         openat-h, save-cwd. Remove fcntl-h, openat.
6350         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6351         * modules/readlinkat (Files): Add lib/at-func.c.
6352         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6353         openat-h, save-cwd. Remove fcntl-h, openat.
6354         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6355         openat.
6356         * modules/selinux-at (Files): Add lib/at-func.c.
6357         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6358         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6359         * modules/symlinkat (Files): Add lib/at-func.c.
6360         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6361         openat-h, save-cwd. Remove fcntl-h, openat.
6362         * modules/unlinkat (Files): Remove lib/openat.h.
6363         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6364         stdbool.
6365         * modules/utimensat (Files): Add lib/at-func.c.
6366         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6367         openat-die, openat-h, save-cwd.
6368         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6369         * modules/fdutimensat-tests (Depends-on): Add openat.
6370         * modules/fstatat-tests (Depends-on): Add openat-h.
6371         * modules/readlinkat-tests (Depends-on): Add openat.
6372         * modules/symlinkat-tests (Depends-on): Add openat.
6373
6374 2011-11-05  Bruno Haible  <bruno@clisp.org>
6375
6376         openat: Include <stdbool.h>.
6377         * lib/openat.c: Include <stdbool.h>.
6378
6379 2011-11-04  Bruno Haible  <bruno@clisp.org>
6380
6381         fchownat, renameat, unlinkat: Fix dependencies.
6382         * modules/fchownat (Depends-on): Add fstatat.
6383         * modules/renameat (Depends-on): Likewise.
6384         * modules/unlinkat (Depends-on): Likewise.
6385
6386 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6387
6388         openat: remove direct dependency on dirent
6389         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6390         and hasn't been needed ever since fdopendir was split into its own
6391         module on 2009-08-31.
6392         * modules/openat (Depends-on): Remove dirent.
6393
6394 2011-11-04  Bruno Haible  <bruno@clisp.org>
6395
6396         renameat: Optimize code size.
6397         * modules/renameat (configure.ac): Don't compile at-func2.c if
6398         REPLACE_RENAMEAT is 1.
6399
6400 2011-11-04  Bruno Haible  <bruno@clisp.org>
6401
6402         openat tests: Fix file list.
6403         * modules/openat-tests (Files): Add tests/test-open.h.
6404
6405 2011-11-04  Bruno Haible  <bruno@clisp.org>
6406
6407         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6408         * modules/fchmodat (Depends-on): Add openat-die.
6409         * modules/fchownat (Depends-on): Likewise.
6410         * modules/linkat (Depends-on): Likewise.
6411         * modules/renameat (Depends-on): Likewise.
6412         * modules/openat (Depends-on): Add dirent.
6413
6414 2011-11-04  Jim Meyering  <meyering@redhat.com>
6415
6416         at-func*.c: fix comments
6417         * lib/at-func2.c: Correct/improve first-line comment.
6418         * lib/at-func.c: Correct grammar in first-line comment.
6419
6420 2011-11-04  Bruno Haible  <bruno@clisp.org>
6421
6422         New module 'mkdirat', split off from module 'openat'.
6423         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6424         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6425         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6426         * modules/mkdirat: New file, extracted from modules/openat.
6427         * modules/openat (Files): Remove lib/mkdirat.c.
6428         (Depends-on): Remove mkdir.
6429         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6430         (Include): Remove <sys/stat.h>.
6431         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6432         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6433         tests/test-mkdir.h.
6434         (Depends-on): Remove ignore-value.
6435         (Makefile.am): Remove rules for test-mkdirat.
6436         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6437         of module 'openat'.
6438         * NEWS: Mention the change.
6439
6440 2011-11-04  Bruno Haible  <bruno@clisp.org>
6441
6442         closedir: Avoid warning on mingw.
6443         * lib/closedir.c: Include <unistd.h>.
6444
6445 2011-11-04  Bruno Haible  <bruno@clisp.org>
6446
6447         New module 'fstatat', split off from module 'openat'.
6448         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6449         defined.
6450         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6451         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6452         gl_FUNC_FSTATAT.
6453         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6454         * modules/fstatat: New file, extracted from modules/openat.
6455         * modules/openat (Files): Remove lib/fstatat.c.
6456         (Depends-on): Remove lstat.
6457         (configure.ac): Remove AC_LIBOBJ of fstatat.
6458         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6459         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6460         tests/test-lstat.h, tests/test-stat.h.
6461         (Depends-on): Remove getcwd-lgpl.
6462         (Makefile.am): Remove rules for test-fstatat.
6463         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6464         of module 'openat'.
6465         * NEWS: Mention the change.
6466         * modules/getcwd (Depends-on): Add fstatat.
6467         * modules/linkat (Depends-on): Likewise.
6468         * modules/mkfifoat-tests (Depends-on): Likewise.
6469         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6470
6471 2011-11-03  Bruno Haible  <bruno@clisp.org>
6472
6473         New module 'unlinkat', split off from module 'openat'.
6474         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6475         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6476         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6477         * modules/unlinkat: New file, extracted from modules/openat. Correct
6478         the dependency conditions.
6479         * modules/openat (Files): Remove lib/unlinkat.c.
6480         (Depends-on): Remove rmdir, unlink.
6481         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6482         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6483         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6484         tests/test-rmdir.h, tests/test-unlink.h.
6485         (Depends-on): Remove unlinkdir.
6486         (Makefile.am): Remove rules for test-unlinkat.
6487         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6488         of module 'openat'.
6489         * NEWS: Mention the change.
6490         * modules/linkat-tests (Depends-on): Add unlinkat.
6491         * modules/mkfifoat-tests (Depends-on): Likewise.
6492         * modules/readlinkat-tests (Depends-on): Likewise.
6493
6494 2011-11-02  Bruno Haible  <bruno@clisp.org>
6495
6496         New module 'fchmodat', split off from module 'openat'.
6497         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6498         defined.
6499         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6500         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6501         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6502         * modules/fchmodat: New file, extracted from modules/openat.
6503         * modules/openat (Files): Remove lib/fchmodat.c.
6504         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6505         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6506         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6507         (Makefile.am): Remove rules for test-fchmodat.
6508         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6509         of module 'openat'.
6510         * NEWS: Mention the change.
6511
6512 2011-11-02  Jim Meyering  <meyering@redhat.com>
6513
6514         putenv: indent #definition of "environ" to placate cppi
6515         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6516
6517         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6518         Git logs are often treated as immutable, because editing them
6519         changes the SHA1 checksums of all descendants.  Thus, errors in
6520         git logs tend to stay there forever.  However, when we generate
6521         a ChangeLog file -- typically for distribution -- from that git log,
6522         we can actually make corrections in the generated file.  The key
6523         lies in recording in machine-readable/applicable form the desired
6524         corrections.  See --help for description and an example.
6525         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6526         (usage): Describe it; alphabetize option descriptions.
6527         (main): Honor the new option, carefully.
6528
6529 2011-11-01  Jim Meyering  <meyering@redhat.com>
6530
6531         gitlog-to-changelog: avoid an infloop
6532         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6533         that ends up being empty.
6534
6535 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6536
6537         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6538         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6539         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6540         contains (possibly-quoted) backslashes.  This should avoid
6541         all-too-common shell bugs if COMPLICATED contains backslashes in
6542         the "wrong" places.  Reported by David Evans in
6543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6544         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6545         because we want ASCII ranges.  Is there some reason we don't use
6546         the C locale everywhere in this script?
6547         (func_module, top level): Avoid unwanted pathname expansion when
6548         $repo_url_prefix or $repo_url_suffix_repl contain shell
6549         metacharacters like '?' and '*'.
6550
6551 2011-11-01  Bruno Haible  <bruno@clisp.org>
6552
6553         fchownat: Improve description.
6554         * modules/fchownat (Description): Add link to function.
6555
6556 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6557
6558         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6559         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6561         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6562
6563 2011-11-01  Bruno Haible  <bruno@clisp.org>
6564
6565         alignof: Avoid collision with stdalign module.
6566         * lib/alignof.h (alignof): Remove macro.
6567         * NEWS: Mention the change.
6568         Reported by Paul Eggert.
6569
6570 2011-11-01  Bruno Haible  <bruno@clisp.org>
6571
6572         New module 'fchownat', split off from module 'openat'.
6573         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6574         defined.
6575         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6576         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6577         invoke gl_FUNC_FCHOWNAT.
6578         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6579         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6580         * modules/fchownat: New file, extracted from modules/openat.
6581         * modules/openat (Files): Remove lib/fchownat.c.
6582         (Depends-on): Remove lchown.
6583         (configure.ac): Remove AC_LIBOBJ of fchownat.
6584         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6585         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6586         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6587         (Depends-on): Remove mgetgroups, usleep, stat-time.
6588         (configure.ac): Remove test for getegid.
6589         (Makefile.am): Remove rules for test-fchownat.
6590         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6591         of module 'openat'.
6592         * NEWS: Mention the change.
6593
6594 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6595
6596         stdalign: port better to MSVC and to Sun C 5.11
6597         This fixes some of the problems reported by Bruno Haible in
6598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6599         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6600         shortcomings of MSVC and of Sun C 5.11.
6601         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6602         around __declspec arg.
6603         * modules/stdalign-tests (Files): Add tests/macros.h.
6604         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6605         Include macros.h, for ASSERT.
6606         (DECLARE_ALIGNED): Remove.
6607         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6608         to catch bug), and to 1 if not (simplifies the rest of the code).
6609         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6610         (CHECK_AUTO): Remove.
6611         (CHECK_ALIGNED): Check only the alignment of the static vars,
6612         since auto var alignment isn't supported by Sun C 5.11.
6613         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6614         ASSERT failures are easier to diagnose.
6615
6616 2011-10-31  Bruno Haible  <bruno@clisp.org>
6617
6618         doc about some IRIX 5.3 problems.
6619         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6620         on IRIX 5.3.
6621         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6622         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6623         5.3.
6624         * doc/posix-functions/grantpt.texi: Likewise.
6625         * doc/posix-functions/unlockpt.texi: Likewise.
6626         * doc/posix-functions/lgamma.texi: Likewise.
6627         * doc/posix-functions/nextafter.texi: Likewise.
6628         * doc/posix-functions/remainder.texi: Likewise.
6629         * doc/posix-functions/select.texi: Mention misplaced declaration on
6630         IRIX 5.3.
6631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6632
6633 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6634
6635         gitlog-to-changelog: fix git-log invocation.
6636         git-log mishandles date strings before 1970-01-01 UTC, and there is
6637         no use to specify --since=1970-01-01 by default anyway.
6638         * build-aux/gitlog-to-changelog: By default, when no --since option
6639         was given, do not specify explicit --since option to git-log.
6640
6641 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6642
6643         gitlog-to-changelog: new option --append-dot.
6644         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6645         first non-blank line of each commit message terminated with a dot.
6646
6647 2011-10-30  Bruno Haible  <bruno@clisp.org>
6648
6649         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6650         * lib/ffsl.h: Include <config.h>.
6651         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6652
6653 2011-10-30  Jim Meyering  <meyering@redhat.com>
6654
6655         GNUmakefile: reenable "make syntax-check" for most projects
6656         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6657         build-aux variable", "syntax-check" would do nothing but succeed with
6658         the "No version control files detected..." diagnostic (unless you
6659         happened to override _build-aux via cfg.mk).
6660         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6661         to precede inclusion of maint.mk.  Otherwise, these variables would
6662         be used undefined in any project that does not override the default.
6663
6664 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6665
6666         gitlog-to-changelog: treat a message with only blank lines as empty.
6667         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6668         trailing blank lines before the code that issues a warning about an
6669         empty commit message.
6670
6671 2011-10-30  Jim Meyering  <meyering@redhat.com>
6672
6673         test-parse-datetime.c: avoid new DST-related false positive test failure
6674         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6675         based on the time/date we'll convert, not the current time.
6676         Otherwise, the moment we cross a DST boundary like today's in
6677         Europe, (CEST to CET), that offset ends up being one hour off.
6678
6679 2011-10-27  Bruno Haible  <bruno@clisp.org>
6680
6681         fstat: Tweak documentation.
6682         * modules/fstat (Description): More precise description.
6683
6684 2011-10-27  Bruno Haible  <bruno@clisp.org>
6685
6686         Update documentation regarding 'largefile' module.
6687         * doc/posix-functions/fstat.texi: Tweak wording.
6688         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6689         problems with huge directories and/or small ino_t types.
6690         * doc/posix-functions/readdir.texi: Likewise.
6691         * doc/posix-functions/rewinddir.texi: Likewise.
6692
6693 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6694
6695         maint.mk: don't maintain a second build-aux variable.
6696         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6697         depends on GNUmakefile, which already maintains a cfg.mk
6698         overridable $(_build-aux) for projects with a non-standard
6699         build-aux directory location, although without the $(srcdir)
6700         prefix.  Use that variable consistently instead of introducing a
6701         second one.  Adjust all call sites.
6702
6703 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6704
6705         Add stdalign module and use it in other modules.
6706         This is based on a previous proposal by Bruno Haible
6707         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6708
6709         stdalign: new module
6710         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6711         * modules/stdalign: New files.
6712         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6713         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6714
6715         stdalign-tests: new module
6716         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6717
6718         argp: use stdalign
6719         * lib/argp-parse.c: Include <stdalign.h>.
6720         (alignof): Remove.
6721         * modules/argp (Depends-on): Add stdalign.
6722
6723         crypto libraries: use stdalign
6724         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6725         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6726         Do not include <stdlib.h> twice, in md4.c.
6727         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6728         because we are accessing a pointer's bit-pattern, not a size.
6729         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6730         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6731         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6732         * modules/crypto/sha512: Likewise.
6733
6734         sys_socket: use stdalign, not alignof
6735         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6736         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6737
6738 2011-10-27  Bruno Haible  <bruno@clisp.org>
6739
6740         raise test: Avoid a test failure on Linux/MIPS.
6741         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6742         because 99 is a valid signal on Linux/MIPS.
6743
6744 2011-10-27  Bruno Haible  <bruno@clisp.org>
6745
6746         nonblocking tests: Fix test failure on Linux/MIPS.
6747         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6748         Set to 270000.
6749
6750 2011-10-27  Bruno Haible  <bruno@clisp.org>
6751
6752         utimensat: Work around problem on Linux/hppa.
6753         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6754         values.
6755         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6756
6757 2011-10-25  Jim Meyering  <meyering@redhat.com>
6758
6759         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6760         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6761         after symbols like NULL, size_t, etc.
6762         Reported by Alfred M. Szmidt.
6763
6764         maint.mk: exempt ENODATA from a syntax-check rule
6765         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6766         from the sc_prohibit_always-defined_macros syntax-check rule.
6767         Add a comment.  See this for more details:
6768         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6769
6770 2011-10-23  Jim Meyering  <meyering@redhat.com>
6771
6772         fts: close parent dir FD before returning from post-traversal fts_read
6773         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6774         unlink A, even though an FD open on A remained.  This is suboptimal
6775         (holding a file descriptor open longer than needed), but otherwise not
6776         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6777         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6778         that represents a real problem: it causes the removal of A to fail
6779         with e.g., "rm: cannot remove `A': Device or resource busy"
6780
6781         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6782         directory file descriptors.  After completing the final, FTS_DP,
6783         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6784         cache, but then proceeded to add a new FD to it via the subsequent
6785         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6786         final file descriptor would be closed only via fts_close's call to
6787         fd_ring_clear.  Now, it is usually closed earlier, via the final
6788         FTS_DP-returning fts_read call.
6789         * lib/fts.c (restore_initial_cwd): New function, converted from
6790         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6791         Update callers.
6792         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6793         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6794
6795 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6796             Bruno Haible  <bruno@clisp.org>
6797             Jim Meyering  <jim@meyering.net>
6798
6799         readme-release: improve safety of release prep instructions.
6800         * README-release: Don't git pull all branches when only master
6801         is needed for the release process.
6802         Run make maintainer-clean before changing trees and merging.
6803         Don't try to run ./configure right after git pull in case files
6804         that influence the bootstrap process have changed, move the
6805         ./configure step to after running ./bootstrap.
6806         Don't bootstrap "one last time"... it's the first time!
6807
6808 2011-10-22  Bruno Haible  <bruno@clisp.org>
6809
6810         errno, strerror-override: Support for MSVC 10.
6811         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6812         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6813         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6814         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6815         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6816         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6817         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6818         Assign values compatible with MSVC 10.
6819         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6820         New macros.
6821         (GNULIB_defined_EWINSOCK): New macro.
6822         * lib/strerror-override.c (strerror_override): Update accordingly.
6823         * lib/strerror-override.h: Likewise.
6824         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6825         longer equal to the corresponding errno value.
6826         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6827
6828 2011-10-22  Bruno Haible  <bruno@clisp.org>
6829
6830         perror: Recognize when test program crashes.
6831         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6832         strerror, set gl_cv_func_perror_works to no.
6833         Reported by Daniel Richard G. <skunk@iskunk.org>.
6834
6835         perror: Fix indentation.
6836         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6837
6838 2011-10-22  Bruno Haible  <bruno@clisp.org>
6839
6840         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6841         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6842         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6843         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6844         functions, not as a macro.
6845         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6846         macros.
6847         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6848         absence of macro.
6849         Suggested by Eric Blake.
6850         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6851
6852 2011-10-21  Bruno Haible  <bruno@clisp.org>
6853
6854         relocatable-prog-wrapper: Don't leave object files behind.
6855         * build-aux/install-reloc: Re-synchronize list of .o files to be
6856         removed with list of compilation units.
6857
6858 2011-10-20  Bruno Haible  <bruno@clisp.org>
6859
6860         openpty, posix_openpt: Remove code duplication.
6861         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6862         * lib/openpty.c: Include <stdlib.h>.
6863         (openpty): Use posix_openpt on all platforms except IRIX.
6864         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6865
6866 2011-10-20  Bruno Haible  <bruno@clisp.org>
6867
6868         unlockpt: Detect invalid argument.
6869         * lib/unlockpt.c: Include <fcntl.h>.
6870         (unlockpt): Check whether fd is valid, using fcntl().
6871         * modules/unlockpt (Depends-on): Add fcntl-h.
6872
6873 2011-10-20  Bruno Haible  <bruno@clisp.org>
6874
6875         openpty: Avoid compilation error on AIX 6.1.
6876         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6877
6878 2011-10-20  Bruno Haible  <bruno@clisp.org>
6879
6880         posix_openpt: Support for OpenBSD.
6881         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6882         (posix_openpt) [OpenBSD]: New code.
6883         * lib/grantpt.c: Include <fcntl.h>.
6884         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6885         * modules/grantpt (Depends-on): Add fcntl-h.
6886
6887 2011-10-20  Bruno Haible  <bruno@clisp.org>
6888
6889         posix_openpt test: Coding style.
6890         * tests/test-posix_openpt.c: Use GNU coding style.
6891
6892 2011-10-20  Bruno Haible  <bruno@clisp.org>
6893
6894         grantpt: Support --avoid=pt_chown.
6895         * modules/grantpt (Files): Add lib/pty-private.h.
6896
6897 2011-10-20  Bruno Haible  <bruno@clisp.org>
6898
6899         posix_openpt: Fix autoconf macro.
6900         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6901         unneeded check for _getpty.
6902
6903 2011-10-20  Bruno Haible  <bruno@clisp.org>
6904
6905         openpty: Update comments.
6906         * lib/openpty.c: Add comments about Minix.
6907
6908 2011-10-19  Eric Blake  <eblake@redhat.com>
6909
6910         openpty: relax license
6911         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6912
6913         pt_chown: use configmake to simplify build
6914         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6915
6916         ptsname and others: relax license
6917         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6918         * modules/unlockpt (License): Likewise.
6919         * modules/pt_chown (License): Likewise.
6920         * modules/ptsname (License): Likewise.
6921         * modules/ttyname_r (License): Likewise.
6922
6923 2011-10-19  Jim Meyering  <meyering@redhat.com>
6924
6925         posix_openpt: remove spurious #endif
6926         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6927
6928 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6929
6930         maint.mk: Respect $(build_aux) in web-manual rule.
6931         * top/maint.mk (web-manual): Find gen-announce script in user's
6932         $(build_aux) directory instead of hard-coding 'build-aux'.
6933
6934 2011-10-19  Bruno Haible  <bruno@clisp.org>
6935
6936         posix_openpt: Fix compilation error.
6937         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6938         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6939         Mention the openpty module as an alternative.
6940
6941 2011-10-19  Bruno Haible  <bruno@clisp.org>
6942
6943         Support for old NeXTstep 3.3 frexp().
6944         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6945         execution time of the test to 5 seconds.
6946         Reported by Daniel Richard G. <skunk@iskunk.org>.
6947
6948 2011-10-19  Bruno Haible  <bruno@clisp.org>
6949
6950         Support for old NeXTstep 3.3 sed.
6951         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6952         part, use /.../, not \|...|. Escape periods in the header file name.
6953         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6954         Reported by Daniel Richard G. <skunk@iskunk.org>.
6955
6956 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6957
6958         Support for old NeXTstep 3.3 gcc.
6959         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6960         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6961         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6962         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6963         * lib/regex.h (_Restrict_arr_): Likewise.
6964         * lib/regex_internal.h (re_token_t): Likewise.
6965         * lib/regexec.c (check_node_accept_bytes): Likewise.
6966         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6967
6968 2011-10-18  Eric Blake  <eblake@redhat.com>
6969
6970         posix_openpt: new module
6971         * modules/posix_openpt: New module.
6972         * m4/posix_openpt.m4: New file.
6973         * lib/posix_openpt.c: Likewise.
6974         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6975         (gl_STDLIB_H_DEFAULTS): Set defaults.
6976         * modules/stdlib (Makefile.am): Substitute macros.
6977         * lib/stdlib.in.h (posix_openpt): Declare.
6978         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6979         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6980         * modules/posix_openpt-tests: New test module.
6981         * tests/test-posix_openpt.c: New test.
6982
6983 2011-10-15  Bruno Haible  <bruno@clisp.org>
6984
6985         xstrtoll: Fix compilation failure.
6986         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6987         from lib/strtol.c.
6988         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6989         some platforms.
6990         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6991
6992 2011-10-15  Bruno Haible  <bruno@clisp.org>
6993
6994         vasnprintf: Optimize bit search operation.
6995         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6997         gl_DOUBLE_EXPONENT_LOCATION.
6998         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6999         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7000         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7001         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7002         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7003         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7004         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7005         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7006         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7007
7008 2011-10-15  Bruno Haible  <bruno@clisp.org>
7009
7010         vasnprintf: Fix comments.
7011         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7012
7013 2011-10-14  Bruno Haible  <bruno@clisp.org>
7014
7015         Tests for module 'integer_length_ll'.
7016         * modules/integer_length_ll-tests: New file.
7017         * tests/test-integer_length_ll.c: New file.
7018
7019         New module 'integer_length_ll'.
7020         * lib/integer_length_ll.c: New file.
7021         * modules/integer_length_ll: New file.
7022
7023 2011-10-14  Bruno Haible  <bruno@clisp.org>
7024
7025         Tests for module 'integer_length_l'.
7026         * modules/integer_length_l-tests: New file.
7027         * tests/test-integer_length_l.c: New file.
7028
7029         New module 'integer_length_l'.
7030         * lib/integer_length_l.c: New file.
7031         * modules/integer_length_l: New file.
7032
7033 2011-10-14  Bruno Haible  <bruno@clisp.org>
7034
7035         Tests for module 'integer_length'.
7036         * modules/integer_length-tests: New file.
7037         * tests/test-integer_length.c: New file.
7038
7039         New module 'integer_length'.
7040         * lib/integer_length.h: New file.
7041         * lib/integer_length.c: New file.
7042         * modules/integer_length: New file.
7043
7044 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7045
7046         popen: Fix dependency conditions.
7047         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7048
7049 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7050
7051         perror: Fix autoconf test.
7052         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7053         <stdlib.h> and <string.h>.
7054
7055 2011-10-14  Bruno Haible  <bruno@clisp.org>
7056
7057         ffsl: Optimize on 64-bit platforms.
7058         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7059         unrolling.
7060
7061 2011-10-13  Bruno Haible  <bruno@clisp.org>
7062
7063         ffsl: Optimize on 32-bit platforms.
7064         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7065         use ffs() without a loop.
7066
7067         ffsl, ffsll: Optimize for GCC.
7068         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7069         * lib/ffsl.c (GCC_BUILTIN): New macro.
7070         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7071
7072 2011-10-13  Bruno Haible  <bruno@clisp.org>
7073
7074         ffs, bcopy, memset: Support symbol renaming via config.h.
7075         * lib/ffs.c: Include <config.h>.
7076         * lib/bcopy.c: Likewise.
7077         * lib/memset.c: Likewise.
7078
7079 2011-10-10  Bruno Haible  <bruno@clisp.org>
7080
7081         atanl: Simplify for platforms where 'long double' == 'double'.
7082         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7083         alternative implementation.
7084         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7085         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7086         * modules/atanl (Depends-on): Add atan. Update conditions.
7087
7088 2011-10-10  Bruno Haible  <bruno@clisp.org>
7089
7090         acosl: Simplify for platforms where 'long double' == 'double'.
7091         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7092         alternative implementation.
7093         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7094         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7095         * modules/acosl (Depends-on): Add acos. Update conditions.
7096
7097 2011-10-10  Bruno Haible  <bruno@clisp.org>
7098
7099         asinl: Simplify for platforms where 'long double' == 'double'.
7100         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7101         alternative implementation.
7102         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7103         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7104         * modules/asinl (Depends-on): Add asin. Update conditions.
7105
7106 2011-10-10  Bruno Haible  <bruno@clisp.org>
7107
7108         tanl: Simplify for platforms where 'long double' == 'double'.
7109         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7110         implementation.
7111         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7112         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7113         * modules/tanl (Depends-on): Add tan. Update conditions.
7114         (configure.ac): Don't compile trigl.c if
7115         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7116
7117 2011-10-10  Bruno Haible  <bruno@clisp.org>
7118
7119         cosl: Simplify for platforms where 'long double' == 'double'.
7120         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7121         implementation.
7122         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7123         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7124         * modules/cosl (Depends-on): Add cos. Update conditions.
7125         (configure.ac): Don't compile sincosl.c and trigl.c if
7126         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7127
7128 2011-10-10  Bruno Haible  <bruno@clisp.org>
7129
7130         sinl: Simplify for platforms where 'long double' == 'double'.
7131         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7132         implementation.
7133         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7134         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7135         * modules/sinl (Depends-on): Add sin. Update conditions.
7136         (configure.ac): Don't compile sincosl.c and trigl.c if
7137         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7138
7139 2011-10-10  Bruno Haible  <bruno@clisp.org>
7140
7141         logl: Simplify for platforms where 'long double' == 'double'.
7142         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7143         implementation.
7144         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7145         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7146         * modules/logl (Depends-on): Add log. Update conditions.
7147
7148 2011-10-10  Bruno Haible  <bruno@clisp.org>
7149
7150         expl: Simplify for platforms where 'long double' == 'double'.
7151         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7152         implementation.
7153         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7154         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7155         * modules/expl (Depends-on): Add exp. Update conditions.
7156
7157 2011-10-10  Bruno Haible  <bruno@clisp.org>
7158
7159         sqrtl: Simplify for platforms where 'long double' == 'double'.
7160         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7161         alternative implementation.
7162         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7163         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7164         * modules/sqrtl (Depends-on): Update conditions.
7165
7166 2011-10-10  Bruno Haible  <bruno@clisp.org>
7167
7168         ldexpl: Simplify for platforms where 'long double' == 'double'.
7169         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7170         alternative implementation.
7171         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7172         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7173         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7174
7175 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7176
7177         ffsll: set correct witness
7178         * modules/ffsll (configure.ac): Fix typo.
7179
7180 2011-10-10  Bruno Haible  <bruno@clisp.org>
7181
7182         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7183         * lib/printf-frexpl.c: Include <config.h>.
7184         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7185         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7186         second time.
7187         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7188         gl_LONG_DOUBLE_VS_DOUBLE.
7189         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7190         conditions.
7191
7192 2011-10-10  Bruno Haible  <bruno@clisp.org>
7193
7194         frexpl: Simplify for platforms where 'long double' == 'double'.
7195         * lib/frexpl.c: Include <config.h>.
7196         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7197         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7198         time.
7199         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7200         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7201         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7202         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7203         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7204         conditions.
7205
7206 2011-10-10  Jim Meyering  <meyering@redhat.com>
7207
7208         test-renameat: don't leave behind a temporary file
7209         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7210           ERROR: files left in build directory after distclean:
7211           ./gltests/test-renameat.too
7212           make[1]: *** [distcleancheck] Error 1
7213         Reported by Tom G. Christensen.
7214
7215 2011-10-09  Bruno Haible  <bruno@clisp.org>
7216
7217         rint: Determine RINT_LIBM correctly on AIX 7.
7218         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7219         directly, not only through a function pointer. Also accept an optional
7220         4th argument with extra code.
7221         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7222         rintf() call by gcc when optimizing.
7223
7224         mathfunc.m4: Refactor.
7225         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7226         m4 variable.
7227
7228 2011-10-09  Bruno Haible  <bruno@clisp.org>
7229
7230         rintl: Simplify for platforms where 'long double' == 'double'.
7231         * lib/rintl.c: Include <config.h>.
7232         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7233         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7234         time.
7235         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7236         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7237         * modules/rintl (Depends-on): Add rint. Update conditions.
7238
7239 2011-10-09  Bruno Haible  <bruno@clisp.org>
7240
7241         roundl: Simplify for platforms where 'long double' == 'double'.
7242         * lib/roundl.c: Include <config.h>.
7243         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7244         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7245         time.
7246         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7247         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7248         * modules/roundl (Depends-on): Add round. Update conditions.
7249
7250 2011-10-09  Bruno Haible  <bruno@clisp.org>
7251
7252         truncl: Simplify for platforms where 'long double' == 'double'.
7253         * lib/truncl.c: Include <config.h>.
7254         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7255         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7256         time.
7257         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7258         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7259         * modules/truncl (Depends-on): Add trunc. Update conditions.
7260
7261 2011-10-09  Bruno Haible  <bruno@clisp.org>
7262
7263         ceill: Simplify for platforms where 'long double' == 'double'.
7264         * lib/ceill.c: Include <config.h>.
7265         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7266         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7267         time.
7268         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7269         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7270         * modules/ceill (Depends-on): Add ceil. Update conditions.
7271
7272 2011-10-09  Bruno Haible  <bruno@clisp.org>
7273
7274         floorl: Simplify for platforms where 'long double' == 'double'.
7275         * lib/floorl.c: Include <config.h>.
7276         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7277         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7278         time.
7279         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7280         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7281         * modules/floorl (Depends-on): Add floor. Update conditions.
7282
7283 2011-10-09  Bruno Haible  <bruno@clisp.org>
7284
7285         rint: Fix ordering constraints.
7286         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7287         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7288         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7289
7290 2011-10-09  Bruno Haible  <bruno@clisp.org>
7291
7292         copysignl: Simplify for platforms where 'long double' == 'double'.
7293         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7294         alternative.
7295         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7296         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7297         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7298
7299 2011-10-09  Bruno Haible  <bruno@clisp.org>
7300
7301         Tests for module 'rintl'.
7302         * modules/rintl-tests: New file.
7303         * tests/test-rintl.c: New file.
7304
7305         New module 'rintl'.
7306         * lib/math.in.h (rintl): New declaration.
7307         * lib/rintl.c: New file.
7308         * m4/rintl.m4: New file.
7309         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7311         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7312         * modules/rintl: New file.
7313         * tests/test-math-c++.cc: Check the declaration of rintl.
7314         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7315         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7316         * doc/posix-functions/rintl.texi: Mention the new module.
7317
7318 2011-10-09  Bruno Haible  <bruno@clisp.org>
7319
7320         Tests for module 'rintf'.
7321         * modules/rintf-tests: New file.
7322         * tests/test-rintf.c: New file.
7323
7324         New module 'rintf'.
7325         * lib/math.in.h (rintf): New declaration.
7326         * lib/rintf.c: New file.
7327         * m4/rintf.m4: New file.
7328         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7330         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7331         * modules/rintf: New file.
7332         * tests/test-math-c++.cc: Check the declaration of rintf.
7333         * doc/posix-functions/rintf.texi: Mention the new module.
7334
7335 2011-10-09  Bruno Haible  <bruno@clisp.org>
7336
7337         rint: Support for MSVC.
7338         * lib/math.in.h (rint): New declaration.
7339         * lib/rint.c: New file.
7340         * m4/rint.m4: New file.
7341         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7343         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7344         * modules/rint (Description): Fix.
7345         (Files): Add lib/rint.c, m4/rint.m4.
7346         (Depends-on): Add math.
7347         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7348         gl_MATH_MODULE_INDICATOR.
7349         * tests/test-math-c++.cc: Check the declaration of rint.
7350         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7351         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7352         * doc/posix-functions/rint.texi: Mention the replacement provided by
7353         the module.
7354
7355         rint tests: More tests.
7356         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7357         minus-zero.h, infinity.h, nan.h.
7358         (main): Skip the test if the current rounding mode is not standard. Add
7359         tests for negative numbers, minus zero, infinity, NaN.
7360         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7361         tests/nan.h.
7362         (Depends-on): Add isnand-nolibm.
7363
7364 2011-10-09  Bruno Haible  <bruno@clisp.org>
7365
7366         Tests for module 'copysignl'.
7367         * modules/copysignl-tests: New file.
7368         * tests/test-copysignl.c: New file.
7369
7370         New module 'copysignl'.
7371         * lib/math.in.h (copysignl): New declaration.
7372         * lib/copysignl.c: New file.
7373         * m4/copysignl.m4: New file.
7374         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7376         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7377         HAVE_COPYSIGNL.
7378         * modules/copysignl: New file.
7379         * tests/test-math-c++.cc: Check the declaration of copysignl.
7380         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7381         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7382         * doc/posix-functions/copysignl.texi: Mention the new module.
7383
7384 2011-10-09  Bruno Haible  <bruno@clisp.org>
7385
7386         Tests for module 'copysignf'.
7387         * modules/copysignf-tests: New file.
7388         * tests/test-copysignf.c: New file.
7389
7390         New module 'copysignf'.
7391         * lib/math.in.h (copysignf): New declaration.
7392         * lib/copysignf.c: New file.
7393         * m4/copysignf.m4: New file.
7394         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7395         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7396         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7397         HAVE_COPYSIGNF.
7398         * modules/copysignf: New file.
7399         * tests/test-math-c++.cc: Check the declaration of copysignf.
7400         * doc/posix-functions/copysignf.texi: Mention the new module.
7401
7402 2011-10-09  Bruno Haible  <bruno@clisp.org>
7403
7404         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7405         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7406         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7407         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7408         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7409         gl_SIGNAL_H_DEFAULTS.
7410
7411 2011-10-09  Bruno Haible  <bruno@clisp.org>
7412
7413         poll: Make macro safer.
7414         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7415         ac_cv_header_poll_h is not set.
7416
7417 2011-10-09  Bruno Haible  <bruno@clisp.org>
7418
7419         copysign: Provide replacement.
7420         * lib/math.in.h (copysign): New declaration.
7421         * lib/copysign.c: New file.
7422         * m4/copysign.m4: New file.
7423         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7425         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7426         HAVE_COPYSIGN.
7427         * modules/copysign (Description): Clarify.
7428         (Files): Add lib/copysign.c, m4/copysign.m4.
7429         (Depends-on): Add math, signbit.
7430         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7431         gl_MATH_MODULE_INDICATOR.
7432         * tests/test-math-c++.cc: Check the declaration of copysign.
7433         * doc/posix-functions/copysign.texi: Mention the effects of the module
7434         on Minix and MSVC.
7435
7436 2011-10-09  Bruno Haible  <bruno@clisp.org>
7437
7438         isinf: Ensure macro on AIX 5.1.
7439         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7440         macro.
7441         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7442
7443 2011-10-09  Bruno Haible  <bruno@clisp.org>
7444
7445         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7446         * modules/snprintf-posix-tests (configure.ac): Require
7447         gl_LONG_DOUBLE_VS_DOUBLE.
7448         * modules/sprintf-posix-tests (configure.ac): Likewise.
7449         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7450         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7451         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7452         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7453         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7454         tests on platforms where 'long double' is the same as 'double'.
7455         * tests/test-sprintf-posix.h (test_function): Likewise.
7456         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7457         * tests/test-vasprintf-posix.c (test_function): Likewise.
7458
7459         *printf: Fix for platforms where 'long double' == 'double'.
7460         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7461         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7462         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7463         * modules/fprintf-posix (Files): Likewise.
7464         * modules/obstack-printf-posix (Files): Likewise.
7465         * modules/snprintf-posix (Files): Likewise.
7466         * modules/sprintf-posix (Files): Likewise.
7467         * modules/vasnprintf (Files): Likewise.
7468         * modules/vasnprintf-posix (Files): Likewise.
7469         * modules/vasprintf-posix (Files): Likewise.
7470         * modules/vdprintf-posix (Files): Likewise.
7471         * modules/vfprintf-posix (Files): Likewise.
7472         * modules/vsnprintf-posix (Files): Likewise.
7473         * modules/vsprintf-posix (Files): Likewise.
7474         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7475         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7476         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7477         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7478         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7479         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7480         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7481
7482         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7483         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7484         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7485         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7486         'long double'.
7487         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7488
7489         isinf: Fix for platforms where 'long double' == 'double'.
7490         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7491         Don't blindly assume 80-bit 'long double'.
7492
7493         isfinite: Fix for platforms where 'long double' == 'double'.
7494         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7495         Don't blindly assume 80-bit 'long double'.
7496
7497         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7498         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7499         * modules/isfinite-tests (configure.ac): Require
7500         gl_LONG_DOUBLE_VS_DOUBLE.
7501         * modules/isinf-tests (configure.ac): Likewise.
7502         * modules/isnan-tests (configure.ac): Likewise.
7503         * modules/isnanl-tests (configure.ac): Likewise.
7504         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7505         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7506         tests on platforms where 'long double' is the same as 'double'.
7507         * tests/test-isinf.c (test_isinfl): Likewise.
7508         * tests/test-isnan.c (test_long_double): Likewise.
7509         * tests/test-isnanl.h (main): Likewise.
7510
7511 2011-10-08  Bruno Haible  <bruno@clisp.org>
7512
7513         Tests for module 'tanhf'.
7514         * modules/tanhf-tests: New file.
7515         * tests/test-tanhf.c: New file.
7516
7517         New module 'tanhf'.
7518         * lib/math.in.h (tanhf): New declaration.
7519         * lib/tanhf.c: New file.
7520         * m4/tanhf.m4: New file.
7521         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7523         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7524         * modules/tanhf: New file.
7525         * tests/test-math-c++.cc: Check the declaration of tanhf.
7526         * doc/posix-functions/tanhf.texi: Mention the new module.
7527
7528         tanh: Use a .m4 file.
7529         * m4/tanh.m4: New file.
7530         * modules/tanh (Files): Add it.
7531         (configure.ac): Just invoke gl_FUNC_TANH.
7532
7533 2011-10-08  Bruno Haible  <bruno@clisp.org>
7534
7535         Tests for module 'coshf'.
7536         * modules/coshf-tests: New file.
7537         * tests/test-coshf.c: New file.
7538
7539         New module 'coshf'.
7540         * lib/math.in.h (coshf): New declaration.
7541         * lib/coshf.c: New file.
7542         * m4/coshf.m4: New file.
7543         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7545         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7546         * modules/coshf: New file.
7547         * tests/test-math-c++.cc: Check the declaration of coshf.
7548         * doc/posix-functions/coshf.texi: Mention the new module.
7549
7550         cosh: Use a .m4 file.
7551         * m4/cosh.m4: New file.
7552         * modules/cosh (Files): Add it.
7553         (configure.ac): Just invoke gl_FUNC_COSH.
7554
7555 2011-10-08  Bruno Haible  <bruno@clisp.org>
7556
7557         Tests for module 'sinhf'.
7558         * modules/sinhf-tests: New file.
7559         * tests/test-sinhf.c: New file.
7560
7561         New module 'sinhf'.
7562         * lib/math.in.h (sinhf): New declaration.
7563         * lib/sinhf.c: New file.
7564         * m4/sinhf.m4: New file.
7565         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7567         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7568         * modules/sinhf: New file.
7569         * tests/test-math-c++.cc: Check the declaration of sinhf.
7570         * doc/posix-functions/sinhf.texi: Mention the new module.
7571
7572         sinh: Use a .m4 file.
7573         * m4/sinh.m4: New file.
7574         * modules/sinh (Files): Add it.
7575         (configure.ac): Just invoke gl_FUNC_SINH.
7576
7577 2011-10-08  Bruno Haible  <bruno@clisp.org>
7578
7579         Tests for module 'atan2f'.
7580         * modules/atan2f-tests: New file.
7581         * tests/test-atan2f.c: New file.
7582
7583         New module 'atan2f'.
7584         * lib/math.in.h (atan2f): New declaration.
7585         * lib/atan2f.c: New file.
7586         * m4/atan2f.m4: New file.
7587         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7589         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7590         * modules/atan2f: New file.
7591         * tests/test-math-c++.cc: Check the declaration of atan2f.
7592         * doc/posix-functions/atan2f.texi: Mention the new module.
7593
7594         atan2: Use a .m4 file.
7595         * m4/atan2.m4: New file.
7596         * modules/atan2 (Files): Add it.
7597         (configure.ac): Just invoke gl_FUNC_ATAN2.
7598
7599 2011-10-08  Bruno Haible  <bruno@clisp.org>
7600
7601         Tests for module 'atanf'.
7602         * modules/atanf-tests: New file.
7603         * tests/test-atanf.c: New file.
7604
7605         New module 'atanf'.
7606         * lib/math.in.h (atanf): New declaration.
7607         * lib/atanf.c: New file.
7608         * m4/atanf.m4: New file.
7609         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7611         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7612         * modules/atanf: New file.
7613         * tests/test-math-c++.cc: Check the declaration of atanf.
7614         * doc/posix-functions/atanf.texi: Mention the new module.
7615
7616         atan: Use a .m4 file.
7617         * m4/atan.m4: New file.
7618         * modules/atan (Files): Add it.
7619         (configure.ac): Just invoke gl_FUNC_ATAN.
7620
7621 2011-10-08  Bruno Haible  <bruno@clisp.org>
7622
7623         Tests for module 'acosf'.
7624         * modules/acosf-tests: New file.
7625         * tests/test-acosf.c: New file.
7626
7627         New module 'acosf'.
7628         * lib/math.in.h (acosf): New declaration.
7629         * lib/acosf.c: New file.
7630         * m4/acosf.m4: New file.
7631         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7633         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7634         * modules/acosf: New file.
7635         * tests/test-math-c++.cc: Check the declaration of acosf.
7636         * doc/posix-functions/acosf.texi: Mention the new module.
7637
7638         acos: Use a .m4 file.
7639         * m4/acos.m4: New file.
7640         * modules/acos (Files): Add it.
7641         (configure.ac): Just invoke gl_FUNC_ACOS.
7642
7643 2011-10-08  Bruno Haible  <bruno@clisp.org>
7644
7645         Tests for module 'asinf'.
7646         * modules/asinf-tests: New file.
7647         * tests/test-asinf.c: New file.
7648
7649         New module 'asinf'.
7650         * lib/math.in.h (asinf): New declaration.
7651         * lib/asinf.c: New file.
7652         * m4/asinf.m4: New file.
7653         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7655         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7656         * modules/asinf: New file.
7657         * tests/test-math-c++.cc: Check the declaration of asinf.
7658         * doc/posix-functions/asinf.texi: Mention the new module.
7659
7660         asin: Use a .m4 file.
7661         * m4/asin.m4: New file.
7662         * modules/asin (Files): Add it.
7663         (configure.ac): Just invoke gl_FUNC_ASIN.
7664
7665 2011-10-08  Bruno Haible  <bruno@clisp.org>
7666
7667         Tests for module 'tanf'.
7668         * modules/tanf-tests: New file.
7669         * tests/test-tanf.c: New file.
7670
7671         New module 'tanf'.
7672         * lib/math.in.h (tanf): New declaration.
7673         * lib/tanf.c: New file.
7674         * m4/tanf.m4: New file.
7675         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7677         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7678         * modules/tanf: New file.
7679         * tests/test-math-c++.cc: Check the declaration of tanf.
7680         * doc/posix-functions/tanf.texi: Mention the new module.
7681
7682         tan: Use a .m4 file.
7683         * m4/tan.m4: New file.
7684         * modules/tan (Files): Add it.
7685         (configure.ac): Just invoke gl_FUNC_TAN.
7686
7687 2011-10-08  Bruno Haible  <bruno@clisp.org>
7688
7689         Tests for module 'cosf'.
7690         * modules/cosf-tests: New file.
7691         * tests/test-cosf.c: New file.
7692
7693         New module 'cosf'.
7694         * lib/math.in.h (cosf): New declaration.
7695         * lib/cosf.c: New file.
7696         * m4/cosf.m4: New file.
7697         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7699         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7700         * modules/cosf: New file.
7701         * tests/test-math-c++.cc: Check the declaration of cosf.
7702         * doc/posix-functions/cosf.texi: Mention the new module.
7703
7704         cos: Use a .m4 file.
7705         * m4/cos.m4: New file.
7706         * modules/cos (Files): Add it.
7707         (configure.ac): Just invoke gl_FUNC_COS.
7708
7709 2011-10-08  Bruno Haible  <bruno@clisp.org>
7710
7711         Tests for module 'sinf'.
7712         * modules/sinf-tests: New file.
7713         * tests/test-sinf.c: New file.
7714
7715         New module 'sinf'.
7716         * lib/math.in.h (sinf): New declaration.
7717         * lib/sinf.c: New file.
7718         * m4/sinf.m4: New file.
7719         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7721         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7722         * modules/sinf: New file.
7723         * tests/test-math-c++.cc: Check the declaration of sinf.
7724         * doc/posix-functions/sinf.texi: Mention the new module.
7725
7726         sin: Use a .m4 file.
7727         * m4/sin.m4: New file.
7728         * modules/sin (Files): Add it.
7729         (configure.ac): Just invoke gl_FUNC_SIN.
7730
7731 2011-10-08  Bruno Haible  <bruno@clisp.org>
7732
7733         Tests for module 'powf'.
7734         * modules/powf-tests: New file.
7735         * tests/test-powf.c: New file.
7736
7737         New module 'powf'.
7738         * lib/math.in.h (powf): New declaration.
7739         * lib/powf.c: New file.
7740         * m4/powf.m4: New file.
7741         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7743         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7744         * modules/powf: New file.
7745         * tests/test-math-c++.cc: Check the declaration of powf.
7746         * doc/posix-functions/powf.texi: Mention the new module.
7747
7748         pow: Use a .m4 file.
7749         * m4/pow.m4: New file.
7750         * modules/pow (Files): Add it.
7751         (configure.ac): Just invoke gl_FUNC_POW.
7752
7753 2011-10-08  Bruno Haible  <bruno@clisp.org>
7754
7755         Tests for module 'log10f'.
7756         * modules/log10f-tests: New file.
7757         * tests/test-log10f.c: New file.
7758
7759         New module 'log10f'.
7760         * lib/math.in.h (log10f): New declaration.
7761         * lib/log10f.c: New file.
7762         * m4/log10f.m4: New file.
7763         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7765         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7766         * modules/log10f: New file.
7767         * tests/test-math-c++.cc: Check the declaration of log10f.
7768         * doc/posix-functions/log10f.texi: Mention the new module.
7769
7770         log10: Use a .m4 file.
7771         * m4/log10.m4: New file.
7772         * modules/log10 (Files): Add it.
7773         (configure.ac): Just invoke gl_FUNC_LOG10.
7774
7775 2011-10-08  Bruno Haible  <bruno@clisp.org>
7776
7777         Tests for module 'logf'.
7778         * modules/logf-tests: New file.
7779         * tests/test-logf.c: New file.
7780
7781         New module 'logf'.
7782         * lib/math.in.h (logf): New declaration.
7783         * lib/logf.c: New file.
7784         * m4/logf.m4: New file.
7785         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7787         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7788         * modules/logf: New file.
7789         * tests/test-math-c++.cc: Check the declaration of logf.
7790         * doc/posix-functions/logf.texi: Mention the new module.
7791
7792         log: Use a .m4 file.
7793         * m4/log.m4: New file.
7794         * modules/log (Files): Add it.
7795         (configure.ac): Just invoke gl_FUNC_LOG.
7796
7797 2011-10-08  Bruno Haible  <bruno@clisp.org>
7798
7799         Tests for module 'expf'.
7800         * modules/expf-tests: New file.
7801         * tests/test-expf.c: New file.
7802
7803         New module 'expf'.
7804         * lib/math.in.h (expf): New declaration.
7805         * lib/expf.c: New file.
7806         * m4/expf.m4: New file.
7807         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7809         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7810         * modules/expf: New file.
7811         * tests/test-math-c++.cc: Check the declaration of expf.
7812         * doc/posix-functions/expf.texi: Mention the new module.
7813
7814         exp: Use a .m4 file.
7815         * m4/exp.m4: New file.
7816         * modules/exp (Files): Add it.
7817         (configure.ac): Just invoke gl_FUNC_EXP.
7818
7819 2011-10-08  Bruno Haible  <bruno@clisp.org>
7820
7821         Tests for module 'sqrtf'.
7822         * modules/sqrtf-tests: New file.
7823         * tests/test-sqrtf.c: New file.
7824
7825         New module 'sqrtf'.
7826         * lib/math.in.h (sqrtf): New declaration.
7827         * lib/sqrtf.c: New file.
7828         * m4/sqrtf.m4: New file.
7829         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7831         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7832         * modules/sqrtf: New file.
7833         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7834         * doc/posix-functions/sqrtf.texi: Mention the new module.
7835
7836 2011-10-08  Bruno Haible  <bruno@clisp.org>
7837
7838         Tests: Avoid link failures w.r.t. libintl.
7839         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7840         $(LIBINTL).
7841         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7842         $(LIBINTL).
7843         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7844         against $(LIBINTL).
7845         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7846         $(LIBINTL).
7847         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7848         $(LIBINTL).
7849         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7850
7851 2011-10-08  Bruno Haible  <bruno@clisp.org>
7852
7853         pow tests: Defeat compiler optimizations.
7854         * tests/test-pow.c (main): Assign arguments to x and y before use.
7855
7856 2011-10-08  Bruno Haible  <bruno@clisp.org>
7857
7858         gnulib-tool: Improve last commit.
7859         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7860         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7861         ignore dependencies that are not among the modules list.
7862
7863 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7864
7865         gnulib-tool: don't follow dependencies to avoided modules
7866         This fixes a bug that is related to the previous one.
7867         * gnulib-tool (func_modules_transitive_closure)
7868         (func_emit_autoconf_snippets):
7869         Check whether a dependency is acceptable before using it.
7870         (--extract-dependencies): Report an error if --avoid is also used,
7871         since this combination of options is not yet supported.
7872
7873         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7874         Problem reported by Peter Dyballa in
7875         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7876         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7877         when echoing "$condition".
7878
7879 2011-10-07  Bruno Haible  <bruno@clisp.org>
7880
7881         Fix documentation about math functions on MacOS X.
7882         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7883         MacOS X 10.5.
7884         * doc/posix-functions/fdim.texi: Likewise.
7885         * doc/posix-functions/feclearexcept.texi: Likewise.
7886         * doc/posix-functions/fegetenv.texi: Likewise.
7887         * doc/posix-functions/fegetround.texi: Likewise.
7888         * doc/posix-functions/feholdexcept.texi: Likewise.
7889         * doc/posix-functions/feraiseexcept.texi: Likewise.
7890         * doc/posix-functions/fesetenv.texi: Likewise.
7891         * doc/posix-functions/fesetround.texi: Likewise.
7892         * doc/posix-functions/fetestexcept.texi: Likewise.
7893         * doc/posix-functions/feupdateenv.texi: Likewise.
7894         * doc/posix-functions/fmax.texi: Likewise.
7895         * doc/posix-functions/fmin.texi: Likewise.
7896         * doc/posix-functions/log2.texi: Likewise.
7897         * doc/posix-functions/modff.texi: Likewise.
7898         * doc/posix-functions/nan.texi: Likewise.
7899         * doc/posix-functions/nanf.texi: Likewise.
7900         * doc/posix-functions/nextafterf.texi: Likewise.
7901         * doc/posix-functions/remquo.texi: Likewise.
7902
7903 2011-10-07  Bruno Haible  <bruno@clisp.org>
7904
7905         modff: Drop assumption about library that defines modff.
7906         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7907         AC_CHECK_FUNCS.
7908         * modules/modff (Files): Add m4/mathfunc.m4.
7909
7910 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7911
7912         raise tests: Avoid a GCC warning.
7913         * tests/test-raise.c (handler): Use _Noreturn.
7914
7915 2011-10-07  Bruno Haible  <bruno@clisp.org>
7916
7917         Tests for module 'ldexpf'.
7918         * modules/ldexpf-tests: New file.
7919         * tests/test-ldexpf.c: New file.
7920
7921         New module 'ldexpf'.
7922         * lib/math.in.h (ldexpf): New declaration.
7923         * lib/ldexpf.c: New file.
7924         * m4/ldexpf.m4: New file.
7925         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7927         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7928         * modules/ldexpf: New file.
7929         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7930         * doc/posix-functions/ldexpf.texi: Mention the new module.
7931
7932 2011-10-06  Bruno Haible  <bruno@clisp.org>
7933
7934         frexpf: Work around problems on IRIX and mingw.
7935         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7937         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7938         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7939         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7940         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7941         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7942
7943 2011-10-06  Bruno Haible  <bruno@clisp.org>
7944
7945         fabsf: Drop assumption about library that defines fabsf.
7946         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7947         AC_CHECK_FUNCS.
7948         * modules/fabsf (Files): Add m4/mathfunc.m4.
7949
7950 2011-10-06  Bruno Haible  <bruno@clisp.org>
7951
7952         frexpf: Drop assumption about library that defines frexpf.
7953         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7954         'int *', 'float *', 'long double *', 'float', 'long double'.
7955         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7956         AC_CHECK_FUNCS.
7957         * modules/frexpf (Files): Add m4/mathfunc.m4.
7958
7959         Tests for module 'frexpf'.
7960         * modules/frexpf-tests: New file.
7961         * tests/test-frexpf.c: New file.
7962
7963         New module 'frexpf'.
7964         * lib/math.in.h (frexpf): New declaration.
7965         * lib/frexpf.c: New file.
7966         * m4/frexpf.m4: New file.
7967         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7969         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7970         * modules/frexpf: New file.
7971         * tests/test-math-c++.cc: Check the declaration of frexpf.
7972         * doc/posix-functions/frexpf.texi: Mention the new module.
7973
7974 2011-10-06  Bruno Haible  <bruno@clisp.org>
7975
7976         math: Sort function declarations of math.in.h.
7977         * lib/math.in.h (frexp, logb): Move declarations.
7978
7979 2011-10-05  Bruno Haible  <bruno@clisp.org>
7980
7981         Tests for module 'modff'.
7982         * modules/modff-tests: New file.
7983         * tests/test-modff.c: New file.
7984
7985         New module 'modff'.
7986         * lib/math.in.h (modff): New declaration.
7987         * lib/modff.c: New file.
7988         * m4/modff.m4: New file.
7989         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7991         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7992         * modules/modff: New file.
7993         * tests/test-math-c++.cc: Check the declaration of modff.
7994         * doc/posix-functions/modff.texi: Mention the new module.
7995
7996         modf tests: Make test sharper.
7997         * tests/test-modf.c (main): Strengthen upper bound.
7998
7999         modf: Use a .m4 file.
8000         * m4/modf.m4: New file.
8001         * modules/modf (Files): Add it.
8002         (configure.ac): Just invoke gl_FUNC_MODF.
8003
8004 2011-10-05  Bruno Haible  <bruno@clisp.org>
8005
8006         Tests for module 'fmodf'.
8007         * modules/fmodf-tests: New file.
8008         * tests/test-fmodf.c: New file.
8009
8010         New module 'fmodf'.
8011         * lib/math.in.h (fmodf): New declaration.
8012         * lib/fmodf.c: New file.
8013         * m4/fmodf.m4: New file.
8014         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8016         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8017         * modules/fmodf: New file.
8018         * tests/test-math-c++.cc: Check the declaration of fmodf.
8019         * doc/posix-functions/fmodf.texi: Mention the new module.
8020
8021         fmod: Use a .m4 file.
8022         * m4/fmod.m4: New file.
8023         * modules/fmod (Files): Add it.
8024         (configure.ac): Just invoke gl_FUNC_FMOD.
8025
8026 2011-10-05  Bruno Haible  <bruno@clisp.org>
8027
8028         Tests for module 'fabsf'.
8029         * modules/fabsf-tests: New file.
8030         * tests/test-fabsf.c: New file.
8031
8032         New module 'fabsf'.
8033         * lib/math.in.h (fabsf): New declaration.
8034         * lib/fabsf.c: New file.
8035         * m4/fabsf.m4: New file.
8036         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8038         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8039         * modules/fabsf: New file.
8040         * tests/test-math-c++.cc: Check the declaration of fabsf.
8041         * doc/posix-functions/fabsf.texi: Mention the new module.
8042
8043         fabs: Use a .m4 file.
8044         * m4/fabs.m4: New file.
8045         * modules/fabs (Files): Add it.
8046         (configure.ac): Just invoke gl_FUNC_FABS.
8047
8048 2011-10-05  Jim Meyering  <meyering@redhat.com>
8049
8050         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8051         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8052         ls -lL regression introduced in coreutils-8.12, it does so at the
8053         cost of an additional stat call in the common case.  Besides, now
8054         that the kernel change that prompted commit 95f7c57f has been reverted
8055         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8056         we have no use for commit 95f7c57f, "file-has-acl: use
8057         acl_extended_file_nofollow if available".
8058
8059 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8060
8061         file-has-acl: revert unintended change in behavior of ls -L
8062         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8063         derived from...
8064         (file_has_acl): ...code here.  Call it.
8065         This problem was introduced with 2011-07-22 commit 95f7c57f,
8066         "file-has-acl: use acl_extended_file_nofollow if available".
8067         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8068
8069 2011-10-03  Bruno Haible  <bruno@clisp.org>
8070
8071         poll: Avoid link errors on MSVC.
8072         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8073         * modules/poll (Depends-on): Add sockets.
8074         (Link): New section.
8075         * NEWS: Mention the change.
8076         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8077         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8078         $(LIB_POLL) instead of $(LIBSOCKET).
8079
8080 2011-10-03  Bruno Haible  <bruno@clisp.org>
8081
8082         sys_select tests: Fix link error on MSVC 9.
8083         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8084         with $(LIB_SELECT) instead of $(LIBSOCKET).
8085
8086 2011-10-03  Bruno Haible  <bruno@clisp.org>
8087
8088         sys_select: Fix compilation error on mingw.
8089         * lib/sys_select.in.h: On native Windows, include <io.h>.
8090
8091 2011-10-03  Bruno Haible  <bruno@clisp.org>
8092
8093         wmemset: Support for MSVC.
8094         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8095         whether wmemset() exists.
8096
8097 2011-10-03  Bruno Haible  <bruno@clisp.org>
8098
8099         wmemmove: Support for MSVC.
8100         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8101         whether wmemmove() exists.
8102
8103 2011-10-03  Bruno Haible  <bruno@clisp.org>
8104
8105         wmemcpy: Support for MSVC.
8106         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8107         whether wmemcpy() exists.
8108
8109 2011-10-03  Bruno Haible  <bruno@clisp.org>
8110
8111         wmemcmp: Support for MSVC.
8112         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8113         whether wmemcmp() exists.
8114
8115 2011-10-03  Bruno Haible  <bruno@clisp.org>
8116
8117         wmemchr: Support for MSVC.
8118         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8119         whether wmemchr() exists.
8120
8121 2011-10-03  Bruno Haible  <bruno@clisp.org>
8122
8123         glthread/*, strsignal: Support for MSVC.
8124         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8125         including <winsock.h> on MSVC 9.
8126         * lib/glthread/lock.h: Likewise.
8127         * lib/glthread/thread.h: Likewise.
8128         * lib/glthread/tls.h: Likewise.
8129         * lib/glthread/yield.h: Likewise.
8130         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8131         if HAVE_UNISTD_H is false.
8132         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8133
8134 2011-10-03  Bruno Haible  <bruno@clisp.org>
8135
8136         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8137         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8138         Set to 100000.
8139
8140 2011-10-03  Bruno Haible  <bruno@clisp.org>
8141
8142         acl: Fix specification.
8143         * lib/file-has-acl.c (file_has_acl): Fix specification.
8144
8145 2011-10-03  Bruno Haible  <bruno@clisp.org>
8146
8147         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8148         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8149         (compute_curr_prefix, shared_library_fullname,
8150         find_shared_library_fullname, get_shared_library_fullname, relocate):
8151         Use it together with PIC && INSTALLDIR.
8152         Reported by <jojelino@gmail.com>
8153         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8154
8155 2011-10-01  Jim Meyering  <meyering@redhat.com>
8156
8157         maint.mk: adjust a release-related rule not to require use of gzip
8158         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8159         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8160         projects that build only .tar.xz files.  Also fix an erroneous test.
8161
8162         test-linkat: don't leave behind a temporary file
8163         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8164         Otherwise, coreutils' "make distcheck" would fail with this:
8165           Only in /c/cu/tests/torture/coreutils/test/\
8166             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8167           make[2]: *** [my-distcheck] Error 1
8168
8169         float, math: add omitted file
8170         * lib/itold.c: Add file, required for yesterday's float change.
8171
8172 2011-10-01  Bruno Haible  <bruno@clisp.org>
8173
8174         isinf: Fix for OpenBSD/x86.
8175         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8176         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8177         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8178
8179 2011-10-01  Bruno Haible  <bruno@clisp.org>
8180
8181         isfinite: Fix syntax error in configure test.
8182         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8183
8184         isfinite: Fix typo.
8185         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8186         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8187
8188 2011-10-01  Bruno Haible  <bruno@clisp.org>
8189
8190         nonblocking tests: Fix test failure on Linux/IA-64.
8191         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8192         Set to 270000.
8193
8194 2011-10-01  Bruno Haible  <bruno@clisp.org>
8195
8196         mkfifoat tests: Fix a test failure on mingw.
8197         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8198         with error ENOSYS.
8199
8200 2011-09-30  Bruno Haible  <bruno@clisp.org>
8201
8202         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8203         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8204         'long double'. Set REPLACE_ITOLD.
8205         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8206         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8207         * lib/itold.c: New file.
8208         * modules/float (Files): Add lib/itold.c.
8209         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8210         (Makefile.am): Substitute REPLACE_ITOLD.
8211         * modules/math (Depends-on): Add float.
8212         (Makefile.am): Substitute REPLACE_ITOLD.
8213         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8214         * doc/posix-headers/math.texi: Likewise.
8215         * doc/posix-functions/logl.texi: Likewise.
8216
8217 2011-09-30  Bruno Haible  <bruno@clisp.org>
8218
8219         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8220         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8221         Set to 140000.
8222
8223 2011-09-30  Bruno Haible  <bruno@clisp.org>
8224
8225         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8226         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8227         invocation, say "right after AC_PROG_CC_STDC", not "right after
8228         AC_PROG_CC".
8229         Reported by Gary V. Vaughan <gary@gnu.org>.
8230
8231 2011-09-30  Bruno Haible  <bruno@clisp.org>
8232
8233         Centralize C99 requirement.
8234         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8235         * modules/stdarg (configure.ac-early): Invoke it instead of
8236         AC_PROG_CC_STDC.
8237         Reported by Gary V. Vaughan and Paul Eggert.
8238
8239 2011-09-29  Bruno Haible  <bruno@clisp.org>
8240
8241         float: Fix LDBL_MAX value on Linux/PowerPC.
8242         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8243         on Linux/PowerPC.
8244         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8245         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8246         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8247         platform.
8248         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8249
8250 2011-09-29  Bruno Haible  <bruno@clisp.org>
8251
8252         doc: Improve doc about gl_EARLY.
8253         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8254         AC_PROG_CC_STDC invocation.
8255         Reported by Gary V. Vaughan <gary@gnu.org>.
8256
8257 2011-09-28  Bruno Haible  <bruno@clisp.org>
8258
8259         fgetc, fputc, fread, fwrite tests: Fix link error.
8260         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8261         on non-MSVC platforms.
8262         * tests/test-fputc.c (main): Likewise.
8263         * tests/test-fread.c (main): Likewise.
8264         * tests/test-fwrite.c (main): Likewise.
8265         Reported by Jim Meyering.
8266
8267 2011-09-27  Bruno Haible  <bruno@clisp.org>
8268
8269         fputc, fwrite tests: Avoid test failure on MSVC.
8270         * tests/test-fgetc.c: Include msvc-inval.h.
8271         (main): Invoke gl_msvc_inval_ensure_handler.
8272         * tests/test-fputc.c: Include msvc-inval.h.
8273         (main): Invoke gl_msvc_inval_ensure_handler.
8274         * tests/test-fread.c: Include msvc-inval.h.
8275         (main): Invoke gl_msvc_inval_ensure_handler.
8276         * tests/test-fwrite.c: Include msvc-inval.h.
8277         (main): Invoke gl_msvc_inval_ensure_handler.
8278         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8279         * modules/fputc-tests (Depends-on): Likewise.
8280         * modules/fread-tests (Depends-on): Likewise.
8281         * modules/fwrite-tests (Depends-on): Likewise.
8282
8283 2011-09-27  Bruno Haible  <bruno@clisp.org>
8284
8285         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8286         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8287         (raise): Remove older, duplicated declaration.
8288         (_gl_raise_SIGPIPE): New declaration.
8289         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8290         (rpl_raise): Remove function.
8291         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8292         a gnulib-defined SIGPIPE here.
8293         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8294         'sigprocmask' has detected missing signal-blocking and the module
8295         'sigpipe' is enabled.
8296         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8297
8298 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8299
8300         base64-tests: avoid memory leak
8301         * tests/test-base64.c (main): Plug memory leak.
8302
8303         base32: new module
8304         * modules/base32: New module.
8305         * lib/base32.c: New file.
8306         * lib/base32.h: Likewise.
8307         * m4/base32.m4: Likewise.
8308         * modules/base32-tests: New test.
8309         * tests/test-base32.c: Likewise.
8310         * MODULES.html.sh (Misc): Mention it.
8311
8312 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8313
8314         gnulib: use more-standard license notice wording
8315         * gnulib-tool (func_emit_copyright_notice): When emitting a
8316         license notice into a file, use the standard wording as suggested
8317         by the current information for GNU maintainers, except say "file"
8318         rather than "program".  The new wording gives a license version
8319         number, which addresses an issue raised by Glenn Morris in
8320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8321         * m4/onceonly.m4: Use that same wording here, too.
8322
8323         dup2: minor simplification
8324         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8325         as lib/dup2.c no longer uses 'inline'.
8326
8327 2011-09-25  Bruno Haible  <bruno@clisp.org>
8328
8329         strings: Fix compilation error on MSVC.
8330         * lib/strings.in.h: Include <stddef.h> for size_t.
8331
8332 2011-09-25  Bruno Haible  <bruno@clisp.org>
8333
8334         fflush et al.: Document limitation on MSVC.
8335         * doc/posix-functions/fflush.texi: Document possible crash in handling
8336         mode other than DEFAULT_HANDLING.
8337         * doc/posix-functions/fgetc.texi: Likewise.
8338         * doc/posix-functions/fputc.texi: Likewise.
8339         * doc/posix-functions/fread.texi: Likewise.
8340         * doc/posix-functions/fwrite.texi: Likewise.
8341
8342 2011-09-25  Bruno Haible  <bruno@clisp.org>
8343
8344         msvc-inval: Allow three invalid parameter handling modes.
8345         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8346         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8347         macros.
8348         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8349         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8350         SANE_LIBRARY_HANDLING as a no-op.
8351         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8352         <stdlib.h>.
8353         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8354
8355 2011-09-25  Bruno Haible  <bruno@clisp.org>
8356
8357         msvc-inval: Make handler multithread-safe.
8358         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8359         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8360         declarations.
8361         (gl_msvc_inval_current): New declaration.
8362         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8363         Operate on the structure returned by gl_msvc_inval_current().
8364         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8365         Remove varaiables.
8366         (tls_index, tls_initialized): New variables.
8367         (not_per_thread): New variable.
8368         (gl_msvc_inval_current): New function.
8369         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8370         returned by gl_msvc_inval_current().
8371
8372 2011-09-25  Bruno Haible  <bruno@clisp.org>
8373
8374         msvc-inval: Install handler globally.
8375         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8376         !_MSC_VER.
8377         (gl_msvc_invalid_parameter_handler): Remove declaration.
8378         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8379         declarations.
8380         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8381         Install the handler globally, don't uninstall it.
8382         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8383         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8384         currently valid, call RaiseException instead.
8385         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8386         for !_MSC_VER.
8387
8388 2011-09-25  Bruno Haible  <bruno@clisp.org>
8389
8390         strerror_r-posix: Fix for MSVC 9.
8391         * lib/strerror_r.c (local_snprintf): New function.
8392         (snprintf): Define to local_snprintf, not to _snprintf.
8393
8394 2011-09-25  Bruno Haible  <bruno@clisp.org>
8395
8396         ftruncate: Support for MSVC 9.
8397         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8398         (chsize_nothrow): New function.
8399         (chsize): Redefine as a macro.
8400         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8401         * modules/ftruncate (Depends-on): Add msvc-inval.
8402
8403 2011-09-25  Bruno Haible  <bruno@clisp.org>
8404
8405         New module 'fstat'.
8406         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8407         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8408         * lib/fchdir.c (rpl_fstat): Remove function.
8409         * m4/fstat.m4: New file.
8410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8412         declared.
8413         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8414         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8415         * modules/fstat: New file.
8416         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8417         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8418         is set.
8419         * doc/posix-functions/fstat.texi: Mention the new module and the
8420         problem on MSVC.
8421         * NEWS: Mention the change.
8422         * modules/acl (Depends-on): Add fstat.
8423         * modules/chdir-safer (Depends-on): Likewise.
8424         * modules/chown (Depends-on): Likewise.
8425         * modules/copy-file (Depends-on): Likewise.
8426         * modules/fchdir (Depends-on): Likewise.
8427         * modules/fdopendir (Depends-on): Likewise.
8428         * modules/fopen (Depends-on): Likewise.
8429         * modules/fts (Depends-on): Likewise.
8430         * modules/getcwd (Depends-on): Likewise.
8431         * modules/isapipe (Depends-on): Likewise.
8432         * modules/linkat (Depends-on): Likewise.
8433         * modules/lseek (Depends-on): Likewise.
8434         * modules/mkdir-p (Depends-on): Likewise.
8435         * modules/open (Depends-on): Likewise.
8436         * modules/openat (Depends-on): Likewise.
8437         * modules/read-file (Depends-on): Likewise.
8438         * modules/renameat (Depends-on): Likewise.
8439         * modules/utimens (Depends-on): Likewise.
8440
8441 2011-09-25  Bruno Haible  <bruno@clisp.org>
8442
8443         linkat: Fix compilation on MSVC 9.
8444         * lib/linkat.c: Don't include <stdint.h>.
8445
8446 2011-09-25  Bruno Haible  <bruno@clisp.org>
8447
8448         fclose: Support for MSVC 9.
8449         * lib/fclose.c: Include msvc-inval.h.
8450         (fclose_nothrow): New function.
8451         (rpl_fclose): Use it.
8452         * modules/fclose (Depends-on): Add msvc-inval.
8453         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8454
8455 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8456
8457         dup2: minor simplifications
8458         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8459         that it's a performance win.
8460         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8461         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8462
8463 2011-09-24  Jim Meyering  <meyering@redhat.com>
8464
8465         test-futimens: avoid a warning from gcc -Wshadow
8466         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8467         to avoid a shadowing warning.
8468
8469 2011-09-24  Bruno Haible  <bruno@clisp.org>
8470
8471         fdopen: Support for MSVC 9.
8472         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8473         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8474         * lib/fdopen.c: Include msvc-inval.h.
8475         (fdopen_nothrow): New function.
8476         (rpl_fdopen): Use it.
8477         * modules/fdopen (Depends-on): Add msvc-inval.
8478         * modules/fclose-tests (Depends-on): Add fdopen.
8479         * modules/fflush-tests (Depends-on): Likewise.
8480         * modules/fgetc-tests (Depends-on): Likewise.
8481         * modules/fputc-tests (Depends-on): Likewise.
8482         * modules/fread-tests (Depends-on): Likewise.
8483         * modules/freopen-tests (Depends-on): Likewise.
8484         * modules/fseeko-tests (Depends-on): Likewise.
8485         * modules/ftello-tests (Depends-on): Likewise.
8486         * modules/fwrite-tests  (Depends-on): Likewise.
8487         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8488
8489 2011-09-24  Bruno Haible  <bruno@clisp.org>
8490
8491         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8492         * modules/fgetc-tests (Depends-on): Add unistd.
8493         * modules/fputc-tests (Depends-on): Likewise.
8494         * modules/fread-tests (Depends-on): Likewise.
8495         * modules/fwrite-tests (Depends-on): Likewise.
8496
8497 2011-09-24  Bruno Haible  <bruno@clisp.org>
8498
8499         dup: Simplify autoconf test.
8500         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8501         on gl_MSVC_INVAL's result.
8502
8503 2011-09-24  Bruno Haible  <bruno@clisp.org>
8504
8505         Tests for function fwrite().
8506         * modules/fwrite-tests: New file.
8507         * tests/test-fwrite.c: New file.
8508         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8509
8510         Tests for function fread().
8511         * modules/fread-tests: New file.
8512         * tests/test-fread.c: New file.
8513         * modules/stdio-tests (Depends-on): Add fread-tests.
8514
8515         Activate fputc tests.
8516         * modules/stdio-tests (Depends-on): Add fputc-tests.
8517
8518         Enhance fgetc, fputc tests.
8519         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8520         * tests/test-fputc.c (main): Likewise.
8521
8522 2011-09-24  Bruno Haible  <bruno@clisp.org>
8523
8524         write: Support for MSVC 9.
8525         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8526         is not 1.
8527         * lib/write.c (write_nothrow): New function.
8528         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8529         not 1. Use write_nothrow.
8530         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8531         invalid parameter handler.
8532         (gl_PREREQ_WRITE): New macro.
8533         * modules/write (Depends-on): Add msvc-inval.
8534         (configure.ac): Invoke gl_PREREQ_WRITE.
8535         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8536
8537 2011-09-24  Bruno Haible  <bruno@clisp.org>
8538
8539         read: Fix last commit.
8540         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8541
8542 2011-09-24  Bruno Haible  <bruno@clisp.org>
8543
8544         dup2: Fix last commit.
8545         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8546         (rpl_dup2): Disable fcntl workaround on native Windows.
8547
8548         sigprocmask: Make code safer.
8549         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8550         section that changes macro definitions for this compilation unit.
8551
8552 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8553
8554         dup2: clarify by coalescing Windows-specific material
8555         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8556         "msvc-nothrow.h"' to the Windows-specific section, so that the
8557         Emacs source need not contain these include files.
8558         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8559         Windows-specific fixes into this function rather than just the
8560         nothrow fix, as this shortens and clarifies the code.  Always
8561         define as a function, as that's a bit cleaner than having it be
8562         sometimes a function and sometimes a macro.
8563         (rpl_dup2): Move the Windows-specific stuff out of here and into
8564         ms_windows_dup2.  Don't protect the Haiku-related fix with
8565         "#if !defined __linux__", as the same code also works around
8566         a Linux kernel bug, and it doesn't add any system calls on any
8567         platform.  Add comment about FreeBSD 6.1.
8568
8569         sigprocmask: move #include directive
8570         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8571         Windows-specific section, so that the Emacs source need not
8572         contain msvc-inval.h.
8573
8574 2011-09-23  Bruno Haible  <bruno@clisp.org>
8575
8576         read: Support for MSVC 9.
8577         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8578         is not 1.
8579         * lib/read.c (read_nothrow): New function.
8580         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8581         read_nothrow.
8582         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8583         invalid parameter handler.
8584         (gl_PREREQ_READ): New macro.
8585         * modules/read (Depends-on): Add msvc-inval.
8586         (configure.ac): Invoke gl_PREREQ_READ.
8587         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8588
8589 2011-09-23  Bruno Haible  <bruno@clisp.org>
8590
8591         close: Support for MSVC 9.
8592         * lib/close.c: Include <errno.h>, msvc-inval.h.
8593         (close_nothrow): New function.
8594         (rpl_close): Use it.
8595         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8596         invalid parameter handler.
8597         * modules/close (Depends-on): Add msvc-inval.
8598         * modules/dup2-tests (Depends-on): Add close.
8599         * modules/dup3-tests (Depends-on): Likewise.
8600         * modules/fcntl-tests (Depends-on): Likewise.
8601         * modules/spawn-pipe-tests (Depends-on): Likewise.
8602         * modules/unistd-safer-tests (Depends-on): Likewise.
8603         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8604
8605 2011-09-23  Bruno Haible  <bruno@clisp.org>
8606
8607         New module 'dup'.
8608         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8609         Allow replacement.
8610         * lib/dup.c: New file.
8611         * lib/fchdir.c (rpl_dup): Remove function.
8612         * m4/dup.m4: New file.
8613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8614         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8615         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8616         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8617         * modules/dup: New file.
8618         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8619         'dup' module is in use.
8620         * modules/fdopendir (Depends-on): Add dup.
8621         * modules/fdutimensat-tests (Depends-on): Likewise.
8622         * modules/fts (Depends-on): Likewise.
8623         * modules/futimens-tests (Depends-on): Likewise.
8624         * modules/posix_spawnp-tests (Depends-on): Likewise.
8625         * modules/unistd-safer-tests (Depends-on): Likewise.
8626         * modules/utimens-tests (Depends-on): Likewise.
8627         * doc/posix-functions/dup.texi: Mention the new module and the problem
8628         on MSVC.
8629
8630 2011-09-23  Bruno Haible  <bruno@clisp.org>
8631
8632         getdtablesize: Support for MSVC 9.
8633         * lib/getdtablesize.c: Include msvc-inval.h.
8634         (_setmaxstdio_nothrow): New function.
8635         (_setmaxstdio): Redefine it.
8636         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8637         * modules/getdtablesize (Depends-on): Add msvc-inval.
8638         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8639
8640 2011-09-23  Bruno Haible  <bruno@clisp.org>
8641
8642         signal-h: Rename from signal.
8643         * modules/signal-h: Renamed from modules/signal.
8644         * modules/pthread_sigmask (Depends-on): Update.
8645         * modules/raise (Depends-on): Likewise.
8646         * modules/sigaction (Depends-on): Likewise.
8647         * modules/sigpipe (Depends-on): Likewise.
8648         * modules/sigprocmask (Depends-on): Likewise.
8649         * modules/sys_select (Depends-on): Likewise.
8650         * modules/signal-h-tests: Renamed from modules/signal-tests.
8651         (Files, Depends-on, Makefile.am): Update.
8652         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8653         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8654         (Files, Makefile.am): Update.
8655         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8656         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8657         * modules/signal: New placeholder file.
8658         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8659         * doc/posix-headers/signal.texi: Update.
8660         * NEWS: Mention the change.
8661
8662 2011-09-23  Bruno Haible  <bruno@clisp.org>
8663
8664         sigprocmask: Avoid crashes through signal() on MSVC 9.
8665         * lib/sigprocmask.c: Include msvc-inval.h.
8666         (signal_nothrow): New function.
8667         (signal): Redefine it.
8668         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8669         * modules/sigprocmask (Depends-on): Add msvc-inval.
8670         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8671
8672 2011-09-23  Bruno Haible  <bruno@clisp.org>
8673
8674         Tests for module 'raise'.
8675         * modules/raise-tests: New file.
8676         * tests/test-raise.c: New file.
8677
8678         raise: Support for MSVC.
8679         * lib/signal.in.h (raise): New declaration.
8680         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8681         for native Windows platforms.
8682         * m4/raise.m4: New file.
8683         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8684         HAVE_RAISE, REPLACE_RAISE.
8685         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8686         REPLACE_RAISE.
8687         * modules/raise (Status, Notice): Remove fields.
8688         (Files): Add m4/raise.m4.
8689         (Depends-on): Add signal, msvc-inval.
8690         (configure.ac): Use the common idioms.
8691         (Maintainer): Add me.
8692         * tests/test-signal-c++.cc: Check the signature of raise.
8693         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8694
8695 2011-09-23  Bruno Haible  <bruno@clisp.org>
8696
8697         pipe2: Fix compilation on pre-C99 compilers.
8698         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8699
8700 2011-09-23  Bruno Haible  <bruno@clisp.org>
8701
8702         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8703         * lib/msvc-nothrow.h: New file.
8704         * lib/msvc-nothrow.c: New file.
8705         * m4/msvc-nothrow.m4: New file.
8706         * modules/msvc-nothrow: New file.
8707         * lib/dup2.c: Include msvc-nothrow.h.
8708         (rpl_dup2): No need to protect _get_osfhandle call here.
8709         * lib/accept4.c: Include msvc-nothrow.h.
8710         * lib/error.c: Likewise.
8711         * lib/fcntl.c: Likewise.
8712         * lib/lseek.c: Likewise.
8713         * lib/nonblocking.c: Likewise.
8714         * lib/poll.c: Likewise.
8715         * lib/read.c: Likewise.
8716         * lib/select.c: Likewise.
8717         * lib/sockets.h: Likewise.
8718         * lib/sockets.c: Likewise.
8719         * lib/stdio-read.c: Likewise.
8720         * lib/stdio-write.c: Likewise.
8721         * lib/write.c: Likewise.
8722         * lib/w32sock.h: Likewise.
8723         * lib/w32spawn.h: Likewise.
8724         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8725         * lib/fsync.c: Likewise.
8726         * lib/isapipe.c: Likewise.
8727         * modules/dup2 (Depends-on): Add msvc-nothrow.
8728         * modules/accept4 (Depends-on): Likewise.
8729         * modules/error (Depends-on): Likewise.
8730         * modules/fcntl (Depends-on): Likewise.
8731         * modules/lseek (Depends-on): Likewise.
8732         * modules/nonblocking (Depends-on): Likewise.
8733         * modules/poll (Depends-on): Likewise.
8734         * modules/read (Depends-on): Likewise.
8735         * modules/select (Depends-on): Likewise.
8736         * modules/sockets (Depends-on): Likewise.
8737         * modules/sigpipe (Depends-on): Likewise.
8738         * modules/write (Depends-on): Likewise.
8739         * modules/accept (Depends-on): Likewise.
8740         * modules/bind (Depends-on): Likewise.
8741         * modules/connect (Depends-on): Likewise.
8742         * modules/gethostname (Depends-on): Likewise.
8743         * modules/getpeername (Depends-on): Likewise.
8744         * modules/getsockname (Depends-on): Likewise.
8745         * modules/getsockopt (Depends-on): Likewise.
8746         * modules/ioctl (Depends-on): Likewise.
8747         * modules/listen (Depends-on): Likewise.
8748         * modules/recv (Depends-on): Likewise.
8749         * modules/recvfrom (Depends-on): Likewise.
8750         * modules/send (Depends-on): Likewise.
8751         * modules/sendto (Depends-on): Likewise.
8752         * modules/setsockopt (Depends-on): Likewise.
8753         * modules/shutdown (Depends-on): Likewise.
8754         * modules/socket (Depends-on): Likewise.
8755         * modules/execute (Depends-on): Likewise.
8756         * modules/spawn-pipe (Depends-on): Likewise.
8757         * modules/flock (Depends-on): Likewise.
8758         * modules/fsync (Depends-on): Likewise.
8759         * modules/isapipe (Depends-on): Likewise.
8760         * tests/test-cloexec.c: Include msvc-nothrow.h.
8761         * tests/test-dup-safer.c: Likewise.
8762         * tests/test-dup2.c: Likewise.
8763         * tests/test-dup3.c: Likewise.
8764         * tests/test-fcntl.c: Likewise.
8765         * tests/test-pipe.c: Likewise.
8766         * tests/test-pipe2.c: Likewise.
8767         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8768         * modules/unistd-safer-tests (Depends-on): Likewise.
8769         * modules/dup2-tests (Depends-on): Likewise.
8770         * modules/dup3-tests (Depends-on): Likewise.
8771         * modules/fcntl-tests (Depends-on): Likewise.
8772         * modules/pipe-posix-tests (Depends-on): Likewise.
8773         * modules/pipe2-tests (Depends-on): Likewise.
8774
8775 2011-09-23  Bruno Haible  <bruno@clisp.org>
8776
8777         dup2: Make code more maintainable.
8778         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8779         (rpl_dup2): Use it.
8780         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8781         * modules/dup2 (configure.ac): Invoke it.
8782         Reported by Paul Eggert.
8783
8784 2011-09-23  Bruno Haible  <bruno@clisp.org>
8785
8786         msvc-inval: Fix compilation error.
8787         * lib/msvc-inval.h: Include <excpt.h>.
8788
8789 2011-09-23  Bruno Haible  <bruno@clisp.org>
8790
8791         mkdir: Tweak for MSVC 9.
8792         * lib/sys_stat.in.h: Update comments.
8793         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8794
8795         Tests for module 'chdir'.
8796         * modules/chdir-tests: New file.
8797         * tests/test-chdir.c: New file.
8798
8799         New module 'chdir'.
8800         * modules/chdir: New file.
8801         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8802         (chdir): New declaration.
8803         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8804         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8805         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8806         * tests/test-unistd-c++.cc: Check signature of chdir.
8807         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8808         * modules/chdir-long (Depends-on): Add chdir.
8809         * modules/fchdir (Depends-on): Likewise.
8810         * modules/rename (Depends-on): Likewise.
8811         * modules/savewd (Depends-on): Likewise.
8812
8813         rmdir: Support for mingw, MSVC 9.
8814         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8815         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8816
8817         getcwd: Tweak for MSVC 9.
8818         * lib/unistd.in.h: Update comments.
8819         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8820
8821 2011-09-22  Bruno Haible  <bruno@clisp.org>
8822
8823         strerror_r-posix: Avoid a link error on MSVC.
8824         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8825         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8826
8827 2011-09-22  Bruno Haible  <bruno@clisp.org>
8828
8829         select: Avoid link errors on MSVC.
8830         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8831         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8832         * modules/pselect (Link): Likewise.
8833         * NEWS: Mention the change.
8834         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8835         test-select-stdin against $(LIB_SELECT).
8836         * modules/pselect-tests (Makefile.am): Link test-pselect against
8837         $(LIB_SELECT).
8838
8839 2011-09-22  Bruno Haible  <bruno@clisp.org>
8840
8841         select: Avoid compilation error on MSVC.
8842         * lib/select.c: Don't include <stdbool.h>.
8843
8844 2011-09-21  Bruno Haible  <bruno@clisp.org>
8845
8846         Consolidate all uses of PATH_MAX in *.m4 files.
8847         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8848         macros.
8849         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8850         and gl_PATHMAX_SNIPPET.
8851         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8852         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8853         * modules/chdir-long (Files): Add m4/pathmax.m4.
8854         * modules/getcwd (Files): Likewise.
8855
8856 2011-09-21  Bruno Haible  <bruno@clisp.org>
8857
8858         ftruncate: Un-deprecate, concentrate on Win32 support.
8859         * modules/ftruncate (Status, Notice): Remove sections.
8860         (Depends-on): Add largefile.
8861         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8862         non-mingw platforms.
8863         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8864         include <io.h>.
8865         * modules/perror-tests (Depends-on): Add ftruncate.
8866         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8867         'ftruncate' module.
8868
8869 2011-09-21  Bruno Haible  <bruno@clisp.org>
8870
8871         Add dependencies to new dirent related modules.
8872         * modules/opendir (Depends-on): Add closedir.
8873         * modules/getcwd (Depends-on): Add opendir, closedir.
8874         * modules/dirent-safer-tests (Depends-on): Likewise.
8875         * modules/fdopendir-tests (Depends-on): Likewise.
8876         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8877         * modules/renameat-tests (Depends-on): Likewise.
8878
8879 2011-09-21  Bruno Haible  <bruno@clisp.org>
8880
8881         opendir: Avoid compilation error on mingw.
8882         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8883         * modules/opendir (Depends-on): Add unistd.
8884
8885 2011-09-21  Bruno Haible  <bruno@clisp.org>
8886
8887         ftruncate tests: Avoid a test failure on mingw.
8888         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8889
8890 2011-09-21  Bruno Haible  <bruno@clisp.org>
8891
8892         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8893         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8894         native Windows.
8895
8896 2011-09-21  Bruno Haible  <bruno@clisp.org>
8897
8898         New module 'fdopen'.
8899         * lib/stdio.in.h (fdopen): New declaration.
8900         * lib/fdopen.c: New file.
8901         * m4/fdopen.m4: New file.
8902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8903         REPLACE_FDOPEN.
8904         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8905         REPLACE_FDOPEN.
8906         * modules/fdopen: New file.
8907         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8908         * tests/test-stdio-c++.cc: Check signature of fdopen.
8909         * doc/posix-functions/fdopen.texi: Mention the new module.
8910
8911 2011-09-21  Bruno Haible  <bruno@clisp.org>
8912
8913         unlockpt tests: Avoid test failure on NetBSD 5.1.
8914         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8915         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8916
8917 2011-09-21  Bruno Haible  <bruno@clisp.org>
8918
8919         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8920         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8921         * tests/test-getlogin_r.c (main): Likewise.
8922
8923 2011-09-20  Bruno Haible  <bruno@clisp.org>
8924
8925         time tests: Don't require pid_t.
8926         * doc/posix-headers/time.texi: Revert last change.
8927         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8928         * tests/test-time.c: Comment out the check for pid_t.
8929
8930 2011-09-20  Bruno Haible  <bruno@clisp.org>
8931
8932         fsync tests: Avoid a test failure on mingw.
8933         * tests/test-fsync.c (main): Allow a failure with EIO.
8934
8935 2011-09-20  Bruno Haible  <bruno@clisp.org>
8936
8937         euidaccess: Update comments.
8938         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8939
8940 2011-09-20  Bruno Haible  <bruno@clisp.org>
8941
8942         Ensure EBADF returns for socket functions on mingw.
8943         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8944         descriptor is invalid.
8945         * lib/bind.c (rpl_bind): Likewise.
8946         * lib/connect.c (rpl_connect): Likewise.
8947         * lib/getpeername.c (rpl_getpeername): Likewise.
8948         * lib/getsockname.c (rpl_getsockname): Likewise.
8949         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8950         * lib/listen.c (rpl_listen): Likewise.
8951         * lib/recv.c (rpl_recv): Likewise.
8952         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8953         * lib/send.c (rpl_send): Likewise.
8954         * lib/sendto.c (rpl_sendto): Likewise.
8955         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8956         * lib/shutdown.c (rpl_shutdown): Likewise.
8957
8958 2011-09-20  Bruno Haible  <bruno@clisp.org>
8959
8960         select tests: EBADF tests.
8961         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8962         test_bad_fd): New functions.
8963         (test_function): Invoke also test_bad_fd.
8964
8965 2011-09-20  Bruno Haible  <bruno@clisp.org>
8966
8967         Tests for module 'posix_spawn_file_actions_addopen.
8968         * modules/posix_spawn_file_actions_addopen-tests: New file.
8969         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8970
8971         Tests for module 'posix_spawn_file_actions_adddup2'.
8972         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8973         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8974
8975         Tests for module 'posix_spawn_file_actions_addclose'.
8976         * modules/posix_spawn_file_actions_addclose-tests: New file.
8977         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8978
8979 2011-09-20  Bruno Haible  <bruno@clisp.org>
8980
8981         Tests for module 'unlockpt'.
8982         * modules/unlockpt-tests: New file.
8983         * tests/test-unlockpt.c: New file.
8984         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8985
8986         Tests for module 'grantpt'.
8987         * modules/grantpt-tests: New file.
8988         * tests/test-grantpt.c: New file.
8989         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8990
8991 2011-09-20  Bruno Haible  <bruno@clisp.org>
8992
8993         freopen tests: EBADF tests.
8994         * tests/test-freopen.c: Include errno.h, unistd.h.
8995         (main): Add tests for EBADF, commented out for the moment.
8996
8997         fclose tests: EBADF tests.
8998         * tests/test-fclose.c (main): Add tests for EBADF.
8999
9000         fflush tests: EBADF tests.
9001         * tests/test-fflush.c: Include errno.h, macros.h.
9002         (main): Add tests for EBADF.
9003
9004         ftello tests: EBADF tests.
9005         * tests/test-ftello4.sh: New file.
9006         * tests/test-ftello4.c: New file.
9007         * modules/ftello-tests (Files): Add them.
9008         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9009
9010         fseeko tests: EBADF tests.
9011         * tests/test-fseeko4.sh: New file.
9012         * tests/test-fseeko4.c: New file.
9013         * modules/fseeko-tests (Files): Add them.
9014         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9015
9016         Tests for function fputc().
9017         * modules/fputc-tests: New file.
9018         * tests/test-fputc.c: New file.
9019         * modules/stdio-tests (Depends-on): Add fputc-tests.
9020
9021         Tests for function fgetc().
9022         * modules/fgetc-tests: New file.
9023         * tests/test-fgetc.c: New file.
9024         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9025
9026         Tests for function fdopen().
9027         * modules/fdopen-tests: New file.
9028         * tests/test-fdopen.c: New file.
9029         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9030
9031         Tests for module 'vdprintf'.
9032         * modules/vdprintf-tests: New file.
9033         * tests/test-vdprintf.c: New file.
9034
9035         Tests for module 'dprintf'.
9036         * modules/dprintf-tests: New file.
9037         * tests/test-dprintf.c: New file.
9038
9039 2011-09-20  Bruno Haible  <bruno@clisp.org>
9040
9041         Tests for module 'ioctl'.
9042         * modules/ioctl-tests: New file.
9043         * tests/test-ioctl.c: New file.
9044
9045 2011-09-20  Bruno Haible  <bruno@clisp.org>
9046
9047         fcntl tests: EBADF tests.
9048         * tests/test-fcntl.c (main): Add more tests for EBADF.
9049
9050 2011-09-20  Bruno Haible  <bruno@clisp.org>
9051
9052         utimensat tests: EBADF tests.
9053         * tests/test-utimensat.c (main): Add tests for EBADF.
9054
9055         renameat tests: EBADF tests.
9056         * tests/test-renameat.c (main): Add tests for EBADF.
9057
9058         mkfifoat tests: EBADF tests.
9059         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9060
9061         readlinkat tests: EBADF tests.
9062         * tests/test-readlinkat.c (main): Add tests for EBADF.
9063
9064         symlinkat tests: EBADF tests.
9065         * tests/test-symlinkat.c (main): Add tests for EBADF.
9066
9067         linkat tests: EBADF tests.
9068         * tests/test-linkat.c (main): Add tests for EBADF.
9069
9070         Tests for module 'faccessat'.
9071         * modules/faccessat-tests: New file.
9072         * tests/test-faccessat.c: New file.
9073
9074         fdopendir tests: EBADF tests.
9075         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9076
9077         openat tests: EBADF tests.
9078         * tests/test-fchownat.c (main): Add tests for EBADF.
9079         * tests/test-fstatat.c (main): Likewise.
9080         * tests/test-mkdirat.c (main): Likewise.
9081         * tests/test-openat.c (main): Likewise.
9082         * tests/test-unlinkat.c (main): Likewise.
9083         * tests/test-fchmodat.c: New file.
9084         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9085         (Makefile.am): Also run 'test-fchmodat'.
9086
9087 2011-09-20  Bruno Haible  <bruno@clisp.org>
9088
9089         utimens, futimens, fdutimensat tests: EBADF tests.
9090         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9091
9092         Tests for function fstat().
9093         * modules/fstat-tests: New file.
9094         * tests/test-fstat.c: New file.
9095         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9096
9097 2011-09-20  Bruno Haible  <bruno@clisp.org>
9098
9099         test-ttyname_r tests: EBADF tests.
9100         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9101
9102         Tests for module 'isatty'.
9103         * modules/isatty-tests: New file.
9104         * tests/test-isatty.c: New file.
9105
9106         Tests for module 'write'.
9107         * modules/write-tests: New file.
9108         * tests/test-write.c: New file.
9109
9110         Tests for module 'read'.
9111         * modules/read-tests: New file.
9112         * tests/test-read.c: New file.
9113
9114         pwrite tests: EBADF tests.
9115         * tests/test-pwrite.c (main): Add tests for EBADF.
9116
9117         pread tests: EBADF tests.
9118         * tests/test-pread.c (main): Add tests for EBADF.
9119
9120         lseek tests: EBADF tests.
9121         * tests/test-lseek.c (main): Add more tests for EBADF.
9122
9123         Tests for module 'ftruncate'.
9124         * modules/ftruncate-tests: New file.
9125         * tests/test-ftruncate.sh: New file.
9126         * tests/test-ftruncate.c: New file.
9127
9128         fsync tests: EBADF tests.
9129         * tests/test-fsync.c (main): Add more tests for EBADF.
9130
9131         fdatasync tests: EBADF tests.
9132         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9133
9134         Tests for module 'fchown'.
9135         * modules/fchown-tests: New file.
9136         * tests/test-fchown.c: New file.
9137
9138         Tests for module 'fchmod'.
9139         * modules/fchmod-tests: New file.
9140         * tests/test-fchmod.c: New file.
9141
9142         fchdir tests: EBADF tests.
9143         * tests/test-fchdir.c (main): Add more tests for EBADF.
9144
9145         dup2 tests: EBADF tests.
9146         * tests/test-dup2.c (main): Add more tests for EBADF.
9147
9148         Tests for module 'dup'.
9149         * modules/dup-tests: New file.
9150         * tests/test-dup.c: New file.
9151
9152         Tests for module 'close'.
9153         * modules/close-tests: New file.
9154         * tests/test-close.c: New file.
9155
9156 2011-09-20  Bruno Haible  <bruno@clisp.org>
9157
9158         Tests for module 'shutdown'.
9159         * modules/shutdown-tests: New file.
9160         * tests/test-shutdown.c: New file.
9161
9162         Tests for module 'setsockopt'.
9163         * modules/setsockopt-tests: New file.
9164         * tests/test-setsockopt.c: New file.
9165
9166         Tests for module 'sendto'.
9167         * modules/sendto-tests: New file.
9168         * tests/test-sendto.c: New file.
9169
9170         Tests for module 'send'.
9171         * modules/send-tests: New file.
9172         * tests/test-send.c: New file.
9173
9174         Tests for module 'recvfrom'.
9175         * modules/recvfrom-tests: New file.
9176         * tests/test-recvfrom.c: New file.
9177
9178         Tests for module 'recv'.
9179         * modules/recv-tests: New file.
9180         * tests/test-recv.c: New file.
9181
9182         Tests for module 'listen'.
9183         * modules/listen-tests: New file.
9184         * tests/test-listen.c: New file.
9185
9186         Tests for module 'getsockopt'.
9187         * modules/getsockopt-tests: New file.
9188         * tests/test-getsockopt.c: New file.
9189
9190         Tests for module 'getsockname'.
9191         * modules/getsockname-tests: New file.
9192         * tests/test-getsockname.c: New file.
9193
9194         Tests for module 'getpeername'.
9195         * modules/getpeername-tests: New file.
9196         * tests/test-getpeername.c: New file.
9197
9198         Tests for module 'connect'.
9199         * modules/connect-tests: New file.
9200         * tests/test-connect.c: New file.
9201
9202         Tests for module 'bind'.
9203         * modules/bind-tests: New file.
9204         * tests/test-bind.c: New file.
9205
9206         accept4 tests: Fix for native Windows.
9207         * tests/test-accept4.c: Include sockets.h.
9208         (main): Invoke gl_sockets_startup.
9209         * modules/accept4-tests (Depends-on): Add sockets.
9210
9211         accept tests: Fix for native Windows.
9212         * tests/test-accept.c: Include sockets.h.
9213         (main): Invoke gl_sockets_startup.
9214         * modules/accept-tests (Depends-on): Add sockets.
9215
9216 2011-09-19  Bruno Haible  <bruno@clisp.org>
9217
9218         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9219         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9220         do...while(0).
9221         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9222         Suggested by Paul Eggert.
9223
9224 2011-09-19  Bruno Haible  <bruno@clisp.org>
9225
9226         sched: Ensure pid_t is defined.
9227         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9228         not define pid_t.
9229         * lib/sched.in.h: Include <sys/types.h>.
9230         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9232
9233 2011-09-19  Bruno Haible  <bruno@clisp.org>
9234
9235         msvc-inval: Ensure the entire expansion is a single statement.
9236         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9237         of braces.
9238
9239 2011-09-19  Jim Meyering  <meyering@redhat.com>
9240
9241         tests: use printf, not echo in init.sh's warn_ function
9242         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9243         misbehave when given strings containing a backslash or starting
9244         with e.g., -n.  James Youngman suggested setting IFS.
9245
9246 2011-09-19  Eric Blake  <eblake@redhat.com>
9247
9248         futimens: enhance test
9249         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9250         closed non-negative fd.
9251
9252         date: accept 'hence' as opposite of 'ago'
9253         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9254         * tests/test-parse-datetime.c (main): Enhance test.
9255         Suggested by Jesse Wilson.
9256
9257 2011-09-19  Jim Meyering  <meyering@redhat.com>
9258
9259         getcwd: don't fail in a deep directory on a system without openat
9260         Before this change, getcwd would fail when called from a directory
9261         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9262         the non-openat implementation used "..", "../..", "../../..", etc.
9263         to access ancestor directories.  With too many, that string would
9264         be longer than PATH_MAX.
9265         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9266         using gnulib's openat replacement.
9267         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9268         we're using the replacement function.
9269
9270 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9271
9272         maint.mk: avoid warnings from perl about missing files
9273         * top/maint.mk (def_sym_regex): Ignore files listed in
9274         $(gl_other_headers_) that do not exist, say because a project
9275         does not use a corresponding module.
9276
9277 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9278
9279         stat: use pathmax.h only if needed
9280         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9281         This is better for Emacs, which does not have a mingw port and
9282         therefore can avoid the pathmax module.
9283
9284         utimens: remove dependency on dup2
9285         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9286         to work around the Linux kernel bug.
9287         * modules/utimens (Depends-on): Remove dup2.
9288
9289 2011-09-18  Bruno Haible  <bruno@clisp.org>
9290
9291         inet_ntop, inet_pton: Look for it also in libresolv.
9292         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9293         libnsl, search for it in libresolv.
9294         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9295         Needed on Solaris 7.
9296
9297 2011-09-18  Bruno Haible  <bruno@clisp.org>
9298
9299         accept, accept4 tests: Avoid link error on Solaris.
9300         * modules/accept-tests (Makefile.am): Link test-accept against
9301         $(LIBSOCKET).
9302         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9303         $(LIBSOCKET).
9304
9305         accept4: Avoid link error on Solaris.
9306         * modules/accept4 (Link): New section.
9307
9308         socket functions: Avoid link errors on Solaris.
9309         * modules/accept (Depends-on): Add socketlib.
9310         (Link): New section.
9311         * modules/bind (Depends-on): Add socketlib.
9312         (Link): New section.
9313         * modules/connect (Depends-on): Add socketlib.
9314         (Link): New section.
9315         * modules/getpeername (Depends-on): Add socketlib.
9316         (Link): New section.
9317         * modules/getsockname (Depends-on): Add socketlib.
9318         (Link): New section.
9319         * modules/getsockopt (Depends-on): Add socketlib.
9320         (Link): New section.
9321         * modules/listen (Depends-on): Add socketlib.
9322         (Link): New section.
9323         * modules/recv (Depends-on): Add socketlib.
9324         (Link): New section.
9325         * modules/recvfrom (Depends-on): Add socketlib.
9326         (Link): New section.
9327         * modules/send (Depends-on): Add socketlib.
9328         (Link): New section.
9329         * modules/sendto (Depends-on): Add socketlib.
9330         (Link): New section.
9331         * modules/setsockopt (Depends-on): Add socketlib.
9332         (Link): New section.
9333         * modules/shutdown (Depends-on): Add socketlib.
9334         (Link): New section.
9335         * modules/socket (Depends-on): Add socketlib.
9336         (Link): New section.
9337
9338 2011-09-18  Bruno Haible  <bruno@clisp.org>
9339
9340         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9341         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9342         than 5 seconds.
9343         * modules/ptsname-tests (configure.ac): Test for alarm.
9344
9345 2011-09-18  Bruno Haible  <bruno@clisp.org>
9346
9347         posix_spawn_file_actions_add*: Fix module dependencies.
9348         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9349         posix_spawn_file_actions_init.
9350         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9351         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9352
9353 2011-09-18  Bruno Haible  <bruno@clisp.org>
9354
9355         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9356         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9357         * tests/test-renameat.c (main): Likewise.
9358
9359 2011-09-18  Bruno Haible  <bruno@clisp.org>
9360
9361         Tests for module 'accept4'.
9362         * modules/accept4-tests: New file.
9363         * tests/test-accept4.c: New file.
9364
9365 2011-09-18  Bruno Haible  <bruno@clisp.org>
9366
9367         Tests for module 'accept'.
9368         * modules/accept-tests: New file.
9369         * tests/test-accept.c: New file.
9370
9371 2011-09-18  Bruno Haible  <bruno@clisp.org>
9372
9373         dup2: Support for MSVC.
9374         * lib/dup2.c: Include msvc-inval.h.
9375         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9376         _get_osfhandle calls.
9377         * modules/dup2 (Depends-on): Add msvc-inval.
9378         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9379
9380         New module 'msvc-inval'.
9381         * lib/msvc-inval.h: New file.
9382         * lib/msvc-inval.c: New file.
9383         * m4/msvc-inval.m4: New file.
9384         * modules/msvc-inval: New file.
9385
9386 2011-09-17  Bruno Haible  <bruno@clisp.org>
9387
9388         Tests for module 'pclose'.
9389         * modules/pclose-tests: New file.
9390
9391         New module 'pclose'.
9392         * lib/stdio.in.h (pclose): New declaration.
9393         * lib/pclose.c: New file.
9394         * m4/pclose.m4: New file.
9395         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9396         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9397         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9398         * modules/pclose: New file.
9399         * modules/popen-tests (Depends-on): Add pclose.
9400         * modules/popen-safer-tests (Depends-on): Likewise.
9401         * doc/posix-functions/pclose.texi: Mention the new module.
9402
9403 2011-09-17  Bruno Haible  <bruno@clisp.org>
9404
9405         popen: Support for MSVC.
9406         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9407         * lib/popen.c (popen): Provide alternate definition for native Windows.
9408         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9410         * modules/popen (Depends-on, configure.ac): Update condition.
9411         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9412         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9413         fixed.
9414
9415 2011-09-17  Bruno Haible  <bruno@clisp.org>
9416
9417         isnanl, isnand, isnanf: Work around MSVC bug.
9418         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9419
9420 2011-09-17  Bruno Haible  <bruno@clisp.org>
9421
9422         sys_socket tests: Fix recent mistake.
9423         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9424
9425 2011-09-17  Bruno Haible  <bruno@clisp.org>
9426
9427         putenv: Support for MSVC.
9428         * modules/putenv (Depends-on): Add environ.
9429         * lib/putenv.c (environ): Disable declaration.
9430         * lib/unistd.in.h: Update comment.
9431
9432 2011-09-17  Bruno Haible  <bruno@clisp.org>
9433
9434         math: Avoid macro redefinition warnings on MSVC.
9435         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9436         Undefine before redefining.
9437
9438 2011-09-17  Bruno Haible  <bruno@clisp.org>
9439
9440         doc: Mention functions which are declared as macros.
9441         * doc/posix-functions/*[fl].texi: Mention that some functions are
9442         defined as macros with arguments only.
9443
9444 2011-09-17  Bruno Haible  <bruno@clisp.org>
9445
9446         Add dependencies to new dirent related modules.
9447         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9448         * modules/fts (Depends-on): Likewise.
9449         * modules/glob (Depends-on): Likewise.
9450         * modules/savedir (Depends-on): Likewise.
9451         * modules/scandir (Depends-on): Likewise.
9452         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9453         * modules/fdopendir (Depends-on): Add opendir.
9454
9455 2011-09-17  Bruno Haible  <bruno@clisp.org>
9456
9457         inet_pton: Support for MSVC on Windows Vista or newer.
9458         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9459         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9460         HAVE_DECL_INET_PTON is defined.
9461         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9462         On platforms with <winsock2.h>, test whether inet_pton is declared in
9463         <ws2tcpip.h>. If so, arrange to replace it.
9464         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9465         REPLACE_INET_PTON.
9466         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9467         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9468         (Depends-on, configure.ac): Update condition.
9469         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9470
9471 2011-09-17  Bruno Haible  <bruno@clisp.org>
9472
9473         inet_ntop: Support for MSVC on Windows Vista or newer.
9474         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9475         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9476         HAVE_DECL_INET_NTOP is defined.
9477         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9478         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9479         <ws2tcpip.h>. If so, arrange to replace it.
9480         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9481         REPLACE_INET_NTOP.
9482         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9483         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9484         (Depends-on, configure.ac): Update condition.
9485         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9486
9487 2011-09-16  Eric Blake  <eblake@redhat.com>
9488
9489         test-fsync: yet another enhancement
9490         * tests/test-fsync.c (main): Also test behavior on read-only text
9491         file.
9492
9493 2011-09-16  Bruno Haible  <bruno@clisp.org>
9494
9495         Enhance fsync, fdatasync tests.
9496         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9497         * tests/test-fdatasync.c (main): Likewise.
9498
9499 2011-09-16  Bruno Haible  <bruno@clisp.org>
9500
9501         Support for MSVC compiler: Ensure mode_t gets defined.
9502         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9503         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9504         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9505         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9506         * tests/test-fcntl-h.c: Check that mode_t is defined.
9507         * tests/test-sys_stat.c: Likewise.
9508         * tests/test-sys_types.c: Likewise.
9509         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9510         * doc/posix-headers/sys_stat.texi: Likewise.
9511         * doc/posix-headers/sys_types.texi: Likewise.
9512
9513 2011-09-16  Bruno Haible  <bruno@clisp.org>
9514
9515         sys_stat: Support for MSVC.
9516         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9517         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9518         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9519         MSVC.
9520
9521 2011-09-16  Bruno Haible  <bruno@clisp.org>
9522
9523         Support for MSVC compiler: Ensure off_t gets defined.
9524         * lib/unistd.in.h: Include <sys/types.h>.
9525         * tests/test-fcntl-h.c: Check that off_t is defined.
9526         * tests/test-sys_stat.c: Likewise.
9527         * tests/test-sys_types.c: Likewise.
9528
9529 2011-09-16  Eric Blake  <eblake@redhat.com>
9530
9531         fdatasync: port to Solaris
9532         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9533         * modules/fdatasync (Link): Document it.
9534         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9535
9536         fdatasync: port to MacOS X 10.7
9537         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9538         declared.
9539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9540         * modules/unistd (Makefile.am): Substitute it.
9541         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9542         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9543
9544         fdatasync: minor improvements
9545         * modules/fdatasync (Depends-on): Add condition for fsync.
9546         * lib/fdatasync.c (fdatasync): Add comment.
9547         * tests/test-unistd-c++.cc: Test fdatasync.
9548
9549         unistd: update refs to newer POSIX
9550         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9551         Suggested by Bruno Haible.
9552
9553         fdatasync: new module
9554         * modules/fsync (Description): Document difference to fdatasync.
9555         * modules/fdatasync: New module.
9556         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9557         * lib/fdatasync.c (fdatasync): Likewise.
9558         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9559         defaults.
9560         * modules/unistd (Makefile.am): Set witnesses.
9561         * lib/unistd.in.h (fdatasync): Declare.
9562         * MODULES.html.sh: Document it.
9563         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9564         * modules/fdatasync-tests: New test.
9565         * tests/test-fdatasync.c: Likewise.
9566
9567 2011-09-16  Eric Blake  <eblake@redhat.com>
9568
9569         test-fsync: enhance tests
9570         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9571         * tests/test-fsync.c (main): Enhance test.
9572
9573 2011-09-15  Bruno Haible  <bruno@clisp.org>
9574
9575         Support for MSVC compiler: Ensure ssize_t gets defined.
9576         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9577         * doc/posix-headers/stdio.texi: Likewise.
9578         * modules/stdio (Depends-on): Add ssize_t.
9579         * modules/sys_socket (Depends-on): Likewise.
9580         * modules/sys_types (Depends-on): Likewise.
9581         * modules/sys_uio (Depends-on): Likewise.
9582         * modules/unistd (Depends-on): Likewise.
9583         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9584         * tests/test-sys_types.c: Check that ssize_t is defined.
9585
9586 2011-09-14  Bruno Haible  <bruno@clisp.org>
9587
9588         Avoid using #, the m4 comment starter character, near brackets.
9589         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9590         delimiter character in sed expressions.
9591         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9592         Suggested by Eric Blake.
9593
9594         Properly quote AC_CHECK_DECLS' 4th argument.
9595         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9596         argument.
9597         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9598         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9599         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9600         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9601         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9602         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9603         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9604         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9605         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9606         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9607         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9608         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9609         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9610         * m4/isinf.m4 (gl_ISINF): Likewise.
9611         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9612         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9613         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9614         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9616         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9617         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9618         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9619         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9620         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9621         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9622         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9624         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9626         Reported by Eric Blake.
9627
9628         Properly quote AC_CHECK_DECL's 4th argument.
9629         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9630         argument.
9631         * m4/argp.m4 (gl_ARGP): Likewise.
9632         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9633         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9634         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9635         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9636         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9637         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9638         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9639         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9640         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9641         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9642         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9643         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9644         Reported by Eric Blake.
9645
9646 2011-09-14  Eric Blake  <eblake@redhat.com>
9647
9648         opendir: avoid compile warning
9649         * lib/opendir.c (includes): Always include errno.h.
9650         Reported by Tatsuro MATSUOKA.
9651
9652 2011-09-14  Jim Meyering  <meyering@redhat.com>
9653
9654         maint.mk: sc_tight_scope: propagate failure from sub-make
9655         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9656         Reported by Martin von Gagern.
9657
9658 2011-09-13  Bruno Haible  <bruno@clisp.org>
9659
9660         tempname: Support for MSVC.
9661         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9662         MSVC.
9663         * modules/tempname (Depends-on): Add fcntl-h.
9664
9665 2011-09-13  Bruno Haible  <bruno@clisp.org>
9666
9667         sys_time: Support for MSVC.
9668         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9669         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9670         include <winsock2.h>.
9671         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9672         function declarations that collide with POSIX.
9673         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9674         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9675
9676 2011-09-13  Bruno Haible  <bruno@clisp.org>
9677
9678         stat: Support for MSVC.
9679         * lib/stat.c: Include pathmax.h.
9680         * modules/stat (Depends-on): Add pathmax.
9681
9682         pathmax: Support for native Windows.
9683         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9684
9685 2011-09-12  Bruno Haible  <bruno@clisp.org>
9686
9687         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9688         * lib/dirent.in.h (struct dirent): New type.
9689         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9690         DT_WHT): New macros.
9691         (DIR): New type.
9692         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9693         (readdir, rewinddir): New declarations.
9694         * lib/dirent-private.h: New file.
9695         * lib/opendir.c: New file.
9696         * lib/readdir.c: New file.
9697         * lib/rewinddir.c: New file.
9698         * lib/closedir.c: New file.
9699         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9700         * m4/opendir.m4: New file.
9701         * m4/readdir.m4: New file.
9702         * m4/rewinddir.m4: New file.
9703         * m4/closedir.m4: New file.
9704         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9705         REPLACE_CLOSEDIR here.
9706         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9707         readdir, rewinddir are declared.
9708         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9709         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9710         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9711         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9712         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9713         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9714         * modules/opendir: New file.
9715         * modules/readdir: New file.
9716         * modules/rewinddir: New file.
9717         * modules/closedir: New file.
9718         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9719         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9720         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9721         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9722         * NEWS: Mention the 'fchdir' change.
9723
9724 2011-09-11  Bruno Haible  <bruno@clisp.org>
9725
9726         asm-underscore.m4: Support for MSVC.
9727         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9728         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9729
9730 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9731
9732         Doc about crypt functions.
9733         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9734         needing for _GNU_SOURCE to get crypt.
9735         * doc/posix-functions/encrypt.texi: Likewise.
9736         * doc/posix-functions/setkey.texi: Likewise.
9737
9738 2011-09-11  Bruno Haible  <bruno@clisp.org>
9739
9740         doc: Update regarding MSVC 9.
9741         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9742         tested".
9743         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9744         * doc/posix-headers/*.texi: Likewise.
9745         * doc/pastposix-functions/*.texi: Likewise.
9746         * doc/glibc-functions/*.texi: Likewise.
9747         * doc/glibc-headers/*.texi: Likewise.
9748
9749 2011-09-11  Bruno Haible  <bruno@clisp.org>
9750
9751         unistd et al.: Don't assume <unistd.h> exists.
9752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9753         does not exist.
9754         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9755         exist. But include <stdlib.h>.
9756         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9757         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9758         symlink() does not exist.
9759         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9760         include <io.h> instead.
9761         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9762         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9763         include <direct.h> instead.
9764         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9765         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9766         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9767         <io.h> instead.
9768         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9769         correctly if the system does not have hard links.
9770         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9771         <direct.h> instead.
9772         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9773         it when looking for function declarations.
9774         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9775         <direct.h> and <io.h> instead.
9776         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9777
9778 2011-09-11  Bruno Haible  <bruno@clisp.org>
9779
9780         strcase: Support for MSVC.
9781         * modules/strcase (Status, Notice): Remove obsoletion mark.
9782         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9783         * doc/posix-functions/strncasecmp.texi: Likewise.
9784
9785         strings: Don't assume <strings.h> exists.
9786         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9787         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9788         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9789         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9790
9791 2011-09-11  Bruno Haible  <bruno@clisp.org>
9792
9793         dirent: Don't assume <dirent.h> exists.
9794         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9795         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9796         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9797         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9798
9799 2011-09-11  Bruno Haible  <bruno@clisp.org>
9800
9801         Fix wint_t on MSVC.
9802         * lib/wchar.in.h (wint_t): On MSVC, override it.
9803         * lib/wctype.in.h (wint_t): Likewise.
9804         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9805         MSVC.
9806         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9807         * doc/posix-headers/wctype.texi: Likewise.
9808
9809 2011-09-11  Bruno Haible  <bruno@clisp.org>
9810
9811         sys_types: Fix typo.
9812         * lib/sys_types.in.h: Fix typo in comment.
9813         Reported by Paul Eggert.
9814
9815         Support for MSVC compiler: Ensure size_t gets defined.
9816         * modules/strings (Depends-on): Add 'sys_types'.
9817         * modules/sys_uio (Depends-on): Likewise.
9818         * lib/sys_uio.in.h: Update comment.
9819
9820         C++ tests for module 'sys_types'.
9821         * modules/sys_types-c++-tests: New file.
9822         * tests/test-sys_types-c++.cc: New file.
9823
9824         Tests for module 'sys_types'.
9825         * modules/sys_types-tests: New file.
9826         * tests/test-sys_types.c: New file.
9827
9828         New module 'sys_types'.
9829         * lib/sys_types.in.h: New file.
9830         * m4/sys_types_h.m4: New file.
9831         * modules/sys_types: New file.
9832         * doc/posix-headers/sys_types.texi: Mention the new module and the
9833         size_t problem on MSVC 9.
9834
9835 2011-09-11  Bruno Haible  <bruno@clisp.org>
9836
9837         Support for MSVC compiler: Avoid division by a literal 0.
9838         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9839         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9840         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9841         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9842         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9843         * tests/infinity.h: New file.
9844         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9845         on MSVC.
9846         * tests/test-ceilf1.c: Include infinity.h.
9847         (main): Use Infinityf.
9848         * tests/test-ceil1.c: Include infinity.h.
9849         (main): Use Infinityd.
9850         * tests/test-ceill.c: Include infinity.h.
9851         (main): Use Infinityl.
9852         * tests/test-dprintf-posix.c: Include infinity.h.
9853         (test_function): Use Infinityd.
9854         * tests/test-floorf1.c: Include infinity.h.
9855         (main): Use Infinityf.
9856         * tests/test-floor1.c: Include infinity.h.
9857         (main): Use Infinityd.
9858         * tests/test-floorl.c: Include infinity.h.
9859         (main): Use Infinityl.
9860         * tests/test-fprintf-posix.c: Include infinity.h.
9861         (test_function): Use Infinityd.
9862         * tests/test-frexp.c: Include infinity.h.
9863         (main): Use Infinityd.
9864         * tests/test-frexpl.c: Include infinity.h.
9865         (main): Use Infinityl.
9866         * tests/test-isfinite.c: Include infinity.h.
9867         (test_isfinitef): Use Infinityf.
9868         (test_isfinited): Use Infinityd.
9869         (test_isfinitel): Use Infinityl.
9870         * tests/test-isinf.c: Include infinity.h.
9871         (test_isinff): Use Infinityf.
9872         (test_isinfd): Use Infinityd.
9873         (test_isinfl): Use Infinityl.
9874         * tests/test-isnan.c: Include infinity.h.
9875         (test_float): Use Infinityf.
9876         (test_double): Use Infinityd.
9877         (test_long_double): Use Infinityl.
9878         * tests/test-isnanf.h: Include infinity.h.
9879         (main): Use Infinityf.
9880         * tests/test-isnand.h: Include infinity.h.
9881         (main): Use Infinityd.
9882         * tests/test-isnanl.h: Include infinity.h.
9883         (main): Use Infinityl.
9884         * tests/test-ldexpl.c: Include infinity.h.
9885         (main): Use Infinityl.
9886         * tests/test-printf-posix.h: Include infinity.h.
9887         (test_function): Use Infinityd.
9888         * tests/test-roundf1.c: Include infinity.h.
9889         (main): Use Infinityf.
9890         * tests/test-round1.c: Include infinity.h.
9891         (main): Use Infinityd.
9892         * tests/test-roundl.c: Include infinity.h.
9893         (main): Use Infinityl.
9894         * tests/test-signbit.c: Include infinity.h.
9895         (test_signbitf): Use Infinityf.
9896         (test_signbitd): Use Infinityd.
9897         (test_signbitl): Use Infinityl.
9898         * tests/test-snprintf-posix.h: Include infinity.h.
9899         (test_function): Use Infinityd, Infinityl.
9900         * tests/test-sprintf-posix.h: Include infinity.h.
9901         (test_function): Use Infinityd, Infinityl.
9902         * tests/test-truncf1.c: Include infinity.h.
9903         (main): Use Infinityf.
9904         * tests/test-trunc1.c: Include infinity.h.
9905         (main): Use Infinityd.
9906         * tests/test-truncl.c: Include infinity.h.
9907         (main): Use Infinityl.
9908         * tests/test-vasnprintf-posix.c: Include infinity.h.
9909         (test_function): Use Infinityd, Infinityl.
9910         * tests/test-vasprintf-posix.c: Include infinity.h.
9911         (test_function): Use Infinityd, Infinityl.
9912         * modules/ceilf-tests (Files): Add tests/infinity.h.
9913         * modules/ceil-tests (Files): Likewise.
9914         * modules/ceill-tests (Files): Likewise.
9915         * modules/dprintf-posix-tests (Files): Likewise.
9916         * modules/floorf-tests (Files): Likewise.
9917         * modules/floor-tests (Files): Likewise.
9918         * modules/floorl-tests (Files): Likewise.
9919         * modules/fprintf-posix-tests (Files): Likewise.
9920         * modules/frexp-tests (Files): Likewise.
9921         * modules/frexp-nolibm-tests (Files): Likewise.
9922         * modules/frexpl-tests (Files): Likewise.
9923         * modules/frexpl-nolibm-tests (Files): Likewise.
9924         * modules/isfinite-tests (Files): Likewise.
9925         * modules/isinf-tests (Files): Likewise.
9926         * modules/isnan-tests (Files): Likewise.
9927         * modules/isnanf-tests (Files): Likewise.
9928         * modules/isnanf-nolibm-tests (Files): Likewise.
9929         * modules/isnand-tests (Files): Likewise.
9930         * modules/isnand-nolibm-tests (Files): Likewise.
9931         * modules/isnanl-tests (Files): Likewise.
9932         * modules/isnanl-nolibm-tests (Files): Likewise.
9933         * modules/ldexpl-tests (Files): Likewise.
9934         * modules/printf-posix-tests (Files): Likewise.
9935         * modules/roundf-tests (Files): Likewise.
9936         * modules/round-tests (Files): Likewise.
9937         * modules/roundl-tests (Files): Likewise.
9938         * modules/signbit-tests (Files): Likewise.
9939         * modules/snprintf-posix-tests (Files): Likewise.
9940         * modules/sprintf-posix-tests (Files): Likewise.
9941         * modules/truncf-tests (Files): Likewise.
9942         * modules/trunc-tests (Files): Likewise.
9943         * modules/truncl-tests (Files): Likewise.
9944         * modules/vasnprintf-posix-tests (Files): Likewise.
9945         * modules/vasprintf-posix-tests (Files): Likewise.
9946         * modules/vdprintf-posix-tests (Files): Likewise.
9947         * modules/vfprintf-posix-tests (Files): Likewise.
9948         * modules/vprintf-posix-tests (Files): Likewise.
9949         * modules/vsnprintf-posix-tests (Files): Likewise.
9950         * modules/vsprintf-posix-tests (Files): Likewise.
9951         * modules/xprintf-posix-tests (Files): Likewise.
9952
9953 2011-09-11  Bruno Haible  <bruno@clisp.org>
9954
9955         Ensure pid_t gets defined.
9956         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9957         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9958         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9959         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9960         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9961         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9962         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9963         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9964         * tests/test-fcntl-h.c: Check that pid_t is defined.
9965         * tests/test-sched.c: Likewise.
9966         * tests/test-termios.c: Likewise.
9967         * tests/test-time.c: Likewise.
9968         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9969         * doc/posix-headers/signal.texi: Likewise.
9970         * doc/posix-headers/sys_types.texi: Likewise.
9971         * doc/posix-headers/time.texi: Likewise.
9972
9973 2011-09-11  Bruno Haible  <bruno@clisp.org>
9974
9975         acl: Fix compilation on Solaris 10 (older version).
9976         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9977         of ACE_EVERYONE.
9978         * lib/set-mode-acl.c (qset_acl): Likewise.
9979         Reported by Christian Jullien <eligis@orange.fr>.
9980
9981 2011-09-10  Bruno Haible  <bruno@clisp.org>
9982
9983         iconv, unsetenv: Add support for MSVC compiler.
9984         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9985         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9986
9987 2011-09-10  Bruno Haible  <bruno@clisp.org>
9988
9989         *printf: Add support for MSVC compiler.
9990         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9991         handles the exception caused by the %n directive. When cross-compiling,
9992         guess no on native Windows.
9993         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9994         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9995         emulate it through vsnprintf.
9996         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9997         * doc/posix-functions/dprintf.texi: Update documentation regarding
9998         MSVC 9.
9999         * doc/posix-functions/fprintf.texi: Likewise.
10000         * doc/posix-functions/printf.texi: Likewise.
10001         * doc/posix-functions/snprintf.texi: Likewise.
10002         * doc/posix-functions/sprintf.texi: Likewise.
10003         * doc/posix-functions/swprintf.texi: Likewise.
10004         * doc/posix-functions/vdprintf.texi: Likewise.
10005         * doc/posix-functions/vfprintf.texi: Likewise.
10006         * doc/posix-functions/vprintf.texi: Likewise.
10007         * doc/posix-functions/vsnprintf.texi: Likewise.
10008         * doc/posix-functions/vsprintf.texi: Likewise.
10009         * doc/glibc-functions/asprintf.texi: Likewise.
10010         * doc/glibc-functions/obstack_printf.texi: Likewise.
10011         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10012         * doc/glibc-functions/vasprintf.texi: Likewise.
10013
10014 2011-09-10  Bruno Haible  <bruno@clisp.org>
10015
10016         nocrash: Add support for native Windows.
10017         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10018
10019 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10020             Bruno Haible  <bruno@clisp.org>
10021
10022         absolute-header, include-next: Add support for MSVC compiler.
10023         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10024         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10025         directory separator in #line directives.
10026         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10027         recognize also backslash as directory separator in #line directives.
10028
10029 2011-09-08  Jim Meyering  <meyering@redhat.com>
10030
10031         maint.mk: mark the post-release commit log with "maint: " prefix
10032         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10033         one-line commit-log summary.
10034
10035 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10036             Bruno Haible  <bruno@clisp.org>
10037
10038         Doc about crypt functions.
10039         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10040         systems.
10041         * doc/posix-functions/encrypt.texi: Likewise.
10042         * doc/posix-functions/setkey.texi: Likewise.
10043
10044 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10045
10046         * lib/gc.h: Fix copyright header.
10047
10048 2011-09-07  Bruno Haible  <bruno@clisp.org>
10049
10050         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10051         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10052         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10053
10054 2011-09-07  Bruno Haible  <bruno@clisp.org>
10055
10056         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10057         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10058         * lib/freopen.c: Likewise.
10059         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10060         * lib/lstat.c: Likewise.
10061         * lib/stat.c: Likewise.
10062         * lib/open.c: Use different syntax for include of <fcntl.h>.
10063         * lib/openat.c: Include fcntl.h again, explicitly.
10064
10065 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10066
10067         parse-datetime: document the newly accepted format
10068         * doc/parse-datetime.texi (Combined date and time of day items):
10069         New section.
10070
10071 2011-09-06  Bruno Haible  <bruno@clisp.org>
10072
10073         acl: Fix a test failure on newer Solaris 10 with ZFS.
10074         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10075         ENOSYS as no ACL.
10076         Reported by Jim Meyering.
10077
10078 2011-09-06  Bruno Haible  <bruno@clisp.org>
10079
10080         acl: Update for AIX >= 5.3 with NFS.
10081         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10082         ENOSYS as no ACL.
10083
10084         acl: Fix a test failure on AIX >= 5.3 with NFS.
10085         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10086         as no ACL.
10087
10088 2011-09-06  Bruno Haible  <bruno@clisp.org>
10089
10090         acl: Fix a test failure on IRIX 6.5 with NFS.
10091         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10092         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10093         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10094         * lib/copy-acl.c (qcopy_acl): Likewise.
10095
10096 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10097
10098         openat: port to AIX 7.1 with large files
10099         AIX 7.1 does a "#define openat open64at" if large files are in use,
10100         so we can't simply #undef openat.  Use the orig_openat trick (similar
10101         to orig_open in lib/open.c) to work around the problem.  Problem
10102         reported by Kevin Brott for GNU tar, in the thread containing
10103         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10104         * lib/openat.c (__need_system_fcntl_h): Define first.
10105         Include <fcntl.h> and <sys/types.h> before undefining.
10106         (orig_openat) [HAVE_OPENAT]: New inline function.
10107         (openat) [HAVE_OPENAT]: Do not undef.
10108         (rpl_openat): Use orig_openat, not openat.
10109
10110 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10111             Bruno Haible  <bruno@clisp.org>
10112
10113         acl: Avoid errors on NonStop Kernel.
10114         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10115         ENOTSUP errors.
10116
10117 2011-09-05  Bruno Haible  <bruno@clisp.org>
10118
10119         acl: Clean up Solaris code.
10120         * lib/acl-internal.h: Remove no-op #if.
10121         * lib/file-has-acl.c: Likewise.
10122         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10123         * lib/copy-acl.c (qcopy_acl): Likewise.
10124
10125 2011-09-05  Bruno Haible  <bruno@clisp.org>
10126
10127         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10128         binaries built on the original Solaris 10.
10129         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10130         trivial.
10131
10132 2011-09-05  Bruno Haible  <bruno@clisp.org>
10133
10134         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10135         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10136         10.
10137         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10138         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10139         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10140         instead of acl_get, facl_get, acl_set, facl_set.
10141
10142 2011-09-05  Bruno Haible  <bruno@clisp.org>
10143
10144         copy-file: Try unit tests on more file systems.
10145         * tests/test-copy-file-1.sh: New file.
10146         * tests/test-copy-file-2.sh: New file.
10147         * modules/copy-file-tests (Files): Add them.
10148         (Makefile.am): Add them to TESTS.
10149
10150         acl: Try unit tests on more file systems.
10151         * tests/test-file-has-acl-1.sh: New file.
10152         * tests/test-file-has-acl-2.sh: New file.
10153         * tests/test-set-mode-acl-1.sh: New file.
10154         * tests/test-set-mode-acl-2.sh: New file.
10155         * tests/test-copy-acl-1.sh: New file.
10156         * tests/test-copy-acl-2.sh: New file.
10157         * modules/acl-tests (Files): Add them.
10158         (Makefile.am): Add them to TESTS.
10159
10160 2011-09-04  Bruno Haible  <bruno@clisp.org>
10161
10162         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10163         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10164         10.
10165         (OLD_ALLOW, OLD_DENY): New macros.
10166         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10167         ACE_ACCESS_ALLOWED_ACE_TYPE.
10168         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10169         ACE_ACCESS_DENIED_ACE_TYPE.
10170         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10171         (NEW_ACE_EXECUTE): Fix value.
10172         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10173         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10174         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10175         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10176         NEW_ACE_SYNCHRONIZE): New macros.
10177         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10178         instead of acl_fromtext, acl_set, facl_set.
10179         Fixes a coreutils/tests/cp/perm failure.
10180
10181 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10182
10183         openat: test for fstatat (..., 0) bug
10184         Further testing with tar suggests that fstatat (..., 0)
10185         does not work in general, on AIX 7.1; see
10186         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10187         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10188         replacement fstatat (which is what older AIX releases were using
10189         anyway).
10190         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10191         use is now changed to orig_fstatat.  This was probably the right
10192         thing to do anyway.
10193         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10194         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10195         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10196         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10197         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10198         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10199         if the bug is found.
10200
10201         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10202         This tests for another fstatat bug on AIX 7.1:
10203         fstatat (AT_FDCWD, ..., 0) does not work.  See
10204         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10205         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10206         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10207         (rpl_fstatat): Adjust so that it works around either (or both)
10208         bugs if present.
10209         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10210
10211 2011-09-03  Karl Berry  <karl@gnu.org>
10212
10213         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10214         in index entries.
10215
10216 2011-09-02  Bruno Haible  <bruno@clisp.org>
10217
10218         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10219         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10220         values of AR, ARFLAGS, RANLIB.
10221         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10222
10223 2011-09-02  Bruno Haible  <bruno@clisp.org>
10224
10225         Find 'ar' program that fits with --host argument.
10226         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10227
10228 2011-09-02  Bruno Haible  <bruno@clisp.org>
10229
10230         tests: init.sh: Support any non-GNU diff.
10231         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10232         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10233         Solaris 8.
10234
10235 2011-09-02  Bruno Haible  <bruno@clisp.org>
10236
10237         tests: init.sh: work also with any non-GNU diff that supports -u
10238         * tests/init.sh: Relax check for diff -u support.
10239         Rather than checking for GNU diff via --version, simply check
10240         for support for -u itself.  Useful at least on OpenBSD 4.9,
10241         AIX 7.1, IRIX 6.5, and Solaris 10.
10242
10243 2011-09-01  Bruno Haible  <bruno@clisp.org>
10244
10245         strtoimax, strtoumax: Document problem on HP-UX 11.
10246         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10247         * doc/posix-functions/strtoumax.texi: Likewise.
10248
10249 2011-09-01  Bruno Haible  <bruno@clisp.org>
10250
10251         strtoumax: Avoid link error on OSF/1 with DTK cc.
10252         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10253         defined as a function.
10254         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10255         strtoumax is defined, not whether it is declared.
10256
10257 2011-09-01  Bruno Haible  <bruno@clisp.org>
10258
10259         strtoimax: Avoid link error on OSF/1 with DTK cc.
10260         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10261         defined as a function.
10262         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10263         strtoimax is defined, not whether it is declared.
10264
10265 2011-09-01  Bruno Haible  <bruno@clisp.org>
10266
10267         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10268         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10269         as a function.
10270         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10271         whether it is declared.
10272
10273 2011-09-01  Bruno Haible  <bruno@clisp.org>
10274
10275         imaxabs: Avoid link error on OSF/1 with DTK cc.
10276         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10277         as a function.
10278         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10279         whether it is declared.
10280
10281 2011-09-01  Bruno Haible  <bruno@clisp.org>
10282
10283         Tests for module 'strtoumax'.
10284         * modules/strtoumax-tests: New file.
10285         * tests/test-strtoumax.c: New file.
10286
10287         Tests for module 'strtoimax'.
10288         * modules/strtoimax-tests: New file.
10289         * tests/test-strtoimax.c: New file.
10290
10291         Tests for module 'imaxdiv'.
10292         * modules/imaxdiv-tests: New file.
10293         * tests/test-imaxdiv.c: New file.
10294
10295         Tests for module 'imaxabs'.
10296         * modules/imaxabs-tests: New file.
10297         * tests/test-imaxabs.c: New file.
10298
10299 2011-09-01  Bruno Haible  <bruno@clisp.org>
10300
10301         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10302         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10303         pthread_create.
10304
10305 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10306
10307         openat: work around AIX 7.1 fstatat issue
10308         This should fix the problem that was not properly fixed
10309         in the previous change, dated 2011-08-30.
10310         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10311         __need_system_stat_h defined.
10312         (orig_fstatat) [HAVE_FSTATAT]: New function.
10313         (rpl_fstatat): Go back to the old way of doing things,
10314         except call orig_fstatat instead of fstatat.
10315         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10316         Remove unnecessary check whether fstatat fills in st_size etc.
10317
10318 2011-09-01  Bruno Haible  <bruno@clisp.org>
10319
10320         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10321         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10322         just include the system's header.
10323
10324 2011-08-31  Jim Meyering  <meyering@redhat.com>
10325
10326         tests: avoid spurious assertion failure in test-float.c on ppc64
10327         * tests/test-float.c (test_long_double): Comment out an assertion,
10328         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10329         with gcc-4.4.4.
10330
10331         maint: indent with spaces, not TABs
10332         I need to get in the habit of running gnulib's "make check".
10333         Both of these would have been caught.
10334         * m4/largefile.m4: Indent with spaces, not TABs.
10335         * lib/parse-datetime.y (iso_8601_time): Likewise.
10336         Spotted by Pádraig Brady.
10337
10338         test-parse-datetime.c: accommodate a relatively strict gcc warning
10339         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10340         to avoid a warning from gcc's -Werror=missing-declarations.
10341         Insert a few spaces-before-funcall-parenthesis.
10342
10343 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10344
10345         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10346         The parser now accepts ISO 8601 date-time strings with "T" as the
10347         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10348         with a space between the date and time strings.  Now it also parses
10349         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10350         variants like "2004-02-29T16:21:42.333-07:00"
10351         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10352         of day representation using the 'T' separator character.
10353         * doc/parse-datetime.texi (General date syntax): replace use of
10354         deprecated --iso-8601 option with --rfc-3339 in example of date
10355         command output formats that can be parsed.
10356         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10357         lib/parse-datetime.y.
10358         (gmt_offset): New function.
10359         (main): Add additional test cases to validate ISO8601 extended
10360         date and time of day parsing.
10361
10362 2011-08-31  Bruno Haible  <bruno@clisp.org>
10363
10364         freopen: Documentation.
10365         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10366         name.
10367         Reported by Claudio Bley <claudio.bley@gmail.com>.
10368
10369 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10370
10371         freopen: Don't crash if the filename argument is NULL.
10372         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10373         NULL.
10374
10375 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10376
10377         openat: work around AIX 7.1 fstatat bug
10378         Problem reported by Kevin Brott for GNU tar, in the thread containing
10379         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10380         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10381         FSTATAT_ST_SIZE_ETC_BROKEN.
10382         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10383         rpl_fstatat.
10384         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10385         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10386         AC_CHECK_FUNCS_ONCE for fstatat.
10387         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10388         fchmodat, mkdirat, openat and unlinkat.
10389
10390 2011-08-30  Bruno Haible  <bruno@clisp.org>
10391
10392         Avoid endless recursions if config.h includes some header files.
10393         * lib/fopen.c (__need_FILE): Define already before including config.h.
10394         * lib/freopen.c (__need_FILE): Likewise.
10395         * lib/open.c (__need_system_fcntl_h): Likewise.
10396         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10397         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10398         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10399
10400 2011-08-25  Karl Berry  <karl@gnu.org>
10401
10402         * config/srclist.txt (ylwrap): new try.
10403         * build-aux/ylwrap: new file.
10404
10405 2011-08-23  Bruno Haible  <bruno@clisp.org>
10406
10407         tmpdir: Use a good default directory on native Windows.
10408         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10409         (P_tmpdir): Default to _P_tmpdir on native Windows.
10410         (path_search): On native Windows, try the value returned by GetTempPath
10411         before trying P_tmpdir.
10412         * modules/tmpdir (Depends-on): Add pathmax.
10413         Suggested by John Darrington <john@darrington.wattle.id.au>.
10414
10415 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10416
10417         doc: fix typo in README-release
10418         * top/README-release: Capitalize first word of a sentence.
10419
10420 2011-08-19  Jim Meyering  <meyering@redhat.com>
10421
10422         fts: do not exhaust memory when processing million-entry directories
10423         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10424         directory would require about 256*N bytes of memory.  Thus, it was
10425         easy to construct a directory too large to be processed by any of
10426         those tools.  With this change, fts' maximum memory utilization is
10427         now limited to around 30MB.
10428         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10429         (fts_read): When we've processed the final entry (i.e., when
10430         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10431         using the parent entry to read any remaining entries.  Dispatch
10432         depending on what fts_build returns:
10433         - NULL+stop, aka failure: stop
10434         - NULL otherwise: move up in the dir hierarchy
10435         - non-NULL: handle this new entry
10436         (fts_build): Declare and use new local, continue_readdir.
10437         Prepare to be called from fts_read, when the entries
10438         from a partially-read directory have just been exhausted.
10439         In that case, we'll skip the opendir and instead use the parent's
10440         fts_dirp and derive dir_fd from that.
10441         Finally, in the readdir loop, if we read max_entries entries,
10442         exit the loop ensuring *not* to call closedir.  This is required
10443         so that fts_dirp can be reused on a subsequent call.
10444         Prompted by Ben England's report of memory exhaustion in find
10445         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10446
10447         maint: fts: move decl of `dp' down into while loop; split a long line
10448         * lib/fts.c (fts_build): No semantic change.
10449
10450         fts: add/use new struct member, fts_dirp
10451         We are about to use this to manage any directory with
10452         too many entries to read all of them into memory at once.
10453         To do that, we'll need to save the DIR* pointer in each
10454         affected FTSENT struct.
10455         * lib/fts_.h: Include <dirent.h>.
10456         (struct FTSENT) [fts_dirp]: New member.
10457         * lib/fts.c (closedir_and_clear): Define.
10458         Use it in place of closedir so that we are sure to
10459         clear the new fts_dirp member when done with it.
10460         (fts_alloc): Initialize the new member.
10461         (fts_lfree): Free, if needed.
10462
10463         maint: fts: give __opendir2 a new parameter and rename
10464         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10465         than surreptitiously using sole caller's "dir_fd".
10466         (fts_opendir): Rename from __opendir2.
10467
10468         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10469         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10470
10471         maint: fts.c: correct off-by-one indentation
10472         * lib/fts.c (fts_build): Correct indentation, change style
10473         of a couple of block comments, and bracing style.
10474
10475         maint: fts.c: move __opendir2 #define "up" out of function body
10476         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10477
10478         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10479         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10480         out for a long time and besides was useful only on BSD systems.
10481
10482 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10483
10484         regex: port to Stratus OpenVOS
10485         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10486         define to empty, rather than attempting nonportable optimizations.
10487         Problem reported by Paul Green in:
10488         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10489         and fix suggested by Eric Blake in:
10490         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10491
10492 2011-08-17  Eric Blake  <eblake@redhat.com>
10493
10494         getcwd: fix test failures on mingw
10495         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10496         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10497         test if long directory cannot be created, and allow mingw errno.
10498
10499         getcwd-lgpl: fix m4 to match relaxed test for BSD
10500         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10501         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10502         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10503         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10504         signature problem.
10505
10506         getcwd: fix compilation on mingw64
10507         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10508         getcwd.
10509         Reported by Marc-André Lureau.
10510
10511         pipe2: silence compiler warning
10512         * lib/pipe2.c (pipe2): Hide label if it is not used.
10513
10514 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10515
10516         relocatable-prog: fix link error
10517         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10518         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10519         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10520         into modules/relocatable-lib without noticing that
10521         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10522         also needs to build relocatable.c.
10523
10524 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10525
10526         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10527         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10528         shell code: it contained a 'break' that was not in a loop.
10529         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10530         via a shell-language loop; this may have been true in old Autoconf
10531         versions, but it's not true in Autoconf 2.68.  I found this bug
10532         when testing coreutils git on Solaris 8, whose shell complains
10533         about the syntax error.
10534
10535 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10536
10537         * lib/base64.c: Fix comment to reference RFC 4648.
10538         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10539         <gvtulder@gmail.com>.
10540
10541 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10542
10543         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10544
10545         po/Makefile.in.in: fix make -q problem
10546         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10547         rule, since there's no file named 'check-macro-version' and its
10548         use as a file breaks make -q.
10549         (all): Don't depend on check-macro-version.
10550         (CHECK_MACRO_VERSION): New macro.
10551         (stamp-po): Use it.
10552
10553         configmake: fix make -q problem
10554         * modules/configmake (configmake.h): Update configmake.h's time stamp
10555         even if the file does not change.  Otherwise, 'make -q' fails.
10556         Problem reported by Simon Josefsson in
10557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10558
10559 2011-08-11  Jim Meyering  <meyering@redhat.com>
10560
10561         git-version-gen: correct the advice in a comment
10562         * build-aux/git-version-gen: Correct comment.
10563         Don't recommend to list .tarball-version in .gitignore.
10564
10565 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10566
10567         base64: fix off-by-one buffer size bug
10568         Problem and (trivial) fix reported by Gijs van Tulder in
10569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10570         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10571         * tests/test-base64.c (main): Catch the bug.
10572
10573 2011-08-10  Eric Blake  <eblake@redhat.com>
10574
10575         closein: correct comments
10576         * lib/closein.c (close_stdin): Improve comments.
10577
10578 2011-08-09  Bruno Haible  <bruno@clisp.org>
10579
10580         More tests for 'fseeko'.
10581         * tests/test-fseeko3.c: New file, from Eric Blake.
10582         * tests/test-fseeko3.sh: New file.
10583         * modules/fseeko-tests (Files): Add them.
10584         (TESTS): Add test-fseeko3.sh.
10585         (check_PROGRAMS): Add test-fseeko3.
10586
10587 2011-08-09  Eric Blake  <eblake@redhat.com>
10588
10589         fseeko: remove unneeded hack
10590         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10591
10592         fseeko: fix bug on glibc
10593         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10594         Reported by John W. Eaton.
10595
10596 2011-08-08  Bruno Haible  <bruno@clisp.org>
10597
10598         unictype/base: Fix interoperability with preinstalled libunistring.
10599         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10600         Reported by Simon Josefsson.
10601
10602 2011-08-08  Bruno Haible  <bruno@clisp.org>
10603
10604         iswblank: Detect declaration correctly.
10605         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10606         AC_CHECK_DECLS invocation.
10607
10608 2011-08-08  Bruno Haible  <bruno@clisp.org>
10609
10610         tcgetsid: Detect declaration correctly.
10611         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10612         AC_CHECK_DECLS invocation.
10613         Reported by Simon Josefsson.
10614
10615 2011-08-08  Eric Blake  <eblake@redhat.com>
10616
10617         largefile: fix typo that regressed large file support
10618         * modules/largefile (configure.ac-early): Fix section name.
10619
10620 2011-08-06  Karl Berry  <karl@gnu.org>
10621
10622         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10623         a separate module.
10624
10625 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10626
10627         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10628         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10629         get prototype for free.
10630
10631 2011-08-04  Bruno Haible  <bruno@clisp.org>
10632
10633         Tests for module 'pathmax'.
10634         * modules/pathmax-tests: New file.
10635         * tests/test-pathmax.c: New file.
10636
10637         canonicalize-lgpl: Support larger filenames on the Hurd.
10638         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10639         Reported by Paul Eggert.
10640
10641         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10642         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10643         * lib/chdir-long.h: Include pathmax.h.
10644         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10645         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10646         (PATH_MAX): Remove code that is done by pathmax.h.
10647         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10648         * lib/tmpfile.c: Add a comment.
10649         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10650         * modules/chdir-long (Depends-on): Add pathmax.
10651         * modules/getcwd (Depends-on): Add pathmax.
10652         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10653         is not defined.
10654         * doc/posix-headers/limits.texi: Mention the pathmax module.
10655         * NEWS: Mention the change.
10656
10657 2011-08-02  Bruno Haible  <bruno@clisp.org>
10658
10659         pthread_sigmask: Actually use results of gl_THREADLIB.
10660         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10661         gl_THREADLIB, not gl_[]THREADLIB.
10662         Reported by Eric Blake.
10663
10664 2011-08-02  Jim Meyering  <meyering@redhat.com>
10665
10666         maint.mk: relax the default _gl_TS_function_match regexp
10667         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10668         space between function name and "(" in an "extern" declaration.
10669         That would fail to match a decl with no space there: extern void foo();
10670
10671 2011-07-31  Iain Nicol  <iain@thenicols.net>
10672
10673         git-version-gen: document that EXTRA_DIST must include .version
10674         * build-aux/git-version-gen: In the how-to-use comment, document
10675         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10676         will fail when run from an unpacked distribution tarball.
10677
10678 2011-08-01  Bruno Haible  <bruno@clisp.org>
10679
10680         wctype-h: Fix last change.
10681         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10682         REPLACE_TOWLOWER to 0.
10683         Reported by Sam Steingold <sds@gnu.org>.
10684
10685 2011-07-31  Bruno Haible  <bruno@clisp.org>
10686
10687         frexpl: Update autoconf test.
10688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10689         according to changes of 2011-06-20.
10690
10691 2011-07-31  Bruno Haible  <bruno@clisp.org>
10692
10693         sys_utsname: Add support for Minix.
10694         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10695         <sys/utsname.h>.
10696         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10697         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10698
10699 2011-07-31  Bruno Haible  <bruno@clisp.org>
10700
10701         strings: Add support for Minix.
10702         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10703         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10704         * doc/posix-headers/strings.texi: Document the Minix problem.
10705
10706 2011-07-31  Bruno Haible  <bruno@clisp.org>
10707
10708         wctype-h: Add support for Minix.
10709         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10710         REPLACE_TOWLOWER.
10711         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10712         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10713         REPLACE_ISWCNTRL.
10714
10715 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10716
10717         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10718         This is a performance improvement for 64-bit hosts: it causes the
10719         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10720
10721 2011-07-31  Bruno Haible  <bruno@clisp.org>
10722
10723         stdioext: Add support for Minix.
10724         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10725         * lib/fpurge.c (fpurge): Likewise.
10726         * lib/freadahead.c (freadahead): Likewise.
10727         * lib/freadable.c (freadable): Likewise.
10728         * lib/freading.c (freading): Likewise.
10729         * lib/freadptr.c (freadptr): Likewise.
10730         * lib/freadseek.c (freadptrinc): Likewise.
10731         * lib/fseeko.c (rpl_fseeko): Likewise.
10732         * lib/fseterr.c (fseterr): Likewise.
10733         * lib/fwritable.c (fwritable): Likewise.
10734         * lib/fwriting.c (fwriting): Likewise.
10735         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10736         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10737
10738 2011-07-31  Bruno Haible  <bruno@clisp.org>
10739
10740         errno: Port to Minix.
10741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10742         ECONNABORTED are defined.
10743         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10744         GNULIB_defined_ECONNABORTED): New macros.
10745         * lib/strerror-override.h (strerror_override): Test also
10746         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10747         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10748         ECONNABORTED.
10749         * doc/posix-headers/errno.texi: Mention the Minix problem.
10750
10751 2011-07-31  Bruno Haible  <bruno@clisp.org>
10752
10753         Work around declaration collisions on Minix.
10754         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10755         defined, set REPLACE_MBSINIT.
10756         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10757         defined, set REPLACE_MBRTOWC.
10758         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10759         set REPLACE_MBRLEN.
10760         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10761         defined, set REPLACE_MBSRTOWCS.
10762         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10763         defined, set REPLACE_WCRTOMB.
10764         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10765         defined, set REPLACE_WCSRTOMBS.
10766
10767 2011-07-31  Bruno Haible  <bruno@clisp.org>
10768
10769         Add support for Minix with ACK compiler.
10770         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10771         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10772         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10773
10774 2011-07-31  Bruno Haible  <bruno@clisp.org>
10775
10776         Documentation about Minix.
10777         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10778         * doc/glibc-headers/*.texi: Likewise.
10779         * doc/posix-functions/*.texi: Likewise.
10780         * doc/glibc-functions/*.texi: Likewise.
10781
10782 2011-07-31  Bruno Haible  <bruno@clisp.org>
10783
10784         snippet/warn-on-use: Fix indentation.
10785         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10786
10787 2011-07-25  Jim Meyering  <meyering@redhat.com>
10788
10789         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10790         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10791         commands.
10792
10793 2011-07-27  Jim Meyering  <meyering@redhat.com>
10794
10795         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10796         * top/maint.mk (gl_extract_significant_defines_): Now that
10797         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10798         gnulib/lib/signal.in.h, and now that we recommend to
10799         define-if-undefined those two symbols in application code,
10800         we must filter them out of the "significant" list.
10801         This avoids a "make syntax-check" failure in coreutils.
10802
10803 2011-07-26  Eric Blake  <eblake@redhat.com>
10804
10805         warnings: add comments about previous patch
10806         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10807         * m4/include_next.m4: Likewise.
10808         * m4/warn-on-use.m4: Likewise.
10809         * m4/warnings.m4: Likewise, and simplify use.
10810         Suggested by Stefano Lattarini.
10811
10812         include-next, warnings: support older autoconf
10813         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10814         AS_VAR_PUSHDEF in a way that works with older autoconf.
10815         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10816         Reported by Daniel P. Berrange.
10817
10818 2011-07-25  Bruno Haible  <bruno@clisp.org>
10819
10820         fseek, ftell: Fix doc.
10821         * doc/posix-functions/fseek.texi: Reword statement about
10822         AC_SYS_LARGEFILE.
10823         * doc/posix-functions/ftell.texi: Likewise.
10824
10825 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10826             Bruno Haible  <bruno@clisp.org>
10827
10828         Add dependencies to the 'largefile' module.
10829         * modules/fopen (Depends-on): Add 'largefile'.
10830         * modules/freopen (Depends-on): Likewise.
10831         * modules/fseeko (Depends-on): Likewise.
10832         * modules/ftello (Depends-on): Likewise.
10833         * modules/glob (Depends-on): Likewise.
10834         * modules/lseek (Depends-on): Likewise.
10835         * modules/lstat (Depends-on): Likewise.
10836         * modules/mkostemp (Depends-on): Likewise.
10837         * modules/mkostemps (Depends-on): Likewise.
10838         * modules/mkstemp (Depends-on): Likewise.
10839         * modules/mkstemps (Depends-on): Likewise.
10840         * modules/open (Depends-on): Likewise.
10841         * modules/openat (Depends-on): Likewise.
10842         * modules/pread (Depends-on): Likewise.
10843         * modules/pwrite (Depends-on): Likewise.
10844         * modules/scandir (Depends-on): Likewise.
10845         * modules/stat (Depends-on): Likewise.
10846         * modules/tmpfile (Depends-on): Likewise.
10847         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10848         since the containing module now depends on the largefile module.
10849         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10850         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10851         off_t is fixed by gnulib.
10852         * doc/posix-functions/freopen.texi: Likewise.
10853         * doc/posix-functions/fseeko.texi: Likewise.
10854         * doc/posix-functions/fstatat.texi: Likewise.
10855         * doc/posix-functions/ftello.texi: Likewise.
10856         * doc/posix-functions/glob.texi: Likewise.
10857         * doc/posix-functions/lseek.texi: Likewise.
10858         * doc/posix-functions/lstat.texi: Likewise.
10859         * doc/posix-functions/mkstemp.texi: Likewise.
10860         * doc/posix-functions/open.texi: Likewise.
10861         * doc/posix-functions/openat.texi: Likewise.
10862         * doc/posix-functions/pread.texi: Likewise.
10863         * doc/posix-functions/pwrite.texi: Likewise.
10864         * doc/posix-functions/scandir.texi: Likewise.
10865         * doc/posix-functions/stat.texi: Likewise.
10866         * doc/posix-functions/tmpfile.texi: Likewise.
10867         * doc/glibc-functions/mkostemp.texi: Likewise.
10868         * doc/glibc-functions/mkostemps.texi: Likewise.
10869         * doc/glibc-functions/mkstemps.texi: Likewise.
10870
10871 2011-07-25  Bruno Haible  <bruno@clisp.org>
10872
10873         fcntl: Move AC_LIBOBJ invocation to module description.
10874         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10875         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10876
10877         fcntl: Remove call-in from fchdir.m4.
10878         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10880
10881         dup3: Remove potential call-in from fchdir.m4.
10882         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10883         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10884
10885         dup2: Move AC_LIBOBJ invocation to module description.
10886         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10887         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10888         Don't invoke AC_LIBOBJ.
10889         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10890
10891         dup2: Remove call-in from fchdir.m4.
10892         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10894
10895         fclose: Move AC_LIBOBJ invocation to module description.
10896         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10897         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10898         to 1.
10899         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10900
10901         fclose: Remove call-in from close.m4.
10902         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10903         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10904
10905         close: Move AC_LIBOBJ invocation to module description.
10906         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10907         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10908         1.
10909         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10910
10911         close: Remove call-in from fchdir.m4.
10912         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10914
10915         open: Move AC_LIBOBJ invocation to module description.
10916         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10917         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10918         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10919
10920         open: Remove call-in from fchdir.m4.
10921         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10923
10924         fchdir: Start to remove gl_REPLACE_* idiom.
10925         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10926         (gl_FUNC_FCHDIR): Invoke it.
10927
10928 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10929
10930         * lib/ftell.c (ftell): Comment out cast.
10931
10932         close: use gl_REPLACE_FCLOSE only if defined
10933         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10934         is defined.  The close module doesn't depend on the fclose module
10935         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10937         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10938
10939 2011-07-24  Jim Meyering  <meyering@redhat.com>
10940
10941         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10942         * tests/test-select.h (test_function): Declare as "static".
10943
10944 2011-07-24  Bruno Haible  <bruno@clisp.org>
10945
10946         doc: Mention the effects of AC_SYS_LARGEFILE.
10947         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10948         on this function.
10949         * doc/posix-functions/aio_error.texi: Likewise.
10950         * doc/posix-functions/aio_fsync.texi: Likewise.
10951         * doc/posix-functions/aio_read.texi: Likewise.
10952         * doc/posix-functions/aio_return.texi: Likewise.
10953         * doc/posix-functions/aio_suspend.texi: Likewise.
10954         * doc/posix-functions/aio_write.texi: Likewise.
10955         * doc/posix-functions/fgetpos.texi: Likewise.
10956         * doc/posix-functions/fopen.texi: Likewise.
10957         * doc/posix-functions/freopen.texi: Likewise.
10958         * doc/posix-functions/fsetpos.texi: Likewise.
10959         * doc/posix-functions/fstatvfs.texi: Likewise.
10960         * doc/posix-functions/ftruncate.texi: Likewise.
10961         * doc/posix-functions/ftw.texi: Likewise.
10962         * doc/posix-functions/getrlimit.texi: Likewise.
10963         * doc/posix-functions/glob.texi: Likewise.
10964         * doc/posix-functions/lio_listio.texi: Likewise.
10965         * doc/posix-functions/lockf.texi: Likewise.
10966         * doc/posix-functions/mkstemp.texi: Likewise.
10967         * doc/posix-functions/mmap.texi: Likewise.
10968         * doc/posix-functions/nftw.texi: Likewise.
10969         * doc/posix-functions/openat.texi: Likewise.
10970         * doc/posix-functions/opendir.texi: Likewise.
10971         * doc/posix-functions/posix_fadvise.texi: Likewise.
10972         * doc/posix-functions/posix_fallocate.texi: Likewise.
10973         * doc/posix-functions/pread.texi: Likewise.
10974         * doc/posix-functions/pwrite.texi: Likewise.
10975         * doc/posix-functions/readdir.texi: Likewise.
10976         * doc/posix-functions/readdir_r.texi: Likewise.
10977         * doc/posix-functions/rewinddir.texi: Likewise.
10978         * doc/posix-functions/scandir.texi: Likewise.
10979         * doc/posix-functions/seekdir.texi: Likewise.
10980         * doc/posix-functions/setrlimit.texi: Likewise.
10981         * doc/posix-functions/statvfs.texi: Likewise.
10982         * doc/posix-functions/telldir.texi: Likewise.
10983         * doc/posix-functions/tmpfile.texi: Likewise.
10984         * doc/posix-functions/truncate.texi: Likewise.
10985         * doc/glibc-functions/fallocate.texi: Likewise.
10986         * doc/glibc-functions/fstatfs.texi: Likewise.
10987         * doc/glibc-functions/fts_children.texi: Likewise.
10988         * doc/glibc-functions/fts_read.texi: Likewise.
10989         * doc/glibc-functions/getdirentries.texi: Likewise.
10990         * doc/glibc-functions/mkostemp.texi: Likewise.
10991         * doc/glibc-functions/mkostemps.texi: Likewise.
10992         * doc/glibc-functions/mkstemps.texi: Likewise.
10993         * doc/glibc-functions/preadv.texi: Likewise.
10994         * doc/glibc-functions/pwritev.texi: Likewise.
10995         * doc/glibc-functions/sendfile.texi: Likewise.
10996         * doc/glibc-functions/statfs.texi: Likewise.
10997
10998 2011-07-24  Bruno Haible  <bruno@clisp.org>
10999
11000         doc: Fix typo.
11001         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11002
11003 2011-07-24  Bruno Haible  <bruno@clisp.org>
11004
11005         doc: Mention fsusage.
11006         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11007
11008 2011-07-24  Bruno Haible  <bruno@clisp.org>
11009
11010         doc: Mention new glibc headers and functions.
11011         * doc/glibc-headers/gshadow.texi: New file.
11012         * doc/glibc-functions/endsgent.texi: New file.
11013         * doc/glibc-functions/fgetsgent.texi: New file.
11014         * doc/glibc-functions/fgetsgent_r.texi: New file.
11015         * doc/glibc-functions/getsgent.texi: New file.
11016         * doc/glibc-functions/getsgent_r.texi: New file.
11017         * doc/glibc-functions/getsgnam.texi: New file.
11018         * doc/glibc-functions/getsgnam_r.texi: New file.
11019         * doc/glibc-functions/putsgent.texi: New file.
11020         * doc/glibc-functions/setsgent.texi: New file.
11021         * doc/glibc-functions/sgetsgent.texi: New file.
11022         * doc/glibc-functions/sgetsgent_r.texi: New file.
11023         * doc/glibc-functions/malloc_info.texi: New file.
11024         * doc/glibc-functions/preadv.texi: New file.
11025         * doc/glibc-functions/pwritev.texi: New file.
11026         * doc/glibc-functions/register_printf_modifier.texi: New file.
11027         * doc/glibc-functions/register_printf_specifier.texi: New file.
11028         * doc/glibc-functions/register_printf_type.texi: New file.
11029         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11030         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11031         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11032         * doc/glibc-functions/pthread_getname_np.texi: New file.
11033         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11034         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11035         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11036         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11037         * doc/glibc-functions/pthread_setname_np.texi: New file.
11038         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11039         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11040         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11041         * doc/glibc-functions/qsort_r.texi: New file.
11042         * doc/glibc-functions/quick_exit.texi: New file.
11043         * doc/glibc-functions/syncfs.texi: New file.
11044         * doc/gnulib.texi: Include them.
11045         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11046         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11047         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11048         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11049         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11050         * doc/glibc-functions/execvpe.texi: Likewise.
11051
11052 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11053
11054         ftell: don't include <unistd.h>
11055         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11056         guaranteed to define off_t, and the ftell module depends on the
11057         stdio module.
11058
11059         ftell: do not assume wraparound signed arithmetic
11060         * lib/ftell.c: Include <limits.h>.
11061         (ftell): Don't assume wraparound signed arithmetic.
11062
11063 2011-07-24  Bruno Haible  <bruno@clisp.org>
11064
11065         close: No longer depend on module 'fclose'.
11066         * modules/close (Depends-on): Remove fclose.
11067         * NEWS: Mention the change.
11068         Suggested by Sam Steingold <sds@gnu.org>.
11069
11070 2011-07-24  Bruno Haible  <bruno@clisp.org>
11071
11072         fsusage: Enable large volume support on AIX >= 5.2.
11073         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11074         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11075         instead of STAT_STATVFS.
11076         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11077
11078         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11079         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11080         f_blocks field only on MacOS X.
11081
11082         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11084         * modules/fsusage (Depends-on): Add largefile.
11085
11086 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11087
11088         * README: Modernize discussion of signed integers.
11089         Assuming overflow wraparound is no longer safe.
11090         Mention ones' complement and signed magnitude.
11091
11092 2011-07-22  Bruno Haible  <bruno@clisp.org>
11093
11094         select tests, pselect tests: Refactor.
11095         * tests/test-select.h: New file, extracted from tests/test-select.c.
11096         (select_fn): New type.
11097         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11098         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11099         test_pipe): Add my_select argument.
11100         (test_function): Renamed from main. Add my_select argument.
11101         * tests/test-select.c: Move most code to tests/test-select.h. Include
11102         test-select.h.
11103         * modules/select-tests (Files): Add tests/test-select.h.
11104         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11105         (my_select, main): New functions.
11106         * modules/pselect-tests (Files): Add tests/test-select.h,
11107         tests/macros.h, tests/signature.h.
11108         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11109         (configure.ac): Check for <sys/wait.h>.
11110
11111 2011-07-22  Bruno Haible  <bruno@clisp.org>
11112
11113         sys_select tests: Check the signature of FD_*.
11114         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11115         signature tests from here...
11116         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11117         here.
11118         * modules/sys_select-tests (Files): Add tests/signature.h.
11119
11120 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11121
11122         largefile: new module, replacing large-inode
11123         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11124         * MODULES.html.sh: Add largefile, remove large-inode.
11125         * modules/largefile, m4/largefile.m4: New files.
11126         * modules/large-inode, m4/large-inode.m4: Remove.
11127
11128         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11129         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11130         implementations that use only 32 bits to count blocks.
11131         On typical hosts with 1024-byte blocks, this fails with file
11132         systems as small as 4 TiB.  Problem reported by Herb Wartens
11133         <http://debbugs.gnu.org/9140> and this should also fix a similar
11134         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11135
11136         large-inode: New module
11137         * MODULES.html.sh: Add it.
11138         * modules/large-inode, m4/large-inode.m4: New files.
11139
11140         extensions: Enable extensions on MacOS X 10.5 and later.
11141         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11142
11143 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11144
11145         file-has-acl: use acl_extended_file_nofollow if available
11146         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11147         (acl_extended_file): New macro.
11148         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11149         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11150
11151 2011-07-21  Bruno Haible  <bruno@clisp.org>
11152
11153         Declare system functions in a way that works with C++.
11154         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11155         declare fdopendir as extern "C".
11156         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11157         declare frexpl as extern "C".
11158         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11159         declare gai_strerror as extern "C".
11160         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11161         programs, declare gai_strerror as extern "C".
11162         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11163         declare getlogin_r as extern "C".
11164         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11165         as extern "C".
11166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11167         declare ldexpl as extern "C".
11168         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11169         as extern "C".
11170         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11171         program, declare getmntinfo as extern "C".
11172         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11173         stpncpy as extern "C".
11174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11175         program, declare __xpg_strerror_r as extern "C".
11176         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11177         strndup as extern "C".
11178         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11179         declare memset and bzero as extern "C".
11180         Reported by Sam Steingold <sds@gnu.org>.
11181
11182 2011-07-12  Jim Meyering  <meyering@redhat.com>
11183
11184         maint.mk: prohibit inclusion of "verify.h" without use
11185         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11186
11187 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11188
11189         timer-time: A new module to check for timer_settime()
11190         * m4/timer_time.m4: Check for the posix function.
11191         * modules/timer-time: Add the new module.
11192         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11193         Mention it.
11194
11195 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11196             Bruno Haible  <bruno@clisp.org>
11197
11198         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11199         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11200         not defined, assume POSIX threads and look for pthread_sigmask in
11201         $LIBS, without changing $CPPFLAGS.
11202
11203 2011-07-19  Bruno Haible  <bruno@clisp.org>
11204
11205         strstr: Update cross-compilation guess.
11206         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11207         CPUs, guess no, in view of glibc
11208         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11209         Suggested by Eric Blake. Reported by Reuben Thomas.
11210
11211 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11212
11213         getopt-gnu: suppress core dumps from detection code
11214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11215         to suppress core dumps that may well occur on glibc systems.
11216         * modules/getopt-gnu: Depend on nocrash.
11217
11218 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11219
11220         pthread_sigmask: ensure usleep is declared
11221         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11222         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11223
11224 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11225
11226         doc: Document NonStop portability issues.
11227         * doc/posix-functions/sigaction.texi (sigaction):
11228         * doc/posix-headers/signal.texi (signal.h):
11229         Document NonStop.  See Joachim Schmitz in
11230         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11231
11232 2011-07-15  Bruno Haible  <bruno@clisp.org>
11233
11234         ffsl, ffsll: Avoid unportable behaviour.
11235         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11236
11237 2011-07-15  Bruno Haible  <bruno@clisp.org>
11238
11239         ffs: More tests.
11240         * tests/test-ffs.c (NBITS): New macro.
11241         (main): Add more tests.
11242         * tests/test-ffsl.c (NBITS): New macro.
11243         (main): Add more tests.
11244         * tests/test-ffsll.c (NBITS): New macro.
11245         (main): Add more tests.
11246
11247 2011-07-15  Eric Blake  <eblake@redhat.com>
11248
11249         ffsl, ffsll: new modules
11250         * modules/ffsl: New file.
11251         * modules/ffsll: Likewise.
11252         * m4/ffsl.m4: Likewise.
11253         * m4/ffsll.m4: Likewise.
11254         * lib/ffsl.c: Likewise.
11255         * lib/ffsl.h: Likewise.
11256         * lib/ffsll.c: Likewise.
11257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11258         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11259         * modules/string (Makefile.am): Substitute witnesses.
11260         * lib/strings.in.h (ffsl, ffsll): Declare.
11261         * modules/ffsl-tests: New test file.
11262         * modules/ffsll-tests: Likewise.
11263         * tests/test-ffsl.c: Likewise.
11264         * tests/test-ffsll.c: Likewise.
11265         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11266         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11267         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11268
11269         ffs: fix m4 prerequisite
11270         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11271
11272         ffs: avoid undefined behavior
11273         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11274         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11275         Reported by Bruno Haible.
11276
11277 2011-07-12  Bruno Haible  <bruno@clisp.org>
11278
11279         pthread_sigmask: Rely on module 'threadlib'.
11280         * modules/pthread_sigmask (Depends-on): Add threadlib.
11281         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11282         is defined.
11283
11284 2011-07-12  Bruno Haible  <bruno@clisp.org>
11285
11286         regex: Depend on module 'strcase'.
11287         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11288
11289 2011-07-12  Jim Meyering  <meyering@redhat.com>
11290
11291         warn-on-use: fix typo in file name
11292         * modules/snippet/warn-on-use (Files): Correct file name:
11293         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11294
11295 2011-07-12  Bruno Haible  <bruno@clisp.org>
11296
11297         strings: Document module.
11298         * doc/posix-headers/strings.texi: Mention module 'strings'.
11299
11300 2011-07-12  Bruno Haible  <bruno@clisp.org>
11301
11302         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11303         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11304         (Files, Makefile.am): Update.
11305         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11306         * modules/stdlib (Depends-on): Update.
11307
11308 2011-07-12  Bruno Haible  <bruno@clisp.org>
11309
11310         * NEWS: Mention the changes.
11311
11312         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11313         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11314         (Files, Makefile.am): Update.
11315         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11316         * modules/arpa_inet (Depends-on): Update.
11317         * modules/ctype (Depends-on): Update.
11318         * modules/dirent (Depends-on): Update.
11319         * modules/fcntl-h (Depends-on): Update.
11320         * modules/glob (Depends-on): Update.
11321         * modules/iconv-h (Depends-on): Update.
11322         * modules/inttypes-incomplete (Depends-on): Update.
11323         * modules/langinfo (Depends-on): Update.
11324         * modules/locale (Depends-on): Update.
11325         * modules/math (Depends-on): Update.
11326         * modules/netdb (Depends-on): Update.
11327         * modules/poll-h (Depends-on): Update.
11328         * modules/pty (Depends-on): Update.
11329         * modules/search (Depends-on): Update.
11330         * modules/signal (Depends-on): Update.
11331         * modules/spawn (Depends-on): Update.
11332         * modules/stdio (Depends-on): Update.
11333         * modules/stdlib (Depends-on): Update.
11334         * modules/string (Depends-on): Update.
11335         * modules/strings (Depends-on): Update.
11336         * modules/sys_file (Depends-on): Update.
11337         * modules/sys_ioctl (Depends-on): Update.
11338         * modules/sys_select (Depends-on): Update.
11339         * modules/sys_socket (Depends-on): Update.
11340         * modules/sys_stat (Depends-on): Update.
11341         * modules/sys_time (Depends-on): Update.
11342         * modules/sys_times (Depends-on): Update.
11343         * modules/sys_utsname (Depends-on): Update.
11344         * modules/sys_wait (Depends-on): Update.
11345         * modules/termios (Depends-on): Update.
11346         * modules/time (Depends-on): Update.
11347         * modules/unistd (Depends-on): Update.
11348         * modules/wchar (Depends-on): Update.
11349         * modules/wctype-h (Depends-on): Update.
11350         * MODULES.html.sh (Support for building libraries and executables):
11351         Update.
11352
11353         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11354         * modules/snippet/unused-parameter: Renamed from
11355         modules/unused-parameter.
11356         (Files, Makefile.am): Update.
11357         * build-aux/snippet/unused-parameter.h: Renamed from
11358         build-aux/unused-parameter.h.
11359         * modules/selinux-h (Depends-on): Update.
11360         * modules/unistr/base (Depends-on): Update.
11361         * MODULES.html.sh (Core language properties): Update.
11362
11363         Rename module 'link-warning' to 'snippet/link-warning'.
11364         * modules/snippet/link-warning: Renamed from modules/link-warning.
11365         (Files, Makefile.am): Update.
11366         * build-aux/snippet/link-warning.h: Renamed from
11367         build-aux/link-warning.h.
11368         * MODULES.html.sh (Support for building libraries and executables):
11369         Update.
11370
11371         Rename module 'c++defs' to 'snippet/c++defs'.
11372         * modules/snippet/c++defs: Renamed from modules/c++defs.
11373         (Files, Makefile.am): Update.
11374         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11375         * modules/arpa_inet (Depends-on): Update.
11376         * modules/ctype (Depends-on): Update.
11377         * modules/dirent (Depends-on): Update.
11378         * modules/fcntl-h (Depends-on): Update.
11379         * modules/glob (Depends-on): Update.
11380         * modules/iconv-h (Depends-on): Update.
11381         * modules/langinfo (Depends-on): Update.
11382         * modules/locale (Depends-on): Update.
11383         * modules/math (Depends-on): Update.
11384         * modules/netdb (Depends-on): Update.
11385         * modules/poll-h (Depends-on): Update.
11386         * modules/pty (Depends-on): Update.
11387         * modules/search (Depends-on): Update.
11388         * modules/signal (Depends-on): Update.
11389         * modules/spawn (Depends-on): Update.
11390         * modules/stdio (Depends-on): Update.
11391         * modules/stdlib (Depends-on): Update.
11392         * modules/string (Depends-on): Update.
11393         * modules/strings (Depends-on): Update.
11394         * modules/sys_ioctl (Depends-on): Update.
11395         * modules/sys_select (Depends-on): Update.
11396         * modules/sys_socket (Depends-on): Update.
11397         * modules/sys_stat (Depends-on): Update.
11398         * modules/sys_time (Depends-on): Update.
11399         * modules/sys_wait (Depends-on): Update.
11400         * modules/termios (Depends-on): Update.
11401         * modules/time (Depends-on): Update.
11402         * modules/unistd (Depends-on): Update.
11403         * modules/wchar (Depends-on): Update.
11404         * modules/wctype-h (Depends-on): Update.
11405
11406         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11407         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11408         (Files, Makefile.am): Update.
11409         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11410         * modules/argv-iter (Depends-on): Update.
11411         * modules/arpa_inet (Depends-on): Update.
11412         * modules/dirent (Depends-on): Update.
11413         * modules/fcntl-h (Depends-on): Update.
11414         * modules/fnmatch (Depends-on): Update.
11415         * modules/getopt-posix (Depends-on): Update.
11416         * modules/glob (Depends-on): Update.
11417         * modules/iconv-h (Depends-on): Update.
11418         * modules/inttypes-incomplete (Depends-on): Update.
11419         * modules/locale (Depends-on): Update.
11420         * modules/math (Depends-on): Update.
11421         * modules/netdb (Depends-on): Update.
11422         * modules/search (Depends-on): Update.
11423         * modules/signal (Depends-on): Update.
11424         * modules/spawn (Depends-on): Update.
11425         * modules/stdio (Depends-on): Update.
11426         * modules/stdlib (Depends-on): Update.
11427         * modules/string (Depends-on): Update.
11428         * modules/strings (Depends-on): Update.
11429         * modules/sys_socket (Depends-on): Update.
11430         * modules/sys_stat (Depends-on): Update.
11431         * modules/sys_time (Depends-on): Update.
11432         * modules/sys_times (Depends-on): Update.
11433         * modules/sys_utsname (Depends-on): Update.
11434         * modules/time (Depends-on): Update.
11435         * modules/unistd (Depends-on): Update.
11436         * modules/wchar (Depends-on): Update.
11437         * MODULES.html.sh (Support for building libraries and executables):
11438         Update.
11439
11440 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11441
11442         Improvements on _Noreturn and related modules.
11443
11444         modules/_Exit-tests: test _Noreturn too
11445         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11446         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11447         (main): Use them.
11448
11449         stdnoreturn, stdnoreturn-tests: remove modules
11450         They're not needed here and a bit premature for use elsewhere.  See
11451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11452         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11453         * tests/test-stdnoreturn.c: Remove files.
11454         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11455         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11456         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11457         and using noreturn.
11458         * modules/openat, modules/sigpipe-die, modules/xalloc:
11459         * modules/xmemdup0, modules/xstrtol:
11460         Remove dependency on stdnoreturn.
11461
11462         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11463         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11464         Reparenthesize to avoid GCC warning.
11465         Support Microsoft's syntax.
11466         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11467
11468         _Noreturn-tests: remove module
11469         * modules/_Noreturn-tests: Remove.
11470         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11471         * tests/test-_Noreturn.c: Remove.
11472         * tests/test-stdnoreturn.c: Merge from the old
11473         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11474
11475 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11476
11477         _Noreturn, stdnoreturn, and related modules.
11478
11479         * top/maint.mk: Adjust to new noreturn support.
11480         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11481         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11482
11483         xalloc: use stdnoreturn.h
11484         * lib/xalloc.h: Include <stdnoreturn.h>.
11485         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11486         * modules/xalloc (Depends-on): Add stdnoreturn.
11487
11488         xstrtol: use stdnoreturn.h
11489         * lib/xstrtol.h: Include <stdnoreturn.h>.
11490         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11491         * modules/xstrtol (Depends-on): Add stdnoreturn.
11492
11493         xmemdup0: use stdnoreturn.h
11494         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11495         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11496         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11497
11498         sigpipe-die: use stdnoreturn.h
11499         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11500         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11501         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11502
11503         openat: use stdnoreturn.h
11504         * lib/openat.h: Include <stdnoreturn.h>.
11505         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11506         * modules/openat (Depends-on): Add stdnoreturn.
11507
11508         * lib/openat-die.c (openat_save_fail): Modernize comment.
11509
11510         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11511
11512         * lib/glthread/thread.h: Modernize comment.
11513
11514         obstack: use _Noreturn
11515         * lib/obstack.c (__attribute__): Remove macro.
11516         (print_and_abort): Use _Noreturn.
11517
11518         c-stack: use _Noreturn
11519         * lib/c-stack.c (die, overflow_handler, segv_handler):
11520         Use _Noreturn rather than __attribute__((noreturn)).
11521
11522         argmatch-tests, exclude_tests: use _Noreturn
11523         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11524         Remove.
11525         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11526
11527         stdlib: use _Noreturn
11528         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11529         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11530         * modules/stdlib (Depends-on): Add _Noreturn.
11531         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11532
11533         stdnoreturn-tests: new module
11534         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11535
11536         stdnoreturn: new module
11537         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11538         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11539
11540         _Noreturn-tests: new module
11541         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11542
11543         _Noreturn: new module
11544         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11545         New section, mentioning it.
11546         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11547
11548         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11549
11550 2011-07-11  Eric Blake  <eblake@redhat.com>
11551
11552         ffs: new module
11553         * modules/ffs: New file.
11554         * m4/ffs.m4: Likewise.
11555         * lib/ffs.c: Likewise.
11556         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11557         * modules/strings (Makefile.am): Substitute witness.
11558         (Depends-on): Add c++defs.
11559         * lib/strings.in.h (ffs): Declare.
11560         * modules/ffs-tests: New test file.
11561         * tests/test-ffs.c: Test new module.
11562         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11563         * doc/posix-functions/ffs.texi (ffs): Likewise.
11564
11565         regex: avoid compiler warning
11566         * lib/regex.c (includes): Include <strings.h>, for use of
11567         strcasecmp in regcomp.c.
11568         Reported by Joachim Schmitz.
11569
11570 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11571
11572         stdint: respect system's intmax_t if INTMAX_MAX
11573         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11574         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11575         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11576         long but int64_t is long long, and where we will clash with the
11577         system intmax_t if we override it.  See
11578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11579         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11580         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11581         similarly for UINTMAX_C.
11582
11583 2011-07-08  Bruno Haible  <bruno@clisp.org>
11584
11585         pthread_sigmask tests: Avoid a compiler warning.
11586         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11587         non-zero.
11588
11589         sigprocmask tests: A better way to avoid a compiler warning.
11590         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11591         (main): Complain if system() returns non-zero.
11592         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11593
11594 2011-07-08  Bruno Haible  <bruno@clisp.org>
11595
11596         pthread_sigmask: Work around IRIX bug.
11597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11598         bug.
11599         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11600         there may be unblocked pending signals.
11601         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11602
11603 2011-07-08  Bruno Haible  <bruno@clisp.org>
11604
11605         pthread_sigmask: Work around Cygwin bug.
11606         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11607         bug.
11608         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11609         the system's pthread_sigmask function.
11610         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11611
11612 2011-07-08  Bruno Haible  <bruno@clisp.org>
11613
11614         pthread_sigmask: Work around bug in single-threaded implementation.
11615         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11616         FreeBSD, HP-UX, Solaris bug.
11617         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11618         * lib/pthread_sigmask.c: Include <stddef.h>.
11619         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11620         the system's pthread_sigmask function.
11621         * modules/pthread_sigmask (configure.ac): Invoke
11622         gl_PREREQ_PTHREAD_SIGMASK.
11623         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11624         HP-UX, Solaris.
11625
11626 2011-07-08  Eric Blake  <eblake@redhat.com>
11627
11628         test-sigprocmask: avoid compiler warning
11629         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11630         * tests/test-sigprocmask.c (main): Use it to silence warning.
11631         Reported by Jim Meyering.
11632
11633         test-snprintf: avoid compiler warning
11634         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11635         * tests/test-vsnprintf.c (main): Likewise.
11636         Reported by Jim Meyering.
11637
11638 2011-07-08  Bruno Haible  <bruno@clisp.org>
11639
11640         Tests for module 'pthread_sigmask'.
11641         * modules/pthread_sigmask-tests: New file.
11642         * tests/test-pthread_sigmask1.c: New file, based on
11643         tests/test-sigprocmask.c.
11644         * tests/test-pthread_sigmask2.c: New file.
11645
11646 2011-07-08  Jim Meyering  <meyering@redhat.com>
11647
11648         test-getopt.h: avoid warning about an unused variable
11649         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11650
11651 2011-07-07  Jim Meyering  <meyering@redhat.com>
11652
11653         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11654         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11655         now that it no longer contains leading TABs.
11656         Remove unused "url=FIXME" statement.
11657
11658 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11659
11660         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11661         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11662         When gl_THREADLIB is not in use, assume that the POSIX sematics
11663         are desired.  This is better for Emacs, which uses POSIX semantics
11664         on GNUish and/or POSIXish platforms, and does not use threads at
11665         all otherwise.
11666
11667         pthread_sigmask: fix typo when testing for libraries
11668         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11669         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11670
11671 2011-07-08  Eric Blake  <eblake@redhat.com>
11672
11673         fts: introduce FTS_NOATIME
11674         * lib/fts_.h (FTS_NOATIME): New bit flag.
11675         (FTS_OPTIONMASK): Adjust.
11676         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11677         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11678
11679 2011-07-08  Bruno Haible  <bruno@clisp.org>
11680
11681         Tests for module 'thread'.
11682         * modules/thread-tests: New file.
11683         * tests/test-thread_self.c: New file.
11684         * tests/test-thread_create.cc: New file.
11685
11686 2011-07-08  Bruno Haible  <bruno@clisp.org>
11687
11688         thread: Avoid gcc warnings when using gl_thread_self().
11689         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11690         'void *'.
11691         (gl_thread_self_pointer): Update.
11692
11693 2011-07-07  Bruno Haible  <bruno@clisp.org>
11694
11695         signal-c++-tests: Check declaration of pthread_sigmask.
11696         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11697         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11698         $(LIB_PTHREAD_SIGMASK).
11699
11700 2011-07-07  Bruno Haible  <bruno@clisp.org>
11701
11702         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11703         * lib/signal.in.h (pthread_sigmask): Override if
11704         REPLACE_PTHREAD_SIGMASK is 1.
11705         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11706         REPLACE_PTHREAD_SIGMASK.
11707         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11708         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11709         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11710         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11711         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11712
11713 2011-07-07  Bruno Haible  <bruno@clisp.org>
11714
11715         pthread_sigmask: Ensure declaration in <signal.h>.
11716         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11717         include <pthread.h>.
11718         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11719         problem.
11720
11721 2011-07-07  Bruno Haible  <bruno@clisp.org>
11722
11723         pthread_sigmask: Document the module.
11724         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11725
11726 2011-07-07  Bruno Haible  <bruno@clisp.org>
11727
11728         pthread_sigmask: Follow gnulib conventions.
11729         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11730         gl_PTHREAD_SIGMASK.
11731         * modules/pthread_sigmask (configure.ac): Update.
11732
11733 2011-07-07  Bruno Haible  <bruno@clisp.org>
11734
11735         pthread_sigmask: Make declaration C++ safe.
11736         * lib/signal.in.h: In two special conditions, just do an #include_next.
11737         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11738         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11739         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11740         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11741         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11742         not REPLACE_PTHREAD_MASK.
11743         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11744         not REPLACE_PTHREAD_MASK.
11745         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11746
11747 2011-07-07  Bruno Haible  <bruno@clisp.org>
11748
11749         pthread_sigmask: Fix return value.
11750         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11751         * lib/pthread_sigmask.c: New file.
11752         * modules/pthread_sigmask (Files): Add it.
11753         (configure.ac): Invoke AC_LIBOBJ.
11754
11755 2011-07-07  Eric Blake  <eblake@redhat.com>
11756
11757         getopt: more portable argv creation
11758         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11759         const, use char arrays rather than strings.
11760         Suggested by Paul Eggert.
11761
11762 2011-07-07  Bruno Haible  <bruno@clisp.org>
11763
11764         Tests for module 'sigprocmask'.
11765         * modules/sigprocmask-tests: New file.
11766         * tests/test-sigprocmask.c: New file.
11767
11768 2011-07-07  Bruno Haible  <bruno@clisp.org>
11769
11770         float tests: Tweak.
11771         * tests/test-float.c (main): Tweak skip message.
11772
11773 2011-07-07  Eric Blake  <eblake@redhat.com>
11774
11775         getopt: avoid compiler warning during configure
11776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11777         assigning string literals to non-const pointer.
11778
11779         getopt-gnu: avoid crash in glibc getopt
11780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11781         * tests/test-getopt.h (test_getopt): Enhance test.
11782         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11783         * doc/posix-functions/getopt.texi (getopt): Document it.
11784         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11785         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11786         Likewise.
11787
11788 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11789
11790         getopt: handle W; without long options in getopt [BZ #12922]
11791         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11792         but no long options are defined, just return 'W'.
11793
11794 2011-07-07  Bruno Haible  <bruno@clisp.org>
11795
11796         Avoid literal tabs.
11797         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11798         variable containing a tab instead of a literal tab.
11799         Reported by Jim Meyering.
11800
11801 2011-07-07  Bruno Haible  <bruno@clisp.org>
11802
11803         Comments.
11804         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11805
11806 2011-07-06  Bruno Haible  <bruno@clisp.org>
11807
11808         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11809         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11810         <winsock2.h>.
11811         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11812         lib/sys_socket.in.h.
11813         (close, gethostname): Hide declarations from <winsock2.h>.
11814         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11815         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11816         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11817         (select): Don't override if gnulib's <sys/select.h> was already
11818         included.
11819         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11820         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11821         setsockopt, shutdown, select): Tweak indentation.
11822
11823 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11824
11825         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11826         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11827         in an application that does not use the sys_select module.
11828
11829 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11830
11831         poll: do not return 0 on timeout=-1
11832         * lib/poll.c: Loop with yield if no events occured
11833
11834 2011-07-06  Eric Blake  <eblake@redhat.com>
11835
11836         pthread_sigmask: always replace when not using pthread
11837         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11838         replacement when using some threading other than pthread.  Fix
11839         logic bug.
11840
11841 2011-07-06  Bruno Haible  <bruno@clisp.org>
11842
11843         Comments.
11844         * m4/printf.m4: Update comments about mingw.
11845
11846 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11847
11848         sys_select: define sigset_t more portably
11849         * lib/sys_select.in.h: Always include <sys/types.h>, since
11850         we now need sigset_t and mingw defines it there.
11851         Include <signal.h> before split inclusion guard, to avoid
11852         mishaps on Solaris, whose <signal.h> eventually includes us.
11853         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11854         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11855         which come from ...
11856         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11857         gl_CHECK_TYPE_SIGSET_T.
11858         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11859         does the real work.
11860         * modules/sys_select (Depends-on): Add 'signal'.
11861
11862         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11863         Suggested by Bruno Haible.
11864
11865         pselect: Use pthread_sigmask, not sigprocmask.
11866         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11867         multithreaded apps better than sigprocmask does.
11868         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11869         sigprocmask directly.
11870
11871 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11872
11873         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11874         Don't #undef,  since we don't need any underlying pselect.
11875         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11876         (Depends-on): Add select.
11877         (Link): Add $(LIBSOCKET).
11878         These changes suggested by Bruno Haible.
11879
11880         pselect: document better
11881         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11882         * doc/posix-functions/pselect.texi (pselect): Document new module.
11883
11884         pthread_sigmask: new module
11885         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11886         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11887         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11888         This is done only as a macro; I don't know how well that'll
11889         work for C++.  Move <sys/types.h> include before the include_next,
11890         to avoid mishap on Solaris.
11891         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11892         * modules/signal (Makefile.am): Substitute the check's results.
11893         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11894
11895         test-pselect: new module
11896         * modules/pselect-tests, tests/test-pselect.c: New files.
11897         * tests/test-select.c, tests/test-sys_select-c++.cc:
11898         If TEST_PSELECT is defined, test pselect instead of testing select.
11899
11900         * tests/test-sys_select.c (sigset_t): Test for it, too.
11901         Suggested by Bruno Haible.
11902
11903 2011-07-05  Eric Blake  <eblake@redhat.com>
11904
11905         snprintf: guarantee %1$d, for libintl
11906         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11907         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11908         * doc/posix-functions/snprintf.texi (snprintf): Update.
11909         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11910         * tests/test-snprintf.c (main): Enhance test.
11911         * tests/test-vsnprintf.c (main): Likewise.
11912
11913 2011-07-05  Jim Meyering  <meyering@redhat.com>
11914
11915         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11916         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11917         per Bruno's request, to accommodate this idiom (no space after "#")
11918         even when the function is inside an #if block:
11919         char *
11920         gets (char *s)
11921         #undef gets
11922         {
11923           ...
11924         }
11925
11926 2011-07-04  Jim Meyering  <meyering@redhat.com>
11927
11928         maint: indent with spaces, not TABs, and add a rule to check this
11929         * tests/test-userspec.c: Indent with spaces, not TABs.
11930         * tests/test-argp.c: Likewise.
11931         * tests/test-c-stack2.sh: Likewise.
11932         * tests/test-parse-duration.sh: Likewise
11933         * m4/strtod.m4: Likewise.
11934         * m4/alloca.m4: Likewise.
11935         * m4/pselect.m4: Likewise.
11936         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11937
11938 2011-07-03  Jim Meyering  <meyering@redhat.com>
11939
11940         maint.mk: correct omissions in prohibit_argmatch_without_use check
11941         This rule would mistakenly report that argmatch.h is included without
11942         use even when both the argmatch and invalid_arg macro were used.
11943         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11944         of argmatch and invalid_arg.
11945
11946 2011-07-03  Bruno Haible  <bruno@clisp.org>
11947
11948         Comments about EINTR.
11949         * lib/safe-read.h: Explain the purpose of this module.
11950         * lib/safe-write.h: Likewise.
11951         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11952         module.
11953         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11954         module.
11955         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11956
11957 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11958
11959         xnanosleep: Rewrite to use new dtotimespec module.
11960         It has the conversion code that used to be in xnanosleep.
11961         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11962         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11963         (TIME_T_MAX): Remove.
11964         (xnanosleep): Rewrite in terms of dtotimespec.
11965         * modules/xnanosleep (Depends-on): Add dtotimespec.
11966         Remove intprops, stdbool.
11967
11968         timespec-add, timespec-sub: new modules
11969         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11970         * lib/timespec-add.c, lib/timespec-sub.c:
11971         * modules/timespec-add, modules/timespec-sub: New files.
11972
11973         dtotimespec: new module
11974         * lib/timespec.h (dtotimespec): New decl.
11975         * lib/dtotimespec.c, modules/dtotimespec: New files.
11976
11977         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11978
11979         pselect: new module
11980         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11981         (pselect): New decls.
11982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11983         since the standard pselect decl uses 'restrict'.
11984         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11985         HAVE_PSELECT, REPLACE_PSELECT.
11986         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11987         HAVE_PSELECT, REPLACE_PSELECT.
11988         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11989
11990         sys_select: don't depend on sys_socket
11991         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11993         This fix works on GNU and GNU-like platforms, but has not been tested
11994         on native Windows.
11995         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11996         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11997         gl_HEADER_SYS_SOCKET.
11998         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11999         gl_PREREQ_SYS_H_WINSOCK2.
12000
12001 2011-06-29  Eric Blake  <eblake@redhat.com>
12002
12003         pipe2: fix C89 compile problem
12004         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12005         Reported by Bruno Haible.
12006
12007         pipe, pipe2: don't corrupt fd on error
12008         * lib/pipe.c (pipe): Leave fd unchanged on error.
12009         * lib/pipe2.c (pipe2): Likewise.
12010         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12011         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12012
12013 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12014
12015         mmap-anon: do not use regular expressions inadvertently
12016         * m4/mmap-anon.m4: Remove trailing period from strings sought
12017         in the output.
12018
12019 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12020
12021         nanosleep: fix integer overflow problem
12022         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12023         arithmetic wraps around on overflow.
12024
12025         nanosleep: simplify carrying
12026         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12027         first call to the underyling nanosleep, not for the last one.
12028         This doesn't fix any bugs, but it simplifies the computation of
12029         the remaining delay.  Found while auditing integer overflow issues.
12030
12031         dup2: remove test for existence of fcntl
12032         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12033         "#if HAVE_FCNTL", in the configure-time test program.
12034         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12035         and therefore speeds up "configure" a bit.  Found while
12036         adding the dup2 module to Emacs.
12037
12038 2011-06-24  Eric Blake  <eblake@redhat.com>
12039
12040         maint.mk: enhance useless header checks
12041         * top/maint.mk (_sc_header_without_use): Check both include
12042         styles.
12043         (sc_prohibit_assert_without_use)
12044         (sc_prohibit_close_stream_without_use)
12045         (sc_prohibit_getopt_without_use)
12046         (sc_prohibit_quotearg_without_use)
12047         (sc_prohibit_quote_without_use)
12048         (sc_prohibit_long_options_without_use)
12049         (sc_prohibit_inttostr_without_use)
12050         (sc_prohibit_ignore_value_without_use)
12051         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12052         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12053         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12054         (sc_prohibit_hash_pjw_without_use)
12055         (sc_prohibit_safe_read_without_use)
12056         (sc_prohibit_argmatch_without_use)
12057         (sc_prohibit_canonicalize_without_use)
12058         (sc_prohibit_root_dev_ino_without_use)
12059         (sc_prohibit_openat_without_use)
12060         (sc_prohibit_c_ctype_without_use)
12061         (sc_prohibit_signal_without_use)
12062         (sc_prohibit_stdio--_without_use)
12063         (sc_prohibit_stdio-safer_without_use)
12064         (sc_prohibit_strings_without_use)
12065         (sc_prohibit_intprops_without_use)
12066         (sc_prohibit_stddef_without_use)
12067         (sc_prohibit_xfreopen_without_use): Update clients.
12068
12069 2011-06-24  Jim Meyering  <meyering@redhat.com>
12070
12071         syntax-check: keep one maint.mk rule in sync with its header
12072         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12073         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12074         I prefer to avoid temporary files here, so use <(...), but that
12075         is not supported by /bin/sh, so...
12076         (SHELL): Define to /bin/bash.
12077
12078 2011-06-24  Eric Blake  <eblake@redhat.com>
12079
12080         maint.mk: update sc_prohibit_intprops_without_use
12081         * top/maint.mk (_intprops_names): Match recent changes.
12082
12083 2011-06-24  Bruno Haible  <bruno@clisp.org>
12084
12085         strerror-override: No-op tweak.
12086         * lib/strerror-override.h (strerror_override): Reorder conditions,
12087         for consistency with lib/strerror-override.c.
12088
12089 2011-06-23  Eric Blake  <eblake@redhat.com>
12090
12091         maint.mk: test further PATH_MAX issues
12092         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12093         (sc_prohibit_path_max_allocation): ...and also test alloca.
12094         Suggested by Jim Meyering.
12095
12096 2011-06-22  Eric Blake  <eblake@redhat.com>
12097
12098         maint.mk: add syntax-check to avoid char[PATH_MAX]
12099         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12100
12101         stat: be robust to PATH_MAX definition
12102         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12103         * modules/stat (Depends-on): Add verify.
12104
12105         link: work around IRIX bug
12106         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12107         * lib/link.c (rpl_link): Work around it.
12108         * tests/test-link.h (test_link): Enhance test.
12109         * doc/posix-functions/link.texi (link): Document the bug.
12110
12111         getopt: silence clang warning
12112         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12113         dereference.
12114         Reported by Gustavo Martin Domato.
12115
12116 2011-06-22  Jim Meyering  <meyering@redhat.com>
12117
12118         bootstrap: do not insert a blank line into each .gitignore file
12119         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12120
12121 2011-06-21  Eric Blake  <eblake@redhat.com>
12122
12123         perror: test for output mismatch
12124         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12125         perror on IRIX.
12126
12127         strerror_r: fix OpenBSD behavior on out-of-range
12128         * lib/strerror_r.c (strerror_r): Always use maximal string.
12129         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12130
12131         strerror_r: fix OpenBSD behavior on 0
12132         * lib/strerror-override.c (strerror_override): Also override 0
12133         when needed.
12134         * lib/strerror-override.h (strerror_override): Likewise.
12135         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12136         earlier.
12137         * lib/strerror_r.c (strerror_r): Likewise.
12138         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12139         behavior...
12140         (gl_FUNC_STRERROR_0): ...into new macro.
12141         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12142         is overridden.
12143         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12144         * modules/strerror-override (Files): Add strerror.m4.
12145         (configure.ac): Also provide override for 0 when needed.
12146         * doc/posix-functions/strerror.texi (strerror): Document this.
12147         * doc/posix-functions/perror.texi (perror): Likewise.
12148
12149         perror: adjust array size
12150         * modules/perror (Depends-on): Add strerror-override.
12151         * lib/perror.c (perror): Use it to avoid magic number.
12152
12153         strerror-override: reduce size
12154         * lib/strerror-override.c (strerror_override): Use fewer lines.
12155
12156 2011-06-20  Bruno Haible  <bruno@clisp.org>
12157
12158         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12159         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12160
12161 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12162
12163         alloca: port to compilers that can optimize like GCC 4.6.0
12164         * lib/alloca.c (find_stack_direction): New signature, taken from
12165         Autoconf git.  This works with GCC 4.6.0.  This code should never
12166         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12167         be used with other compilers that optimize as well as GCC 4.6.0 does.
12168         (alloca): Adjust to new signature.
12169         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12170         New macro, which patches Autoconf in a similar way.
12171
12172         c-stack: stop worrying about stack direction
12173         * lib/c-stack.c (find_stack_direction): Remove.
12174         (segv_handler): Don't worry about stack direction growth, as it's
12175         too much of a pain to configure this correctly, given how compilers
12176         are optimizing-away our stack-growth detection code.  Instead, assume
12177         that any access to just before or just after the stack is OK.
12178         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12179         Don't require AC_FUNC_ALLOCA; no longer needed.
12180
12181 2011-06-20  Eric Blake  <eblake@redhat.com>
12182
12183         test-stat: don't allocate PATH_MAX bytes
12184         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12185         PATH_MAX-sized buffer.
12186         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12187         * modules/stat-tests (Depends-on): Likewise.
12188         * tests/test-fstatat.c (includes): Drop pathmax.h.
12189         * tests/test-stat.c (includes): Likewise.
12190         Reported by Bruno Haible.
12191
12192 2011-06-20  Bruno Haible  <bruno@clisp.org>
12193
12194         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12195         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12196         * lib/float.c: New file.
12197         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12198         REPLACE_FLOAT_LDBL.
12199         * modules/float (Files): Add lib/float.c.
12200         (configure.ac): Invoke AC_LIBOBJ.
12201         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12202
12203 2011-06-20  Bruno Haible  <bruno@clisp.org>
12204
12205         Tests for module 'float'.
12206         * modules/float-tests: New file.
12207         * tests/test-float.c: New file.
12208
12209 2011-06-19  Bruno Haible  <bruno@clisp.org>
12210
12211         isinf: Coding style.
12212         * lib/isinf.c: Use GNU coding style.
12213
12214 2011-06-19  Bruno Haible  <bruno@clisp.org>
12215
12216         linkat test: Avoid test failure on AIX 7.1.
12217         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12218         * tests/test-link.h (test_link): Likewise.
12219
12220 2011-06-19  Bruno Haible  <bruno@clisp.org>
12221
12222         pread test: Avoid test failure on OpenBSD 4.9.
12223         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12224
12225 2011-06-19  Bruno Haible  <bruno@clisp.org>
12226
12227         sprintf-posix: Fix test failure on AIX 7.1.
12228         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12229         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12230         on AIX.
12231         * doc/posix-functions/fprintf.texi: Likewise.
12232         * doc/posix-functions/printf.texi: Likewise.
12233         * doc/posix-functions/snprintf.texi: Likewise.
12234         * doc/posix-functions/sprintf.texi: Likewise.
12235         * doc/posix-functions/vdprintf.texi: Likewise.
12236         * doc/posix-functions/vfprintf.texi: Likewise.
12237         * doc/posix-functions/vprintf.texi: Likewise.
12238         * doc/posix-functions/vsnprintf.texi: Likewise.
12239         * doc/posix-functions/vsprintf.texi: Likewise.
12240
12241 2011-06-19  Bruno Haible  <bruno@clisp.org>
12242
12243         roundl-ieee: Fix test failure on AIX 7.1.
12244         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12245         * doc/posix-functions/roundl.texi: Mention problem with negative
12246         arguments.
12247
12248 2011-06-19  Bruno Haible  <bruno@clisp.org>
12249
12250         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12251         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12252         * doc/posix-functions/round.texi: Mention problem with negative
12253         arguments.
12254         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12255
12256 2011-06-19  Bruno Haible  <bruno@clisp.org>
12257
12258         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12259         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12260         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12261         * doc/posix-functions/roundf.texi: Mention problem with negative
12262         arguments.
12263         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12264
12265 2011-06-19  Bruno Haible  <bruno@clisp.org>
12266
12267         ceilf-ieee: Work around bug on MacOS X 10.5.
12268         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12269
12270         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12271         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12272         IEEE compliant, avoid compiler optimizations.
12273         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12274         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12275         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12276         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12277         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12278         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12280         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12281         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12282         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12283
12284 2011-06-19  Bruno Haible  <bruno@clisp.org>
12285
12286         ceilf-ieee: Work around bug on AIX 7.1.
12287         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12288         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12289
12290 2011-06-19  Bruno Haible  <bruno@clisp.org>
12291
12292         ceil-ieee: Work around bug on AIX 7.1.
12293         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12294         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12295
12296 2011-06-18  Bruno Haible  <bruno@clisp.org>
12297
12298         fsync test: Avoid test failure on MacOS X and AIX.
12299         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12300         EINVAL.
12301
12302 2011-06-18  Bruno Haible  <bruno@clisp.org>
12303
12304         openat, fdopendir tests: Fix link errors.
12305         * modules/openat-tests (Depends-on): Add progname.
12306         * modules/fdopendir-tests (Depends-on): Likewise.
12307         * tests/test-fchownat.c: Include progname.h.
12308         (main): Call set_program_name.
12309         * tests/test-fstatat.c: Include progname.h.
12310         (main): Call set_program_name.
12311         * tests/test-mkdirat.c: Include progname.h.
12312         (main): Call set_program_name.
12313         * tests/test-openat.c: Include progname.h.
12314         (main): Call set_program_name.
12315         * tests/test-unlinkat.c: Include progname.h.
12316         (main): Call set_program_name.
12317         * tests/test-fdopendir.c: Include progname.h.
12318         (main): Call set_program_name.
12319
12320 2011-06-18  Bruno Haible  <bruno@clisp.org>
12321
12322         Doc update.
12323         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12324         HP-UX.
12325         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12326
12327 2011-06-18  Bruno Haible  <bruno@clisp.org>
12328
12329         getcwd tests: Avoid compilation error on HP-UX 11.31.
12330         * modules/getcwd-tests (Depends-on): Add pathmax.
12331         * tests/test-getcwd.c: Include pathmax.h.
12332
12333 2011-06-18  Bruno Haible  <bruno@clisp.org>
12334
12335         isfinite, isinf: Fix link error on AIX 6 and 7.
12336         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12337         needed, also test the macro with a 'float' argument.
12338         * m4/isinf.m4 (gl_ISINF): Likewise.
12339
12340 2011-06-18  Bruno Haible  <bruno@clisp.org>
12341
12342         getloadavg: Don't clobber LIBS. Regression from previous commit.
12343         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12344         AC_CHECK_LIB from here...
12345         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12346         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12347         gl_func_getloadavg_done.
12348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12349
12350 2011-06-18  Bruno Haible  <bruno@clisp.org>
12351
12352         clean-temp: Improve documentation.
12353         * lib/clean-temp.h: Explain better how to use this module.
12354         Reported by John Darrington <john@darrington.wattle.id.au>.
12355
12356 2011-06-17  Bruno Haible  <bruno@clisp.org>
12357
12358         pread, pwrite: Avoid cc warning on AIX.
12359         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12360         (pwrite): Likewise.
12361
12362 2011-06-17  Bruno Haible  <bruno@clisp.org>
12363
12364         spawn-pipe tests: Fix link error.
12365         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12366         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12367
12368 2011-06-17  Bruno Haible  <bruno@clisp.org>
12369
12370         Tests: Remove unnecessary dependency.
12371         * modules/canonicalize-tests (Depends-on): Remove progname.
12372         * modules/chown-tests (Depends-on): Likewise.
12373         * modules/dirname-tests (Depends-on): Likewise.
12374         * modules/fdopendir-tests (Depends-on): Likewise.
12375         * modules/fdutimensat-tests (Depends-on): Likewise.
12376         * modules/hash-tests (Depends-on): Likewise.
12377         * modules/lchown-tests (Depends-on): Likewise.
12378         * modules/linkat-tests (Depends-on): Likewise.
12379         * modules/renameat-tests (Depends-on): Likewise.
12380         * modules/spawn-pipe-tests (Depends-on): Likewise.
12381         * modules/utimensat-tests (Depends-on): Likewise.
12382
12383 2011-06-17  Bruno Haible  <bruno@clisp.org>
12384
12385         spawn-pipe tests: Fix link error.
12386         * tests/test-spawn-pipe-child.c: Undefine fflush.
12387
12388 2011-06-17  Bruno Haible  <bruno@clisp.org>
12389
12390         Fix tests link errors.
12391         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12392         * modules/chown-tests (Makefile.am): Don't link test-chown with
12393         LIBINTL.
12394         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12395         LIBINTL.
12396         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12397         LIBINTL.
12398         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12399         LIBINTL.
12400
12401 2011-06-16  Bruno Haible  <bruno@clisp.org>
12402
12403         crypto/gc-sha1: Fix recent regression.
12404         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12405         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12406
12407         crypto/gc-md5: Fix recent regression.
12408         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12409
12410         crypto/gc-md4: Fix recent regression.
12411         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12412         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12413
12414         crypto/gc-arctwo: Fix recent regression.
12415         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12416         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12417
12418         crypto/gc-rijndael: Fix recent regression.
12419         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12420         (configure.ac): Invoke AC_LIBOBJ here.
12421         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12423
12424         crypto/gc-hmac-sha1: Fix recent regression.
12425         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12426         (configure.ac): Invoke AC_LIBOBJ here.
12427         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12429
12430         crypto/gc-hmac-md5: Fix recent regression.
12431         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12432         (configure.ac): Invoke AC_LIBOBJ here.
12433         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12434         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12435
12436         crypto/gc-des: Fix recent regression.
12437         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12438         (configure.ac): Invoke AC_LIBOBJ here.
12439         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12441
12442         crypto/gc-arcfour: Fix recent regression.
12443         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12444         (configure.ac): Invoke AC_LIBOBJ here.
12445         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12447
12448 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12449
12450         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12451         After the 2011-05-21 change, this macro requires
12452         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12453         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12454
12455 2011-06-16  Bruno Haible  <bruno@clisp.org>
12456
12457         fprintftime: Move AC_LIBOBJ invocations to module description.
12458         * m4/fprintftime.m4: Remove file.
12459         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12460         (configure.ac): Remove gl_FPRINTFTIME call.
12461         (Makefile.am): Augment lib_SOURCES.
12462         Reported by Jim Meyering.
12463
12464 2011-06-16  Bruno Haible  <bruno@clisp.org>
12465
12466         tmpfile-safer: Finish 2011-05-23 commit.
12467         * m4/stdio-safer.m4: Really remove file.
12468         Reported by Jim Meyering.
12469
12470 2011-06-16  Bruno Haible  <bruno@clisp.org>
12471
12472         syntax-check: Fix typo.
12473         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12474         printf-posix.m4.
12475         Reported by Jim Meyering.
12476
12477 2011-06-13  Jim Meyering  <meyering@redhat.com>
12478
12479         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12480         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12481
12482 2011-05-23  Bruno Haible  <bruno@clisp.org>
12483
12484         yesno: Move AC_LIBOBJ invocations to module description.
12485         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12486         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12487
12488 2011-05-23  Bruno Haible  <bruno@clisp.org>
12489
12490         xstrtol: Move AC_LIBOBJ invocations to module description.
12491         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12492         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12493
12494 2011-05-23  Bruno Haible  <bruno@clisp.org>
12495
12496         xstrtold: Move AC_LIBOBJ invocations to module description.
12497         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12498         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12499
12500 2011-05-23  Bruno Haible  <bruno@clisp.org>
12501
12502         xstrtod: Move AC_LIBOBJ invocations to module description.
12503         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12504         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12505
12506 2011-05-23  Bruno Haible  <bruno@clisp.org>
12507
12508         xnanosleep: Move AC_LIBOBJ invocations to module description.
12509         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12510         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12511
12512 2011-05-23  Bruno Haible  <bruno@clisp.org>
12513
12514         xgetcwd: Move AC_LIBOBJ invocations to module description.
12515         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12516         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12517
12518 2011-05-23  Bruno Haible  <bruno@clisp.org>
12519
12520         xalloc: Move AC_LIBOBJ invocations to module description.
12521         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12522         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12523
12524 2011-05-23  Bruno Haible  <bruno@clisp.org>
12525
12526         write-any-file: Move AC_LIBOBJ invocations to module description.
12527         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12528         invocation.
12529         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12530
12531 2011-05-23  Bruno Haible  <bruno@clisp.org>
12532
12533         utimens: Move AC_LIBOBJ invocations to module description.
12534         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12535         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12536
12537 2011-05-23  Bruno Haible  <bruno@clisp.org>
12538
12539         utimecmp: Move AC_LIBOBJ invocations to module description.
12540         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12541         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12542
12543 2011-05-23  Bruno Haible  <bruno@clisp.org>
12544
12545         userspec: Move AC_LIBOBJ invocations to module description.
12546         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12547         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12548
12549 2011-05-23  Bruno Haible  <bruno@clisp.org>
12550
12551         unlinkdir: Move AC_LIBOBJ invocations to module description.
12552         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12553         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12554
12555 2011-05-23  Bruno Haible  <bruno@clisp.org>
12556
12557         unistd-safer: Move AC_LIBOBJ invocations to module description.
12558         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12559         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12560
12561 2011-05-23  Bruno Haible  <bruno@clisp.org>
12562
12563         tempname: Move AC_LIBOBJ invocations to module description.
12564         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12565         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12566
12567 2011-05-23  Bruno Haible  <bruno@clisp.org>
12568
12569         strftime: Move AC_LIBOBJ invocations to module description.
12570         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12571         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12572
12573 2011-05-23  Bruno Haible  <bruno@clisp.org>
12574
12575         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12576         * m4/stdlib-safer.m4: Remove file.
12577         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12578         (configure.ac): Remove gl_STDLIB_SAFER call.
12579         (Makefile.am): Augment lib_SOURCES.
12580
12581 2011-05-23  Bruno Haible  <bruno@clisp.org>
12582
12583         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12584         * m4/stdio-safer.m4: Remove file.
12585         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12586         (configure.ac): Remove gl_TMPFILE_SAFER call.
12587         (Makefile.am): Augment lib_SOURCES.
12588
12589 2011-05-23  Bruno Haible  <bruno@clisp.org>
12590
12591         popen-safer: Move AC_LIBOBJ invocations to module description.
12592         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12593         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12594         (configure.ac): Remove gl_POPEN_SAFER call.
12595         (Makefile.am): Augment lib_SOURCES.
12596
12597 2011-05-23  Bruno Haible  <bruno@clisp.org>
12598
12599         freopen-safer: Move AC_LIBOBJ invocations to module description.
12600         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12601         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12602         (configure.ac): Remove gl_FREOPEN_SAFER call.
12603         (Makefile.am): Augment lib_SOURCES.
12604
12605 2011-05-23  Bruno Haible  <bruno@clisp.org>
12606
12607         fopen-safer: Move AC_LIBOBJ invocations to module description.
12608         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12609         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12610         (configure.ac): Remove gl_FOPEN_SAFER call.
12611         (Makefile.am): Augment lib_SOURCES.
12612
12613 2011-05-23  Bruno Haible  <bruno@clisp.org>
12614
12615         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12616         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12617         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12618
12619 2011-05-23  Bruno Haible  <bruno@clisp.org>
12620
12621         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12622         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12623         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12624
12625 2011-05-23  Bruno Haible  <bruno@clisp.org>
12626
12627         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12628         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12629         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12630
12631 2011-05-23  Bruno Haible  <bruno@clisp.org>
12632
12633         settime: Move AC_LIBOBJ invocations to module description.
12634         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12635         * modules/settime (Makefile.am): Augment lib_SOURCES.
12636
12637 2011-05-23  Bruno Haible  <bruno@clisp.org>
12638
12639         savedir: Move AC_LIBOBJ invocations to module description.
12640         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12641         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12642
12643 2011-05-23  Bruno Haible  <bruno@clisp.org>
12644
12645         save-cwd: Move AC_LIBOBJ invocations to module description.
12646         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12647         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12648
12649 2011-05-23  Bruno Haible  <bruno@clisp.org>
12650
12651         same: Move AC_LIBOBJ invocations to module description.
12652         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12653         * modules/same (Makefile.am): Augment lib_SOURCES.
12654
12655 2011-05-23  Bruno Haible  <bruno@clisp.org>
12656
12657         safe-write: Move AC_LIBOBJ invocations to module description.
12658         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12659         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12660         instead of gl_SAFE_WRITE.
12661         (Makefile.am): Augment lib_SOURCES.
12662
12663 2011-05-23  Bruno Haible  <bruno@clisp.org>
12664
12665         safe-read: Move AC_LIBOBJ invocations to module description.
12666         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12667         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12668         of gl_SAFE_READ.
12669         (Makefile.am): Augment lib_SOURCES.
12670
12671 2011-05-23  Bruno Haible  <bruno@clisp.org>
12672
12673         safe-alloc: Move AC_LIBOBJ invocations to module description.
12674         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12675         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12676
12677 2011-05-23  Bruno Haible  <bruno@clisp.org>
12678
12679         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12680         * m4/rijndael.m4: Remove file.
12681         * modules/crypto/rijndael (Files): Remove it.
12682         (configure.ac): Remove gl_RIJNDAEL call.
12683         (Makefile.am): Augment lib_SOURCES.
12684
12685 2011-05-23  Bruno Haible  <bruno@clisp.org>
12686
12687         readtokens: Move AC_LIBOBJ invocations to module description.
12688         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12689         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12690
12691 2011-05-23  Bruno Haible  <bruno@clisp.org>
12692
12693         read-file: Move AC_LIBOBJ invocations to module description.
12694         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12695         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12696         of gl_FUNC_READ_FILE.
12697         (Makefile.am): Augment lib_SOURCES.
12698
12699 2011-05-23  Bruno Haible  <bruno@clisp.org>
12700
12701         quotearg: Move AC_LIBOBJ invocations to module description.
12702         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12703         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12704
12705 2011-05-23  Bruno Haible  <bruno@clisp.org>
12706
12707         quote: Move AC_LIBOBJ invocations to module description.
12708         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12709         * modules/quote (Makefile.am): Augment lib_SOURCES.
12710
12711 2011-05-23  Bruno Haible  <bruno@clisp.org>
12712
12713         posixver: Move AC_LIBOBJ invocations to module description.
12714         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12715         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12716
12717 2011-05-23  Bruno Haible  <bruno@clisp.org>
12718
12719         posixtm: Move AC_LIBOBJ invocations to module description.
12720         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12721         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12722
12723 2011-05-23  Bruno Haible  <bruno@clisp.org>
12724
12725         physmem: Move AC_LIBOBJ invocations to module description.
12726         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12727         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12728
12729 2011-05-23  Bruno Haible  <bruno@clisp.org>
12730
12731         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12732         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12733         invocation.
12734         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12735
12736 2011-05-23  Bruno Haible  <bruno@clisp.org>
12737
12738         mpsort: Move AC_LIBOBJ invocations to module description.
12739         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12740         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12741
12742 2011-05-23  Bruno Haible  <bruno@clisp.org>
12743
12744         modechange: Move AC_LIBOBJ invocations to module description.
12745         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12746         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12747
12748 2011-05-23  Bruno Haible  <bruno@clisp.org>
12749
12750         mkdir-p: Move AC_LIBOBJ invocations to module description.
12751         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12752         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12753
12754 2011-05-23  Bruno Haible  <bruno@clisp.org>
12755
12756         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12757         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12758         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12759
12760 2011-05-23  Bruno Haible  <bruno@clisp.org>
12761
12762         mgetgroups: Move AC_LIBOBJ invocations to module description.
12763         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12764         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12765
12766 2011-05-23  Bruno Haible  <bruno@clisp.org>
12767
12768         memxor: Move AC_LIBOBJ invocations to module description.
12769         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12770         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12771
12772 2011-05-23  Bruno Haible  <bruno@clisp.org>
12773
12774         memcoll: Move AC_LIBOBJ invocations to module description.
12775         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12776         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12777
12778 2011-05-23  Bruno Haible  <bruno@clisp.org>
12779
12780         memcasecmp: Move AC_LIBOBJ invocations to module description.
12781         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12782         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12783
12784 2011-05-23  Bruno Haible  <bruno@clisp.org>
12785
12786         crypto/md5: Move AC_LIBOBJ invocations to module description.
12787         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12788         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12789
12790 2011-05-23  Bruno Haible  <bruno@clisp.org>
12791
12792         crypto/md4: Move AC_LIBOBJ invocations to module description.
12793         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12794         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12795
12796 2011-05-23  Bruno Haible  <bruno@clisp.org>
12797
12798         crypto/md2: Move AC_LIBOBJ invocations to module description.
12799         * m4/md2.m4: Remove file.
12800         * modules/crypto/md2 (Files): Remove it.
12801         (configure.ac): Remove gl_MD2 call.
12802         (Makefile.am): Augment lib_SOURCES.
12803
12804 2011-05-23  Bruno Haible  <bruno@clisp.org>
12805
12806         long-options: Move AC_LIBOBJ invocations to module description.
12807         * m4/long-options.m4: Remove file.
12808         * modules/long-options (Files): Remove it.
12809         (configure.ac): Remove gl_LONG_OPTIONS call.
12810         (Makefile.am): Augment lib_SOURCES.
12811
12812 2011-05-23  Bruno Haible  <bruno@clisp.org>
12813
12814         i-ring: Move AC_LIBOBJ invocations to module description.
12815         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12816         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12817
12818 2011-05-23  Bruno Haible  <bruno@clisp.org>
12819
12820         idcache: Move AC_LIBOBJ invocations to module description.
12821         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12822         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12823
12824 2011-05-23  Bruno Haible  <bruno@clisp.org>
12825
12826         human: Move AC_LIBOBJ invocations to module description.
12827         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12828         * modules/human (Makefile.am): Augment lib_SOURCES.
12829
12830 2011-05-23  Bruno Haible  <bruno@clisp.org>
12831
12832         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12833         * m4/hmac-sha1.m4: Remove file.
12834         * modules/crypto/hmac-sha1 (Files): Remove it.
12835         (configure.ac): Remove gl_HMAC_SHA1 call.
12836         (Makefile.am): Augment lib_SOURCES.
12837
12838 2011-05-23  Bruno Haible  <bruno@clisp.org>
12839
12840         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12841         * m4/hmac-md5.m4: Remove file.
12842         * modules/crypto/hmac-md5 (Files): Remove it.
12843         (configure.ac): Remove gl_HMAC_MD5 call.
12844         (Makefile.am): Augment lib_SOURCES.
12845
12846 2011-05-23  Bruno Haible  <bruno@clisp.org>
12847
12848         hash: Move AC_LIBOBJ invocations to module description.
12849         * m4/hash.m4: Remove file.
12850         * modules/hash (Files): Remove it.
12851         (configure.ac): Remove gl_HASH call.
12852         (Makefile.am): Augment lib_SOURCES.
12853
12854 2011-05-23  Bruno Haible  <bruno@clisp.org>
12855
12856         hard-locale: Move AC_LIBOBJ invocations to module description.
12857         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12858         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12859
12860 2011-05-23  Bruno Haible  <bruno@clisp.org>
12861
12862         getugroups: Move AC_LIBOBJ invocations to module description.
12863         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12864         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12865
12866 2011-05-23  Bruno Haible  <bruno@clisp.org>
12867
12868         gettime: Move AC_LIBOBJ invocations to module description.
12869         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12870         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12871
12872 2011-05-23  Bruno Haible  <bruno@clisp.org>
12873
12874         getndelim2: Move AC_LIBOBJ invocations to module description.
12875         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12876         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12877
12878 2011-05-23  Bruno Haible  <bruno@clisp.org>
12879
12880         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12881         * m4/gc-pbkdf2-sha1.m4: Remove file.
12882         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12883         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12884         (Makefile.am): Augment lib_SOURCES.
12885
12886 2011-05-23  Bruno Haible  <bruno@clisp.org>
12887
12888         fts: Move AC_LIBOBJ invocations to module description.
12889         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12890         * modules/fts (configure.ac): ... to here.
12891
12892 2011-05-23  Bruno Haible  <bruno@clisp.org>
12893
12894         file-type: Move AC_LIBOBJ invocations to module description.
12895         * m4/file-type.m4: Remove file.
12896         * modules/file-type (Files): Remove it.
12897         (configure.ac): Remove gl_FILE_TYPE call.
12898         (Makefile.am): Augment lib_SOURCES.
12899
12900 2011-05-23  Bruno Haible  <bruno@clisp.org>
12901
12902         filenamecat*: Respect rules for use of AC_LIBOBJ.
12903         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12904         Remove AC_LIBOBJ invocation.
12905         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12906         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12907
12908 2011-05-23  Bruno Haible  <bruno@clisp.org>
12909
12910         filemode: Move AC_LIBOBJ invocations to module description.
12911         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12912         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12913
12914 2011-05-23  Bruno Haible  <bruno@clisp.org>
12915
12916         openat-safer: Move AC_LIBOBJ invocations to module description.
12917         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12918         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12919
12920 2011-05-23  Bruno Haible  <bruno@clisp.org>
12921
12922         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12923         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12924         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12925
12926 2011-05-23  Bruno Haible  <bruno@clisp.org>
12927
12928         exclude: Move AC_LIBOBJ invocations to module description.
12929         * m4/exclude.m4: Remove file.
12930         * modules/exclude (Files): Remove it.
12931         (configure.ac): Remove gl_EXCLUDE call.
12932         (Makefile.am): Augment lib_SOURCES.
12933
12934 2011-05-23  Bruno Haible  <bruno@clisp.org>
12935
12936         dirname*: Respect rules for use of AC_LIBOBJ.
12937         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12938         invocations.
12939         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12940         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12941
12942 2011-05-23  Bruno Haible  <bruno@clisp.org>
12943
12944         dirent-safer: Move AC_LIBOBJ invocations to module description.
12945         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12946         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12947
12948 2011-05-23  Bruno Haible  <bruno@clisp.org>
12949
12950         crypto/des: Move AC_LIBOBJ invocations to module description.
12951         * m4/des.m4: Remove file.
12952         * modules/crypto/des (Files): Remove it.
12953         (configure.ac): Remove gl_DES call.
12954         (Makefile.am): Augment lib_SOURCES.
12955
12956 2011-05-23  Bruno Haible  <bruno@clisp.org>
12957
12958         cycle-check: Move AC_LIBOBJ invocations to module description.
12959         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12960         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12961
12962 2011-05-23  Bruno Haible  <bruno@clisp.org>
12963
12964         c-strtold: Move AC_LIBOBJ invocations to module description.
12965         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12966         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12967
12968 2011-05-23  Bruno Haible  <bruno@clisp.org>
12969
12970         c-strtod: Move AC_LIBOBJ invocations to module description.
12971         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12972         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12973
12974 2011-05-23  Bruno Haible  <bruno@clisp.org>
12975
12976         crc: Move AC_LIBOBJ invocations to module description.
12977         * m4/crc.m4: Remove file.
12978         * modules/crc (Files): Remove it.
12979         (configure.ac): Remove gl_CRC call.
12980         (Makefile.am): Augment lib_SOURCES.
12981
12982 2011-05-23  Bruno Haible  <bruno@clisp.org>
12983
12984         close-stream: Move AC_LIBOBJ invocations to module description.
12985         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12986         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12987
12988 2011-05-23  Bruno Haible  <bruno@clisp.org>
12989
12990         closeout: Move AC_LIBOBJ invocations to module description.
12991         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12992         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12993
12994 2011-05-23  Bruno Haible  <bruno@clisp.org>
12995
12996         closein: Move AC_LIBOBJ invocations to module description.
12997         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12998         * modules/closein (Makefile.am): Augment lib_SOURCES.
12999
13000 2011-05-23  Bruno Haible  <bruno@clisp.org>
13001
13002         cloexec: Move AC_LIBOBJ invocations to module description.
13003         * m4/cloexec.m4: Remove file.
13004         * modules/cloexec (Files): Remove it.
13005         (configure.ac): Remove gl_CLOEXEC call.
13006         (Makefile.am): Augment lib_SOURCES.
13007
13008 2011-05-23  Bruno Haible  <bruno@clisp.org>
13009
13010         check-version: Move AC_LIBOBJ invocations to module description.
13011         * m4/check-version.m4: Remove file.
13012         * modules/check-version (Files): Remove it.
13013         (configure.ac): Remove gl_CHECK_VERSION call.
13014         (Makefile.am): Augment lib_SOURCES.
13015
13016 2011-05-23  Bruno Haible  <bruno@clisp.org>
13017
13018         chdir-safer: Move AC_LIBOBJ invocations to module description.
13019         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13020         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13021
13022 2011-05-23  Bruno Haible  <bruno@clisp.org>
13023
13024         canonicalize: Move AC_LIBOBJ invocations to module description.
13025         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13026         AC_LIBOBJ invocation.
13027         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13028
13029 2011-05-23  Bruno Haible  <bruno@clisp.org>
13030
13031         canon-host: Move AC_LIBOBJ invocations to module description.
13032         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13033         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13034         instead of gl_CANON_HOST.
13035         (Makefile.am): Augment lib_SOURCES.
13036
13037 2011-05-23  Bruno Haible  <bruno@clisp.org>
13038
13039         backupfile: Move AC_LIBOBJ invocations to module description.
13040         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13041         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13042
13043 2011-05-23  Bruno Haible  <bruno@clisp.org>
13044
13045         argmatch: Move AC_LIBOBJ invocations to module description.
13046         * m4/argmatch.m4: Remove file.
13047         * modules/argmatch (Files): Remove it.
13048         (configure.ac): Remove gl_ARGMATCH call.
13049         (Makefile.am): Augment lib_SOURCES.
13050
13051 2011-05-23  Bruno Haible  <bruno@clisp.org>
13052
13053         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13054         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13055         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13056
13057 2011-05-23  Bruno Haible  <bruno@clisp.org>
13058
13059         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13060         * m4/arcfour.m4: Remove file.
13061         * modules/crypto/arcfour (Files): Remove it.
13062         (configure.ac): Remove gl_ARCFOUR call.
13063         (Makefile.am): Augment lib_SOURCES.
13064
13065 2011-05-22  Bruno Haible  <bruno@clisp.org>
13066
13067         write: Move AC_LIBOBJ invocations to module description.
13068         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13069         * modules/write (configure.ac): ... to here.
13070
13071 2011-05-22  Bruno Haible  <bruno@clisp.org>
13072
13073         wmemset: Move AC_LIBOBJ invocations to module description.
13074         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13075         here...
13076         * modules/wmemset (configure.ac): ... to here.
13077
13078 2011-05-22  Bruno Haible  <bruno@clisp.org>
13079
13080         wmemmove: Move AC_LIBOBJ invocations to module description.
13081         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13082         here...
13083         * modules/wmemmove (configure.ac): ... to here.
13084
13085 2011-05-22  Bruno Haible  <bruno@clisp.org>
13086
13087         wmemcpy: Move AC_LIBOBJ invocations to module description.
13088         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13089         here...
13090         * modules/wmemcpy (configure.ac): ... to here.
13091
13092 2011-05-22  Bruno Haible  <bruno@clisp.org>
13093
13094         wmemcmp: Move AC_LIBOBJ invocations to module description.
13095         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13096         here...
13097         * modules/wmemcmp (configure.ac): ... to here.
13098
13099 2011-05-22  Bruno Haible  <bruno@clisp.org>
13100
13101         wmemchr: Move AC_LIBOBJ invocations to module description.
13102         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13103         here...
13104         * modules/wmemchr (configure.ac): ... to here.
13105
13106 2011-05-22  Bruno Haible  <bruno@clisp.org>
13107
13108         wcswidth: Move AC_LIBOBJ invocations to module description.
13109         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13110         here...
13111         * modules/wcswidth (configure.ac): ... to here.
13112
13113 2011-05-22  Bruno Haible  <bruno@clisp.org>
13114
13115         wcwidth: Respect rules for use of AC_LIBOBJ.
13116         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13117         invocation from here...
13118         * modules/wcwidth (configure.ac): ... to here.
13119         (Depends-on): Update conditions.
13120
13121 2011-05-22  Bruno Haible  <bruno@clisp.org>
13122
13123         wctype: Move AC_LIBOBJ invocations to module description.
13124         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13125         invocation from here...
13126         * modules/wctype (configure.ac): ... to here.
13127         (Depends-on): Update conditions.
13128
13129 2011-05-22  Bruno Haible  <bruno@clisp.org>
13130
13131         wctrans: Move AC_LIBOBJ invocations to module description.
13132         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13133         invocation from here...
13134         * modules/wctrans (configure.ac): ... to here.
13135
13136 2011-05-22  Bruno Haible  <bruno@clisp.org>
13137
13138         wctomb: Move AC_LIBOBJ invocations to module description.
13139         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13140         invocations from here...
13141         * modules/wctomb (configure.ac): ... to here.
13142
13143 2011-05-22  Bruno Haible  <bruno@clisp.org>
13144
13145         wctob: Move AC_LIBOBJ invocations to module description.
13146         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13147         gl_PREREQ_WCTOB invocations from here...
13148         * modules/wctob (configure.ac): ... to here.
13149         (Depends-on): Update conditions.
13150
13151 2011-05-22  Bruno Haible  <bruno@clisp.org>
13152
13153         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13154         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13155         here...
13156         * modules/wcsxfrm (configure.ac): ... to here.
13157
13158 2011-05-22  Bruno Haible  <bruno@clisp.org>
13159
13160         wcstok: Move AC_LIBOBJ invocations to module description.
13161         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13162         * modules/wcstok (configure.ac): ... to here.
13163
13164 2011-05-22  Bruno Haible  <bruno@clisp.org>
13165
13166         wcsstr: Move AC_LIBOBJ invocations to module description.
13167         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13168         * modules/wcsstr (configure.ac): ... to here.
13169
13170 2011-05-22  Bruno Haible  <bruno@clisp.org>
13171
13172         wcsspn: Move AC_LIBOBJ invocations to module description.
13173         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13174         * modules/wcsspn (configure.ac): ... to here.
13175
13176 2011-05-22  Bruno Haible  <bruno@clisp.org>
13177
13178         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13179         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13180         gl_PREREQ_WCSRTOMBS invocations from here...
13181         * modules/wcsrtombs (configure.ac): ... to here.
13182
13183 2011-05-22  Bruno Haible  <bruno@clisp.org>
13184
13185         wcsrchr: Move AC_LIBOBJ invocations to module description.
13186         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13187         here...
13188         * modules/wcsrchr (configure.ac): ... to here.
13189
13190 2011-05-22  Bruno Haible  <bruno@clisp.org>
13191
13192         wcspbrk: Move AC_LIBOBJ invocations to module description.
13193         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13194         here...
13195         * modules/wcspbrk (configure.ac): ... to here.
13196
13197 2011-05-22  Bruno Haible  <bruno@clisp.org>
13198
13199         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13200         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13201         gl_PREREQ_WCSNRTOMBS invocations from here...
13202         * modules/wcsnrtombs (configure.ac): ... to here.
13203
13204 2011-05-22  Bruno Haible  <bruno@clisp.org>
13205
13206         wcsnlen: Move AC_LIBOBJ invocations to module description.
13207         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13208         here...
13209         * modules/wcsnlen (configure.ac): ... to here.
13210
13211 2011-05-22  Bruno Haible  <bruno@clisp.org>
13212
13213         wcsncpy: Move AC_LIBOBJ invocations to module description.
13214         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13215         here...
13216         * modules/wcsncpy (configure.ac): ... to here.
13217
13218 2011-05-22  Bruno Haible  <bruno@clisp.org>
13219
13220         wcsncmp: Move AC_LIBOBJ invocations to module description.
13221         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13222         here...
13223         * modules/wcsncmp (configure.ac): ... to here.
13224
13225 2011-05-22  Bruno Haible  <bruno@clisp.org>
13226
13227         wcsncat: Move AC_LIBOBJ invocations to module description.
13228         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13229         here...
13230         * modules/wcsncat (configure.ac): ... to here.
13231
13232 2011-05-22  Bruno Haible  <bruno@clisp.org>
13233
13234         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13235         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13236         from here...
13237         * modules/wcsncasecmp (configure.ac): ... to here.
13238
13239 2011-05-22  Bruno Haible  <bruno@clisp.org>
13240
13241         wcslen: Move AC_LIBOBJ invocations to module description.
13242         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13243         * modules/wcslen (configure.ac): ... to here.
13244
13245 2011-05-22  Bruno Haible  <bruno@clisp.org>
13246
13247         wcsdup: Move AC_LIBOBJ invocations to module description.
13248         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13249         * modules/wcsdup (configure.ac): ... to here.
13250
13251 2011-05-22  Bruno Haible  <bruno@clisp.org>
13252
13253         wcscspn: Move AC_LIBOBJ invocations to module description.
13254         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13255         here...
13256         * modules/wcscspn (configure.ac): ... to here.
13257
13258 2011-05-22  Bruno Haible  <bruno@clisp.org>
13259
13260         wcscpy: Move AC_LIBOBJ invocations to module description.
13261         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13262         * modules/wcscpy (configure.ac): ... to here.
13263
13264 2011-05-22  Bruno Haible  <bruno@clisp.org>
13265
13266         wcscoll: Move AC_LIBOBJ invocations to module description.
13267         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13268         here...
13269         * modules/wcscoll (configure.ac): ... to here.
13270
13271 2011-05-22  Bruno Haible  <bruno@clisp.org>
13272
13273         wcscmp: Move AC_LIBOBJ invocations to module description.
13274         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13275         * modules/wcscmp (configure.ac): ... to here.
13276
13277 2011-05-22  Bruno Haible  <bruno@clisp.org>
13278
13279         wcschr: Move AC_LIBOBJ invocations to module description.
13280         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13281         * modules/wcschr (configure.ac): ... to here.
13282
13283 2011-05-22  Bruno Haible  <bruno@clisp.org>
13284
13285         wcscat: Move AC_LIBOBJ invocations to module description.
13286         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13287         * modules/wcscat (configure.ac): ... to here.
13288
13289 2011-05-22  Bruno Haible  <bruno@clisp.org>
13290
13291         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13292         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13293         here...
13294         * modules/wcscasecmp (configure.ac): ... to here.
13295
13296 2011-05-22  Bruno Haible  <bruno@clisp.org>
13297
13298         wcrtomb: Move AC_LIBOBJ invocations to module description.
13299         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13300         invocations from here...
13301         * modules/wcrtomb (configure.ac): ... to here.
13302
13303 2011-05-22  Bruno Haible  <bruno@clisp.org>
13304
13305         wcpncpy: Move AC_LIBOBJ invocations to module description.
13306         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13307         here...
13308         * modules/wcpncpy (configure.ac): ... to here.
13309
13310 2011-05-22  Bruno Haible  <bruno@clisp.org>
13311
13312         wcpcpy: Move AC_LIBOBJ invocations to module description.
13313         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13314         * modules/wcpcpy (configure.ac): ... to here.
13315
13316 2011-05-22  Bruno Haible  <bruno@clisp.org>
13317
13318         waitpid: Move AC_LIBOBJ invocations to module description.
13319         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13320         invocation from here...
13321         * modules/waitpid (configure.ac): ... to here.
13322
13323 2011-05-22  Bruno Haible  <bruno@clisp.org>
13324
13325         utimensat: Move AC_LIBOBJ invocations to module description.
13326         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13327         here...
13328         * modules/utimensat (configure.ac): ... to here.
13329
13330 2011-05-22  Bruno Haible  <bruno@clisp.org>
13331
13332         usleep: Move AC_LIBOBJ invocations to module description.
13333         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13334         here...
13335         * modules/usleep (configure.ac): ... to here.
13336
13337 2011-05-22  Bruno Haible  <bruno@clisp.org>
13338
13339         unlockpt: Move AC_LIBOBJ invocations to module description.
13340         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13341         gl_PREREQ_UNLOCKPT invocations from here...
13342         * modules/unlockpt (configure.ac): ... to here.
13343
13344 2011-05-22  Bruno Haible  <bruno@clisp.org>
13345
13346         unlink: Respect rules for use of AC_LIBOBJ.
13347         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13348         * modules/unlink (configure.ac): ... to here.
13349
13350 2011-05-22  Bruno Haible  <bruno@clisp.org>
13351
13352         uname: Move AC_LIBOBJ invocations to module description.
13353         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13355         here...
13356         * modules/uname (configure.ac): ... to here.
13357
13358 2011-05-22  Bruno Haible  <bruno@clisp.org>
13359
13360         ttyname_r: Move AC_LIBOBJ invocations to module description.
13361         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13362         gl_PREREQ_TTYNAME_R invocations from here...
13363         * modules/ttyname_r (configure.ac): ... to here.
13364
13365 2011-05-22  Bruno Haible  <bruno@clisp.org>
13366
13367         tsearch: Move AC_LIBOBJ invocations to module description.
13368         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13369         invocations from here...
13370         * modules/tsearch (configure.ac): ... to here.
13371
13372 2011-05-22  Bruno Haible  <bruno@clisp.org>
13373
13374         towctrans: Move AC_LIBOBJ invocations to module description.
13375         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13376         AC_LIBOBJ invocation from here...
13377         * modules/towctrans (configure.ac): ... to here.
13378
13379 2011-05-22  Bruno Haible  <bruno@clisp.org>
13380
13381         tmpfile: Move AC_LIBOBJ invocations to module description.
13382         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13383         invocations from here...
13384         * modules/tmpfile (configure.ac): ... to here.
13385
13386 2011-05-22  Bruno Haible  <bruno@clisp.org>
13387
13388         times: Move AC_LIBOBJ invocations to module description.
13389         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13390         * modules/times (configure.ac): ... to here.
13391
13392 2011-05-22  Bruno Haible  <bruno@clisp.org>
13393
13394         time_r: Move AC_LIBOBJ invocations to module description.
13395         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13396         invocations from here...
13397         * modules/time_r (configure.ac): ... to here.
13398
13399 2011-05-22  Bruno Haible  <bruno@clisp.org>
13400
13401         timegm: Move AC_LIBOBJ invocations to module description.
13402         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13403         invocations from here...
13404         * modules/timegm (configure.ac): ... to here.
13405
13406 2011-05-22  Bruno Haible  <bruno@clisp.org>
13407
13408         tcgetsid: Move AC_LIBOBJ invocations to module description.
13409         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13410         and gl_PREREQ_TCGETSID invocations from here...
13411         * modules/tcgetsid (configure.ac): ... to here.
13412         (Depends-on): Update conditions.
13413
13414 2011-05-22  Bruno Haible  <bruno@clisp.org>
13415
13416         symlinkat: Move AC_LIBOBJ invocations to module description.
13417         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13418         here...
13419         * modules/symlinkat (configure.ac): ... to here.
13420
13421 2011-05-22  Bruno Haible  <bruno@clisp.org>
13422
13423         symlink: Move AC_LIBOBJ invocations to module description.
13424         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13425         here...
13426         * modules/symlink (configure.ac): ... to here.
13427
13428 2011-05-22  Bruno Haible  <bruno@clisp.org>
13429
13430         strverscmp: Move AC_LIBOBJ invocations to module description.
13431         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13432         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13433         from here...
13434         * modules/strverscmp (configure.ac): ... to here.
13435
13436 2011-05-22  Bruno Haible  <bruno@clisp.org>
13437
13438         strtok_r: Move AC_LIBOBJ invocations to module description.
13439         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13440         and gl_PREREQ_STRTOK_R invocations from here...
13441         * modules/strtok_r (configure.ac): ... to here.
13442         (Depends-on): Update conditions.
13443
13444 2011-05-22  Bruno Haible  <bruno@clisp.org>
13445
13446         strtoumax: Move AC_LIBOBJ invocations to module description.
13447         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13448         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13449         from here...
13450         * modules/strtoumax (configure.ac): ... to here.
13451
13452 2011-05-22  Bruno Haible  <bruno@clisp.org>
13453
13454         strtoimax: Move AC_LIBOBJ invocations to module description.
13455         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13456         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13457         from here...
13458         * modules/strtoimax (configure.ac): ... to here.
13459
13460 2011-05-22  Bruno Haible  <bruno@clisp.org>
13461
13462         strtoull: Move AC_LIBOBJ invocations to module description.
13463         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13464         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13465         from here...
13466         * modules/strtoull (configure.ac): ... to here.
13467
13468 2011-05-22  Bruno Haible  <bruno@clisp.org>
13469
13470         strtoll: Move AC_LIBOBJ invocations to module description.
13471         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13472         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13473         here...
13474         * modules/strtoll (configure.ac): ... to here.
13475
13476 2011-05-22  Bruno Haible  <bruno@clisp.org>
13477
13478         strtoul: Move AC_LIBOBJ invocations to module description.
13479         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13480         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13481         * modules/strtoul (configure.ac): ... to here.
13482
13483 2011-05-22  Bruno Haible  <bruno@clisp.org>
13484
13485         strtol: Move AC_LIBOBJ invocations to module description.
13486         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13487         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13488         * modules/strtol (configure.ac): ... to here.
13489
13490 2011-05-22  Bruno Haible  <bruno@clisp.org>
13491
13492         strtod: Move AC_LIBOBJ invocations to module description.
13493         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13494         invocations from here...
13495         * modules/strtod (configure.ac): ... to here.
13496
13497 2011-05-22  Bruno Haible  <bruno@clisp.org>
13498
13499         strstr*: Move AC_LIBOBJ invocations to module description.
13500         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13501         invocations from here...
13502         * modules/strstr-simple (configure.ac): ... to here.
13503         * modules/strstr (configure.ac): ... and here.
13504
13505 2011-05-22  Bruno Haible  <bruno@clisp.org>
13506
13507         strsignal: Move AC_LIBOBJ invocations to module description.
13508         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13509         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13510         * modules/strsignal (configure.ac): ... to here.
13511         (Depends-on): Update conditions.
13512
13513 2011-05-22  Bruno Haible  <bruno@clisp.org>
13514
13515         strsep: Move AC_LIBOBJ invocations to module description.
13516         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13517         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13518         here...
13519         * modules/strsep (configure.ac): ... to here.
13520
13521 2011-05-22  Bruno Haible  <bruno@clisp.org>
13522
13523         strptime: Move AC_LIBOBJ invocations to module description.
13524         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13525         gl_PREREQ_STRPTIME invocations from here...
13526         * modules/strptime (configure.ac): ... to here.
13527
13528 2011-05-22  Bruno Haible  <bruno@clisp.org>
13529
13530         strpbrk: Move AC_LIBOBJ invocations to module description.
13531         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13533         here...
13534         * modules/strpbrk (configure.ac): ... to here.
13535
13536 2011-05-22  Bruno Haible  <bruno@clisp.org>
13537
13538         strnlen: Move AC_LIBOBJ invocations to module description.
13539         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13540         invocations from here...
13541         * modules/strnlen (configure.ac): ... to here.
13542
13543 2011-05-22  Bruno Haible  <bruno@clisp.org>
13544
13545         strndup: Move AC_LIBOBJ invocations to module description.
13546         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13547         invocations from here...
13548         * modules/strndup (configure.ac): ... to here.
13549         (Depends-on): Update conditions.
13550
13551 2011-05-22  Bruno Haible  <bruno@clisp.org>
13552
13553         strncat: Move AC_LIBOBJ invocations to module description.
13554         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13555         invocations from here...
13556         * modules/strncat (configure.ac): ... to here.
13557
13558 2011-05-22  Bruno Haible  <bruno@clisp.org>
13559
13560         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13561         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13562         invocations from here...
13563         * modules/strdup (configure.ac): ... to here.
13564         * modules/strdup-posix (configure.ac): ... and here.
13565
13566 2011-05-22  Bruno Haible  <bruno@clisp.org>
13567
13568         strcspn: Move AC_LIBOBJ invocations to module description.
13569         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13571         here...
13572         * modules/strcspn (configure.ac): ... to here.
13573
13574 2011-05-22  Bruno Haible  <bruno@clisp.org>
13575
13576         strchrnul: Move AC_LIBOBJ invocations to module description.
13577         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13578         gl_PREREQ_STRCHRNUL invocations from here...
13579         * modules/strchrnul (configure.ac): ... to here.
13580
13581 2011-05-22  Bruno Haible  <bruno@clisp.org>
13582
13583         strcasestr*: Move AC_LIBOBJ invocations to module description.
13584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13585         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13586         * modules/strcasestr-simple (configure.ac): ... to here.
13587         * modules/strcasestr (configure.ac): ... and here.
13588
13589 2011-05-22  Bruno Haible  <bruno@clisp.org>
13590
13591         strcase: Move AC_LIBOBJ invocations to module description.
13592         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13593         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13594         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13595         gl_PREREQ_STRNCASECMP invocations from here...
13596         * modules/strcase (configure.ac): ... to here.
13597
13598 2011-05-22  Bruno Haible  <bruno@clisp.org>
13599
13600         stpncpy: Move AC_LIBOBJ invocations to module description.
13601         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13602         here...
13603         * modules/stpncpy (configure.ac): ... to here.
13604
13605 2011-05-22  Bruno Haible  <bruno@clisp.org>
13606
13607         stpcpy: Move AC_LIBOBJ invocations to module description.
13608         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13609         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13610         here...
13611         * modules/stpcpy (configure.ac): ... to here.
13612
13613 2011-05-21  Bruno Haible  <bruno@clisp.org>
13614
13615         stat: Move AC_LIBOBJ invocations to module description.
13616         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13617         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13618         here...
13619         * modules/stat (configure.ac): ... to here.
13620
13621 2011-05-21  Bruno Haible  <bruno@clisp.org>
13622
13623         sleep: Move AC_LIBOBJ invocations to module description.
13624         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13625         * modules/sleep (configure.ac): ... to here.
13626
13627 2011-05-21  Bruno Haible  <bruno@clisp.org>
13628
13629         signbit: Move AC_LIBOBJ invocations to module description.
13630         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13631         * modules/signbit (configure.ac): ... to here.
13632
13633 2011-05-21  Bruno Haible  <bruno@clisp.org>
13634
13635         sigprocmask: Move AC_LIBOBJ invocations to module description.
13636         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13637         gl_PREREQ_SIGPROMASK invocations from here...
13638         * modules/sigprocmask (configure.ac): ... to here.
13639
13640 2011-05-21  Bruno Haible  <bruno@clisp.org>
13641
13642         sigaction: Move AC_LIBOBJ invocations to module description.
13643         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13644         gl_PREREQ_SIGACTION invocations from here...
13645         * modules/sigaction (configure.ac): ... to here.
13646
13647 2011-05-21  Bruno Haible  <bruno@clisp.org>
13648
13649         sig2str: Move AC_LIBOBJ invocations to module description.
13650         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13651         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13652         here...
13653         * modules/sig2str (configure.ac): ... to here.
13654
13655 2011-05-21  Bruno Haible  <bruno@clisp.org>
13656
13657         setlocale: Move AC_LIBOBJ invocations to module description.
13658         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13659         gl_PREREQ_SETLOCALE invocations from here...
13660         * modules/setlocale (configure.ac): ... to here.
13661
13662 2011-05-21  Bruno Haible  <bruno@clisp.org>
13663
13664         unsetenv: Move AC_LIBOBJ invocations to module description.
13665         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13666         and gl_PREREQ_UNSETENV invocations from here...
13667         * modules/unsetenv (configure.ac): ... to here.
13668         (Depends-on): Update.
13669
13670 2011-05-21  Bruno Haible  <bruno@clisp.org>
13671
13672         setenv: Move AC_LIBOBJ invocations to module description.
13673         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13674         here...
13675         * modules/setenv (configure.ac): ... to here.
13676
13677 2011-05-21  Bruno Haible  <bruno@clisp.org>
13678
13679         selinux-h: Move AC_LIBOBJ invocations to module description.
13680         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13681         AC_LIBOBJ invocation from here...
13682         * modules/selinux-h (configure.ac): ... to here.
13683
13684 2011-05-21  Bruno Haible  <bruno@clisp.org>
13685
13686         select: Respect rules for use of AC_LIBOBJ.
13687         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13688         here...
13689         * modules/select (configure.ac): ... to here.
13690
13691 2011-05-21  Bruno Haible  <bruno@clisp.org>
13692
13693         scandir: Move AC_LIBOBJ invocations to module description.
13694         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13695         invocations from here...
13696         * modules/scandir (configure.ac): ... to here.
13697
13698 2011-05-21  Bruno Haible  <bruno@clisp.org>
13699
13700         rpmatch: Move AC_LIBOBJ invocations to module description.
13701         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13702         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13703         here...
13704         * modules/rpmatch (configure.ac): ... to here.
13705
13706 2011-05-21  Bruno Haible  <bruno@clisp.org>
13707
13708         rmdir: Respect rules for use of AC_LIBOBJ.
13709         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13710         * modules/rmdir (configure.ac): ... to here.
13711
13712 2011-05-21  Bruno Haible  <bruno@clisp.org>
13713
13714         renameat: Move AC_LIBOBJ invocations to module description.
13715         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13716         here...
13717         * modules/renameat (configure.ac): ... to here.
13718
13719 2011-05-21  Bruno Haible  <bruno@clisp.org>
13720
13721         rename: Respect rules for use of AC_LIBOBJ.
13722         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13723         here...
13724         * modules/rename (configure.ac): ... to here.
13725
13726 2011-05-21  Bruno Haible  <bruno@clisp.org>
13727
13728         remove: Move AC_LIBOBJ invocations to module description.
13729         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13730         here...
13731         * modules/remove (configure.ac): ... to here.
13732
13733 2011-05-21  Bruno Haible  <bruno@clisp.org>
13734
13735         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13736         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13737         macro.
13738         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13739         * modules/relocatable-lib (configure.ac): ... to here.
13740         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13741         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13742
13743 2011-05-21  Bruno Haible  <bruno@clisp.org>
13744
13745         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13746         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13747         here...
13748         * modules/relocatable-prog (configure.ac): ... to here.
13749
13750 2011-05-21  Bruno Haible  <bruno@clisp.org>
13751
13752         regex: Move AC_LIBOBJ invocations to module description.
13753         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13754         invocations from here...
13755         * modules/regex (configure.ac): ... to here.
13756
13757 2011-05-21  Bruno Haible  <bruno@clisp.org>
13758
13759         realloc-*: Move AC_LIBOBJ invocations to module description.
13760         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13761         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13762         AC_LIBOBJ invocations from here...
13763         * modules/realloc-gnu (configure.ac): ... to here.
13764         * modules/realloc-posix (configure.ac): ... and here.
13765
13766 2011-05-21  Bruno Haible  <bruno@clisp.org>
13767
13768         readutmp: Move AC_LIBOBJ invocations to module description.
13769         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13770         * modules/readutmp (configure.ac): ... to here.
13771
13772 2011-05-21  Bruno Haible  <bruno@clisp.org>
13773
13774         readlinkat: Move AC_LIBOBJ invocations to module description.
13775         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13776         here...
13777         * modules/readlinkat (configure.ac): ... to here.
13778
13779 2011-05-21  Bruno Haible  <bruno@clisp.org>
13780
13781         readlink: Move AC_LIBOBJ invocations to module description.
13782         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13783         gl_PREREQ_READLINK invocations from here...
13784         * modules/readlink (configure.ac): ... to here.
13785
13786 2011-05-21  Bruno Haible  <bruno@clisp.org>
13787
13788         readline: Move AC_LIBOBJ invocations to module description.
13789         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13790         gl_PREREQ_READLINE invocations from here...
13791         * modules/readline (configure.ac): ... to here.
13792
13793 2011-05-21  Bruno Haible  <bruno@clisp.org>
13794
13795         read: Move AC_LIBOBJ invocations to module description.
13796         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13797         * modules/read (configure.ac): ... to here.
13798
13799 2011-05-21  Bruno Haible  <bruno@clisp.org>
13800
13801         rawmemchr: Move AC_LIBOBJ invocations to module description.
13802         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13804         from here...
13805         * modules/rawmemchr (configure.ac): ... to here.
13806
13807 2011-05-21  Bruno Haible  <bruno@clisp.org>
13808
13809         random_r: Move AC_LIBOBJ invocations to module description.
13810         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13811         gl_PREREQ_RANDOM_R invocations from here...
13812         * modules/random_r (configure.ac): ... to here.
13813
13814 2011-05-21  Bruno Haible  <bruno@clisp.org>
13815
13816         pwrite: Move AC_LIBOBJ invocations to module description.
13817         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13818         * modules/pwrite (configure.ac): ... to here.
13819
13820 2011-05-21  Bruno Haible  <bruno@clisp.org>
13821
13822         putenv: Move AC_LIBOBJ invocations to module description.
13823         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13824         * modules/putenv (configure.ac): ... to here.
13825
13826 2011-05-21  Bruno Haible  <bruno@clisp.org>
13827
13828         login_tty: Move AC_LIBOBJ invocations to module description.
13829         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13830         * modules/login_tty (configure.ac): ... to here.
13831
13832 2011-05-21  Bruno Haible  <bruno@clisp.org>
13833
13834         openpty: Move AC_LIBOBJ invocations to module description.
13835         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13836         * modules/openpty (configure.ac): ... to here.
13837
13838 2011-05-21  Bruno Haible  <bruno@clisp.org>
13839
13840         forkpty: Move AC_LIBOBJ invocations to module description.
13841         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13842         * modules/forkpty (configure.ac): ... to here.
13843
13844 2011-05-21  Bruno Haible  <bruno@clisp.org>
13845
13846         ptsname: Move AC_LIBOBJ invocations to module description.
13847         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13848         invocations from here...
13849         * modules/ptsname (configure.ac): ... to here.
13850
13851 2011-05-21  Bruno Haible  <bruno@clisp.org>
13852
13853         pread: Move AC_LIBOBJ invocations to module description.
13854         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13855         * modules/pread (configure.ac): ... to here.
13856
13857 2011-05-21  Bruno Haible  <bruno@clisp.org>
13858
13859         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13860         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13861         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13862         * modules/posix_spawn (configure.ac): ... to here.
13863         * modules/posix_spawnp (configure.ac): ... and here.
13864
13865 2011-05-21  Bruno Haible  <bruno@clisp.org>
13866
13867         popen: Move AC_LIBOBJ invocations to module description.
13868         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13869         invocations from here...
13870         * modules/popen (configure.ac): ... to here.
13871
13872 2011-05-21  Bruno Haible  <bruno@clisp.org>
13873
13874         poll: Move AC_LIBOBJ invocations to module description.
13875         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13876         invocations from here...
13877         * modules/poll (configure.ac): ... to here.
13878
13879 2011-05-21  Bruno Haible  <bruno@clisp.org>
13880
13881         pipe-posix: Move AC_LIBOBJ invocations to module description.
13882         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13883         * modules/pipe-posix (configure.ac): ... to here.
13884
13885 2011-05-21  Bruno Haible  <bruno@clisp.org>
13886
13887         openat: Respect rules for use of AC_LIBOBJ.
13888         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13889         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13890         * modules/openat (configure.ac): ... to here.
13891
13892 2011-05-21  Bruno Haible  <bruno@clisp.org>
13893
13894         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13895         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13896         invocation from here...
13897         * modules/obstack-printf (configure.ac): ... to here.
13898         * modules/obstack-printf-posix (configure.ac): ... and here.
13899
13900 2011-05-21  Bruno Haible  <bruno@clisp.org>
13901
13902         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13903         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13904         from here...
13905         * modules/nl_langinfo (configure.ac): ... to here.
13906
13907 2011-05-21  Bruno Haible  <bruno@clisp.org>
13908
13909         nanosleep: Move AC_LIBOBJ invocations to module description.
13910         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13911         gl_PREREQ_NANOSLEEP invocations from here...
13912         * modules/nanosleep (configure.ac): ... to here.
13913
13914 2011-05-21  Bruno Haible  <bruno@clisp.org>
13915
13916         mountlist: Move AC_LIBOBJ invocations to module description.
13917         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13918         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13919         * modules/mountlist (configure.ac): ... to here.
13920
13921 2011-05-21  Bruno Haible  <bruno@clisp.org>
13922
13923         mktime: Respect rules for use of AC_LIBOBJ.
13924         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13925         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13926         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13927         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13928         * modules/mktime (configure.ac): ... to here.
13929         * modules/mktime-internal (configure.ac): ... and here.
13930         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13931
13932 2011-05-21  Bruno Haible  <bruno@clisp.org>
13933
13934         mkstemps: Move AC_LIBOBJ invocations to module description.
13935         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13936         here...
13937         * modules/mkstemps (configure.ac): ... to here.
13938
13939 2011-05-21  Bruno Haible  <bruno@clisp.org>
13940
13941         mkstemp: Move AC_LIBOBJ invocations to module description.
13942         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13943         gl_PREREQ_MKSTEMP invocations from here...
13944         * modules/mkstemp (configure.ac): ... to here.
13945
13946 2011-05-21  Bruno Haible  <bruno@clisp.org>
13947
13948         mkostemps: Move AC_LIBOBJ invocations to module description.
13949         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13950         here...
13951         * modules/mkostemps (configure.ac): ... to here.
13952
13953 2011-05-21  Bruno Haible  <bruno@clisp.org>
13954
13955         mkostemp: Move AC_LIBOBJ invocations to module description.
13956         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13957         gl_PREREQ_MKOSTEMP invocations from here...
13958         * modules/mkostemp (configure.ac): ... to here.
13959
13960 2011-05-21  Bruno Haible  <bruno@clisp.org>
13961
13962         mknod: Move AC_LIBOBJ invocations to module description.
13963         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13964         * modules/mknod (configure.ac): ... to here.
13965
13966 2011-05-21  Bruno Haible  <bruno@clisp.org>
13967
13968         mkfifoat: Move AC_LIBOBJ invocations to module description.
13969         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13970         here...
13971         * modules/mkfifoat (configure.ac): ... to here.
13972
13973 2011-05-21  Bruno Haible  <bruno@clisp.org>
13974
13975         mkfifo: Respect rules for use of AC_LIBOBJ.
13976         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13977         here...
13978         * modules/mkfifo (configure.ac): ... to here.
13979
13980 2011-05-21  Bruno Haible  <bruno@clisp.org>
13981
13982         mkdtemp: Move AC_LIBOBJ invocations to module description.
13983         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13984         invocations from here...
13985         * modules/mkdtemp (configure.ac): ... to here.
13986
13987 2011-05-21  Bruno Haible  <bruno@clisp.org>
13988
13989         mkdir: Move AC_LIBOBJ invocations to module description.
13990         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13991         * modules/mkdir (configure.ac): ... to here.
13992
13993 2011-05-21  Bruno Haible  <bruno@clisp.org>
13994
13995         memset: Move AC_LIBOBJ invocations to module description.
13996         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13997         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13998         here...
13999         * modules/memset (configure.ac): ... to here.
14000
14001 2011-05-21  Bruno Haible  <bruno@clisp.org>
14002
14003         memrchr: Move AC_LIBOBJ invocations to module description.
14004         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14005         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14006         here...
14007         * modules/memrchr (configure.ac): ... to here.
14008
14009 2011-05-21  Bruno Haible  <bruno@clisp.org>
14010
14011         mempcpy: Move AC_LIBOBJ invocations to module description.
14012         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14013         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14014         here...
14015         * modules/mempcpy (configure.ac): ... to here.
14016
14017 2011-05-21  Bruno Haible  <bruno@clisp.org>
14018
14019         memmove: Move AC_LIBOBJ invocations to module description.
14020         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14022         here...
14023         * modules/memmove (configure.ac): ... to here.
14024
14025 2011-05-21  Bruno Haible  <bruno@clisp.org>
14026
14027         memmem*: Move AC_LIBOBJ invocations to module description.
14028         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14029         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14030         here...
14031         (gl_FUNC_MEMMEM): ... and here...
14032         * modules/memmem-simple (configure.ac): ... to here.
14033         * modules/memmem (configure.ac): ... and here.
14034
14035 2011-05-21  Bruno Haible  <bruno@clisp.org>
14036
14037         memcpy: Move AC_LIBOBJ invocations to module description.
14038         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14040         here...
14041         * modules/memcpy (configure.ac): ... to here.
14042
14043 2011-05-21  Bruno Haible  <bruno@clisp.org>
14044
14045         memcmp: Simplify autoconf macro.
14046         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14047         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14048         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14049
14050 2011-05-21  Bruno Haible  <bruno@clisp.org>
14051
14052         memcmp: Move AC_LIBOBJ invocations to module description.
14053         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14054         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14055         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14056         * modules/memcmp (configure.ac): ... to here.
14057         (Depends-on): Update conditions.
14058
14059 2011-05-21  Bruno Haible  <bruno@clisp.org>
14060
14061         memchr: Respect rules for use of AC_LIBOBJ.
14062         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14063         invocations from here...
14064         * modules/memchr (configure.ac): ... to here.
14065
14066 2011-05-21  Bruno Haible  <bruno@clisp.org>
14067
14068         mbtowc: Move AC_LIBOBJ invocations to module description.
14069         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14070         invocations from here...
14071         * modules/mbtowc (configure.ac): ... to here.
14072
14073 2011-05-21  Bruno Haible  <bruno@clisp.org>
14074
14075         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14076         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14077         gl_PREREQ_MBSRTOWCS invocations from here...
14078         * modules/mbsrtowcs (configure.ac): ... to here.
14079
14080 2011-05-21  Bruno Haible  <bruno@clisp.org>
14081
14082         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14083         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14084         gl_PREREQ_MBSNRTOWCS invocations from here...
14085         * modules/mbsnrtowcs (configure.ac): ... to here.
14086
14087 2011-05-21  Bruno Haible  <bruno@clisp.org>
14088
14089         mbsinit: Move AC_LIBOBJ invocations to module description.
14090         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14091         invocations from here...
14092         * modules/mbsinit (configure.ac): ... to here.
14093
14094 2011-05-21  Bruno Haible  <bruno@clisp.org>
14095
14096         mbrlen: Move AC_LIBOBJ invocations to module description.
14097         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14098         invocations from here...
14099         * modules/mbrlen (configure.ac): ... to here.
14100
14101 2011-05-21  Bruno Haible  <bruno@clisp.org>
14102
14103         mbrtowc: Respect rules for use of AC_LIBOBJ.
14104         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14105         invocations from here...
14106         * modules/mbrtowc (configure.ac): ... to here.
14107
14108 2011-05-21  Bruno Haible  <bruno@clisp.org>
14109
14110         malloc-*: Move AC_LIBOBJ invocations to module description.
14111         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14112         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14113         AC_LIBOBJ invocations from here...
14114         * modules/malloc-gnu (configure.ac): ... to here.
14115         * modules/malloc-posix (configure.ac): ... and here.
14116
14117 2011-05-21  Bruno Haible  <bruno@clisp.org>
14118
14119         lstat, openat: Respect rules for use of AC_LIBOBJ.
14120         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14121         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14122         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14123         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14124         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14125         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14126         here.
14127         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14128
14129 2011-05-21  Bruno Haible  <bruno@clisp.org>
14130
14131         lseek: Move AC_LIBOBJ invocations to module description.
14132         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14133         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14134         * modules/lseek (configure.ac): ... to here.
14135
14136 2011-05-21  Bruno Haible  <bruno@clisp.org>
14137
14138         linkat: Move AC_LIBOBJ invocations to module description.
14139         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14140         here...
14141         * modules/linkat (configure.ac): ... to here.
14142
14143 2011-05-21  Bruno Haible  <bruno@clisp.org>
14144
14145         link: Respect rules for use of AC_LIBOBJ.
14146         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14147         * modules/link (configure.ac): ... to here.
14148
14149 2011-05-21  Bruno Haible  <bruno@clisp.org>
14150
14151         lchown: Move AC_LIBOBJ invocations to module description.
14152         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14153         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14154         * modules/lchown (configure.ac): ... to here.
14155
14156 2011-05-21  Bruno Haible  <bruno@clisp.org>
14157
14158         iswctype: Move AC_LIBOBJ invocations to module description.
14159         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14160         here...
14161         * modules/iswctype (configure.ac): ... to here.
14162
14163 2011-05-21  Bruno Haible  <bruno@clisp.org>
14164
14165         iswblank: Move AC_LIBOBJ invocations to module description.
14166         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14167         here...
14168         * modules/iswblank (configure.ac): ... to here.
14169
14170 2011-05-21  Bruno Haible  <bruno@clisp.org>
14171
14172         atanl: Move AC_LIBOBJ invocations to module description.
14173         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14174         * modules/atanl (configure.ac): ... to here.
14175
14176 2011-05-21  Bruno Haible  <bruno@clisp.org>
14177
14178         acosl: Move AC_LIBOBJ invocations to module description.
14179         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14180         * modules/acosl (configure.ac): ... to here.
14181
14182 2011-05-21  Bruno Haible  <bruno@clisp.org>
14183
14184         asinl: Respect rules for use of AC_LIBOBJ.
14185         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14186         * modules/asinl (configure.ac): ... to here.
14187
14188 2011-05-21  Bruno Haible  <bruno@clisp.org>
14189
14190         tanl: Move AC_LIBOBJ invocations to module description.
14191         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14192         * modules/tanl (configure.ac): ... to here.
14193
14194 2011-05-21  Bruno Haible  <bruno@clisp.org>
14195
14196         cosl: Move AC_LIBOBJ invocations to module description.
14197         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14198         * modules/cosl (configure.ac): ... to here.
14199
14200 2011-05-21  Bruno Haible  <bruno@clisp.org>
14201
14202         sinl: Move AC_LIBOBJ invocations to module description.
14203         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14204         * modules/sinl (configure.ac): ... to here.
14205
14206 2011-05-21  Bruno Haible  <bruno@clisp.org>
14207
14208         logl: Move AC_LIBOBJ invocations to module description.
14209         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14210         * modules/logl (configure.ac): ... to here.
14211
14212 2011-05-21  Bruno Haible  <bruno@clisp.org>
14213
14214         expl: Move AC_LIBOBJ invocations to module description.
14215         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14216         * modules/expl (configure.ac): ... to here.
14217
14218 2011-05-21  Bruno Haible  <bruno@clisp.org>
14219
14220         roundl: Move AC_LIBOBJ invocations to module description.
14221         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14222         * modules/roundl (configure.ac): ... to here.
14223
14224 2011-05-21  Bruno Haible  <bruno@clisp.org>
14225
14226         round: Move AC_LIBOBJ invocations to module description.
14227         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14228         * modules/round (configure.ac): ... to here.
14229
14230 2011-05-21  Bruno Haible  <bruno@clisp.org>
14231
14232         roundf: Move AC_LIBOBJ invocations to module description.
14233         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14234         * modules/roundf (configure.ac): ... to here.
14235
14236 2011-05-21  Bruno Haible  <bruno@clisp.org>
14237
14238         truncl: Move AC_LIBOBJ invocations to module description.
14239         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14240         * modules/truncl (configure.ac): ... to here.
14241
14242 2011-05-21  Bruno Haible  <bruno@clisp.org>
14243
14244         trunc: Move AC_LIBOBJ invocations to module description.
14245         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14246         * modules/trunc (configure.ac): ... to here.
14247
14248 2011-05-21  Bruno Haible  <bruno@clisp.org>
14249
14250         truncf: Move AC_LIBOBJ invocations to module description.
14251         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14252         * modules/truncf (configure.ac): ... to here.
14253
14254 2011-05-21  Bruno Haible  <bruno@clisp.org>
14255
14256         ceill: Move AC_LIBOBJ invocations to module description.
14257         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14258         * modules/ceill (configure.ac): ... to here.
14259
14260 2011-05-21  Bruno Haible  <bruno@clisp.org>
14261
14262         ceil: Move AC_LIBOBJ invocations to module description.
14263         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14264         * modules/ceil (configure.ac): ... to here.
14265
14266 2011-05-21  Bruno Haible  <bruno@clisp.org>
14267
14268         ceilf: Move AC_LIBOBJ invocations to module description.
14269         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14270         * modules/ceilf (configure.ac): ... to here.
14271
14272 2011-05-21  Bruno Haible  <bruno@clisp.org>
14273
14274         floorl: Respect rules for use of AC_LIBOBJ.
14275         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14276         * modules/floorl (configure.ac): ... to here.
14277
14278 2011-05-21  Bruno Haible  <bruno@clisp.org>
14279
14280         floor: Respect rules for use of AC_LIBOBJ.
14281         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14282         * modules/floor (configure.ac): ... to here.
14283
14284 2011-05-21  Bruno Haible  <bruno@clisp.org>
14285
14286         floorf: Move AC_LIBOBJ invocations to module description.
14287         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14288         * modules/floorf (configure.ac): ... to here.
14289
14290 2011-05-20  Bruno Haible  <bruno@clisp.org>
14291
14292         sqrtl: Respect rules for use of AC_LIBOBJ.
14293         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14294         * modules/sqrtl (configure.ac): ... to here.
14295
14296 2011-05-20  Bruno Haible  <bruno@clisp.org>
14297
14298         ldexpl: Respect rules for use of AC_LIBOBJ.
14299         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14300         * modules/ldexpl (configure.ac): ... to here.
14301
14302 2011-05-20  Bruno Haible  <bruno@clisp.org>
14303
14304         frexpl*: Respect rules for use of AC_LIBOBJ.
14305         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14306         invocation from here...
14307         * modules/frexpl (configure.ac): ... to here.
14308         * modules/frexpl-nolibm (configure.ac): ... and here.
14309
14310 2011-05-20  Bruno Haible  <bruno@clisp.org>
14311
14312         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14313         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14314         invocation from here...
14315         * modules/frexp (configure.ac): ... to here.
14316         * modules/frexp-nolibm (configure.ac): ... and here.
14317
14318 2011-05-20  Bruno Haible  <bruno@clisp.org>
14319
14320         isnan: Respect rules for use of AC_LIBOBJ.
14321         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14322         invocations here.
14323         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14324         REPLACE_ISNAN.
14325         * modules/isnand (configure.ac): Likewise.
14326         * modules/isnanl (configure.ac): Likewise.
14327
14328 2011-05-20  Bruno Haible  <bruno@clisp.org>
14329
14330         isnanl*: Respect rules for use of AC_LIBOBJ.
14331         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14332         invocation from here...
14333         * modules/isnanl (configure.ac): ... to here.
14334         * modules/isnanl-nolibm (configure.ac): ... and here.
14335
14336 2011-05-20  Bruno Haible  <bruno@clisp.org>
14337
14338         isnand*: Move AC_LIBOBJ invocations to module description.
14339         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14340         invocation from here...
14341         * modules/isnand (configure.ac): ... to here.
14342         * modules/isnand-nolibm (configure.ac): ... and here.
14343
14344 2011-05-20  Bruno Haible  <bruno@clisp.org>
14345
14346         isnanf*: Move AC_LIBOBJ invocations to module description.
14347         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14348         invocation from here...
14349         * modules/isnanf (configure.ac): ... to here.
14350         * modules/isnanf-nolibm (configure.ac): ... and here.
14351
14352 2011-05-20  Bruno Haible  <bruno@clisp.org>
14353
14354         isnan*: Separate the AC_LIBOBJ invocations.
14355         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14356         AC_LIBOBJ invocation.
14357         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14358         here.
14359         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14360         AC_LIBOBJ invocation.
14361         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14362         here.
14363         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14364         AC_LIBOBJ invocation.
14365         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14366         here.
14367         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14368
14369 2011-05-08  Bruno Haible  <bruno@clisp.org>
14370
14371         isinf: Move AC_LIBOBJ invocations to module description.
14372         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14373         * modules/isinf (configure.ac): ... to here.
14374
14375 2011-05-08  Bruno Haible  <bruno@clisp.org>
14376
14377         isfinite: Move AC_LIBOBJ invocations to module description.
14378         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14379         * modules/isfinite (configure.ac): ... to here.
14380
14381 2011-05-08  Bruno Haible  <bruno@clisp.org>
14382
14383         isblank: Move AC_LIBOBJ invocations to module description.
14384         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14385         here...
14386         * modules/isblank (configure.ac): ... to here.
14387
14388 2011-05-08  Bruno Haible  <bruno@clisp.org>
14389
14390         isapipe: Move AC_LIBOBJ invocations to module description.
14391         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14392         gl_PREREQ_ISAPIPE invocations from here...
14393         * modules/isapipe (configure.ac): ... to here.
14394         (Depends-on): Update condition.
14395
14396 2011-05-08  Bruno Haible  <bruno@clisp.org>
14397
14398         ioctl: Move AC_LIBOBJ invocations to module description.
14399         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14400         invocations from here...
14401         * modules/ioctl (configure.ac): ... to here.
14402         (Depends-on): Update condition.
14403
14404 2011-05-08  Bruno Haible  <bruno@clisp.org>
14405
14406         imaxdiv: Move AC_LIBOBJ invocations to module description.
14407         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14408         invocations from here...
14409         * modules/imaxdiv (configure.ac): ... to here.
14410
14411 2011-05-08  Bruno Haible  <bruno@clisp.org>
14412
14413         imaxabs: Move AC_LIBOBJ invocations to module description.
14414         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14415         invocations from here...
14416         * modules/imaxabs (configure.ac): ... to here.
14417
14418 2011-05-08  Bruno Haible  <bruno@clisp.org>
14419
14420         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14421         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14422         AC_LIBOBJ invocations from here...
14423         * modules/getaddrinfo (configure.ac): ... to here.
14424         (Depends-on): Add conditions.
14425
14426 2011-05-08  Bruno Haible  <bruno@clisp.org>
14427
14428         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14429         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14430         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14431         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14432         (gl_PREREQ_INET_PTON): ... from here.
14433         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14434         gl_PREREQ_INET_PTON here.
14435         (Depends-on): Update condition.
14436
14437 2011-05-08  Bruno Haible  <bruno@clisp.org>
14438
14439         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14440         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14441         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14442         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14443         (gl_PREREQ_INET_NTOP): ... from here.
14444         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14445         gl_PREREQ_INET_NTOP here.
14446         (Depends-on): Update condition.
14447
14448 2011-05-08  Bruno Haible  <bruno@clisp.org>
14449
14450         iconv_open: Move AC_LIBOBJ invocations to module description.
14451         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14452         AC_LIBOBJ invocations from here...
14453         * modules/iconv_open (configure.ac): ... to here.
14454
14455 2011-05-08  Bruno Haible  <bruno@clisp.org>
14456
14457         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14458         If module 'iconv_open' is among the main modules and module
14459         'iconv_open-utf' is among the tests dependencies, then
14460         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14461         return the special iconv_t values. Therefore iconv() and iconv_close()
14462         must support these special iconv_t values, already in lib, not only in
14463         tests.
14464         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14465         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14466         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14467         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14468         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14469         (Depends-on): Add the dependencies of iconv_open-utf.
14470         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14471         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14472         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14473
14474 2011-05-08  Bruno Haible  <bruno@clisp.org>
14475
14476         group-member: Move AC_LIBOBJ invocations to module description.
14477         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14478         gl_PREREQ_GROUP_MEMBER invocations from here...
14479         * modules/group-member (configure.ac): ... to here.
14480
14481 2011-05-08  Bruno Haible  <bruno@clisp.org>
14482
14483         grantpt: Move AC_LIBOBJ invocations to module description.
14484         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14485         invocations from here...
14486         * modules/grantpt (configure.ac): ... to here.
14487
14488 2011-05-08  Bruno Haible  <bruno@clisp.org>
14489
14490         glob: Move AC_LIBOBJ invocations to module description.
14491         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14492         from here...
14493         * modules/glob (configure.ac): ... to here.
14494
14495 2011-05-08  Bruno Haible  <bruno@clisp.org>
14496
14497         getusershell: Move AC_LIBOBJ invocations to module description.
14498         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14499         Move AC_LIBOBJ invocation from here...
14500         * modules/getusershell (configure.ac): ... to here.
14501         (Depends-on): Update condition.
14502
14503 2011-05-08  Bruno Haible  <bruno@clisp.org>
14504
14505         gettimeofday: Move AC_LIBOBJ invocations to module description.
14506         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14507         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14508         gl_PREREQ_GETTIMEOFDAY invocations from here...
14509         * modules/gettimeofday (configure.ac): ... to here.
14510
14511 2011-05-08  Bruno Haible  <bruno@clisp.org>
14512
14513         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14514         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14515         just gl_FUNC_TZSET.
14516         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14517         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14518         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14519         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14520
14521 2011-05-08  Bruno Haible  <bruno@clisp.org>
14522
14523         getsubopt: Move AC_LIBOBJ invocations to module description.
14524         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14525         gl_PREREQ_GETSUBOPT invocations from here...
14526         * modules/getsubopt (configure.ac): ... to here.
14527
14528 2011-05-08  Bruno Haible  <bruno@clisp.org>
14529
14530         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14531         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14532         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14533         * modules/getpass-gnu (configure.ac): ... to here.
14534
14535 2011-05-08  Bruno Haible  <bruno@clisp.org>
14536
14537         getpass: Move AC_LIBOBJ invocations to module description.
14538         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14539         gl_PREREQ_GETPASS invocations from here...
14540         * modules/getpass (configure.ac): ... to here.
14541
14542 2011-05-08  Bruno Haible  <bruno@clisp.org>
14543
14544         getpagesize: Move AC_LIBOBJ invocations to module description.
14545         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14546         from here...
14547         * modules/getpagesize (configure.ac): ... to here.
14548
14549 2011-05-08  Bruno Haible  <bruno@clisp.org>
14550
14551         getopt: Move AC_LIBOBJ invocations to module description.
14552         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14553         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14554         invocations from here...
14555         * modules/getopt-gnu (configure.ac): ... to here.
14556         * modules/getopt-posix (configure.ac): ... and here.
14557         (Depends-on): Update condition.
14558
14559 2011-05-08  Bruno Haible  <bruno@clisp.org>
14560
14561         getopt, argp: Respect rules for use of AC_LIBOBJ.
14562         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14563         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14564         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14565         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14566
14567 2011-05-08  Bruno Haible  <bruno@clisp.org>
14568
14569         getlogin_r: Move AC_LIBOBJ invocations to module description.
14570         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14571         gl_PREREQ_GETLOGIN_R invocations from here...
14572         * modules/getlogin_r (configure.ac): ... to here.
14573
14574 2011-05-08  Bruno Haible  <bruno@clisp.org>
14575
14576         getlogin: Move AC_LIBOBJ invocations to module description.
14577         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14578         here...
14579         * modules/getlogin (configure.ac): ... to here.
14580
14581 2011-05-08  Bruno Haible  <bruno@clisp.org>
14582
14583         getloadavg: Move AC_LIBOBJ invocations to module description.
14584         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14585         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14586         * modules/getloadavg (configure.ac): ... to here.
14587
14588 2011-05-08  Bruno Haible  <bruno@clisp.org>
14589
14590         gethrxtime: Move AC_LIBOBJ invocations to module description.
14591         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14592         LIB_GETHRXTIME from here...
14593         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14594         invocations from here...
14595         * modules/gethrxtime (configure.ac): ... to here.
14596
14597 2011-05-08  Bruno Haible  <bruno@clisp.org>
14598
14599         gethostname: Move AC_LIBOBJ invocations to module description.
14600         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14601         gl_PREREQ_GETHOSTNAME invocations from here...
14602         * modules/gethostname (configure.ac): ... to here.
14603
14604 2011-05-08  Bruno Haible  <bruno@clisp.org>
14605
14606         getgroups: Move AC_LIBOBJ invocations to module description.
14607         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14608         here...
14609         * modules/getgroups (configure.ac): ... to here.
14610
14611 2011-05-08  Bruno Haible  <bruno@clisp.org>
14612
14613         getdtablesize: Move AC_LIBOBJ invocations to module description.
14614         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14615         invocation from here...
14616         * modules/getdtablesize (configure.ac): ... to here.
14617
14618 2011-05-08  Bruno Haible  <bruno@clisp.org>
14619
14620         getdomainname: Move AC_LIBOBJ invocations to module description.
14621         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14622         gl_PREREQ_GETDOMAINNAME invocations from here...
14623         * modules/getdomainname (configure.ac): ... to here.
14624
14625 2011-05-08  Bruno Haible  <bruno@clisp.org>
14626
14627         getline: Move AC_LIBOBJ invocations to module description.
14628         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14629         invocations from here...
14630         * modules/getline (configure.ac): ... to here.
14631
14632 2011-05-08  Bruno Haible  <bruno@clisp.org>
14633
14634         getline: Simplify.
14635         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14636         It's already handled through the module dependency.
14637
14638 2011-05-08  Bruno Haible  <bruno@clisp.org>
14639
14640         getdelim: Move AC_LIBOBJ invocations to module description.
14641         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14642         and gl_PREREQ_GETDELIM invocations from here...
14643         * modules/getdelim (configure.ac): ... to here.
14644         (Depends-on): Fix condition.
14645
14646 2011-05-08  Bruno Haible  <bruno@clisp.org>
14647
14648         getcwd: Move AC_LIBOBJ invocations to module description.
14649         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14650         invocations from here...
14651         * modules/getcwd (configure.ac): ... to here.
14652
14653 2011-05-08  Bruno Haible  <bruno@clisp.org>
14654
14655         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14656         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14657         here...
14658         * modules/getcwd-lgpl (configure.ac): ... to here.
14659
14660 2011-05-07  Bruno Haible  <bruno@clisp.org>
14661
14662         crypto/gc: Move AC_LIBOBJ invocations to module description.
14663         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14664         * modules/crypto/gc (configure.ac): ... to here.
14665
14666 2011-05-07  Bruno Haible  <bruno@clisp.org>
14667
14668         fwriting: Move AC_LIBOBJ invocations to module description.
14669         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14670         here...
14671         * modules/fwriting (configure.ac): ... to here.
14672
14673 2011-05-07  Bruno Haible  <bruno@clisp.org>
14674
14675         fwritable: Move AC_LIBOBJ invocations to module description.
14676         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14677         here...
14678         * modules/fwritable (configure.ac): ... to here.
14679
14680 2011-05-07  Bruno Haible  <bruno@clisp.org>
14681
14682         futimens: Move AC_LIBOBJ invocations to module description.
14683         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14684         here...
14685         * modules/futimens (configure.ac): ... to here.
14686
14687 2011-05-07  Bruno Haible  <bruno@clisp.org>
14688
14689         ftruncate: Move AC_LIBOBJ invocations to module description.
14690         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14691         gl_PREREQ_FTRUNCATE invocations from here...
14692         * modules/ftruncate (configure.ac): ... to here.
14693
14694 2011-05-07  Bruno Haible  <bruno@clisp.org>
14695
14696         fsync: Move AC_LIBOBJ invocations to module description.
14697         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14698         invocations from here...
14699         * modules/fsync (configure.ac): ... to here.
14700
14701 2011-05-07  Bruno Haible  <bruno@clisp.org>
14702
14703         fsusage: Move AC_LIBOBJ invocations to module description.
14704         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14705         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14706         * modules/fsusage (configure.ac): ... to here.
14707
14708 2011-05-07  Bruno Haible  <bruno@clisp.org>
14709
14710         freopen: Move AC_LIBOBJ invocations to module description.
14711         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14712         invocations from here...
14713         * modules/freopen (configure.ac): ... to here.
14714
14715 2011-05-07  Bruno Haible  <bruno@clisp.org>
14716
14717         free: Move AC_LIBOBJ invocations to module description.
14718         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14719         invocations from here...
14720         * modules/free (configure.ac): ... to here.
14721
14722 2011-05-07  Bruno Haible  <bruno@clisp.org>
14723
14724         freadable: Move AC_LIBOBJ invocations to module description.
14725         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14726         here...
14727         * modules/freadable (configure.ac): ... to here.
14728
14729 2011-05-07  Bruno Haible  <bruno@clisp.org>
14730
14731         fpurge: Move AC_LIBOBJ invocations to module description.
14732         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14733         invocations from here...
14734         * modules/fpurge (configure.ac): ... to here.
14735
14736 2011-05-07  Bruno Haible  <bruno@clisp.org>
14737
14738         fpending: Move AC_LIBOBJ invocations to module description.
14739         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14740         gl_FUNC_FPENDING.
14741         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14742         invocations from here...
14743         * modules/fpending (configure.ac): ... to here.
14744
14745 2011-05-07  Bruno Haible  <bruno@clisp.org>
14746
14747         fopen: Move AC_LIBOBJ invocations to module description.
14748         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14749         invocations from here...
14750         * modules/fopen (configure.ac): ... to here.
14751
14752 2011-05-07  Bruno Haible  <bruno@clisp.org>
14753
14754         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14755         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14756         gl_FUNC_FNMATCH_POSIX.
14757         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14758         invocations from here...
14759         * modules/fnmatch (configure.ac): ... to here.
14760         * modules/fnmatch-gnu (configure.ac): ... and here.
14761
14762 2011-05-07  Bruno Haible  <bruno@clisp.org>
14763
14764         flock: Move AC_LIBOBJ invocations to module description.
14765         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14766         invocations from here...
14767         * modules/flock (configure.ac): ... to here.
14768
14769 2011-05-07  Bruno Haible  <bruno@clisp.org>
14770
14771         fileblocks: Move AC_LIBOBJ invocations to module description.
14772         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14773         gl_PREREQ_FILEBLOCKS invocations from here...
14774         * modules/fileblocks (configure.ac): ... to here.
14775
14776 2011-05-06  Bruno Haible  <bruno@clisp.org>
14777
14778         fflush: Move AC_LIBOBJ invocations to module description.
14779         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14780         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14781         invocations from here...
14782         * modules/fflush (configure.ac): ... to here.
14783
14784 2011-05-06  Bruno Haible  <bruno@clisp.org>
14785
14786         fdopendir: Move AC_LIBOBJ invocations to module description.
14787         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14788         here...
14789         * modules/fdopendir (configure.ac): ... to here.
14790         (Depends-on): Improve conditions.
14791
14792 2011-05-06  Bruno Haible  <bruno@clisp.org>
14793
14794         _Exit: Move AC_LIBOBJ invocations to module description.
14795         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14796         invocations from here...
14797         * modules/_Exit (configure.ac): ... to here.
14798
14799 2011-05-21  Bruno Haible  <bruno@clisp.org>
14800
14801         euidaccess: Respect rules for use of AC_LIBOBJ.
14802         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14804         from here...
14805         * modules/euidaccess (configure.ac): ... to here.
14806
14807 2011-05-06  Bruno Haible  <bruno@clisp.org>
14808
14809         error: Move AC_LIBOBJ invocations to module description.
14810         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14811         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14812         invocations from here...
14813         * modules/error (configure.ac): ... to here.
14814
14815 2011-05-06  Bruno Haible  <bruno@clisp.org>
14816
14817         duplocale: Move AC_LIBOBJ invocations to module description.
14818         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14819         gl_PREREQ_DUPLOCALE invocations from here...
14820         * modules/duplocale (configure.ac): ... to here.
14821
14822 2011-05-05  Bruno Haible  <bruno@clisp.org>
14823
14824         dirfd: Move AC_LIBOBJ invocations to module description.
14825         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14826         gl_FUNC_DIRFD.
14827         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14828         here...
14829         * modules/dirfd (configure.ac): ... to here.
14830         (Depends-on): Fix condition.
14831
14832 2011-05-05  Bruno Haible  <bruno@clisp.org>
14833
14834         chown: Respect rules for use of AC_LIBOBJ.
14835         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14836         * modules/chown (configure.ac): ... to here.
14837
14838 2011-05-05  Bruno Haible  <bruno@clisp.org>
14839
14840         chdir-long: Move AC_LIBOBJ invocations to module description.
14841         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14842         gl_PREREQ_CHDIR_LONG invocations from here...
14843         * modules/chdir-long (configure.ac): ... to here.
14844
14845 2011-05-05  Bruno Haible  <bruno@clisp.org>
14846
14847         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14848         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14849         from here...
14850         * modules/canonicalize-lgpl (configure.ac): ... to here.
14851
14852 2011-05-05  Bruno Haible  <bruno@clisp.org>
14853
14854         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14855         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14856         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14857         REPLACE_CALLOC.
14858         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14859         * modules/calloc-gnu (configure.ac): Likewise.
14860
14861 2011-05-05  Bruno Haible  <bruno@clisp.org>
14862
14863         btowc: Move AC_LIBOBJ invocations to module description.
14864         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14865         invocations from here...
14866         * modules/btowc (configure.ac): ... to here.
14867
14868 2011-05-21  Bruno Haible  <bruno@clisp.org>
14869
14870         atexit: Move AC_LIBOBJ invocations to module description.
14871         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14873         here...
14874         * modules/atexit (configure.ac): ... to here.
14875
14876 2011-05-05  Bruno Haible  <bruno@clisp.org>
14877
14878         atoll: Move AC_LIBOBJ invocations to module description.
14879         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14880         invocations from here...
14881         * modules/atoll (configure.ac): ... to here.
14882
14883 2011-05-05  Bruno Haible  <bruno@clisp.org>
14884
14885         argz: Move AC_LIBOBJ invocations to module description.
14886         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14887         * modules/argz (configure.ac): ... to here.
14888
14889 2011-05-05  Bruno Haible  <bruno@clisp.org>
14890
14891         alphasort: Move AC_LIBOBJ invocations to module description.
14892         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14893         gl_PREREQ_ALPHASORT invocations from here...
14894         * modules/alphasort (configure.ac): ... to here.
14895
14896 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14897
14898         verify: new macro verify_expr; verify_true deprecated
14899         * NEWS: Mention this.
14900         * doc/verify.texi (Compile-time Assertions): Document this.
14901         * lib/verify.h (verify_true): Deprecate.
14902         (verify_expr): New macro.
14903         * tests/test-verify.c (function): Test verify_expr.
14904
14905 2011-06-14  Jim Meyering  <meyering@redhat.com>
14906
14907         init.sh: give more portable redirection-related advice in a comment
14908         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14909         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14910         for lots of discussion.  Stefano Lattarini suggested the solution
14911         of putting "9>&2" after the command.  Reported by Bruno Haible.
14912
14913 2011-06-13  Bruno Haible  <bruno@clisp.org>
14914
14915         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14916         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14917         'none'.
14918
14919 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14920
14921         ftoastr: use strtof only if HAVE_STRTOF
14922         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14924         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14925         * modules/ftoastr (configure.ac): Check for strtof.
14926
14927 2011-06-13  Bruno Haible  <bruno@clisp.org>
14928
14929         gnulib-tool: Addendum to 2011-06-08 commit.
14930         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14931         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14932
14933 2011-06-13  Bruno Haible  <bruno@clisp.org>
14934
14935         fseeko: Provide a non-inline replacement of fseek().
14936         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14937         * modules/fseeko (Depends-on): Add fseek.
14938         * modules/fseek (License): Change to LGPLv2+.
14939
14940 2011-06-13  Bruno Haible  <bruno@clisp.org>
14941
14942         ftello: Provide a non-inline replacement of ftell().
14943         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14944         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14945         not have ftello() (such as on mingw).
14946         * modules/ftello (Depends-on): Add ftell.
14947         * modules/ftell (License): Change to LGPLv2+.
14948
14949 2011-05-07  Bruno Haible  <bruno@clisp.org>
14950
14951         ftell: Move AC_LIBOBJ invocations to module description.
14952         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14953         * modules/ftell (configure.ac): ... to here.
14954
14955 2011-05-07  Bruno Haible  <bruno@clisp.org>
14956
14957         ftello: Respect rules for use of AC_LIBOBJ.
14958         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14959         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14960         here...
14961         * modules/ftello (configure.ac): ... to here.
14962
14963 2011-05-07  Bruno Haible  <bruno@clisp.org>
14964
14965         fseeko: Simplify.
14966         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14967         (gl_FUNC_FSEEKO): Inline it here.
14968
14969 2011-05-07  Bruno Haible  <bruno@clisp.org>
14970
14971         fseek: Move AC_LIBOBJ invocations to module description.
14972         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14973         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14974         * modules/fseek (configure.ac): ... to here.
14975
14976 2011-05-07  Bruno Haible  <bruno@clisp.org>
14977
14978         fseek: Respect rules for use of AC_LIBOBJ.
14979         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14980         here...
14981         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14982
14983 2011-05-07  Bruno Haible  <bruno@clisp.org>
14984
14985         fseeko: Respect rules for use of AC_LIBOBJ.
14986         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14987         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14988         here...
14989         * modules/fseeko (configure.ac): ... to here.
14990
14991 2011-06-13  Bruno Haible  <bruno@clisp.org>
14992
14993         gnulib-tool: Allow comments in the 'Depends-on' section.
14994         * doc/gnulib.texi (Module description): Mention comment syntax in the
14995         Depends-on section.
14996         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14997
14998 2011-06-13  Bruno Haible  <bruno@clisp.org>
14999
15000         file-set.h: guard __attibute__ use, now that it's not always defined
15001         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15002         versions that support it.  This fixes a coreutils build failure with
15003         the vendor cc on HP-UX 11.31.
15004
15005 2011-06-12  Bruno Haible  <bruno@clisp.org>
15006
15007         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15008         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15009         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15010         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15011         (acl, aclsort): New declarations.
15012         (aclv_nontrivial): New declaration.
15013         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15014         (file_has_acl): Read also the second kind of HP-UX ACLs.
15015         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15016         kind of HP-UX ACLs if the first kind fails.
15017         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15018         second kind of HP-UX ACLs.
15019         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15020         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15021         agree.
15022         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15023         hpuxjfs.
15024         Handle hpuxjfs.
15025         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15026         hpuxjfs.
15027         Handle hpuxjfs.
15028         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15029         (func_test_same_acls): Use both lsacl and getacl.
15030         Handle hpuxjfs.
15031         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15032         (func_test_same_acls): Use both lsacl and getacl.
15033         Handle hpuxjfs.
15034
15035 2011-06-12  Bruno Haible  <bruno@clisp.org>
15036
15037         acl: Complete the 2010-08-10 fix.
15038         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15039         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15040         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15041         explicitly.
15042         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15043         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15044
15045 2011-06-12  Bruno Haible  <bruno@clisp.org>
15046
15047         spawn-pipe tests: Comments.
15048         * tests/test-spawn-pipe-child.c (main): Update comment.
15049         Reported by James Youngman <jay@gnu.org>.
15050
15051 2011-06-11  James Youngman  <jay@gnu.org>
15052
15053         New module 'stat-size'.
15054         * modules/stat-size: New module.  Provides macros for accessing
15055         file size information in instances of struct stat.  Depends on the
15056         fileblocks module because it calls st_blocks.
15057         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15058         * doc/gnulib.texi: Include stat-size.texi.
15059         * doc/stat-size.texi: Documentation for this module.
15060         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15061         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15062         AC_STRUCT_ST_BLOCKS.
15063
15064 2011-06-09  Bruno Haible  <bruno@clisp.org>
15065
15066         thread: Support pthreads-win32.
15067         * lib/glthread/thread.h (gl_thread_self): Define differently on
15068         pthreads-win32.
15069         (gl_null_thread): New declaration.
15070         (gl_thread_self_pointer): New macro.
15071         * lib/glthread/thread.c (gl_null_thread): New constant.
15072         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15073         gl_thread_self.
15074         * tests/test-tls.c: Likewise.
15075         Suggested by Paul Eggert. Reported by Eric Blake.
15076
15077 2011-06-09  Bruno Haible  <bruno@clisp.org>
15078
15079         thread: Fix confusion between NULL and 0.
15080         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15081         Reported by Paul Eggert.
15082
15083 2011-06-09  Bruno Haible  <bruno@clisp.org>
15084
15085         spawn-pipe tests: Avoid test failure on HP-UX 11.
15086         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15087         is closed.
15088
15089 2011-06-09  Bruno Haible  <bruno@clisp.org>
15090
15091         acl tests: Fix compilation error on HP-UX 11.
15092         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15093
15094 2011-06-09  Bruno Haible  <bruno@clisp.org>
15095
15096         rmdir: Avoid test failure on HP-UX 10.20.
15097         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15098         EEXIST.
15099
15100 2011-06-08  Eric Blake  <eblake@redhat.com>
15101
15102         perror: fix test on mingw
15103         * modules/perror-tests (Depends-on): Add dup2.
15104
15105         strerror_r-posix: fix on MacOS
15106         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15107         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15108         logic bug.
15109         * lib/strerror_r.c (strerror_r): Fix the bug.
15110         * lib/strerror.c (strerror): Likewise.
15111         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15112         problem.
15113         * doc/posix-functions/strerror.texi (strerror): Likewise.
15114         * doc/posix-functions/perror.texi (perror): Likewise.
15115         * tests/test-strerror.c (main): Enhance test.
15116         * tests/test-strerror_r.c (main): Likewise.
15117
15118 2011-06-08  Bruno Haible  <bruno@clisp.org>
15119
15120         gnulib-tool: Better isolation between different gnulib-tool invocations.
15121         * gnulib-tool: New option --witness-c-macro.
15122         (witness_c_macro): New variable.
15123         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15124         AM_CPPFLAGS define it as a C macro.
15125         (func_emit_tests_Makefile_am): Likewise.
15126         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15127         read it from there.
15128         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15129         m4_define, not AC_DEFUN.
15130         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15131         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15132         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15133         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15134         s|...|...|, to substitute the values of the GNULIB_* module indicator
15135         variables.
15136         * modules/dirent (Makefile.am): Likewise.
15137         * modules/fcntl-h (Makefile.am): Likewise.
15138         * modules/iconv-h (Makefile.am): Likewise.
15139         * modules/langinfo (Makefile.am): Likewise.
15140         * modules/locale (Makefile.am): Likewise.
15141         * modules/math (Makefile.am): Likewise.
15142         * modules/netdb (Makefile.am): Likewise.
15143         * modules/poll-h (Makefile.am): Likewise.
15144         * modules/pty (Makefile.am): Likewise.
15145         * modules/search (Makefile.am): Likewise.
15146         * modules/signal (Makefile.am): Likewise.
15147         * modules/spawn (Makefile.am): Likewise.
15148         * modules/stdio (Makefile.am): Likewise.
15149         * modules/stdlib (Makefile.am): Likewise.
15150         * modules/string (Makefile.am): Likewise.
15151         * modules/sys_ioctl (Makefile.am): Likewise.
15152         * modules/sys_select (Makefile.am): Likewise.
15153         * modules/sys_socket (Makefile.am): Likewise.
15154         * modules/sys_stat (Makefile.am): Likewise.
15155         * modules/sys_times (Makefile.am): Likewise.
15156         * modules/sys_utsname (Makefile.am): Likewise.
15157         * modules/sys_wait (Makefile.am): Likewise.
15158         * modules/termios (Makefile.am): Likewise.
15159         * modules/time (Makefile.am): Likewise.
15160         * modules/unistd (Makefile.am): Likewise.
15161         * modules/wchar (Makefile.am): Likewise.
15162
15163 2011-06-08  Eric Blake  <eblake@redhat.com>
15164
15165         strerror: simplify replacement
15166         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15167         * modules/strerror (configure.ac): No prereqs needed here...
15168         * modules/strerror-override (configure.ac): ...but this needs it.
15169         (Files): Add file for needed prereq macro.
15170
15171 2011-06-08  Bruno Haible  <bruno@clisp.org>
15172
15173         strerror_r-posix: Tweaks.
15174         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15175         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15176         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15177         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15178         (gl_FUNC_STRERROR_R): ... to here.
15179         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15180
15181 2011-06-07  Eric Blake  <eblake@redhat.com>
15182
15183         perror: document fixed bugs
15184         * doc/posix-functions/perror.texi (perror): Document recent
15185         patches.
15186
15187 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15188
15189         stat-time: get_stat_birthtime failure is better-defined
15190         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15191         return a timestamp whose tv_sec and tv_nsec values are both -1.
15192         Previously, the spec said only that the tv_nsec value was negative.
15193         This upward-compatible change simplifies GNU tar a bit.
15194
15195 2011-06-07  Eric Blake  <eblake@redhat.com>
15196
15197         strerror_r-posix: work around cygwin 1.7.9
15198         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15199         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15200         bug without replacing strerror_r.
15201         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15202         strerror_r is buggy, but without requiring strerror_r compilation.
15203         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15204
15205         test-perror: relax test to ignore cygwin bug
15206         * tests/test-perror2.c (main): Relax test on requiring detection
15207         of stream errors, and use unbuffered stream.
15208         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15209         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15210         * doc/posix-functions/fputc.texi (fputc): Likewise.
15211         * doc/posix-functions/fputs.texi (fputs): Likewise.
15212         * doc/posix-functions/fputws.texi (fputws): Likewise.
15213         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15214         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15215         * doc/posix-functions/getopt.texi (getopt): Likewise.
15216         * doc/posix-functions/perror.texi (perror): Likewise.
15217         * doc/posix-functions/printf.texi (printf): Likewise.
15218         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15219         * doc/posix-functions/psignal.texi (psignal): Likewise.
15220         * doc/posix-functions/putc.texi (putc): Likewise.
15221         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15222         Likewise.
15223         * doc/posix-functions/putchar.texi (putchar): Likewise.
15224         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15225         Likewise.
15226         * doc/posix-functions/puts.texi (puts): Likewise.
15227         * doc/posix-functions/putwc.texi (putwc): Likewise.
15228         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15229         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15230         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15231         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15232         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15233         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15234         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15235         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15236
15237 2011-05-22  Bruno Haible  <bruno@clisp.org>
15238
15239         strerror: Move AC_LIBOBJ invocations to module description.
15240         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15241         gl_PREREQ_STRERROR invocations from here...
15242         * modules/strerror (configure.ac): ... to here.
15243
15244 2011-05-21  Bruno Haible  <bruno@clisp.org>
15245
15246         perror: Use common idiom.
15247         * modules/perror (configure.ac): Reorder statements.
15248
15249 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15250
15251         tests: fix usage message in 'mktempd_'
15252         * tests/init.sh (mktempd_): In the usage message, use literal
15253         'mktempd_', not '$ME' (which is even undefined), as the name of
15254         the subroutine.
15255
15256 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15257
15258         tests init: new function 'fatal_', for hard errors
15259         Before this patch, the only way offered by tests/init.sh to
15260         properly signal a hard error was the `framework_failure_'
15261         function.  But the error message issued by that function,
15262         as its name would suggest, refers to a set-up failure in the
15263         testsuite, while hard errors can obviously also be due to
15264         other reasons.  The best way to fix this inconsistency is to
15265         introduce a new function with a more general error message.
15266         * tests/init.sh (fatal_): New function.
15267
15268 2011-06-06  Eric Blake  <eblake@redhat.com>
15269
15270         canonicalize-lgpl: use common idiom
15271         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15272         over newer POSIX -Rf.
15273         Reported by Bruno Haible.
15274
15275         canonicalize-lgpl: work around AIX realpath bug
15276         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15277         * doc/posix-functions/realpath.texi (realpath): Document it.
15278         Reported by Bruno Haible.
15279
15280         strerror: work around FreeBSD bug
15281         * lib/strerror.c (strerror): Special case 0.
15282         Reported by Bruno Haible.
15283
15284         strerror-override: avoid bloating errno module
15285         * modules/errno (Files, configure.ac): Move replacement strings...
15286         * modules/strerror-override: ...to new module.
15287         * modules/strerror (Depends-on): Add strerror-override.
15288         * modules/strerror_r-posix (Depends-on): Likewise.
15289         * MODULES.html.sh: Document new module.
15290         Reported by Bruno Haible.
15291
15292 2011-06-06  Bruno Haible  <bruno@clisp.org>
15293
15294         spawn-pipe tests: Rename program.
15295         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15296         * tests/test-spawn-pipe-child.c: Update comment.
15297         * tests/test-spawn-pipe.sh: Update.
15298         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15299
15300         spawn-pipe tests: Link the child program only against libc.
15301         * tests/test-spawn-pipe-child.c: New file, extracted from
15302         tests/test-spawn-pipe.c.
15303         (main): Expect only one argument.
15304         (is_open): New function, copied from tests/test-pipe.c.
15305         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15306         (child_main): Remove function.
15307         (test_pipe): Pass only one argument to the child program.
15308         (main): Remove child process code. Expect the child program's name as
15309         first argument.
15310         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15311         argument.
15312         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15313         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15314         test-spawn-pipe-child against no libraries.
15315
15316 2011-06-06  Bruno Haible  <bruno@clisp.org>
15317
15318         careadlinkat: Avoid mismatch between ssize_t and int.
15319         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15320         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15321
15322 2011-06-06  Jim Meyering  <meyering@redhat.com>
15323
15324         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15325         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15326         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15327
15328 2011-06-05  Bruno Haible  <bruno@clisp.org>
15329
15330         ansi-c++-opt: Interoperability with libtool.
15331         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15332         set the variable to "no", not to ":".
15333         * NEWS: Mention the change.
15334
15335 2011-06-05  Bruno Haible  <bruno@clisp.org>
15336
15337         acl: Fix test failure on AIX 7.
15338         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15339         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15340
15341 2011-06-05  Bruno Haible  <bruno@clisp.org>
15342
15343         pipe-filter-ii: Fix test failure on AIX and IRIX.
15344         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15345         with EAGAIN, retry with a smaller buffer size.
15346
15347 2011-06-05  Bruno Haible  <bruno@clisp.org>
15348
15349         localename: Fix link dependencies.
15350         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15351         * modules/localename-tests (Makefile.am): Link test-localename with
15352         $(LIBTHREAD).
15353
15354 2011-06-05  Bruno Haible  <bruno@clisp.org>
15355
15356         error: Avoid gcc warning.
15357         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15358
15359 2011-06-05  Bruno Haible  <bruno@clisp.org>
15360
15361         unsetenv: Avoid gcc warning.
15362         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15363
15364 2011-06-05  Bruno Haible  <bruno@clisp.org>
15365
15366         setenv: Avoid gcc warning.
15367         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15368
15369 2011-06-05  Bruno Haible  <bruno@clisp.org>
15370
15371         sys_select: Ensure memset is declared also on AIX 7.
15372         * lib/sys_select.in.h: Include <string.h> also on AIX.
15373         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15374         self-contained also on AIX 7.1.
15375
15376 2011-06-04  Jim Meyering  <meyering@redhat.com>
15377
15378         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15379         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15380         function name, "error".
15381         (_gl_translatable_diag_func_re): New configurable variable.
15382
15383 2011-06-04  Bruno Haible  <bruno@clisp.org>
15384
15385         getopt: Avoid gcc warning.
15386         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15387
15388 2011-06-04  Bruno Haible  <bruno@clisp.org>
15389
15390         strerror_r: Fix comments.
15391         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15392         commit.
15393
15394 2011-06-04  Bruno Haible  <bruno@clisp.org>
15395
15396         perror: Fix compilation error.
15397         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15398         Undefine fprintf, not sprintf.
15399         * modules/perror (Depends-on): Remove intprops, verify.
15400
15401 2011-06-04  Bruno Haible  <bruno@clisp.org>
15402
15403         setlocale: Enable replacement on Cygwin 1.5.
15404         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15405         Cygwin 1.5.x.
15406         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15407         LC_CTYPE category also exists on Cygwin 1.5.x.
15408
15409 2011-06-04  Bruno Haible  <bruno@clisp.org>
15410
15411         strerror-override: Don't disable symbol renamings.
15412         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15413         * lib/strerror-override.c: Include config.h.
15414         (strerror_override): Don't undefine.
15415
15416 2011-06-03  Bruno Haible  <bruno@clisp.org>
15417
15418         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15419         * lib/localename.h: Update copyright header.
15420         * lib/localename.c: Likewise.
15421         * lib/relocatable.h: Likewise.
15422         * lib/relocatable.c: Likewise.
15423
15424 2011-06-02  Bruno Haible  <bruno@clisp.org>
15425
15426         doc: Fix a module name.
15427         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15428
15429 2011-06-02  Bruno Haible  <bruno@clisp.org>
15430
15431         pipe2: Remove dependency on 'nonblocking' module.
15432         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15433         O_NONBLOCK is defined by gnulib.
15434         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15435         is zero.
15436         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15437         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15438         defined by gnulib.
15439         (get_nonblocking_flag): New function.
15440         (main): Test O_NONBLOCK flag only if it is nonzero.
15441         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15442
15443 2011-06-03  Jim Meyering  <meyering@redhat.com>
15444
15445         maint: three new prohibit-header-without-use rules
15446         Prohibit use of cloexec.h, posixver.h, same.h without use.
15447         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15448         (sc_prohibit_posixver_without_use): Likewise.
15449         (sc_prohibit_same_without_use): Likewise.
15450
15451 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15452
15453         allocator: 'die' routine is now given requested size
15454         * lib/allocator.h (struct allocator.die): New size arg.
15455         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15456         If the actual problem is an ssize_t limitation, not a size_t or
15457         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15458
15459 2011-06-01  Eric Blake  <eblake@redhat.com>
15460
15461         strerror: drop strerror_r dependency
15462         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15463         * lib/strerror-override.c (strerror_override): ...to new file.
15464         * lib/strerror-override.h: Add prototype.
15465         * lib/strerror-impl.h: Delete.
15466         * lib/strerror.c (strerror): New implementation.
15467         * modules/errno (Files): Add new files.
15468         (configure.ac): Compile new file as appropriate.
15469         * modules/strerror (Files): Drop unused file.
15470         (Depends-on): Drop strerror_r-posix.
15471         * MODULES.html.sh: Document strerror_r-posix.
15472         Requested by Sam Steingold.
15473
15474         perror: call strerror_r directly
15475         * modules/perror (Files): Drop strerror-impl.h.
15476         * lib/perror.c (perror): Use our own stack buffer, rather than
15477         calling a wrapper that uses static storage.
15478         * doc/posix-functions/perror.texi (perror): Document a limitation
15479         of our replacement.
15480
15481         strerror_r: fix includes for FreeBSD
15482         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15483         since we use abort on some platforms.
15484         Reported by Matthias Bolte.
15485
15486 2011-05-31  Bruno Haible  <bruno@clisp.org>
15487
15488         Fix link errors in tests: openat-die uses gettext-h.
15489         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15490         against $(LIBINTL).
15491         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15492         against $(LIBINTL).
15493         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15494         $(LIBINTL).
15495         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15496         against $(LIBINTL).
15497         * modules/linkat-tests (Makefile.am): Link test-linkat against
15498         $(LIBINTL).
15499         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15500         $(LIBINTL).
15501         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15502         against $(LIBINTL).
15503         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15504         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15505         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15506         $(LIBINTL).
15507         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15508         $(LIBINTL).
15509         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15510         $(LIBINTL).
15511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15512
15513 2011-05-31  Bruno Haible  <bruno@clisp.org>
15514
15515         Fix link errors in tests: wait-process uses gettext-h.
15516         * modules/nonblocking-pipe-tests (Makefile.am): Set
15517         test_nonblocking_pipe_main_LDADD.
15518         * modules/nonblocking-socket-tests (Makefile.am): Link
15519         test-nonblocking-socket-main against $(LIBINTL).
15520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15521
15522 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15523
15524         assert-h: work around 'verify' incompatibility
15525         * lib/verify.h: Use @...@ directives, not ifdef.
15526         * modules/assert-h (assert.h): Implement the directives.
15527         (assert.h): Substitute the symbol-prefix more consistently.
15528
15529 2011-05-29  Jim Meyering  <meyering@redhat.com>
15530
15531         trim: remove three superfluous assignments
15532         * lib/trim.c (trim2): Remove three superfluous assignments
15533         and correct brace positioning.
15534
15535 2011-05-29  Bruno Haible  <bruno@clisp.org>
15536
15537         wctype-h: Avoid namespace pollution on Solaris 2.6.
15538         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15539         identifiers.
15540         * doc/posix-headers/wctype.texi: Mention the problem.
15541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15542
15543 2011-05-28  Jim Meyering  <meyering@redhat.com>
15544
15545         parse-datetime.y: accommodate -Wstrict-overflow
15546         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15547         placate -Wstrict-overflow.
15548
15549         trim: avoid a warning from -O2 -Wstrict-overflow
15550         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15551
15552 2011-05-29  Bruno Haible  <bruno@clisp.org>
15553
15554         gnulib-tool: Fix bug in yesterday's commit.
15555         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15556         twice.
15557
15558 2011-05-29  Bruno Haible  <bruno@clisp.org>
15559
15560         Allow multiple gnulib generated include files to be combined.
15561         * gnulib-tool (func_compute_include_guard_prefix): New function.
15562         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15563         ${gl_include_guard_prefix} references.
15564         (func_import, func_create_testdir): Invoke
15565         func_compute_include_guard_prefix.
15566         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15567         * lib/ctype.in.h: Likewise.
15568         * lib/dirent.in.h: Likewise.
15569         * lib/errno.in.h: Likewise.
15570         * lib/fcntl.in.h: Likewise.
15571         * lib/float.in.h: Likewise.
15572         * lib/getopt.in.h: Likewise.
15573         * lib/iconv.in.h: Likewise.
15574         * lib/langinfo.in.h: Likewise.
15575         * lib/locale.in.h: Likewise.
15576         * lib/math.in.h: Likewise.
15577         * lib/netdb.in.h: Likewise.
15578         * lib/netinet_in.in.h: Likewise.
15579         * lib/poll.in.h: Likewise.
15580         * lib/pthread.in.h: Likewise.
15581         * lib/pty.in.h: Likewise.
15582         * lib/sched.in.h: Likewise.
15583         * lib/se-selinux.in.h: Likewise.
15584         * lib/search.in.h: Likewise.
15585         * lib/signal.in.h: Likewise.
15586         * lib/spawn.in.h: Likewise.
15587         * lib/stdarg.in.h: Likewise.
15588         * lib/stddef.in.h: Likewise.
15589         * lib/stdint.in.h: Likewise.
15590         * lib/stdio.in.h: Likewise.
15591         * lib/stdlib.in.h: Likewise.
15592         * lib/string.in.h: Likewise.
15593         * lib/strings.in.h: Likewise.
15594         * lib/sys_file.in.h: Likewise.
15595         * lib/sys_ioctl.in.h: Likewise.
15596         * lib/sys_select.in.h: Likewise.
15597         * lib/sys_socket.in.h: Likewise.
15598         * lib/sys_stat.in.h: Likewise.
15599         * lib/sys_time.in.h: Likewise.
15600         * lib/sys_times.in.h: Likewise.
15601         * lib/sys_uio.in.h: Likewise.
15602         * lib/sys_utsname.in.h: Likewise.
15603         * lib/sys_wait.in.h: Likewise.
15604         * lib/sysexits.in.h: Likewise.
15605         * lib/termios.in.h: Likewise.
15606         * lib/time.in.h: Likewise.
15607         * lib/unistd.in.h: Likewise.
15608         * lib/wchar.in.h: Likewise.
15609         * lib/wctype.in.h: Likewise.
15610         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15611         * modules/ctype (Makefile.am): Likewise.
15612         * modules/dirent (Makefile.am): Likewise.
15613         * modules/errno (Makefile.am): Likewise.
15614         * modules/fcntl-h (Makefile.am): Likewise.
15615         * modules/float (Makefile.am): Likewise.
15616         * modules/getopt-posix (Makefile.am): Likewise.
15617         * modules/iconv-h (Makefile.am): Likewise.
15618         * modules/langinfo (Makefile.am): Likewise.
15619         * modules/locale (Makefile.am): Likewise.
15620         * modules/math (Makefile.am): Likewise.
15621         * modules/netdb (Makefile.am): Likewise.
15622         * modules/netinet_in (Makefile.am): Likewise.
15623         * modules/poll-h (Makefile.am): Likewise.
15624         * modules/pthread (Makefile.am): Likewise.
15625         * modules/pty (Makefile.am): Likewise.
15626         * modules/sched (Makefile.am): Likewise.
15627         * modules/search (Makefile.am): Likewise.
15628         * modules/selinux-h (Makefile.am): Likewise.
15629         * modules/signal (Makefile.am): Likewise.
15630         * modules/spawn (Makefile.am): Likewise.
15631         * modules/stdarg (Makefile.am): Likewise.
15632         * modules/stddef (Makefile.am): Likewise.
15633         * modules/stdint (Makefile.am): Likewise.
15634         * modules/stdio (Makefile.am): Likewise.
15635         * modules/stdlib (Makefile.am): Likewise.
15636         * modules/string (Makefile.am): Likewise.
15637         * modules/strings (Makefile.am): Likewise.
15638         * modules/sys_file (Makefile.am): Likewise.
15639         * modules/sys_ioctl (Makefile.am): Likewise.
15640         * modules/sys_select (Makefile.am): Likewise.
15641         * modules/sys_socket (Makefile.am): Likewise.
15642         * modules/sys_stat (Makefile.am): Likewise.
15643         * modules/sys_time (Makefile.am): Likewise.
15644         * modules/sys_times (Makefile.am): Likewise.
15645         * modules/sys_uio (Makefile.am): Likewise.
15646         * modules/sys_utsname (Makefile.am): Likewise.
15647         * modules/sys_wait (Makefile.am): Likewise.
15648         * modules/sysexits (Makefile.am): Likewise.
15649         * modules/termios (Makefile.am): Likewise.
15650         * modules/time (Makefile.am): Likewise.
15651         * modules/unistd (Makefile.am): Likewise.
15652         * modules/wchar (Makefile.am): Likewise.
15653         * modules/wctype-h (Makefile.am): Likewise.
15654         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15655
15656 2011-05-29  Bruno Haible  <bruno@clisp.org>
15657
15658         assert-h: Allow multiple gnulib generated replacements to coexist.
15659         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15660
15661 2011-05-29  Bruno Haible  <bruno@clisp.org>
15662
15663         argp: Allow coexistence with strerror_r-posix module.
15664         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15665         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15666         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15667         not the glibc signature.
15668
15669 2011-05-28  Bruno Haible  <bruno@clisp.org>
15670
15671         gnulib-tool: Alternative structure of testdirs, similar to --import.
15672         * gnulib-tool: New option --single-configure.
15673         (func_usage): Document it.
15674         (single_configure): New variable.
15675         (func_modules_transitive_closure_separately,
15676         func_modules_transitive_closure_separately,
15677         func_determine_use_libtests, func_modules_add_dummy_separately,
15678         func_modules_to_filelist_separately): New functions, extracted from
15679         func_import.
15680         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15681         (func_import): Use the new functions.
15682         (func_create_testdir): Set final_modules. Handle $single_configure =
15683         true case.
15684
15685 2011-05-28  Bruno Haible  <bruno@clisp.org>
15686
15687         getloadavg: Remove an unreliable safety check.
15688         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15689         getloadavg.c is in place.
15690         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15691         Reported by Sam Steingold <sds@gnu.org>.
15692
15693 2011-05-28  Bruno Haible  <bruno@clisp.org>
15694
15695         doc: Cleanup yet another file produced by texinfo.tex.
15696         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15697
15698 2011-05-28  Bruno Haible  <bruno@clisp.org>
15699
15700         Finish the conditional dependencies mechanism.
15701         * gnulib-tool: New option --no-conditional-dependencies.
15702         (func_usage): Document it. Don't mark --conditional-dependencies as
15703         experimental.
15704         (cond_dependencies): The possible values can now be true, false, empty.
15705         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15706         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15707         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15708
15709 2011-05-28  Bruno Haible  <bruno@clisp.org>
15710
15711         doc: Use a recent texinfo.tex.
15712         * doc/Makefile (tex_opts): New variable.
15713         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15714
15715 2011-05-28  Jim Meyering  <meyering@redhat.com>
15716
15717         intprops.h: adjust comment to match code change
15718         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15719         only once, it *may* have side effects.  Also fix an unrelated typo.
15720         (_GL_INT_SIGNED): Likewise.
15721
15722 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15723
15724         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15725
15726 2011-05-26  Bruno Haible  <bruno@clisp.org>
15727
15728         mbsrchr: Avoid collision with system function on Interix.
15729         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15730         Reported by Markus Duft <mduft@gentoo.org>.
15731
15732 2011-05-15  James Youngman  <jay@gnu.org>
15733
15734         getopt: for ambiguous options, enumerate the possibilities.
15735         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15736         the ambiguous options when an ambiguous prefix is given. This was
15737         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15738         glibc change was
15739         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15740
15741 2011-05-25  Eric Blake  <eblake@redhat.com>
15742
15743         getcwd: work around mingw bug
15744         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15745         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15746         Reported by Matthias Bolte.
15747
15748 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15749
15750         test-intprops: disable -Wtype-limits diagnostics
15751         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15752         diagnostics.  Otherwise, the integer overflow macros generate many
15753         diagnostics.  Reported by Jim Meyering in
15754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15755
15756         intprops: shorten, to pacify gcc -Woverlength-strings
15757         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15758         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15759         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15760         likely to run afoul of C compiler limits for string constant lengths.
15761         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15762
15763 2011-05-24  Eric Blake  <eblake@redhat.com>
15764
15765         docs: document recently fixed glibc printf bug
15766         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15767         * doc/posix-functions/printf.texi (printf): Likewise.
15768         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15769         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15770
15771         closein-tests: convert to init.sh
15772         * modules/closein-tests (Files): Add init.sh
15773         * tests/test-closein.sh Use it.
15774
15775         yesno-tests: convert to init.sh
15776         * modules/yesno-tests (Files): Add init.sh.
15777         * tests/test-yesno.sh: Use it.
15778
15779         atexit-tests: ensure reliable exit status
15780         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15781         Reported by Bruno Haible.
15782
15783 2011-05-24  Bruno Haible  <bruno@clisp.org>
15784
15785         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15786         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15787         gl_PREREQ_STRERROR_R invocations from here...
15788         * modules/strerror_r-posix (configure.ac): ... to here.
15789
15790 2011-05-24  Eric Blake  <eblake@redhat.com>
15791
15792         strerror_r: fix missing header
15793         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15794
15795         strerror_r: fix AIX test failures
15796         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15797         ERANGE failure.
15798
15799         strerror_r: fix Solaris test failures
15800         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15801         failures.
15802         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15803
15804         strerror_r: enforce POSIX recommendations
15805         * lib/strerror_r.c (safe_copy): New helper method.
15806         (strerror_r): Guarantee a non-empty string.
15807         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15808         recent POSIX rulings and to match our strerror guarantees.
15809         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15810
15811 2011-05-24  Jim Meyering  <meyering@redhat.com>
15812
15813         test-perror2.c: avoid warning about unused variable
15814         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15815
15816 2011-05-24  Eric Blake  <eblake@redhat.com>
15817
15818         perror: avoid spurious test failure on HP-UX
15819         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15820
15821         tests: fix logic bug in init.sh
15822         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15823         shell.
15824
15825 2011-05-24  Jim Meyering  <meyering@redhat.com>
15826
15827         utimensat: do not reference an out-of-scope buffer
15828         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15829         declared in an inner scope, yet "times" would be dereferenced outside
15830         the scope in which "ts" was valid.
15831         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15832         of ts[2] "out/up", so that the use of aliased "times" (via
15833         "times = ts;") does not end up referencing an out-of-scope "ts"
15834
15835         opendir-safer.c: don't clobber errno; don't close negative FD
15836         * lib/opendir-safer.c (opendir_safer):
15837         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15838         file descriptor, and more importantly, don't clobber the
15839         offending errno value with EINVAL.  Before, upon failure
15840         of dup_safer, we would pass the negative file descriptor to
15841         fdopendir, which would clobber errno.
15842
15843 2011-05-23  Bruno Haible  <bruno@clisp.org>
15844
15845         idcache: Fix module description.
15846         * modules/idcache (Include): Set to "idcache.h".
15847
15848 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15849
15850         gnulib-tool: fix portability problem with MacOS sed
15851         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15852         before the "}".  Problem reported by Leo in
15853         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15854         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15855         sed_extract_condition1, sed_extract_condition2.
15856
15857 2011-05-23  Bruno Haible  <bruno@clisp.org>
15858
15859         hash: Simplify autoconf macro.
15860         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15861
15862 2011-05-23  Bruno Haible  <bruno@clisp.org>
15863
15864         getugroups: Fix module description.
15865         * modules/getugroups (Include): Set to "getugroups.h".
15866
15867 2011-05-23  Bruno Haible  <bruno@clisp.org>
15868
15869         linkat: Simplify autoconf macro.
15870         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15871
15872 2011-05-23  Bruno Haible  <bruno@clisp.org>
15873             Eric Blake  <eblake@redhat.com>
15874
15875         linkat, renameat: Update dependencies.
15876         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15877         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15878         symlinkat.
15879
15880 2011-05-23  Jim Meyering  <meyering@redhat.com>
15881
15882         maint.mk: more tight_scope improvements
15883         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15884         (_gl_TS_headers): Define only in if-0'd block.
15885         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15886         sometimes we must *not* use it.  Adjust uses accordingly.
15887         (sc_tight_scope): Use much simpler grep-based test to determine
15888         whether we skip this rule.
15889
15890         maint.mk: generalize/improve the tight-scope rule
15891         * top/maint.mk: Emit a warning when the test is skipped.
15892         (_gl_TS_dir): Add $(srcdir)/ prefix.
15893         (_gl_TS_function_match): Simplify, rather than trying
15894         to enumerate common types.  Otherwise, it would fail to match an
15895         "extern unsigned char const *" declaration in idutils.
15896         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15897         a way to support use of that type of macro.
15898         (_gl_TS_var_match): Simplify regexp.
15899         (_gl_TS_obj_files): New configurable variable.
15900         (_gl_TS_headers): Likewise.
15901
15902 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15903
15904         verify: fix bug when gnulib <assert.h> is also included
15905         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15906         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15907         Perhaps there's a better way, but this fixes the immediate problem.
15908         Problem reported by Bruno Haible in
15909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15910
15911 2011-05-22  Bruno Haible  <bruno@clisp.org>
15912
15913         xgetcwd: Simplify autoconf macro.
15914         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15915
15916 2011-05-22  Bruno Haible  <bruno@clisp.org>
15917
15918         New module 'mktime-internal'.
15919         * modules/mktime-internal: New file.
15920         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15921         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15922         mktime_internal as a C macro if libc has __mktime_internal.
15923         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15924         conditions.
15925         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15926
15927 2011-05-22  Bruno Haible  <bruno@clisp.org>
15928
15929         timegm: Correct mktime replacement statements.
15930         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15931         defining mktime as a C macro. This completes a 2009-07-28 commit.
15932
15933 2011-05-22  Bruno Haible  <bruno@clisp.org>
15934
15935         timegm: Simplify autoconf macro.
15936         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15937
15938 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15939
15940         clock-time: change to LGPLv2+.
15941         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15942         BSD-like but we have no mark for that; this is good enough for now.
15943
15944 2011-05-21  Bruno Haible  <bruno@clisp.org>
15945
15946         strerror_r: Fix comments.
15947         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15948
15949 2011-05-21  Bruno Haible  <bruno@clisp.org>
15950
15951         relocatable-prog-wrapper: Fix possible link error.
15952         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15953         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15954         (gl_FUNC_SETENV): ... to here.
15955         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15956         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15957
15958 2011-05-21  Bruno Haible  <bruno@clisp.org>
15959
15960         relocatable-prog-wrapper: Assume strerror() exists.
15961         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15962         m4/strerror.m4.
15963         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15964         * lib/relocwrapper.c: Remove mention of strerror module.
15965         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15966         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15967         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15968         C macro.
15969
15970 2011-05-21  Bruno Haible  <bruno@clisp.org>
15971
15972         select: Simplify replacement idiom.
15973         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15974         Win32 platforms.
15975         * lib/sys_select.in.h (select): Simplify accordingly.
15976         * modules/select (Depends-on): Likewise.
15977
15978 2011-05-21  Bruno Haible  <bruno@clisp.org>
15979
15980         mkdir-p: Simplify autoconf macro.
15981         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15982         gl_FUNC_LCHOWN.
15983
15984 2011-05-21  Eric Blake  <eblake@redhat.com>
15985
15986         strerror_r: avoid clobbering strerror on cygwin
15987         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15988         fall back instead to sys_errlist.
15989         * modules/strerror (configure.ac): Add witness.
15990         * tests/test-strerror_r.c (main): Enhance test.
15991         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15992         * tests/test-perror2.c (main): Free memory before exit.
15993
15994 2011-05-21  Bruno Haible  <bruno@clisp.org>
15995
15996         mkdtemp: Use gnulib naming conventions.
15997         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15998         * modules/mkdtemp (configure.ac): Update.
15999
16000 2011-05-20  Eric Blake  <eblake@redhat.com>
16001
16002         strerror_r: avoid corrupting errno on Solaris
16003         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16004         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16005
16006         strerror_r: avoid compiler warning
16007         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16008
16009         strerror_r: simplify AIX code
16010         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16011
16012         test-perror: avoid spurious failure on FreeBSD
16013         * modules/perror-tests (Depends-on): Add strerror, now that
16014         strerror_r no longer pulls it in.
16015
16016 2011-05-20  Bruno Haible  <bruno@clisp.org>
16017
16018         strerror_r-posix: Remove unused dependencies.
16019         * modules/strerror_r-posix (Depends-on): Remove strerror.
16020         Reported by Eric Blake.
16021
16022 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16023
16024         intprops: remove assumption about A|B representation
16025         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16026         is a valid integer if both A and B are.  Although this is true for
16027         all known practical hosts, the C standard doesn't guarantee it,
16028         and the code need not assume it.  Also, this change may work around
16029         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16031
16032 2011-05-20  Eric Blake  <eblake@redhat.com>
16033
16034         perror: work around FreeBSD bug
16035         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16036         is broken.  Move AC_LIBOBJ...
16037         * modules/perror (configure.ac): Here.
16038         * doc/posix-functions/perror.texi (perror): Document this.
16039         * tests/test-perror2.c (main): Enhance test.
16040
16041         test-perror: check for strerror interactions
16042         * tests/macros.h (STREQ): Add macro.
16043         * modules/perror-tests (Files): Add second test.
16044         * tests/test-perror2.c (main): New file.
16045         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16046
16047         test-perror: rewrite to use init script
16048         * modules/perror-tests (Files): Add init.sh.
16049         * tests/test-perror.sh: Use temporary directory.
16050
16051 2011-05-20  Jim Meyering  <meyering@redhat.com>
16052
16053         maint: replace misused "a" with "an"
16054         * doc/intprops.texi: "a integer"
16055         * doc/regex.texi: "a explanation"
16056         * lib/alignof.h: "a object"
16057         * lib/argmatch.h: "a explanation"
16058         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16059         * lib/stdint.in.h: "a integer"
16060         * lib/userspec.c: "a owner"
16061         * doc/gnulib.texi: Fix "a idea", and reword.
16062
16063 2011-05-19  Jim Meyering  <meyering@redhat.com>
16064
16065         maint: correct misuse of "a" and "an"
16066         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16067         * lib/argp-help.c: "an docum...": s/an/a/
16068         * lib/argp-parse.c: "An vector": s/An/A/
16069         * lib/execute.c: "an native": s/an/a/
16070         * lib/spawn-pipe.c: Likewise.
16071         * lib/gc.h: "an Gc_rc": s/an/a/
16072         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16073         * lib/fts.c: "an stat.st_dev": s/an/a/
16074
16075 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16076
16077         intprops-tests: work around HP-UX 11.23 cc bug with constants
16078         * tests/test-intprops.c (VERIFY): New macro.
16079         (main): Use it, instead of verify, to work around the compiler bug; see
16080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16081
16082         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16083         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16084         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16085         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16086         (_GL_REMAINDER_OVERFLOW): Use it.
16087
16088         intprops-tests: revert unsigned part of previous change
16089         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16090         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16091         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16093
16094 2011-05-19  Bruno Haible  <bruno@clisp.org>
16095
16096         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16097         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16098         strerror_r() returned without filling the buffer.
16099         Reported by Eric Blake.
16100
16101 2011-05-19  Eric Blake  <eblake@redhat.com>
16102
16103         strerror_r: guarantee unchanged errno
16104         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16105         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16106         failure.
16107         * tests/test-strerror_r.c (main): Enhance test.
16108
16109 2011-05-19  Bruno Haible  <bruno@clisp.org>
16110
16111         strerror_r: Reorder #if blocks.
16112         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16113         for consistency with the previous commit.
16114
16115 2011-05-19  Bruno Haible  <bruno@clisp.org>
16116
16117         perror: Avoid clobbering the strerror buffer when possible.
16118         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16119         * lib/strerror.c: Include it.
16120         * modules/strerror (Files): Add lib/strerror-impl.h.
16121         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16122         (my_strerror): New function, defined through lib/strerror-impl.h.
16123         (perror): Use it instead of strerror.
16124         * modules/perror (Files): Add lib/strerror-impl.h.
16125         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16126
16127 2011-05-19  Eric Blake  <eblake@redhat.com>
16128
16129         strerror_r: fix on newer cygwin
16130         * lib/strerror_r.c (strerror_r): Cygwin now has
16131         __xpg_strerror_r, use it.
16132
16133 2011-05-19  Bruno Haible  <bruno@clisp.org>
16134
16135         strerror_r: Avoid clobbering the strerror buffer when possible.
16136         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16137         (sys_nerr, sys_errlist): New declarations.
16138         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16139         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16140         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16141
16142 2011-05-19  Bruno Haible  <bruno@clisp.org>
16143
16144         strerror_r: Fix test failure on mingw.
16145         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16146         EXTEND_STRERROR_R.
16147         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16148         macros from errno.in.h instead.
16149
16150 2011-05-19  Eric Blake  <eblake@redhat.com>
16151
16152         strerror: relax test for Solaris
16153         * tests/test-strerror.c (main): Permit Solaris behavior.
16154         * tests/test-strerror_r.c (main): Likewise.
16155
16156         strerror: enforce POSIX ruling on strerror(0)
16157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16158         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16159         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16160         * doc/posix-functions/strerror.texi (strerror): Document it.
16161         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16162         * tests/test-strerror.c (main): Strengthen test.
16163         * tests/test-strerror_r.c (main): Likewise.
16164
16165 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16166
16167         intprop-tests: port to older and more-pedantic compilers
16168         * modules/intprops-tests (Files): Add tests/macros.h.
16169         * tests/test-intprops.c: Include macros.h.
16170         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16171         it's no longer documented to expand to an integer constant expression.
16172         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16173         argument is floating point, as it's no longer documented to expand
16174         to an integer constant expression in that case.
16175         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16176         compiler bugs reported by Bruno Haible.  See
16177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16178         (U0, U1): New constants, to work around the same bugs.  Also,
16179         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16180
16181         intprops: work around C compiler bugs
16182         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16183         bug in Sun C 5.11 2010/08/13 and other compilers; see
16184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16185
16186         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16187         * doc/intprops.texi (Integer Type Determination): Fix
16188         documentation for TYPE_IS_INTEGER: it returns an constant
16189         expression, not an integer constant expression.  Fix doc for
16190         TYPE_SIGNED: it returns an integer constant expression only if its
16191         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16192         hardly worth documented that way....)
16193
16194 2011-05-18  Bruno Haible  <bruno@clisp.org>
16195
16196         strerror_r: Avoid clobbering the strerror buffer when possible.
16197         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16198         Handle gnulib defined errno values here. When strerror() returns NULL
16199         or an empty string, return EINVAL.
16200         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16201         gnulib defined errno values here.
16202         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16203
16204 2011-05-18  Eric Blake  <eblake@redhat.com>
16205
16206         fnmatch: avoid compiler warning
16207         * lib/fnmatch_loop.c (FCT): Use correct type.
16208         Reported by Matthias Bolte.
16209
16210 2011-05-13  Jim Meyering  <meyering@redhat.com>
16211
16212         maint.mk: three new prohibit_<HDR>_without_use rules
16213         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16214         (sc_prohibit_stdio-safer_without_use): Likewise.
16215         (sc_prohibit_xfreopen_without_use): Likewise.
16216
16217 2011-05-17  Jim Meyering  <meyering@redhat.com>
16218
16219         announce-gen: fail if the NEWS delta is empty
16220         If there's nothing noteworthy in NEWS, then either you forgot
16221         or you shouldn't be releasing.
16222         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16223
16224 2011-05-17  Pádraig Brady <P@draigBrady.com>
16225
16226         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16227         reserved symbols starting with double underscore from the check.
16228
16229 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16230
16231         intprops: add doc
16232         * doc/intprops.texi: New file, documenting intprops.
16233         * doc/gnulib.texi (Particular Modules): Include it.
16234
16235         verify: add doc to gnulib manual and fix example
16236         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16237         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16238         (Compile-time Assertions): Fix example so it can't overflow.
16239
16240 2011-05-17  Jim Meyering  <meyering@redhat.com>
16241
16242         warnings.m4: don't usurp save_CPPFLAGS variable name
16243         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16244
16245         doc: fix typo
16246         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16247
16248 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16249             Bruno Haible  <bruno@clisp.org>
16250
16251         doc: Tweak recent change.
16252         * README (Portability guidelines): Tweak new text.
16253         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16254         Interix 6.1.
16255
16256 2011-05-16  Eric Blake  <eblake@redhat.com>
16257
16258         inttypes: avoid autoconf warning
16259         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16260         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16261
16262 2011-05-16  Sam Steingold <sds@gnu.org>
16263         and Eric Blake  <eblake@redhat.com>
16264
16265         vc-list-files: accept multiple directory operands
16266         * build-aux/vc-list-files: Iterate over all remaining operands.
16267
16268 2011-05-16  Bruno Haible  <bruno@clisp.org>
16269
16270         Fix confusion regarding deprecated modules.
16271         * modules/calloc (Status, Notice): Mark module as deprecated, not
16272         obsolete.
16273         * modules/fnmatch-posix (Status, Notice): Likewise.
16274         * modules/getdate (Status, Notice): Likewise.
16275         * modules/getopt (Status, Notice): Likewise.
16276         * modules/malloc (Status, Notice): Likewise.
16277         * modules/pipe (Status, Notice): Likewise.
16278         * modules/realloc (Status, Notice): Likewise.
16279         * modules/rename-dest-slash (Status, Notice): Likewise.
16280         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16281         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16282         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16283         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16284         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16285
16286 2011-05-16  Bruno Haible  <bruno@clisp.org>
16287
16288         doc: List the target platforms.
16289         * doc/gnulib-intro.texi (Target Platforms): New section.
16290         * doc/gnulib.texi (Introduction): Update menu.
16291         * README (Portability guidelines): Refer to the new section. Update
16292         statement about oldest supported environment. Remove rationale why
16293         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16294         unportable C89 function.
16295         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16296         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16297
16298 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16299
16300         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16301
16302 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16303
16304         intprops-tests: new module
16305         * modules/intprops-tests, tests/test-intprops.c: New files.
16306
16307         intprops: add safe, portable integer overflow checking
16308         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16309         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16310         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16311         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16312         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16313         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16314         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16315         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16316         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16317         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16318         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16319
16320 2011-05-12  James Youngman  <jay@gnu.org>
16321
16322         Add a test for glibc's Bugzilla bug #12378.
16323         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16324         doesn't allow the literal matching of a lone "[" (which is
16325         required by POSIX).
16326         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16327
16328 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16329
16330         Sync glibc change fixing Bugzilla bug #12378.
16331         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16332         beginning and fall back to matching as normal character if the
16333         string ends before the matching ']' is found.  This is what POSIX
16334         requires.
16335
16336 2011-05-13  Eric Blake  <eblake@redhat.com>
16337
16338         getcwd-lgpl: relax test for FreeBSD
16339         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16340         issue.
16341         * tests/test-getcwd-lgpl.c (main): Relax test.
16342         Reported by Matthias Bolte.
16343
16344 2011-05-11  Eric Blake  <eblake@redhat.com>
16345
16346         test-fflush: silence compiler warning
16347         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16348
16349 2011-05-11  Bruno Haible  <bruno@clisp.org>
16350
16351         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16352         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16353         * modules/canonicalize (Depends-on): Add 'nocrash'.
16354         * modules/canonicalize-lgpl (Depends-on): Likewise.
16355         * doc/posix-functions/realpath.texi: Update platforms list.
16356         Reported by Ryan Schmidt <ryandesign@macports.org>.
16357
16358 2011-05-11  Bruno Haible  <bruno@clisp.org>
16359
16360         group-member: Declare function in <unistd.h>.
16361         * lib/unistd.in.h (group_member): New declaration.
16362         * lib/group-member.h: Remove file.
16363         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16364         * tests/test-unistd-c++.cc: Check signature of group_member.
16365         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16366         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16367         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16368         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16369         HAVE_GROUP_MEMBER.
16370         * modules/group-member (Files): Remove lib/group-member.h.
16371         (Depends-on): Add unistd. Specify conditions.
16372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16373         (Include): Change to <unistd.h>.
16374         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16375         HAVE_GROUP_MEMBER.
16376         * NEWS: Mention the change.
16377         * lib/euidaccess.c: Don't include group-member.h.
16378
16379 2011-05-11  Bruno Haible  <bruno@clisp.org>
16380
16381         group-member: Document module.
16382         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16383         module.
16384
16385 2011-05-11  Bruno Haible  <bruno@clisp.org>
16386
16387         fclose: Fix mistake earlier today.
16388         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16389
16390 2011-05-11  Eric Blake  <eblake@redhat.com>
16391
16392         fclose: preserve fflush errors
16393         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16394         Reported by Jim Meyering.
16395
16396         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16397         * build-aux/bootstrap (check_versions): When no specific version
16398         is required, merely check that the app produces an exit status
16399         that indicates its existence.
16400
16401         maint.mk: drop redundant check
16402         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16403         the same but better.
16404
16405 2011-05-11  Bruno Haible  <bruno@clisp.org>
16406
16407         fclose: Fix possible link error.
16408         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16409         unregister_shadow_fd. Improve comments.
16410         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16411         Eric Blake.
16412
16413 2011-05-11  Jim Meyering  <meyering@redhat.com>
16414
16415         maint.mk: improve "can not" detection and generalize rule name
16416         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16417         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16418         Use the same technique as in sc_prohibit_doubled_word, so that
16419         we recognize "can not" also when the words are separated by a newline.
16420         Suggested by Eric Blake.
16421         (perl_filename_lineno_text_): Define.  Factored out of...
16422         (prohibit_doubled_word_): ...here.  Use the new definition.
16423         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16424         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16425         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16426
16427 2011-05-10  Eric Blake  <eblake@redhat.com>
16428
16429         fclose: avoid double close race when possible
16430         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16431         all but WINDOWS_SOCKETS.
16432
16433 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16434
16435         openat: correct new comment
16436         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16437
16438 2011-05-10  Jim Meyering  <meyering@redhat.com>
16439
16440         openat: add comments
16441         * lib/openat-proc.c (openat_proc_name): Add comments,
16442         mostly from Eric Blake.
16443
16444 2011-05-09  Eric Blake  <eblake@redhat.com>
16445
16446         openat: reduce syscalls in first probe of /proc
16447         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16448         be a directory.  Simplify the probe for .. bugs.
16449         * modules/openat (Depends-on): Drop same-inode.
16450         Reported by Bastien ROUCARIES.
16451
16452 2011-05-09  Jim Meyering  <meyering@redhat.com>
16453
16454         maint.mk: change semantics/name of tight_scope variables
16455         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16456         Rename variables to align with semantics that make them more useful.
16457
16458         maint.mk: tweak new rule's name not to impinge
16459         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16460         (sc_tight_scope): Use new rule name rather than $@-0.
16461
16462         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16463         * top/maint.mk (sc_tight_scope): New rule.
16464         (sc_tight_scope-0): New rule, ifdef'd out.
16465         (_gl_TS_dir): Default.
16466         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16467         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16468
16469 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16470
16471         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16472         Haible <bruno@clisp.org>.
16473
16474 2011-05-08  Bruno Haible  <bruno@clisp.org>
16475
16476         Comments.
16477         * m4/isnanf.m4: Add comment.
16478         * m4/isnanl.m4: Likewise.
16479
16480 2011-05-08  Bruno Haible  <bruno@clisp.org>
16481
16482         glob: Remove obsolete macro.
16483         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16484
16485 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16486
16487         intprops: Sun C 5.11 supports __typeof__
16488         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16489         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16490         which is new.
16491         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16492
16493         intprops: switch to usual gnulib indenting and naming
16494         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16495         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16496
16497         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16498
16499 2011-05-08  Jim Meyering  <meyering@redhat.com>
16500
16501         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16502         * top/maint.mk (release-prep): Use make's --no-print-directory
16503         option when generating the announcement.  This eliminates the
16504         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16505         generated announcement template.
16506
16507 2011-05-08  Bruno Haible  <bruno@clisp.org>
16508
16509         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16510         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16511         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16512
16513 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16514
16515         ignore-value, verify: Omit include files from lib_SOURCES.
16516         * modules/ignore-value, modules/verify (Makefile.am):
16517         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16518         that leads Automake to duplicate use of am__objects_... variables
16519         in Makefile.in.  See
16520         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16521
16522 2011-05-07  Bruno Haible  <bruno@clisp.org>
16523
16524         fclose: Simplify autoconf macro.
16525         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16526         defined.
16527
16528 2011-05-07  Bruno Haible  <bruno@clisp.org>
16529
16530         canonicalize-lgpl: Fix autoconf macro ordering bug.
16531         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16532         gl_STDLIB_H_DEFAULTS.
16533
16534 2011-05-06  Eric Blake  <eblake@redhat.com>
16535
16536         maintainer-makefile: make sc_po_check easier to tune
16537         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16538         to probe for strings, such as an alternate location for gnulib.
16539
16540         fclose: guarantee behavior on seekable stdin
16541         * modules/fclose (Depends-on): Add fflush.
16542         * doc/posix-functions/fclose.texi (fclose): Document this.
16543         * tests/test-fclose.c (main): Make test for this unconditional.
16544
16545 2011-05-06  Bruno Haible  <bruno@clisp.org>
16546
16547         fflush, fpurge: Relicense under LGPLv2+.
16548         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16549         * modules/fpurge (License): Likewise.
16550         With permission from Eric Blake and Jim Meyering.
16551         Suggested by Eric Blake.
16552
16553 2011-05-06  Karl Berry  <karl@gnu.org>
16554
16555         * MODULES.html.sh (func_all_modules): remove exit.
16556
16557 2011-05-06  Jim Meyering  <meyering@redhat.com>
16558
16559         maint.mk: use info-gnu@ as the default only for a stable release
16560         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16561         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16562         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16563         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16564
16565 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16566
16567         assert-h: new module, which supports C1X-style static_assert
16568         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16569         * lib/verify.h: Revamp so that this can be copied into assert.h,
16570         while retaining the ability to use it standalone as before.
16571         Rename private identifiers so as not to encroach on the
16572         standard C namespace, since this is now used by assert.h.
16573         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16574         the old verify_true.
16575         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16576         the old verify_true.  Use _GL_VERIFY_TYPE.
16577         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16578         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16579         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16580         defined when this file is copied into the replacement assert.h.
16581         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16582         and _Static_assert is not built in.
16583         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16584         defined, and use the new macros mentioned above.
16585         * doc/posix-headers/assert.texi: Document this.
16586
16587 2011-05-05  Bruno Haible  <bruno@clisp.org>
16588
16589         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16590         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16591         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16592         gl_REPLACE_FCLOSE here.
16593         * modules/fflush (Depends-on): Remove fclose.
16594         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16595         combination with module 'fclose'.
16596
16597 2011-05-05  Bruno Haible  <bruno@clisp.org>
16598
16599         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16600         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16601         gl_FUNC_FFLUSH.
16602         (gl_FUNC_FFLUSH): Use it.
16603         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16605         gl_REPLACE_FSEEKO here.
16606
16607 2011-05-05  Bruno Haible  <bruno@clisp.org>
16608
16609         tzset: Relicense under LGPL.
16610         * modules/tzset (License): Change to LGPL.
16611         No agreement needed; it's a no-op.
16612
16613         strtoimax, strtoumax: Relicense under LGPL.
16614         * modules/strtoimax (License): Change to LGPL.
16615         * modules/strtoumax (License): Likewise.
16616         With permission from Jim Meyering, Paul Eggert:
16617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16619
16620         getgroups: Relicense under LGPL.
16621         * modules/getgroups (License): Change to LGPL.
16622         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16626
16627         nanosleep: Relicense under LGPL.
16628         * modules/nanosleep (License): Change to LGPL.
16629         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16630         Haible:
16631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16635
16636         futimens: Relicense under LGPL.
16637         * modules/futimens (License): Change to LGPL.
16638         With permission from Eric Blake:
16639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16640
16641         fflush: Relicense under LGPL.
16642         * modules/fflush (License): Change to LGPL.
16643         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16647
16648         tmpfile: Relicense under LGPL.
16649         * modules/tmpfile (License): Change to LGPL.
16650         With permission from Ben Pfaff:
16651         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16652
16653         isfinite: Relicense under LGPL.
16654         * modules/isfinite (License): Change to LGPL.
16655         With permission from Ben Pfaff, Bruno Haible:
16656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16658
16659         acosl..tanl: Relicense under LGPL.
16660         * modules/acosl (License): Change to LGPL.
16661         * modules/asinl (License): Likewise.
16662         * modules/atanl (License): Likewise.
16663         * modules/cosl (License): Likewise.
16664         * modules/expl (License): Likewise.
16665         * modules/logl (License): Likewise.
16666         * modules/sinl (License): Likewise.
16667         * modules/sqrtl (License): Likewise.
16668         * modules/tanl (License): Likewise.
16669         Source code originally from glibc and Paolo Bonzini. Agreements:
16670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16672
16673 2011-05-05  Bruno Haible  <bruno@clisp.org>
16674
16675         signal: Define sighandler_t.
16676         * lib/signal.in.h (sighandler_t): New type.
16677         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16678         whether sighandler_t is defined.
16679         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16680         * modules/signal (Depends-on): Add extensions.
16681         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16682         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16683         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16684
16685 2011-05-05  Eric Blake  <eblake@redhat.com>
16686
16687         maint: remove useless REPLACE_*_H macros
16688         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16689         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16690         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16691         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16692         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16693         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16694         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16695         * m4/btowc.m4: Update callers.
16696         * m4/dirfd.m4: Likewise.
16697         * m4/duplocale.m4: Likewise.
16698         * m4/fchdir.m4: Likewise.
16699         * m4/fdopendir.m4: Likewise.
16700         * m4/inet_ntop.m4: Likewise.
16701         * m4/inet_pton.m4: Likewise.
16702         * m4/ioctl.m4: Likewise.
16703         * m4/mbrlen.m4: Likewise.
16704         * m4/mbrtowc.m4: Likewise.
16705         * m4/mbsinit.m4: Likewise.
16706         * m4/mbsnrtowcs.m4: Likewise.
16707         * m4/mbsrtowcs.m4: Likewise.
16708         * m4/poll.m4: Likewise.
16709         * m4/setlocale.m4: Likewise.
16710         * m4/wcrtomb.m4: Likewise.
16711         * m4/wcsnrtombs.m4: Likewise.
16712         * m4/wcsrtombs.m4: Likewise.
16713         * m4/wctob.m4: Likewise.
16714         * m4/wcwidth.m4: Likewise.
16715         * modules/posix_spawn: Likewise.
16716         * modules/posix_spawn_file_actions_addclose: Likewise.
16717         * modules/posix_spawn_file_actions_adddup2: Likewise.
16718         * modules/posix_spawn_file_actions_addopen: Likewise.
16719         * modules/posix_spawn_file_actions_destroy: Likewise.
16720         * modules/posix_spawn_file_actions_init: Likewise.
16721         * modules/posix_spawnattr_destroy: Likewise.
16722         * modules/posix_spawnattr_getflags: Likewise.
16723         * modules/posix_spawnattr_getpgroup: Likewise.
16724         * modules/posix_spawnattr_getschedparam: Likewise.
16725         * modules/posix_spawnattr_getschedpolicy: Likewise.
16726         * modules/posix_spawnattr_getsigdefault: Likewise.
16727         * modules/posix_spawnattr_getsigmask: Likewise.
16728         * modules/posix_spawnattr_init: Likewise.
16729         * modules/posix_spawnattr_setflags: Likewise.
16730         * modules/posix_spawnattr_setpgroup: Likewise.
16731         * modules/posix_spawnattr_setschedparam: Likewise.
16732         * modules/posix_spawnattr_setschedpolicy: Likewise.
16733         * modules/posix_spawnattr_setsigdefault: Likewise.
16734         * modules/posix_spawnattr_setsigmask: Likewise.
16735         * modules/posix_spawnp: Likewise.
16736
16737 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16738
16739         Add option to do-release-commit-and-tag to specify branch.
16740         * build-aux/do-release-commit-and-tag: Add --branch.
16741
16742 2011-05-03  Bruno Haible  <bruno@clisp.org>
16743
16744         Avoid unnecessary compilation units, through conditional dependencies.
16745         * modules/accept (Depends-on): Add conditions to the dependencies.
16746         * modules/acosl (Depends-on): Likewise.
16747         * modules/argz (Depends-on): Likewise.
16748         * modules/asinl (Depends-on): Likewise.
16749         * modules/atanl (Depends-on): Likewise.
16750         * modules/atoll (Depends-on): Likewise.
16751         * modules/bind (Depends-on): Likewise.
16752         * modules/btowc (Depends-on): Likewise.
16753         * modules/canonicalize-lgpl (Depends-on): Likewise.
16754         * modules/ceil (Depends-on): Likewise.
16755         * modules/ceilf (Depends-on): Likewise.
16756         * modules/ceill (Depends-on): Likewise.
16757         * modules/chdir-long (Depends-on): Likewise.
16758         * modules/chown (Depends-on): Likewise.
16759         * modules/close (Depends-on): Likewise.
16760         * modules/connect (Depends-on): Likewise.
16761         * modules/cosl (Depends-on): Likewise.
16762         * modules/dirfd (Depends-on): Likewise.
16763         * modules/dprintf (Depends-on): Likewise.
16764         * modules/dprintf-posix (Depends-on): Likewise.
16765         * modules/error (Depends-on): Likewise.
16766         * modules/euidaccess (Depends-on): Likewise.
16767         * modules/expl (Depends-on): Likewise.
16768         * modules/faccessat (Depends-on): Likewise.
16769         * modules/fchdir (Depends-on): Likewise.
16770         * modules/fclose (Depends-on): Likewise.
16771         * modules/fcntl (Depends-on): Likewise.
16772         * modules/fdopendir (Depends-on): Likewise.
16773         * modules/fflush (Depends-on): Likewise.
16774         * modules/floor (Depends-on): Likewise.
16775         * modules/floorf (Depends-on): Likewise.
16776         * modules/floorl (Depends-on): Likewise.
16777         * modules/fnmatch (Depends-on): Likewise.
16778         * modules/fopen (Depends-on): Likewise.
16779         * modules/fprintf-posix (Depends-on): Likewise.
16780         * modules/frexp (Depends-on): Likewise.
16781         * modules/frexp-nolibm (Depends-on): Likewise.
16782         * modules/frexpl (Depends-on): Likewise.
16783         * modules/frexpl-nolibm (Depends-on): Likewise.
16784         * modules/fseek (Depends-on): Likewise.
16785         * modules/fsusage (Depends-on): Likewise.
16786         * modules/ftell (Depends-on): Likewise.
16787         * modules/ftello (Depends-on): Likewise.
16788         * modules/futimens (Depends-on): Likewise.
16789         * modules/getcwd (Depends-on): Likewise.
16790         * modules/getcwd-lgpl (Depends-on): Likewise.
16791         * modules/getdelim (Depends-on): Likewise.
16792         * modules/getdomainname (Depends-on): Likewise.
16793         * modules/getgroups (Depends-on): Likewise.
16794         * modules/gethostname (Depends-on): Likewise.
16795         * modules/getline (Depends-on): Likewise.
16796         * modules/getlogin_r (Depends-on): Likewise.
16797         * modules/getopt-posix (Depends-on): Likewise.
16798         * modules/getpeername (Depends-on): Likewise.
16799         * modules/getsockname (Depends-on): Likewise.
16800         * modules/getsockopt (Depends-on): Likewise.
16801         * modules/getsubopt (Depends-on): Likewise.
16802         * modules/getusershell (Depends-on): Likewise.
16803         * modules/glob (Depends-on): Likewise.
16804         * modules/grantpt (Depends-on): Likewise.
16805         * modules/iconv_open (Depends-on): Likewise.
16806         * modules/iconv_open-utf (Depends-on): Likewise.
16807         * modules/inet_ntop (Depends-on): Likewise.
16808         * modules/inet_pton (Depends-on): Likewise.
16809         * modules/ioctl (Depends-on): Likewise.
16810         * modules/isapipe (Depends-on): Likewise.
16811         * modules/isfinite (Depends-on): Likewise.
16812         * modules/isinf (Depends-on): Likewise.
16813         * modules/lchown (Depends-on): Likewise.
16814         * modules/ldexpl (Depends-on): Likewise.
16815         * modules/link (Depends-on): Likewise.
16816         * modules/linkat (Depends-on): Likewise.
16817         * modules/listen (Depends-on): Likewise.
16818         * modules/logl (Depends-on): Likewise.
16819         * modules/lstat (Depends-on): Likewise.
16820         * modules/mbrlen (Depends-on): Likewise.
16821         * modules/mbrtowc (Depends-on): Likewise.
16822         * modules/mbsinit (Depends-on): Likewise.
16823         * modules/mbsnrtowcs (Depends-on): Likewise.
16824         * modules/mbsrtowcs (Depends-on): Likewise.
16825         * modules/mbtowc (Depends-on): Likewise.
16826         * modules/memcmp (Depends-on): Likewise.
16827         * modules/mkdir (Depends-on): Likewise.
16828         * modules/mkdtemp (Depends-on): Likewise.
16829         * modules/mkfifo (Depends-on): Likewise.
16830         * modules/mkfifoat (Depends-on): Likewise.
16831         * modules/mknod (Depends-on): Likewise.
16832         * modules/mkostemp (Depends-on): Likewise.
16833         * modules/mkostemps (Depends-on): Likewise.
16834         * modules/mkstemp (Depends-on): Likewise.
16835         * modules/mkstemps (Depends-on): Likewise.
16836         * modules/mktime (Depends-on): Likewise.
16837         * modules/nanosleep (Depends-on): Likewise.
16838         * modules/open (Depends-on): Likewise.
16839         * modules/openat (Depends-on): Likewise.
16840         * modules/perror (Depends-on): Likewise.
16841         * modules/poll (Depends-on): Likewise.
16842         * modules/popen (Depends-on): Likewise.
16843         * modules/posix_spawn (Depends-on): Likewise.
16844         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16845         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16846         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16847         * modules/posix_spawnp (Depends-on): Likewise.
16848         * modules/pread (Depends-on): Likewise.
16849         * modules/printf-posix (Depends-on): Likewise.
16850         * modules/ptsname (Depends-on): Likewise.
16851         * modules/putenv (Depends-on): Likewise.
16852         * modules/pwrite (Depends-on): Likewise.
16853         * modules/readline (Depends-on): Likewise.
16854         * modules/readlink (Depends-on): Likewise.
16855         * modules/readlinkat (Depends-on): Likewise.
16856         * modules/recv (Depends-on): Likewise.
16857         * modules/recvfrom (Depends-on): Likewise.
16858         * modules/regex (Depends-on): Likewise.
16859         * modules/remove (Depends-on): Likewise.
16860         * modules/rename (Depends-on): Likewise.
16861         * modules/renameat (Depends-on): Likewise.
16862         * modules/rmdir (Depends-on): Likewise.
16863         * modules/round (Depends-on): Likewise.
16864         * modules/roundf (Depends-on): Likewise.
16865         * modules/roundl (Depends-on): Likewise.
16866         * modules/rpmatch (Depends-on): Likewise.
16867         * modules/select (Depends-on): Likewise.
16868         * modules/send (Depends-on): Likewise.
16869         * modules/sendto (Depends-on): Likewise.
16870         * modules/setenv (Depends-on): Likewise.
16871         * modules/setlocale (Depends-on): Likewise.
16872         * modules/setsockopt (Depends-on): Likewise.
16873         * modules/shutdown (Depends-on): Likewise.
16874         * modules/sigaction (Depends-on): Likewise.
16875         * modules/signbit (Depends-on): Likewise.
16876         * modules/sigprocmask (Depends-on): Likewise.
16877         * modules/sinl (Depends-on): Likewise.
16878         * modules/sleep (Depends-on): Likewise.
16879         * modules/snprintf (Depends-on): Likewise.
16880         * modules/snprintf-posix (Depends-on): Likewise.
16881         * modules/socket (Depends-on): Likewise.
16882         * modules/sprintf-posix (Depends-on): Likewise.
16883         * modules/sqrtl (Depends-on): Likewise.
16884         * modules/stat (Depends-on): Likewise.
16885         * modules/strchrnul (Depends-on): Likewise.
16886         * modules/strdup-posix (Depends-on): Likewise.
16887         * modules/strerror (Depends-on): Likewise.
16888         * modules/strerror_r-posix (Depends-on): Likewise.
16889         * modules/strndup (Depends-on): Likewise.
16890         * modules/strnlen (Depends-on): Likewise.
16891         * modules/strptime (Depends-on): Likewise.
16892         * modules/strsep (Depends-on): Likewise.
16893         * modules/strsignal (Depends-on): Likewise.
16894         * modules/strstr-simple (Depends-on): Likewise.
16895         * modules/strtod (Depends-on): Likewise.
16896         * modules/strtoimax (Depends-on): Likewise.
16897         * modules/strtok_r (Depends-on): Likewise.
16898         * modules/strtoumax (Depends-on): Likewise.
16899         * modules/symlink (Depends-on): Likewise.
16900         * modules/symlinkat (Depends-on): Likewise.
16901         * modules/tanl (Depends-on): Likewise.
16902         * modules/tcgetsid (Depends-on): Likewise.
16903         * modules/tmpfile (Depends-on): Likewise.
16904         * modules/trunc (Depends-on): Likewise.
16905         * modules/truncf (Depends-on): Likewise.
16906         * modules/truncl (Depends-on): Likewise.
16907         * modules/uname (Depends-on): Likewise.
16908         * modules/unlink (Depends-on): Likewise.
16909         * modules/unlockpt (Depends-on): Likewise.
16910         * modules/unsetenv (Depends-on): Likewise.
16911         * modules/usleep (Depends-on): Likewise.
16912         * modules/utimensat (Depends-on): Likewise.
16913         * modules/vasprintf (Depends-on): Likewise.
16914         * modules/vdprintf (Depends-on): Likewise.
16915         * modules/vdprintf-posix (Depends-on): Likewise.
16916         * modules/vfprintf-posix (Depends-on): Likewise.
16917         * modules/vprintf-posix (Depends-on): Likewise.
16918         * modules/vsnprintf (Depends-on): Likewise.
16919         * modules/vsnprintf-posix (Depends-on): Likewise.
16920         * modules/vsprintf-posix (Depends-on): Likewise.
16921         * modules/wcrtomb (Depends-on): Likewise.
16922         * modules/wcscasecmp (Depends-on): Likewise.
16923         * modules/wcscspn (Depends-on): Likewise.
16924         * modules/wcsdup (Depends-on): Likewise.
16925         * modules/wcsncasecmp (Depends-on): Likewise.
16926         * modules/wcsnrtombs (Depends-on): Likewise.
16927         * modules/wcspbrk (Depends-on): Likewise.
16928         * modules/wcsrtombs (Depends-on): Likewise.
16929         * modules/wcsspn (Depends-on): Likewise.
16930         * modules/wcsstr (Depends-on): Likewise.
16931         * modules/wcstok (Depends-on): Likewise.
16932         * modules/wcswidth (Depends-on): Likewise.
16933         * modules/wctob (Depends-on): Likewise.
16934         * modules/wctomb (Depends-on): Likewise.
16935         * modules/wctype (Depends-on): Likewise.
16936         * modules/wcwidth (Depends-on): Likewise.
16937         * modules/write (Depends-on): Likewise.
16938
16939 2011-05-03  Bruno Haible  <bruno@clisp.org>
16940
16941         Support for conditional dependencies.
16942         * doc/gnulib.texi (Module description): Document the syntax of
16943         conditional dependencies.
16944         * gnulib-tool: New option --conditional-dependencies.
16945         (func_usage): Document it.
16946         (cond_dependencies): New variable.
16947         (func_get_automake_snippet_conditional,
16948         func_get_automake_snippet_unconditional): New functions, extracted from
16949         func_get_automake_snippet.
16950         (func_get_automake_snippet): Use them.
16951         (sed_first_32_chars): New variable.
16952         (func_module_shellfunc_name): New function.
16953         (func_module_shellvar_name): New function.
16954         (func_module_conditional_name): New function.
16955         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16956         func_cond_module_condition): New functions.
16957         (func_modules_transitive_closure): Add support for conditional
16958         dependencies.
16959         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16960         conditional automake snippet in an automake conditional.
16961         (func_emit_autoconf_snippets): Emit shell functions that contain the
16962         code for conditional modules.
16963         (func_import, func_create_testdir): Update specification.
16964
16965 2011-05-03  Eric Blake  <eblake@redhat.com>
16966
16967         test-getaddrinfo: report error information
16968         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16969
16970 2011-05-03  Jim Meyering  <meyering@redhat.com>
16971
16972         bootstrap: avoid build failure when $GZIP is set
16973         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16974         program name.  If defined at all, it is supposed to list gzip options.
16975         Reported by Alan Curry in http://debbugs.gnu.org/8609
16976
16977 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16978
16979         readme-release: new module with release instructions
16980         * modules/readme-release: New module.
16981         * top/README-release: New file, from coreutils, grep, diffutils.
16982         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16983
16984 2011-05-02  Eric Blake  <eblake@redhat.com>
16985
16986         fflush: also replace fclose when fixing fflush
16987         * modules/fflush (Depends-on): Add fclose.
16988         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16989         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16990         memstreams with no backing fd.
16991         * doc/posix-functions/fclose.texi (fclose): Document the use of
16992         fflush module to fix the bug.
16993         * tests/test-fclose.c (main): Relax test when fclose is used in
16994         isolation.
16995
16996         fclose: add some tests
16997         * modules/fclose-tests: New test module.
16998         * tests/test-fclose.c: New file.
16999         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17000
17001         fclose: reduced dependencies
17002         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17003         simpler lseek.
17004         * lib/fclose.c (rpl_fclose): Likewise.
17005         Reported by Simon Josefsson.
17006
17007         exit: drop remaining clients
17008         * modules/argmatch (Depends-on): Replace exit with stdlib.
17009         * modules/copy-file (Depends-on): Likewise.
17010         * modules/execute (Depends-on): Likewise.
17011         * modules/exitfail (Depends-on): Likewise.
17012         * modules/obstack (Depends-on): Likewise.
17013         * modules/pagealign_alloc (Depends-on): Likewise.
17014         * modules/pipe-filter-gi (Depends-on): Likewise.
17015         * modules/pipe-filter-ii (Depends-on): Likewise.
17016         * modules/savewd (Depends-on): Likewise.
17017         * modules/spawn-pipe (Depends-on): Likewise.
17018         * modules/wait-process (Depends-on): Likewise.
17019         * modules/xsetenv (Depends-on): Likewise.
17020         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17021         * modules/git-merge-changelog (Depends-on): Likewise.
17022         * modules/long-options (Depends-on): Likewise.
17023         * modules/pt_chown (Depends-on): Likewise.
17024         * modules/sysexits (Depends-on): Likewise.
17025
17026         freading: relax license from LGPLv3+ to LGPLv2+
17027         * modules/freading (License): Relax LGPL version.
17028
17029 2011-05-02  Bruno Haible  <bruno@clisp.org>
17030
17031         fchdir: Remove unused dependencies.
17032         * modules/fchdir (Depends-on): Remove include_next.
17033
17034 2011-05-02  Bruno Haible  <bruno@clisp.org>
17035
17036         gnulib-tool: Refactor.
17037         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17038         from func_emit_autoconf_snippets.
17039         (func_emit_autoconf_snippets): Use it.
17040
17041 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17042
17043         * NEWS: Document removal of 'exit'.
17044         * modules/exit: Remove file.
17045
17046 2011-05-01  Bruno Haible  <bruno@clisp.org>
17047
17048         Update DEPENDENCIES.
17049         * DEPENDENCIES (gettext): Recommend the newest release.
17050         Reported by Simon Josefsson.
17051
17052 2011-05-01  Bruno Haible  <bruno@clisp.org>
17053
17054         gnulib-tool: Reduce code duplication.
17055         * gnulib-tool (func_emit_autoconf_snippets): New function.
17056         (func_import, func_create_testdir): Use it.
17057
17058 2011-04-30  Eric Blake  <eblake@redhat.com>
17059
17060         fclose: don't fail on non-seekable input stream
17061         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17062         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17063         since fflush is allowed to fail in that case.
17064
17065 2011-04-30  Bruno Haible  <bruno@clisp.org>
17066
17067         dup3: cleanup
17068         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17069
17070 2011-04-30  Bruno Haible  <bruno@clisp.org>
17071
17072         netdb: Make it work in C++ mode.
17073         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17074         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17075         module.
17076         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17077         gl_MODULE_INDICATOR_FOR_TESTS.
17078         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17079         * modules/netdb-c++-tests: New file.
17080         * tests/test-netdb-c++.cc: New file.
17081
17082 2011-04-30  Bruno Haible  <bruno@clisp.org>
17083
17084         New modules 'vfscanf', 'vscanf'.
17085         * modules/vfscanf: New file.
17086         * modules/vscanf: New file.
17087         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17088         here.
17089         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17090         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17091
17092 2011-04-30  Bruno Haible  <bruno@clisp.org>
17093
17094         passfd: Add comments.
17095         * lib/passfd.c: Add comments about platforms.
17096
17097 2011-04-30  Bruno Haible  <bruno@clisp.org>
17098
17099         sys_uio: Make <sys/uio.h> self-contained.
17100         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17101         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17102
17103 2011-04-30  Bruno Haible  <bruno@clisp.org>
17104
17105         sys_socket: Ensure 'struct iovec' definition.
17106         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17107         <sys/socket.h>.
17108         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17109
17110 2011-04-30  Bruno Haible  <bruno@clisp.org>
17111
17112         sys_uio: Protect definition of 'struct iovec'.
17113         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17114         it as a C struct.
17115
17116 2011-04-30  Bruno Haible  <bruno@clisp.org>
17117
17118         manywarnings: fix indentation
17119         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17120
17121 2011-04-30  Pádraig Brady <P@draigBrady.com>
17122
17123         manywarnings: add -Wno-missing-field-initializers if needed.
17124         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17125         option if it's needed to allow initialization with { 0, }
17126
17127 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17128
17129         announce-gen: cosmetic improvement
17130         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17131
17132 2011-04-29  Jim Meyering  <meyering@redhat.com>
17133
17134         vc-list-files: indent with spaces, not TABs
17135         * build-aux/vc-list-files: Convert leading TABs to spaces,
17136         to match the style of most other files in gnulib.
17137
17138         announce-gen: indent with spaces, not TABs
17139         * build-aux/announce-gen: Convert all TABs to spaces, to match
17140         the style of most other files in gnulib.
17141
17142 2011-04-29  Eric Blake  <eblake@redhat.com>
17143
17144         quotearg: avoid uninitialized variable use
17145         * lib/quotearg.c (quoting_options_from_style): Initialize
17146         remaining fields, and ensure that custom styles are only used via
17147         quoting_options rather than quoting_style.
17148
17149 2011-04-29  Jim Meyering  <meyering@redhat.com>
17150
17151         maint.mk: remove unused VC-tag variable
17152         * top/maint.mk (VC-tag): Remove unused variable.
17153
17154 2011-04-29  Bruno Haible  <bruno@clisp.org>
17155
17156         netdb: fix gai_strerror replacements
17157         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17158         * modules/netdb: Substitute it.
17159
17160 2011-04-29  Jim Meyering  <meyering@redhat.com>
17161
17162         test-getcwd.c: avoid new set-but-not-used warning
17163         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17164         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17165         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17166         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17167
17168         test-hash.c: avoid a new shadowing warning
17169         * tests/test-hash.c (main): Don't shadow "dup".
17170
17171 2011-04-28  Eric Blake  <eblake@redhat.com>
17172
17173         getaddrinfo: fix gai_strerror signature
17174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17175         and work around mingw with UNICODE defined.
17176         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17177         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17178         * modules/netdb (Makefile.am): Substitute it.
17179         * lib/netdb.in.h (gai_strerror): Declare replacement.
17180         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17181         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17182         the fix.
17183
17184         getsockopt: avoid compiler warning
17185         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17186         Reported by Matthias Bolte.
17187
17188         tests: drop unused link dependency
17189         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17190         * modules/dirent-safer-tests (Makefile.am): Likewise.
17191         * modules/fdopendir-tests (Makefile.am): Likewise.
17192         * modules/mkfifoat-tests (Makefile.am): Likewise.
17193         * modules/openat-safer-tests (Makefile.am): Likewise.
17194         * modules/openat-tests (Makefile.am): Likewise.
17195         * modules/readlinkat-tests (Makefile.am): Likewise.
17196         * modules/symlinkat-tests (Makefile.am): Likewise.
17197         * modules/linkat-tests (Makefile.am): Likewise.
17198         (Depends-on): Switch to filenamecat-lgpl.
17199         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17200         LIBINTL.
17201         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17202         * tests/test-linkat.c (main): Don't require xalloc.
17203
17204         hash, mgetgroups: drop xalloc dependency
17205         * lib/hash.c (includes): Adjust includes.
17206         * lib/mgetgroups.c (includes): Likewise.
17207         (xgetgroups): Move...
17208         * lib/xgetgroups.c: ...to new file.
17209         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17210         * modules/xgetgroups: New file, split from...
17211         * modules/mgetgroups: ...here.
17212         (Depends-on): Add xalloc-oversized.
17213         * modules/hash (Depends-on): Likewise.
17214         * modules/hash-tests (Depends-on): Drop xalloc.
17215         (test_hash_LDADD): Drop unused library.
17216         * tests/test-hash.c (main): Break xalloc dependency.
17217         (includes): Drop unused include.
17218
17219         xalloc-oversized: new module
17220         * modules/xalloc-oversized: New module.
17221         * modules/xalloc (Depends-on): Add it.
17222         * lib/xalloc.h (xalloc_oversized): Move...
17223         * lib/xalloc-oversized.h: ...into new file.
17224
17225         utimecmp: drop dependency on xmalloc
17226         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17227         due to memory pressure.
17228         * modules/utimecmp (Depends-on): Drop xalloc.
17229
17230 2011-04-27  Eric Blake  <eblake@redhat.com>
17231
17232         getcwd: fix mingw bugs
17233         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17234         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17235         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17236
17237 2011-04-27  Bruno Haible  <bruno@clisp.org>
17238
17239         mkstemps: Ensure declaration on MacOS X 10.5.
17240         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17241         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17242         MacOS X.
17243
17244 2011-04-27  Bruno Haible  <bruno@clisp.org>
17245
17246         mkstemp: More documentation.
17247         * doc/posix-functions/mkstemp.texi: Document header file problem on
17248         MacOS X.
17249
17250 2011-04-27  Bruno Haible  <bruno@clisp.org>
17251
17252         mkstemp: Tweak configure message when cross-compiling.
17253         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17254         result as a guess.
17255
17256 2011-04-27  Bruno Haible  <bruno@clisp.org>
17257
17258         clean-temp: Clarify what it does.
17259         * lib/clean-temp.h: Add more comments.
17260         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17261         module.
17262         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17263         * doc/glibc-functions/mkstemps.texi: Likewise.
17264         * doc/glibc-functions/mkostemps.texi: Likewise.
17265
17266 2011-04-27  Eric Blake  <eblake@redhat.com>
17267
17268         fchdir: avoid extra chdir and fix test
17269         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17270         getcwd-lgpl.
17271         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17272         have to be canonical.
17273         (canonicalize_file_name): Drop unused macro.
17274         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17275
17276         filenamecat-lgpl: fix licence
17277         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17278         when it was first created.
17279
17280         linkat, renameat: add missing dependency
17281         * modules/linkat (Depends-on): Require getcwd-lgpl.
17282         * modules/renameat (Depends-on): Likewise.
17283
17284         tests: reduce dependencies
17285         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17286         * tests/test-renameat.c (main): Likewise.
17287         * modules/linkat-tests (Depends-on): Relax dependency.
17288         * modules/renameat-tests (Depends-on): Likewise.
17289         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17290         dependency explicit.
17291
17292         save-cwd: reduce default dependency
17293         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17294         * lib/save-cwd.c: Update comments.
17295         * NEWS: Document the semantic change.
17296
17297         getcwd: enhance tests
17298         * tests/test-getcwd-lgpl.c: New file, taken from...
17299         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17300         repeat long path stress tests from m4 probe.
17301         * modules/getcwd-lgpl-tests: New module.
17302         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17303         * m4/getcwd-abort-bug.m4: Update comment.
17304         * m4/getcwd-path-max.m4: Likewise.
17305
17306         getcwd-lgpl: new module
17307         * modules/getcwd-lgpl: New module.
17308         * lib/getcwd-lgpl.c: New file.
17309         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17310         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17311         * modules/getcwd (configure.ac): Set C witness.
17312         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17313
17314         getcwd: tweak comments
17315         * m4/getcwd-abort-bug.m4: Fix comments.
17316         * m4/getcwd-path-max.m4: Likewise.
17317         * m4/getcwd.m4: Likewise.
17318
17319 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17320         and Eric Blake  <eblake@redhat.com>
17321
17322         mkstemp: replace if system version uses wrong permissions
17323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17324         read/write mode bits set in file created by mkstemp.
17325         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17326
17327 2011-04-27  Eric Blake  <eblake@redhat.com>
17328
17329         passfd: avoid compiler warning
17330         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17331         Reported by Laine Stump.
17332
17333 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17334
17335         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17336         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17337
17338 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17339         and Eric Blake  <eblake@redhat.com>
17340
17341         mkstemp: mention clean-temp module
17342         * lib/mkstemp.c: Add comment.
17343         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17344
17345 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17346
17347         inttypes: also provide default values for 32-bit tests
17348         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17349         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17350
17351 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17352
17353         strtoumax: remove dependency on strtoimax
17354         This is like the strtoull change of yesterday.
17355         * modules/strtoumax (Files): Add lib/strtoimax.c.
17356         (Depends-on): Remove strtoimax and add verify.
17357
17358         inttypes-incomplete: new module
17359         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17360         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17361         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17362         of gl_INTTYPES_H.
17363         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17364         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17365         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17366         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17367         * modules/strtoumax, modules/xstrtol (Depends-on):
17368         Depend on inttypes-incomplete, not inttypes.
17369         * modules/inttypes-incomplete: New module, containing the contents
17370         of the old modules/inttypes module, except that the Files: section
17371         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17372         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17373         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17374         (Depends-on): Depend only on inttypes-incomplete.
17375         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17376
17377         inttypes: omit now-redundant strtoimax and strtoumax work
17378         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17379         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17380
17381         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17382         This supports apps that need pointers to strtoimax and strtoumax,
17383         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17384         nonexistent functions.  See
17385         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17386         et seq.
17387         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17388         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17389         a macro.
17390         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17391
17392 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17393
17394         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17395
17396 2011-04-25  Bruno Haible  <bruno@clisp.org>
17397
17398         strtol, strtoul: Mark modules as obsolete.
17399         * modules/strtol (Status, Notice): New sections.
17400         * modules/strtoul (Status, Notice): New sections.
17401
17402 2011-04-25  Bruno Haible  <bruno@clisp.org>
17403
17404         strtod: Remove check for strtod, unless supporting old platforms.
17405         * modules/strtod-obsolete: New file.
17406         * m4/strtod-obsolete.m4: New file.
17407         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17408         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17409         * modules/strtod (Depends-on): Add strtod-obsolete.
17410         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17411
17412 2011-04-25  Bruno Haible  <bruno@clisp.org>
17413
17414         strcase: Make module obsolete.
17415         * modules/strcase (Status, Notice): New sections.
17416
17417 2011-04-25  Bruno Haible  <bruno@clisp.org>
17418
17419         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17420         * modules/dup2-obsolete: New file.
17421         * m4/dup2-obsolete.m4: New file.
17422         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17423         gl_FUNC_DUP2_OBSOLETE is not also defined.
17424         * modules/dup2 (Depends-on): Add dup2-obsolete.
17425         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17426
17427 2011-04-25  Bruno Haible  <bruno@clisp.org>
17428
17429         strnlen: Avoid memchr related link error on old obsolete platforms.
17430         * modules/memchr-obsolete: New file.
17431         * m4/memchr-obsolete.m4: New file.
17432         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17433         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17434         * modules/memchr (Depends-on): Add memchr-obsolete.
17435         * modules/strnlen (Depends-on): Likewise.
17436         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17437
17438 2011-04-25  Jim Meyering  <meyering@redhat.com>
17439
17440         maint.mk: makefile_at_at_check extend and clean up
17441         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17442         in addition to */Makefile.am.
17443         Exempt legitimate uses of @VAR@ notation, e.g.,
17444         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17445         Remove obsolete coreutils-specific comment.
17446         Prompted by discussion here:
17447         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17448
17449 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17450
17451         strtoul: remove dependency on strtol
17452         This is so that 'configure' need not check for strtol merely because
17453         the application needs strtoul.
17454         * modules/strtoul (Files): Add lib/strtol.c.
17455         (Depends-on): Remove strtol.
17456
17457         strtoull: remove dependency on strtoul
17458         This is like the strtoll change.
17459         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17460         (Depends-on): Remove strtoul.
17461
17462         strtoll: remove dependency on strtol
17463         This is so that 'configure' need not check for strtol merely because
17464         the application needs strtoll.
17465         * modules/strtoll (Files): Add lib/strtol.c.
17466         (Depends-on): Remove strtol.
17467
17468 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17469
17470         inttypes: Move some configure check to module 'imaxdiv'.
17471         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17472         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17473         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17474
17475 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17476
17477         inttypes: Move some configure check to module 'imaxabs'.
17478         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17479         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17480         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17481
17482 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17483
17484         inttypes: Remove configure tests that are not needed since 2009-12-31.
17485         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17486         gl_cv_header_working_inttypes_h.
17487
17488 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17489
17490         * modules/strnlen (Depends-on): Remove memchr.
17491         The strnlen implementation doesn't need the memchr module's fixes; see
17492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17493
17494         strtol: remove dependency on wchar
17495         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17496         * modules/strtol (Depends-on): Remove wchar.
17497
17498 2011-04-21  Eric Blake  <eblake@redhat.com>
17499
17500         passfd: fix test regression on Linux
17501         * modules/passfd-tests (configure.ac): Correct socketpair check.
17502
17503         passfd: speed up configure and drop unused code
17504         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17505         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17506         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17507         Instead of probing at configure for unix_scm_rights_bsd44_way,
17508         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17509         check to a struct member probe.
17510         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17511         (sendfd, recvfd): Update preprocessor checks.
17512         * modules/passfd (Files): Reflect rename, and drop unused file.
17513         (Depends-on): Drop unused dependency.
17514
17515         passfd: allow compilation on mingw
17516         * modules/sys_socket (Depends-on): Add sys_uio.
17517         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17518         iovec and a minimal struct msghdr.
17519         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17520         * tests/test-sys_socket.c (main): Enhance test.
17521         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17522         guaranteed to provide what we need.
17523         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17524         * modules/passfd-tests (Depends-on): Add sys_wait.
17525         * tests/test-passfd.c (main): Skip test on mingw, for now.
17526         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17527         partial 'struct msghdr' implementation.
17528
17529         sys_uio: new module
17530         * modules/sys_uio: New module.
17531         * modules/sys_uio-tests: Likewise.
17532         * lib/sys_uio.in.h: New file.
17533         * m4/sys_uio_h.m4: Likewise.
17534         * tests/test-sys_uio.c: Likewise.
17535         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17536         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17537
17538 2011-04-20  Jim Meyering  <meyering@redhat.com>
17539
17540         useless-if-before-free: avoid false-positive
17541         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17542         disjunct so that it too requires a terminating ";".  Without that,
17543         this script would identify as useless one statement from gcc that
17544         was not:
17545           if (aligned_ptr)
17546             free (((void **) aligned_ptr) [-1]);
17547
17548 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17549
17550         doc: update users.txt.
17551         * users.txt: Add barcode.
17552
17553 2011-04-19  Bruno Haible  <bruno@clisp.org>
17554
17555         ioctl: Remove link dependency on native Windows.
17556         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17557         (gl_close_fn, gl_ioctl_fn): New types.
17558         (struct fd_hook): Renamed from struct close_hook. Change type of
17559         private_close_fn field. Add private_ioctl_fn field.
17560         (close_hook_fn): Add parameter for primary close method.
17561         (execute_close_hooks, execute_all_close_hooks): Likewise.
17562         (ioctl_hook_fn): New type.
17563         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17564         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17565         argument.
17566         (unregister_fd_hook): Renamed from unregister_close_hook.
17567         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17568         Don't include <unistd.h>.
17569         (close): Remove undef.
17570         (anchor): Update.
17571         (execute_close_hooks): Add argument for primary close method.
17572         (execute_all_close_hooks): Likewise.
17573         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17574         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17575         argument. Allow each argument to be NULL.
17576         (unregister_fd_hook): Renamed from unregister_close_hook.
17577         * lib/close.c (rpl_close): Pass 'close' function pointer to
17578         execute_all_close_hooks.
17579         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17580         (primary_ioctl): New function.
17581         (ioctl): Don't call ioctlsocket here. Instead, call
17582         execute_all_ioctl_hooks.
17583         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17584         close method.
17585         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17586         (fd_sockets_hook): Renamed from close_sockets_hook.
17587         (gl_sockets_startup, gl_sockets_cleanup): Update.
17588         * modules/fd-hook: Renamed from modules/close-hook. Update.
17589         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17590         * modules/sockets (Depends-on): Likewise.
17591         * modules/ioctl (Depends-on): Add fd-hook.
17592         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17593         GNULIB_SOCKET.
17594
17595 2011-04-19  Bruno Haible  <bruno@clisp.org>
17596
17597         Move the support of O_NONBLOCK in open() to the 'open' module.
17598         * modules/nonblocking (Depends-on): Remove 'open'.
17599         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17600         gl_cv_have_open_O_NONBLOCK.
17601         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17602         O_NONBLOCK support.
17603         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17604
17605 2011-04-17  Bruno Haible  <bruno@clisp.org>
17606
17607         pipe2: Simplify code.
17608         * lib/pipe2.c (pipe2): Reduce code duplication.
17609
17610 2011-04-17  Bruno Haible  <bruno@clisp.org>
17611
17612         nonblocking: Add comment.
17613         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17614
17615 2011-04-17  Bruno Haible  <bruno@clisp.org>
17616
17617         nonblocking: Add tests for sockets.
17618         * tests/test-nonblocking-socket.sh: New file.
17619         * tests/test-nonblocking-socket-main.c: New file.
17620         * tests/test-nonblocking-socket-child.c: New file.
17621         * tests/test-nonblocking-socket.h: New file.
17622         * tests/socket-server.h: New file.
17623         * tests/socket-client.h: New file.
17624         * modules/nonblocking-socket-tests: New file.
17625         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17626
17627 2011-04-17  Bruno Haible  <bruno@clisp.org>
17628
17629         nonblocking: Add tests for pipes.
17630         * tests/test-nonblocking-pipe.sh: New file.
17631         * tests/test-nonblocking-pipe-main.c: New file.
17632         * tests/test-nonblocking-pipe-child.c: New file.
17633         * tests/test-nonblocking-pipe.h: New file.
17634         * tests/test-nonblocking-writer.h: New file.
17635         * tests/test-nonblocking-reader.h: New file.
17636         * tests/test-nonblocking-misc.h: New file.
17637         * modules/nonblocking-pipe-tests: New file.
17638         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17639
17640 2011-04-16  Bruno Haible  <bruno@clisp.org>
17641
17642         gettext: Clarify the needed programmer actions.
17643         * modules/gettext (Notice): New field.
17644         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17645
17646 2011-04-16  Bruno Haible  <bruno@clisp.org>
17647
17648         strchrnul: Tweak last commit.
17649         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17650         bug.
17651         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17652         as in _GL_FUNCDECL_SYS.
17653         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17654         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17655
17656 2011-04-15  Eric Blake  <eblake@redhat.com>
17657
17658         strchrnul: work around cygwin bug
17659         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17660         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17662         * modules/string (Makefile.am): Substitute it.
17663         * lib/string.in.h (strchrnul): Use it.
17664
17665 2011-04-15  Bruno Haible  <bruno@clisp.org>
17666
17667         Don't require lib/stdio-write.c when only module 'stdio' is used.
17668         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17669         invocation.
17670         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17671
17672 2011-04-14  Bruno Haible  <bruno@clisp.org>
17673
17674         Support non-blocking pipe I/O in read() on native Windows.
17675         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17676         (read): New declaration.
17677         * lib/read.c: New file.
17678         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17679         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17680         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17681         vscanf): New declarations.
17682         * lib/stdio-read.c: New file.
17683         * m4/read.m4: New file.
17684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17685         REPLACE_READ.
17686         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17687         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17688         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17689         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17690         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17691         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17692         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17693         * modules/read: New file.
17694         * modules/nonblocking (Files): Add lib/stdio-read.c.
17695         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17696         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17697         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17698         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17699         * modules/pread (Depends-on): Add read.
17700         * modules/safe-read (Depends-on): Likewise.
17701         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17702         gets, scanf, vfscanf, vscanf): Verify signatures.
17703         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17704         problem with non-blocking pipes.
17705         * doc/posix-functions/fgetc.texi: Likewise.
17706         * doc/posix-functions/fgets.texi: Likewise.
17707         * doc/posix-functions/fread.texi: Likewise.
17708         * doc/posix-functions/fscanf.texi: Likewise.
17709         * doc/posix-functions/getc.texi: Likewise.
17710         * doc/posix-functions/getchar.texi: Likewise.
17711         * doc/posix-functions/gets.texi: Likewise.
17712         * doc/posix-functions/scanf.texi: Likewise.
17713         * doc/posix-functions/vfscanf.texi: Likewise.
17714         * doc/posix-functions/vscanf.texi: Likewise.
17715
17716 2011-04-14  Bruno Haible  <bruno@clisp.org>
17717
17718         Support non-blocking pipe I/O in write() on native Windows.
17719         * lib/write.c (rpl_write): Split a write request that failed merely
17720         because the byte count was larger than the pipe buffer's size.
17721         * doc/posix-functions/write.texi: Mention the problem with large byte
17722         counts.
17723
17724 2011-04-14  Bruno Haible  <bruno@clisp.org>
17725
17726         wchar: Ensure that wchar_t gets defined on uClibc.
17727         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17728         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17729
17730 2011-04-13  Bruno Haible  <bruno@clisp.org>
17731
17732         safe-write, full-read: Avoid unnecessary compilation units.
17733         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17734         (Depends-on): Remove safe-read. Add ssize_t.
17735         * modules/full-read (Files): Add lib/full-write.c.
17736         (Depends-on): Add full-write.
17737
17738 2011-04-13  Bruno Haible  <bruno@clisp.org>
17739
17740         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17741         * modules/pwrite (Depends-on): Add 'write'.
17742
17743 2011-04-13  Bruno Haible  <bruno@clisp.org>
17744
17745         Support non-blocking pipe I/O in write() on native Windows.
17746         * lib/unistd.in.h (write): Enable replacement also if
17747         GNULIB_UNISTD_H_NONBLOCKING is 1.
17748         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17749         (rpl_write): When failing to write on a non-blocking pipe, change
17750         errno from ENOSPC to EAGAIN.
17751         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17752         putchar, puts, vfprintf, vprintf): Enable replacement also if
17753         GNULIB_STDIO_H_NONBLOCKING is 1.
17754         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17755         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17756         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17757         CALL_WITH_SIGPIPE_EMULATION.
17758         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17759         * m4/nonblocking.m4: New file.
17760         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17761         for non-blocking I/O support.
17762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17763         GNULIB_UNISTD_H_NONBLOCKING.
17764         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17765         required for non-blocking I/O support.
17766         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17767         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17768         lib/stdio-write.c, m4/asm-underscore.m4.
17769         (Depends-on): Add stdio, unistd.
17770         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17771         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17772         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17773         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17774         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17775         problem with non-blocking pipes.
17776         * doc/posix-functions/fputc.texi: Likewise.
17777         * doc/posix-functions/fputs.texi: Likewise.
17778         * doc/posix-functions/fwrite.texi: Likewise.
17779         * doc/posix-functions/printf.texi: Likewise.
17780         * doc/posix-functions/putc.texi: Likewise.
17781         * doc/posix-functions/putchar.texi: Likewise.
17782         * doc/posix-functions/puts.texi: Likewise.
17783         * doc/posix-functions/vfprintf.texi: Likewise.
17784         * doc/posix-functions/vprintf.texi: Likewise.
17785         * doc/posix-functions/write.texi: Likewise.
17786
17787 2011-04-10  Jim Meyering  <meyering@redhat.com>
17788
17789         maint.mk: prohibit doubled words
17790         Detect them also when they're separated by a newline.
17791         There are 3 ways to customize it:
17792           - disable the test on a per file basis, as usual with rules using
17793             $(VC_LIST_EXCEPT)
17794           - replace the default doubled-word-selecting regexp (affects all files)
17795           - ignore a particular file-vs-doubled-word match
17796         I nearly used that last one to ignore the "is is" match in
17797         coreutils' NEWS file, since the text was "ls -is is ..."
17798         To do that, I would have added this line to cfg.mk:
17799           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17800         but it would have ignored any "is is" match in NEWS.
17801         Low probability, but still...
17802         Instead, I changed the text, slightly:
17803           -  ls -is is now consistent with ls -lis in ignoring values returned
17804           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17805         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17806         (prohibit_doubled_word_): Define.
17807         (sc_prohibit_doubled_word): New rule.
17808         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17809
17810 2011-04-10  Jim Meyering  <meyering@redhat.com>
17811
17812         maint: fix doubled-word typo in comment
17813         * m4/gethostname.m4: s/is is/it is/
17814         * m4/getdomainname.m4: Likewise.
17815
17816 2011-04-10  Jim Meyering  <meyering@redhat.com>
17817
17818         maint: remove doubled word: s/it it/it/
17819         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17820
17821 2011-04-10  Jim Meyering  <meyering@redhat.com>
17822
17823         maint.mk: remove useless semicolon and backslash
17824         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17825         semicolon and backslash.
17826
17827 2011-04-10  Bruno Haible  <bruno@clisp.org>
17828
17829         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17830         * modules/stdint-tests (Depends-on): Add wchar.
17831
17832 2011-04-10  Jim Meyering  <meyering@redhat.com>
17833
17834         maint: remove doubled words in comments, e.g., s/a a/a/
17835         * lib/strptime.c (day_of_the_week): s/the the/the/
17836         * tests/test-chown.h (test_chown): s/a a/a/
17837
17838         test-chown.h: correct a cast
17839         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17840         when the destination is a stat.st_gid.
17841
17842 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17843
17844         getaddrinfo: Fix test for sa_len member.
17845         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17846         include <sys/types.h> before <sys/socket.h>.
17847
17848 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17849
17850         maint: change "can not" to "cannot"
17851         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17852         boundaries.
17853
17854 2011-04-09  Jim Meyering  <meyering@redhat.com>
17855
17856         maint: change "a a" to "a"
17857         * tests/test-lchown.h (test_lchown): s/a a/a/
17858
17859         maint.mk: prohibit \<the the\>
17860         * top/maint.mk (sc_prohibit_the_the): New rule.
17861
17862         maint: fix "the the" in comment
17863         * lib/count-one-bits.h: s/the the/the/
17864
17865         maint: change "can not" to "cannot"
17866         But do not change the occurrences in maintain.texi or in
17867         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17868         * doc/gnulib-tool.texi: s/can not/cannot/
17869         * doc/posix-functions/accept.texi (accept): Likewise.
17870         * doc/posix-functions/socket.texi (socket): Likewise.
17871         * lib/mbrtowc.c: Likewise.
17872
17873         maint.mk: prohibit use of "can not"
17874         * top/maint.mk (sc_prohibit_can_not): New rule.
17875         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17876
17877 2011-04-09  Bruno Haible  <bruno@clisp.org>
17878
17879         careadlinkat: Guard against misuse of careadlinkatcwd.
17880         * lib/careadlinkat.c: Include <stdlib.h>.
17881         (careadlinkatcwd): Check that the fd argument is as expected.
17882
17883 2011-04-09  Bruno Haible  <bruno@clisp.org>
17884
17885         careadlinkat: Use common coding style.
17886         * lib/careadlinkat.c: Move gnulib includes after system includes.
17887
17888 2011-04-09  Bruno Haible  <bruno@clisp.org>
17889
17890         careadlinkat: Clarify specification.
17891         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17892         (careadlinkatcwd): Add comment.
17893         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17894
17895 2011-04-09  Bruno Haible  <bruno@clisp.org>
17896
17897         areadlinkat: Avoid link error on many platforms.
17898         * modules/areadlinkat (Depends-on): Add areadlink.
17899
17900 2011-04-09  Bruno Haible  <bruno@clisp.org>
17901
17902         allocator, careadlinkat: Fix double-inclusion guard.
17903         * lib/allocator.h: Fix double-inclusion guard.
17904         * lib/careadlinkat.h: Likewise.
17905
17906 2011-04-09  Bruno Haible  <bruno@clisp.org>
17907
17908         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17909         * lib/relocwrapper.c: Update dependencies hierarchy.
17910         * build-aux/install-reloc: Update list of files to be compiled.
17911         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17912         lib/allocator.[hc].
17913
17914 2011-04-08  Eric Blake  <eblake@redhat.com>
17915
17916         strftime: silence gnulib-tool warning
17917         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17918
17919 2011-04-08  Bruno Haible  <bruno@clisp.org>
17920
17921         verify: Fix syntax error with GCC 4.6 in C++ mode.
17922         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17923         (HAVE_STATIC_ASSERT): New macro.
17924         (verify_true, verify): Use 'static_assert' if it is supported and
17925         '_Static_assert' is not supported.
17926
17927 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17928
17929         allocator: New module.
17930         * modules/allocator, lib/allocator.c: New files.
17931         * lib/allocator.h (stdlib_allocator): New decl.
17932         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17933         Remove.  Do not include <stdlib.h>.
17934         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17935         * modules/careadlinkat (Files): Remove lib/allocator.h.
17936         (Depends-on): Add allocator.
17937
17938         stdlib: let modules use system malloc, realloc
17939         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17940         if !_GL_USE_STDLIB_ALLOC.
17941         (malloc, realloc): Limit this change to a smaller scope.
17942
17943         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17944         (malloc, realloc): Don't #undef; no longer needed.
17945         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17946         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17947         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17948         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17949         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17950         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17951         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17952         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17953
17954         careadlinkat: rename members to avoid problem
17955         * lib/allocator.h (struct allocator): Rename members from
17956         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17957         and realloc are #define'd.  Reported by Eric Blake in
17958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17959         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17960
17961 2011-04-08  Eric Blake  <eblake@redhat.com>
17962
17963         nonblocking: reduce dependency
17964         * tests/test-nonblocking.c: Only test sockets when in use.
17965         * modules/nonblocking-tests (Depends-on): Drop socket.
17966         (Makefile.am): Link even if sockets are not present.
17967         * modules/pipe2-tests (Makefile.am): Likewise.
17968         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17969
17970         pipe2: fix O_NONBLOCK support on mingw
17971         * modules/pipe2 (Depends-on): Add nonblocking.
17972         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17973         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17974         * tests/test-nonblocking.c (main): Likewise.
17975         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17976
17977         fcntl-h: fix O_ACCMODE on cygwin
17978         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17979         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17980
17981         pipe-filter: drop O_NONBLOCK workarounds
17982         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17983         * modules/pipe-filter-ii (Depends-on): Likewise.
17984         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17985
17986         nonblocking: provide O_NONBLOCK for mingw
17987         * modules/nonblocking (Depends-on): Add open.
17988         (configure.ac): Set new witness macro.
17989         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17990         * modules/fcntl-h (Makefile.am): Substitute it.
17991         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17992         nonblocking module is in use.
17993         * lib/nonblocking.c: Adjust portability test.
17994         * lib/open.c (open): Don't let native open see gnulib flag.
17995         * tests/test-fcntl-h.c (main): Enhance test.
17996         * tests/test-open.h (test_open): Likewise.
17997         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17998
17999         careadlinkat: fix compilation error on mingw
18000         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18001         within struct allocator.
18002
18003 2011-04-06  Eric Blake  <eblake@redhat.com>
18004
18005         binary-io: relicense under LGPLv2+
18006         * modules/binary-io (License): Relax to LGPLv2+.
18007         Requested for libvirt, and required by pipe2.
18008
18009 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18010
18011         verify: use _Static_assert if available
18012         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18013         (verify_true, verify): Use it if available.  This generates better
18014         diagnostics with GCC 4.6.0 and later.
18015
18016 2011-04-05  Bruno Haible  <bruno@clisp.org>
18017
18018         Remove leftover generated .h files after config.status changed.
18019
18020         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18021         GL_GENERATE_ALLOCA_H.
18022         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18023         GL_GENERATE_ALLOCA_H evaluates to false.
18024
18025         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18026         GL_GENERATE_ARGZ_H.
18027         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18028         evaluates to false.
18029
18030         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18031         GL_GENERATE_BYTESWAP_H.
18032         * modules/byteswap (Makefile.am): Remove byteswap.h if
18033         GL_GENERATE_BYTESWAP_H evaluates to false.
18034
18035         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18036         GL_GENERATE_ERRNO_H.
18037         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18038         evaluates to false.
18039
18040         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18041         GL_GENERATE_FLOAT_H.
18042         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18043         evaluates to false.
18044
18045         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18046         GL_GENERATE_FNMATCH_H.
18047         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18048         GL_GENERATE_FNMATCH_H evaluates to false.
18049
18050         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18051         GL_GENERATE_GLOB_H.
18052         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18053         evaluates to false.
18054
18055         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18056         automake conditional GL_GENERATE_ICONV_H.
18057         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18058         evaluates to false.
18059
18060         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18061         GL_GENERATE_NETINET_IN_H.
18062         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18063         GL_GENERATE_NETINET_IN_H evaluates to false.
18064
18065         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18066         conditional GL_GENERATE_PTHREAD_H.
18067         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18068         * modules/pthread (Makefile.am): Remove pthread.h if
18069         GL_GENERATE_PTHREAD_H evaluates to false.
18070
18071         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18072         GL_GENERATE_SCHED_H.
18073         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18074         evaluates to false.
18075
18076         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18077         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18078         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18079         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18080
18081         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18082         GL_GENERATE_STDARG_H.
18083         * modules/stdarg (Makefile.am): Remove stdarg.h if
18084         GL_GENERATE_STDARG_H evaluates to false.
18085
18086         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18087         GL_GENERATE_STDBOOL_H.
18088         * modules/stdbool (Makefile.am): Remove stdbool.h if
18089         GL_GENERATE_STDBOOL_H evaluates to false.
18090
18091         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18092         conditional GL_GENERATE_STDDEF_H.
18093         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18094         * modules/stddef (Makefile.am): Remove stddef.h if
18095         GL_GENERATE_STDDEF_H evaluates to false.
18096
18097         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18098         GL_GENERATE_STDINT_H.
18099         * modules/stdint (Makefile.am): Remove stdint.h if
18100         GL_GENERATE_STDINT_H evaluates to false.
18101
18102         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18103         GL_GENERATE_SYSEXITS_H.
18104         * modules/sysexits (Makefile.am): Remove sysexits.h if
18105         GL_GENERATE_SYSEXITS_H evaluates to false.
18106
18107         Reported by Karl Berry and Ralf Wildenhues.
18108
18109 2011-04-05  Bruno Haible  <bruno@clisp.org>
18110
18111         Ensure to rebuild generated .h files when config.status has changed.
18112         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18113         config.status.
18114         * modules/ctype (Makefile.am): Likewise.
18115         * modules/dirent (Makefile.am): Likewise.
18116         * modules/errno (Makefile.am): Likewise.
18117         * modules/fcntl-h (Makefile.am): Likewise.
18118         * modules/float (Makefile.am): Likewise.
18119         * modules/getopt-posix (Makefile.am): Likewise.
18120         * modules/glob (Makefile.am): Likewise.
18121         * modules/iconv-h (Makefile.am): Likewise.
18122         * modules/inttypes (Makefile.am): Likewise.
18123         * modules/langinfo (Makefile.am): Likewise.
18124         * modules/locale (Makefile.am): Likewise.
18125         * modules/math (Makefile.am): Likewise.
18126         * modules/netdb (Makefile.am): Likewise.
18127         * modules/netinet_in (Makefile.am): Likewise.
18128         * modules/poll-h (Makefile.am): Likewise.
18129         * modules/pthread (Makefile.am): Likewise.
18130         * modules/pty (Makefile.am): Likewise.
18131         * modules/sched (Makefile.am): Likewise.
18132         * modules/search (Makefile.am): Likewise.
18133         * modules/selinux-h (Makefile.am): Likewise.
18134         * modules/signal (Makefile.am): Likewise.
18135         * modules/spawn (Makefile.am): Likewise.
18136         * modules/stdarg (Makefile.am): Likewise.
18137         * modules/stdbool (Makefile.am): Likewise.
18138         * modules/stddef (Makefile.am): Likewise.
18139         * modules/stdint (Makefile.am): Likewise.
18140         * modules/stdio (Makefile.am): Likewise.
18141         * modules/stdlib (Makefile.am): Likewise.
18142         * modules/string (Makefile.am): Likewise.
18143         * modules/strings (Makefile.am): Likewise.
18144         * modules/sys_file (Makefile.am): Likewise.
18145         * modules/sys_ioctl (Makefile.am): Likewise.
18146         * modules/sys_select (Makefile.am): Likewise.
18147         * modules/sys_socket (Makefile.am): Likewise.
18148         * modules/sys_stat (Makefile.am): Likewise.
18149         * modules/sys_time (Makefile.am): Likewise.
18150         * modules/sys_times (Makefile.am): Likewise.
18151         * modules/sys_utsname (Makefile.am): Likewise.
18152         * modules/sys_wait (Makefile.am): Likewise.
18153         * modules/sysexits (Makefile.am): Likewise.
18154         * modules/termios (Makefile.am): Likewise.
18155         * modules/time (Makefile.am): Likewise.
18156         * modules/unistd (Makefile.am): Likewise.
18157         * modules/wchar (Makefile.am): Likewise.
18158         * modules/wctype-h (Makefile.am): Likewise.
18159         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18160
18161 2011-04-05  Bruno Haible  <bruno@clisp.org>
18162
18163         pipe2: Relicense under LGPLv2+.
18164         * modules/pipe2 (License): Change to LGPLv2+.
18165         Requested by Eric Blake, for libvirt.
18166
18167 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18168
18169         bootstrap: compute gnulib_extra_files after updating build_aux
18170         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18171         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18172
18173 2011-04-05  Eric Blake  <eblake@redhat.com>
18174
18175         bootstrap: preserve git whitelist item sorting
18176         * build-aux/bootstrap (sort_patterns): New function.
18177         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18178
18179 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18180
18181         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18182         sc_space_tab check.
18183
18184 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18185
18186         areadlink, areadlinkat: rewrite in terms of careadlinkat
18187         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18188         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18189         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18190         (malloc, realloc): Remove #undefs.
18191         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18192         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18193         readlink, ssize_t, stdint, unistd.
18194         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18195         areadlink, stdint.
18196
18197         careadlinkat: new module
18198         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18199         * modules/careadlinkat: New files, written by me with
18200         a review and feedback from Ben Pfaff in
18201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18202
18203 2011-04-01  Bruno Haible  <bruno@clisp.org>
18204
18205         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18206         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18207         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18208         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18209         Reported by Bruce Korb <bruce.korb@gmail.com>.
18210
18211 2011-04-01  Bruno Haible  <bruno@clisp.org>
18212
18213         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18214         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18215         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18216         * modules/wcpcpy (Depends-on): Add extensions.
18217         * modules/wcpncpy (Depends-on): Likewise.
18218         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18219         systems.
18220         * doc/posix-functions/wcpncpy.texi: Likewise.
18221         * doc/posix-functions/wcwidth.texi: Likewise.
18222
18223 2011-03-31  Eric Blake  <eblake@redhat.com>
18224
18225         nonblocking: fix mingw test failures
18226         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18227         non-blocking flag on regular file.
18228         (get_nonblocking_flag): Set errno on invalid fd.
18229         * tests/test-nonblocking.c (main): Avoid test failure on
18230         directories if fchdir is not active.
18231         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18232
18233 2011-03-31  Bruno Haible  <bruno@clisp.org>
18234
18235         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18236         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18237         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18238         Reported by Simon Josefsson <simon@josefsson.org>.
18239
18240 2011-03-31  Bruno Haible  <bruno@clisp.org>
18241         and Eric Blake  <eblake@redhat.com>
18242
18243         nonblocking: new module
18244         * modules/nonblocking: New module.
18245         * modules/nonblocking-tests: Likewise.
18246         * lib/nonblocking.h: New file.
18247         * lib/nonblocking.c: Likewise.
18248         * tests/test-nonblocking.c: New test.
18249         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18250
18251 2011-03-30  Bruno Haible  <bruno@clisp.org>
18252
18253         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18254         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18255         instead of 'printf' format for GCC >= 4.4.
18256         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18257         (fprintf, printf, vfprintf, vprintf): Declare with
18258         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18259         the system's vfprintf() function.
18260         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18261
18262 2011-03-30  Eric Blake  <eblake@redhat.com>
18263
18264         passfd: fix scoping bug
18265         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18266         before sendmsg/recvmsg.
18267
18268         passfd: standardize coding conventions
18269         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18270         can be learned at compile time.
18271         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18272         ifdefs.
18273         (sendfd, recvfd): Follow gnulib code conventions.
18274
18275         passfd: fix incorrect sendmsg arguments
18276         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18277         incorrect msg_controllen value.
18278         * modules/passfd-tests (Depends-on): Check for alarm.
18279         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18280         Reported by Bastien ROUCARIES.
18281
18282 2011-03-30  Bruno Haible  <bruno@clisp.org>
18283
18284         c-strcasestr: Relicense under LGPLv2+.
18285         * modules/c-strcasestr (License): Change to LGPLv2+.
18286         Requested by Eric Blake, for libvirt.
18287
18288 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18289
18290         * users.txt: Add libidn2.  Fix libtasn1 link.
18291
18292 2011-03-30  Jim Meyering  <meyering@redhat.com>
18293
18294         tests: readlink* ("",... fails with EINVAL on newer kernels
18295         readlink and readlinkat have typically failed with ENOENT for
18296         the invalid, empty file name,  "".  However, with the advent
18297         of linux-2.6.39, they fail with EINVAL.
18298         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18299         when operating on the empty file name.
18300         * tests/test-readlink.h (test_readlink): Likewise.
18301
18302 2011-03-29  Bruno Haible  <bruno@clisp.org>
18303
18304         Relicense some modules under LGPLv2+, for libidn2.
18305         * modules/array-mergesort (License): Change to LGPLv2+.
18306         * modules/c-strcaseeq (License): Likewise.
18307         * modules/striconveh (License): Likewise.
18308         * modules/striconveha (License): Likewise.
18309         * modules/uniconv/base (License): Likewise.
18310         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18311         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18312         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18313         * modules/unictype/base (License): Likewise.
18314         * modules/unictype/bidiclass-of (License): Likewise.
18315         * modules/unictype/category-M (License): Likewise.
18316         * modules/unictype/category-none (License): Likewise.
18317         * modules/unictype/category-of (License): Likewise.
18318         * modules/unictype/category-test (License): Likewise.
18319         * modules/unictype/category-test-withtable (License): Likewise.
18320         * modules/unictype/combining-class (License): Likewise.
18321         * modules/unictype/joiningtype-of (License): Likewise.
18322         * modules/unictype/scripts (License): Likewise.
18323         * modules/uninorm/base (License): Likewise.
18324         * modules/uninorm/canonical-decomposition (License): Likewise.
18325         * modules/uninorm/composition (License): Likewise.
18326         * modules/uninorm/decompose-internal (License): Likewise.
18327         * modules/uninorm/decomposition-table (License): Likewise.
18328         * modules/uninorm/nfc (License): Likewise.
18329         * modules/uninorm/nfd (License): Likewise.
18330         * modules/uninorm/u32-normalize (License): Likewise.
18331         * modules/unistr/base (License): Likewise.
18332         * modules/unistr/u32-cpy (License): Likewise.
18333         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18334         * modules/unistr/u32-to-u8 (License): Likewise.
18335         * modules/unistr/u32-uctomb (License): Likewise.
18336         * modules/unistr/u8-check (License): Likewise.
18337         * modules/unistr/u8-mblen (License): Likewise.
18338         * modules/unistr/u8-mbtouc (License): Likewise.
18339         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18340         * modules/unistr/u8-mbtoucr (License): Likewise.
18341         * modules/unistr/u8-prev (License): Likewise.
18342         * modules/unistr/u8-strlen (License): Likewise.
18343         * modules/unistr/u8-to-u32 (License): Likewise.
18344         * modules/unistr/u8-uctomb (License): Likewise.
18345         * modules/unitypes (License): Likewise.
18346         Requested by Simon Josefsson.
18347
18348 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18349
18350         lib-symbol-visibility: Add a notice.
18351         * modules/lib-symbol-visibility (Notice): New field.
18352
18353 2011-03-29  Bruno Haible  <bruno@clisp.org>
18354
18355         getaddrinfo: Doc fix.
18356         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18357         section "fixed in Gnulib".
18358
18359 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18360
18361         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18362         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18363
18364 2011-03-26  Bruno Haible  <bruno@clisp.org>
18365
18366         unictype/property-byname: Reduce the number of load-time relocations.
18367         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18368         (UC_PROPERTY_INDEX_*): New enumeration values.
18369         (uc_property_byname): Convert an index from the lookup table to an
18370         uc_property_t.
18371         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18372         values.
18373
18374 2011-03-26  Bruno Haible  <bruno@clisp.org>
18375
18376         unictype/property-byname: Allow omitted word separators and aliases.
18377         * lib/unictype/pr_byname.gperf: Add property names without word
18378         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18379         for 'space'.
18380
18381 2011-03-26  Bruno Haible  <bruno@clisp.org>
18382
18383         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18384         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18385         also hyphens to space.
18386         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18387         without spaces.
18388         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18389
18390 2011-03-26  Bruno Haible  <bruno@clisp.org>
18391
18392         unictype/joiningtype-byname: Recognize long names as well.
18393         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18394         a long name.
18395         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18396         unictype/joiningtype_byname.h.
18397         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18398         * lib/unictype/joiningtype_byname.gperf: New file.
18399         * modules/unictype/joiningtype-byname (Files): Add
18400         lib/unictype/joiningtype_byname.gperf.
18401         (Depends-on): Add gperf.
18402         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18403         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18404         long names.
18405
18406         Tests for module 'unictype/joiningtype-longname'.
18407         * modules/unictype/joiningtype-longname-tests: New file.
18408         * tests/unictype/test-joiningtype_longname.c: New file.
18409
18410         New module 'unictype/joiningtype-longname'.
18411         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18412         * lib/unictype/joiningtype_longname.c: New file.
18413         * modules/unictype/joiningtype-longname: New file.
18414         * modules/unictype/joiningtype-all (Depends-on): Add
18415         unictype/joiningtype-longname.
18416
18417 2011-03-26  Bruno Haible  <bruno@clisp.org>
18418
18419         unictype/bidiclass-byname: Recognize long names as well.
18420         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18421         name.
18422         * lib/unictype/bidi_byname.c: Include <string.h>,
18423         unictype/bidi_byname.h.
18424         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18425         * lib/unictype/bidi_byname.gperf: New file.
18426         * modules/unictype/bidiclass-byname (Files): Add
18427         lib/unictype/bidi_byname.gperf.
18428         (Depends-on): Add gperf.
18429         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18430         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18431         long names.
18432
18433         Tests for module 'unictype/bidiclass-longname'.
18434         * modules/unictype/bidiclass-longname-tests: New file.
18435         * tests/unictype/test-bidi_longname.c: New file.
18436
18437         New module 'unictype/bidiclass-longname'.
18438         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18439         * lib/unictype/bidi_longname.c: New file.
18440         * modules/unictype/bidiclass-longname: New file.
18441         * modules/unictype/bidiclass-all (Depends-on): Add
18442         unictype/bidiclass-longname.
18443
18444 2011-03-26  Bruno Haible  <bruno@clisp.org>
18445
18446         unictype/bidi*: Rename modules.
18447         * modules/unictype/bidiclass-all: Renamed from
18448         modules/unictype/bidicategory-all.
18449         * modules/unictype/bidiclass-name: Renamed from
18450         modules/unictype/bidiclass-name.
18451         (Description): Update.
18452         * modules/unictype/bidiclass-name-tests: Renamed from
18453         modules/unictype/bidicategory-name-tests.
18454         * modules/unictype/bidiclass-byname: Renamed from
18455         modules/unictype/bidicategory-byname.
18456         (Description): Update.
18457         * modules/unictype/bidiclass-byname-tests: Renamed from
18458         modules/unictype/bidicategory-byname-tests.
18459         * modules/unictype/bidiclass-of: Renamed from
18460         modules/unictype/bidicategory-of.
18461         (Description): Update.
18462         * modules/unictype/bidiclass-of-tests: Renamed from
18463         modules/unictype/bidicategory-of-tests.
18464         * modules/unictype/bidiclass-test: Renamed from
18465         modules/unictype/bidicategory-test.
18466         (Description): Update.
18467         * modules/unictype/bidiclass-test-tests: Renamed from
18468         modules/unictype/bidicategory-test-tests.
18469         * modules/unictype/bidicategory-all: New file, a simple redirection.
18470         * modules/unictype/bidicategory-name: Likewise.
18471         * modules/unictype/bidicategory-byname: Likewise.
18472         * modules/unictype/bidicategory-of: Likewise.
18473         * modules/unictype/bidicategory-test: Likewise.
18474         * modules/unictype/property-bidi-* (Dependencies): Update.
18475         * lib/unictype/bidi_*.c: Update comment.
18476
18477 2011-03-26  Bruno Haible  <bruno@clisp.org>
18478
18479         unictype/bidi*: Rename functions, part 2.
18480         * modules/unictype/bidicategory-name (configure.ac): Update required
18481         libunistring version.
18482         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18483
18484 2011-03-25  Bruno Haible  <bruno@clisp.org>
18485
18486         New module 'unictype/combining-class-all'.
18487         * modules/unictype/combining-class-all: New file.
18488
18489         Tests for module 'unictype/combining-class-byname'.
18490         * modules/unictype/combining-class-byname-tests: New file.
18491         * tests/unictype/test-combiningclass_byname.c: New file.
18492
18493         New module 'unictype/combining-class-byname'.
18494         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18495         * lib/unictype/combiningclass_byname.c: New file.
18496         * lib/unictype/combiningclass_byname.gperf: New file.
18497         * modules/unictype/combining-class-byname: New file.
18498
18499         Tests for module 'unictype/combining-class-longname'.
18500         * modules/unictype/combining-class-longname-tests: New file.
18501         * tests/unictype/test-combiningclass_longname.c: New file.
18502
18503         New module 'unictype/combining-class-longname'.
18504         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18505         * lib/unictype/combiningclass_longname.c: New file.
18506         * modules/unictype/combining-class-longname: New file.
18507
18508         Tests for module 'unictype/combining-class-name'.
18509         * modules/unictype/combining-class-name-tests: New file.
18510         * tests/unictype/test-combiningclass_name.c: New file.
18511
18512         New module 'unictype/combining-class-name'.
18513         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18514         * lib/unictype/combiningclass_name.c: New file.
18515         * modules/unictype/combining-class-name: New file.
18516
18517 2011-03-25  Bruno Haible  <bruno@clisp.org>
18518
18519         unictype/combining-class: Rename source files.
18520         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18521         of unictype/combining.h.
18522         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18523         Update.
18524         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18525         * modules/unictype/combining-class (Description): Fix.
18526         (Files, Makefile.am): Update.
18527         * tests/unictype/test-combiningclass.c: Renamed from
18528         tests/unictype/test-combining.c.
18529         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18530
18531 2011-03-25  Bruno Haible  <bruno@clisp.org>
18532
18533         unictype: Update list of canonical combining classes.
18534         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18535
18536 2011-03-25  Bruno Haible  <bruno@clisp.org>
18537
18538         unictype/category-byname: Recognize long names as well.
18539         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18540         a long name.
18541         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18542         unictype/categ_byname.h.
18543         (UC_CATEGORY_INDEX_*): New enumeration values.
18544         (uc_general_category_byname): Use uc_general_category_lookup and
18545         convert from index to value.
18546         * lib/unictype/categ_byname.gperf: New file.
18547         * modules/unictype/category-byname (Files): Add
18548         lib/unictype/categ_byname.gperf.
18549         (Depends-on): Add gperf.
18550         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18551         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18552         long names.
18553
18554         Tests for module 'unictype/category-longname'.
18555         * modules/unictype/category-longname-tests: New file.
18556         * tests/unictype/test-categ_longname.c: New file.
18557
18558         New module 'unictype/category-longname'.
18559         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18560         * lib/unictype/categ_longname.c: New file.
18561         * modules/unictype/category-longname: New file.
18562         * modules/unictype/category-all (Depends-on): Add it.
18563
18564 2011-03-25  Bruno Haible  <bruno@clisp.org>
18565
18566         Tests for module 'unictype/category-LC'.
18567         * modules/unictype/category-LC-tests: New file.
18568         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18569
18570         New module 'unictype/category-LC'.
18571         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18572         (UC_CATEGORY_LC): New declaration.
18573         (UC_CASED_LETTER): New macro.
18574         * lib/gen-uni-tables.c (is_category_LC): New function.
18575         (output_categories): Also handle category LC.
18576         (UC_CATEGORY_MASK_LC): New enumeration value.
18577         (general_category_byname): Also handle category LC.
18578         * lib/unictype/categ_LC.c: New file.
18579         * lib/unictype/categ_LC.h: New file, automatically generated.
18580         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18581         category LC.
18582         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18583         * modules/unictype/category-LC: New file.
18584         * modules/unictype/category-byname (Depends-on): Add
18585         unictype/category-LC.
18586         * modules/unictype/category-all (Depends-on): Likewise.
18587
18588 2011-03-25  Eric Blake  <eblake@redhat.com>
18589
18590         xmalloc: revert yesterday's regression
18591         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18592         realloc's underlying behavior (allowing allocation of zero-size
18593         objects, especially if malloc-gnu is also in use).
18594
18595 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18596
18597         maint.mk: add missing version to VC-tag
18598         * top/maint.mk: git tag was missing actual tag name; add it.
18599
18600         valgrind: do leak checking, and exit with code 1 on error (not 0)
18601         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18602         to VALGRIND.
18603
18604 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18605
18606         posix-modules: say what it does.
18607         * posix-modules: Add a line to the --help output saying what it does.
18608
18609 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18610
18611         xmalloc: Do not leak if underlying realloc is C99 compatible.
18612         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18613         This avoids a leak on C99-based systems.  See
18614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18615
18616 2011-03-24  Eric Blake  <eblake@redhat.com>
18617
18618         realloc: document portability problem
18619         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18620         passing 0 size to realloc.
18621
18622 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18623
18624         doc: update users.txt
18625         * users.txt: Add cvsps, tmpwatch
18626
18627 2011-03-23  Matt Rice  <ratmice@gmail.com>
18628
18629         doc: update users.txt
18630         * users.txt: Add gdb.
18631
18632 2011-03-23  Jim Meyering  <meyering@redhat.com>
18633
18634         doc: update users.txt
18635         Looking through matches up to the following URL (there are still
18636         several more pages), I found several projects that use gnulib:
18637         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18638         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18639         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18640
18641 2011-03-22  Bruno Haible  <bruno@clisp.org>
18642
18643         unictype/bidi*: Rename functions.
18644         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18645         uc_bidi_class, uc_is_bidi_class): New declarations.
18646         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18647         uc_bidi_category_byname.
18648         (uc_bidi_category_byname): New function.
18649         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18650         u_bidi_category_name.
18651         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18652         (uc_bidi_category_name): New function.
18653         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18654         uc_bidi_category.
18655         (uc_bidi_category): New function.
18656         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18657         uc_is_bidi_category. Invoke uc_bidi_class.
18658         (uc_is_bidi_category): New function.
18659         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18660         instead of uc_bidi_category_byname.
18661         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18662         instead of uc_bidi_category_name.
18663         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18664         uc_bidi_category.
18665         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18666         instead of uc_is_bidi_category.
18667
18668 2011-03-21  Bruno Haible  <bruno@clisp.org>
18669
18670         New module 'unictype/joininggroup-all'.
18671         * modules/unictype/joininggroup-all: New file.
18672
18673         Tests for module 'unictype/joininggroup-of'.
18674         * modules/unictype/joininggroup-of-tests: New file.
18675         * tests/unictype/test-joininggroup_of.c: New file.
18676         * tests/unictype/test-joininggroup_of.h: New file, automatically
18677         generated by gen-uni-tables.
18678
18679         New module 'unictype/joininggroup-of'.
18680         * modules/unictype/joininggroup-of: New file.
18681         * lib/unictype/joininggroup_of.c: New file.
18682         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18683         gen-uni-tables.
18684
18685         Tests for module 'unictype/joininggroup-byname'.
18686         * modules/unictype/joininggroup-byname-tests: New file.
18687         * tests/unictype/test-joininggroup_byname.c: New file.
18688
18689         New module 'unictype/joininggroup-byname'.
18690         * modules/unictype/joininggroup-byname: New file.
18691         * lib/unictype/joininggroup_byname.c: New file.
18692         * lib/unictype/joininggroup_byname.gperf: New file.
18693
18694         Tests for module 'unictype/joininggroup-name'.
18695         * modules/unictype/joininggroup-name-tests: New file.
18696         * tests/unictype/test-joininggroup_name.c: New file.
18697
18698         New module 'unictype/joininggroup-name'.
18699         * modules/unictype/joininggroup-name: New file.
18700         * lib/unictype/joininggroup_name.c: New file.
18701         * lib/unictype/joininggroup_name.h: New file.
18702
18703         New module 'unictype/joiningtype-all'.
18704         * modules/unictype/joiningtype-all: New file.
18705
18706         Tests for module 'unictype/joiningtype-of'.
18707         * modules/unictype/joiningtype-of-tests: New file.
18708         * tests/unictype/test-joiningtype_of.c: New file.
18709         * tests/unictype/test-joiningtype_of.h: New file, automatically
18710         generated by gen-uni-tables.
18711
18712         New module 'unictype/joiningtype-of'.
18713         * modules/unictype/joiningtype-of: New file.
18714         * lib/unictype/joiningtype_of.c: New file.
18715         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18716         gen-uni-tables.
18717
18718         Tests for module 'unictype/joiningtype-byname'.
18719         * modules/unictype/joiningtype-byname-tests: New file.
18720         * tests/unictype/test-joiningtype_byname.c: New file.
18721
18722         New module 'unictype/joiningtype-byname'.
18723         * modules/unictype/joiningtype-byname: New file.
18724         * lib/unictype/joiningtype_byname.c: New file.
18725
18726         Tests for module 'unictype/joiningtype-name'.
18727         * modules/unictype/joiningtype-name-tests: New file.
18728         * tests/unictype/test-joiningtype_name.c: New file.
18729
18730         New module 'unictype/joiningtype-name'.
18731         * modules/unictype/joiningtype-name: New file.
18732         * lib/unictype/joiningtype_name.c: New file.
18733
18734         unictype: Add support for Arabic shaping properties.
18735         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18736         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18737         declarations.
18738         (UC_JOINING_GROUP_*): New enumeration values.
18739         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18740         declarations.
18741         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18742         (unicode_joining_type): New variable.
18743         (UC_JOINING_GROUP_*): New enumeration values.
18744         (unicode_joining_group): New variable.
18745         (fill_arabicshaping, joining_type_as_c_identifier,
18746         output_joining_type_test, output_joining_type,
18747         joining_group_as_c_identifier, output_joining_group_test,
18748         output_joining_group): New functions.
18749         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18750         fill_arabicshaping and output_joining_type_test, output_joining_type,
18751         output_joining_group_test, output_joining_group.
18752         Reported by Simon Josefsson.
18753
18754 2011-03-21  Jim Meyering  <meyering@redhat.com>
18755
18756         strftime: fix a bug in yesterday's change
18757         * lib/strftime.c (add): Accommodate width's initial value of -1.
18758         Otherwise, nstrftime would copy uninitialized data into
18759         the result buffer.
18760
18761 2011-03-21  Jim Meyering  <meyering@redhat.com>
18762
18763         tests: add strftime-tests module
18764         * tests/test-strftime.c: New file.
18765         * modules/strftime-tests: New module.
18766
18767 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18768
18769         strftime: don't assume a byte count fits in 'int'
18770         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18771         found this problem by static analysis, using gcc -Wstrict-overflow
18772         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18773         on an integer overflow having undefined behavior, but it turns out
18774         that the argument is a size, which might not fit in 'int' anyway,
18775
18776 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18777
18778         stdio: don't require ignore_value around fwrite
18779
18780         This patch works around libc bug 11959
18781         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18782         Without this patch, applications must often write
18783         ignore_value (fwrite (...)) even though the ignore_value is
18784         not helpful here.  It's common to write many objects, using
18785         fwrite/printf/etc., and then use ferror to detect output error.
18786
18787         I considered making this patch optional, but decided against it,
18788         because libc is obviously being inconsistent here: there is no
18789         reason libc should insist that user code must inspect fwrite
18790         return's value without also insisting that it inspect printf's,
18791         putchar's, etc.  If user code wants to have a strict style where
18792         all these functions' values are checked (so that ferror need not
18793         be checked), we could add support for that style in a new gnulib
18794         module, but in the meantime it's better to be consistent and to
18795         support common usage.
18796
18797         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18798         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18799         that we are compiling in checking mode, and if not C++, and
18800         if not already wrapping fwrite for some other reason.
18801         (fwrite): #define to rpl_fwrite if the latter is defined.
18802
18803 2011-03-20  Bruno Haible  <bruno@clisp.org>
18804
18805         verror: Fix compilation error introduced on 2011-02-13.
18806         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18807         instead of __attribute__.
18808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18809
18810 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18811             Bruno Haible  <bruno@clisp.org>
18812
18813         socklen: do not depend on sys_socket
18814         While trying to modify Emacs to use gnulib's socklen module,
18815         I discovered a circular dependency: socklen depends on sys_socket
18816         and vice versa.  Emacs can use socklen, but it does not need
18817         sys_socket because it has its own substitute for sys/socket.h.
18818         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18819         gl_TYPE_SOCKLEN_T.
18820         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18821         gl_PREREQ_SYS_H_SOCKET.
18822         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18823         gl_PREREQ_SYS_H_SOCKET.
18824         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18825         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18826         * modules/socklen (Depends-on): Do not depend on sys_socket.
18827         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18828
18829 2011-03-20  Jim Meyering  <meyering@redhat.com>
18830
18831         maint.mk: sort file names *after* new transformation
18832         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18833         prefix would have led to an unwarranted failure in GNU parted.
18834         Sort after that transformation.
18835
18836 2011-03-19  Jim Meyering  <meyering@redhat.com>
18837
18838         maint.mk: fix po-file syntax-check rule
18839         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18840         Patch by Bruno Haible.
18841
18842 2011-03-19  Bruno Haible  <bruno@clisp.org>
18843
18844         socklen: Update comment.
18845         * m4/socklen.m4: Update comment about platforms.
18846
18847 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18848             Bruno Haible  <bruno@clisp.org>
18849
18850         inet_ntop, inet_pton: Simplify.
18851         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18852         documented to provide socklen_t and we already depend on sys_socket.
18853         * modules/inet_pton (Depends-on): Likewise.
18854         * lib/arpa_inet.in.h: Adjust comment.
18855
18856 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18857             Bruno Haible  <bruno@clisp.org>
18858
18859         netdb: Simplify.
18860         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18861         documented to provide socklen_t and we already depend on sys_socket.
18862         * lib/netdb.in.h: Adjust comment.
18863
18864 2011-03-19  Bruno Haible  <bruno@clisp.org>
18865
18866         sys_socket, netdb: Document problem with socklen_t.
18867         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18868         platforms.
18869         * doc/posix-headers/netdb.texi: Likewise.
18870
18871 2011-03-18  Eric Blake  <eblake@redhat.com>
18872
18873         maint.mk: let po check work in VPATH build
18874         * top/maint.mk (po_file): Allow cfg.mk override.
18875         (sc_po_check): Allow VPATH use.
18876         Reported by Jiri Denemark.
18877
18878 2011-03-16  Jim Meyering  <meyering@redhat.com>
18879
18880         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18881         Before, you would have had to create one .x-sc_ file per rule in order
18882         to exempt offending files.  Now, you may instead use a Make variable --
18883         usually defined in cfg.mk -- whose name identifies the affected rule.
18884         * top/maint.mk (_sc_excl): Define.
18885         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18886         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18887
18888 2011-03-13  Bruno Haible  <bruno@clisp.org>
18889
18890         ignore-value tests: Avoid warnings.
18891         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18892         empty for gcc < 3.4.
18893
18894 2011-03-13  Bruno Haible  <bruno@clisp.org>
18895
18896         passfd: Fix link error on Solaris.
18897         * modules/passfd (Description): Correct.
18898         (Depends-on): Add socketlib.
18899         (Link): New section.
18900         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18901
18902 2011-03-13  Bruno Haible  <bruno@clisp.org>
18903
18904         passfd: Fix link error on AIX 5.2.
18905         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18906
18907 2011-03-13  Bruno Haible  <bruno@clisp.org>
18908
18909         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18910         * lib/sys_socket.in.h: Include <stddef.h>.
18911         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18912         CMSG_FIRSTHDR. Remove unused variable.
18913
18914 2011-03-13  Bruno Haible  <bruno@clisp.org>
18915
18916         passfd: Fix compilation error on OpenBSD.
18917         * lib/passfd.c: Include <sys/uio.h>.
18918
18919 2011-03-13  Bruno Haible  <bruno@clisp.org>
18920
18921         passfd test: Fix warnings.
18922         * tests/test-passfd.c: Include <sys/wait.h>.
18923         (main): Fix typo.
18924
18925 2011-03-13  Bruno Haible  <bruno@clisp.org>
18926
18927         passfd module, part 4, tweaks.
18928         * tests/test-passfd.c: Reorder includes.
18929         (main): Fix perror and printf calls.
18930
18931 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18932
18933         passfd module, part 4.
18934         * modules/passfd-tests: New file.
18935         * tests/test-passfd.c: New file.
18936
18937 2011-03-13  Jim Meyering  <meyering@redhat.com>
18938
18939         Makefile: rely on GNU make; derive syntax-check rule names
18940         Rather than requiring that each sc_ rule be listed as a dependent
18941         of "check", use features of GNU make to derive the list.
18942         * Makefile (syntax-check-rules): Define.
18943         (check): Depend on the new variable, not the hard-coded list.
18944
18945 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18946             Bruno Haible  <bruno@clisp.org>
18947
18948         passfd module, part 3.
18949         * lib/passfd.h (recvfd): Add a flags argument.
18950         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18951         (recvfd): Add a flags argument.
18952         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18953         exists.
18954         * modules/passfd (Depends-on): Add cloexec.
18955         Suggested by Eric Blake.
18956
18957 2011-03-13  Bruno Haible  <bruno@clisp.org>
18958
18959         passfd module, part 2, tweaks.
18960         * modules/passfd (Files): Reorder.
18961         (Depends-on): Remove errno.
18962         (Include): Remove <sys/socket.h>, <sys/un.h>.
18963         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18964         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18965         specification header. Include <sys/socket.h> always. Don't include
18966         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18967         (sendfd): Clarify that it sets errno when it fails.
18968         (recvfd): Fix specification.
18969
18970 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18971
18972         passfd module, part 2.
18973         * modules/passfd: New file.
18974         * lib/passfd.h: New file.
18975         * lib/passfd.c: New file.
18976
18977 2011-03-12  Bruno Haible  <bruno@clisp.org>
18978
18979         wcswidth, mbswidth: Avoid integer overflow.
18980         * lib/wcswidth.c: Include <limits.h>.
18981         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18982         * lib/mbswidth.c: Include <limits.h>.
18983         (mbsnwidth): Avoid 'int' overflow.
18984         Reported by Jim Meyering.
18985
18986 2011-03-12  Bruno Haible  <bruno@clisp.org>
18987
18988         futimens, utimensat: Avoid endless recursion on Solaris 10.
18989         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18990         Solaris.
18991         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18992         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18993
18994 2011-03-11  Jim Meyering  <meyering@redhat.com>
18995
18996         maint.mk: relax a regexp to accommodate other formatting styles
18997         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18998         between "ngettext" and the following "(".
18999
19000 2011-03-11  Pádraig Brady <P@draigBrady.com>
19001
19002         maint.mk: suppress a false positive warning
19003         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19004         diagnostics are marked with ngettext.
19005
19006 2011-03-10  Eric Blake  <eblake@redhat.com>
19007
19008         wchar: add explicit dependencies, for Tru64
19009         * modules/mbmemcasecoll (Depends-on): Add wchar.
19010         * modules/mbtowc (Depends-on): Likewise.
19011         * modules/vasnprintf (Depends-on): Likewise.
19012         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19013         * modules/wctomb (Depends-on): Likewise.
19014         Reported by Peter O'Gorman.
19015
19016 2011-03-08  Bruno Haible  <bruno@clisp.org>
19017
19018         passfd module, part 1, tweaks.
19019         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19020         Improve indentation. Improve AC_MSG_CHECKING messages.
19021         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19022         gl_SOCKET_FAMILIES.
19023
19024 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19025
19026         passfd module, part 1.
19027         * m4/afunix.m4: New file.
19028         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19029         sockets.
19030
19031 2011-03-08  Bruno Haible  <bruno@clisp.org>
19032
19033         regex-quote: New API.
19034         * lib/regex-quote.h: Include <stdbool.h>.
19035         (struct regex_quote_spec): New type.
19036         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19037         New declarations.
19038         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19039         'const struct regex_quote_spec *' argument.
19040         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19041         (pcre_special): New constant.
19042         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19043         New functions.
19044         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19045         'const struct regex_quote_spec *' argument.
19046         * modules/regex-quote (Depends-on): Add stdbool.
19047         * tests/test-regex-quote.c (check): Update for new API. Add test for
19048         anchored results.
19049         * NEWS: Mention the API change.
19050         Reported by Reuben Thomas and Eric Blake.
19051
19052 2011-03-06  Bruno Haible  <bruno@clisp.org>
19053
19054         regex-quote: Fix creation of POSIX extended regular expressions.
19055         * lib/regex-quote.c (ere_special): Add grouping and alternation
19056         operators.
19057
19058 2011-03-05  Bruno Haible  <bruno@clisp.org>
19059
19060         doc: Improve doc regarding autopoint vs. gnulib.
19061         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19062         disable autopoint while running autoreconf.
19063         Suggested by Ralf Wildenhues.
19064
19065 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19066
19067         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19068         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19069
19070 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19071
19072         parse-duration: remove xalloc.h dependency
19073         * lib/parse-duration.c (parse_period): handle NULL return from
19074         strdup instead of calling xstrdup().
19075         * modules/parse-duration: remove "xalloc" dependency
19076
19077 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19078
19079         bootstrap: honor m4_base when running aclocal
19080         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19081
19082 2011-03-02  Jim Meyering  <meyering@redhat.com>
19083
19084         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19085         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19086         on request from Matt Booth.
19087
19088 2011-03-01  Eric Blake  <eblake@redhat.com>
19089
19090         test-link: work on Hurd
19091         * tests/test-link.h (test_link): Hurd rejects linking directories
19092         with EISDIR instead of the POSIX-mandated EPERM.
19093
19094 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19095
19096         stdio: simplify by moving files to printf-posix, sigpipe
19097         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19098         since this symbol is needed only if printf is replaced.
19099         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19100         Require gl_ASM_SYMBOL_PREFIX.
19101         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19102         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19103         (Depends-on): Add 'raise'.
19104         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19105         * modules/stdio (Files): Remove lib/stdio-write.c,
19106         m4/asm-underscore.m4.
19107         (Depends-on): Remove 'raise'.
19108
19109         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19110         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19111         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19112         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19113
19114 2011-02-28  Bruno Haible  <bruno@clisp.org>
19115
19116         localcharset: Assume ANSI C behaviour of free().
19117         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19118         calling free().
19119         Suggested by Simon Josefsson <simon@josefsson.org>.
19120
19121 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19122             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19123             Bruno Haible  <bruno@clisp.org>  (tiny change)
19124
19125         On Cygwin, use /proc file system instead of win32 API.
19126         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19127         Win32 file names.
19128         (DllMain): Simplify by removing Cygwin specific code.
19129         (find_shared_library_fullname): Use Linux specific implementation also
19130         for Cygwin.
19131         (get_shared_library_fullname): Update accordingly.
19132         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19133         Win32 file names.
19134         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19135         Cygwin specific code.
19136
19137 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19138             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19139
19140         Fix OpenMP flag detection for various Fortran compilers.
19141         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19142         OpenMP-conditional compilation construct, to force compile
19143         failure with missing OpenMP flag.
19144         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19145
19146 2011-02-25  Eric Blake  <eblake@redhat.com>
19147
19148         strstr: expand test coverage
19149         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19150         compilation.
19151         * tests/test-memmem.c (main): Duplicate tests.
19152         * tests/test-strcasestr.c (main): Likewise.
19153         * tests/test-c-strcasestr.c (main): Likewise.
19154
19155 2011-02-25  Jim Meyering  <meyering@redhat.com>
19156
19157         maint.mk: detect missing-NL-at-EOF, too
19158         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19159         it also detects when a file lacks a newline at EOF.
19160         (require_exactly_one_NL_at_EOF_): Renamed from
19161         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19162         since people may well have .x-sc_... file names tied to the
19163         existing name.  Suggested by Eric Blake.
19164
19165 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19166
19167         dirname: move m4/dos.m4 functionality into lib/dosname.h
19168
19169         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19170         extracts symbols from it, puts them into config.h; but it's much
19171         easier to use the symbols directly.  filename.h already does this,
19172         but it disagrees with dos.m4 in some respects.  This patch
19173         introduces a different include file dosname.h that packages up
19174         dos.m4, and then later we can work on merging filename.h and
19175         dosname.h.  Applications that need only the easy-to-configure
19176         symbols should consider including dosname.h rather than dirname.h.
19177         * NEWS: Mention incompatible changes.
19178         * m4/dos.m4: Remove.
19179         * lib/dosname.h, modules/dosname: New files.
19180         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19181         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19182         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19183         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19184         Include dosname.h, not dirname.h.
19185         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19186         Include dosname.h, for definitions of symbols like ISSLASH
19187         that used to be in config.h.
19188         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19189         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19190         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19191         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19192         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19193         * modules/rmdir (Files): Likewise.
19194         * modules/stat (Files): Likewise.
19195         * modules/unlink (Files): Likewise.
19196         * modules/dirname-lgpl (Depends-on): Add dosname.
19197         * modules/lstat (Depends-on): Likewise.
19198         * modules/openat (Depends-on): Likewise.
19199         * modules/rmdir (Depends-on): Likewise.
19200         * modules/savewd (Depends-on): Likewise.
19201         * modules/stat (Depends-on): Likewise.
19202         * modules/unlink (Depends-on): Likewise.
19203         * modules/openat (Depends-on): Remove dirname-lgpl.
19204         * modules/savewd (Depends-on): Likewise.
19205         * tests/test-dirname.c: Do not use removed symbols like
19206         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19207         the remaining symbols, e.g., ISSLASH ('\\').
19208
19209 2011-02-25  Eric Blake  <eblake@redhat.com>
19210
19211         strstr: revert patches that introduced bug and pessimization
19212         * lib/str-two-way.h: Add another reference.
19213         (two_way_short_needle, two_way_long_needle): Revert changes from
19214         2011-02-24; they pessimize search speed.
19215         (critical_factorization): Partially revert changes from
19216         2010-06-22; they violate the requirement that the left half of the
19217         needle be smaller than the period of the needle.
19218
19219 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19220
19221         filenamecat: remove unnecessary dependency on dirname-lgpl
19222         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19223         is no direct dependency, just an indirect one via filenamecat-lgpl.
19224
19225         remove: remove unnecessary use of m4/dos.m4
19226         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19227         * modules/remove (FILES): Remove m4/dos.m4.
19228
19229         * lib/openat-proc.c: Don't include dirname.h; not needed.
19230
19231         backupfile: remove unnecessary use of m4/dos.m4
19232         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19233         of its symbols are used by the backupfile code.  backupfile.c does
19234         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19235         for the rare case of programs that want all their backup file
19236         names to live within 8+3 limits, and dos.m4 doesn't address that.
19237         * modules/backupfile (Files): Remove m4/dos.m4.
19238
19239 2011-02-24  Jim Meyering  <meyering@redhat.com>
19240
19241         strstr: fix a bug whereby strstr would mistakenly return NULL
19242         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19243         in period calculation.
19244         (two_way_long_needle): Likewise.
19245         The original problem was reported by Mike Stump in
19246         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19247         Ralf Wildenhues provided the short needle and haystack.
19248         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19249         Add a more involved test to trigger the bug in two_way_long_needle.
19250
19251 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19252
19253         gnulib-tool: remove use of bold display in help screen
19254         * gnulib-tool (func_usage): Do not use bold display anymore in the
19255         help screen.  That was just meant to be a temporary emphasis for a
19256         backward-incompatible change.
19257
19258 2011-02-23  Bruno Haible  <bruno@clisp.org>
19259
19260         Fix misindentation of preprocessor directives.
19261         * lib/argp-namefrob.h: Reindent preprocessor directives.
19262         * lib/getopt_int.h (struct _getopt_data): Likewise.
19263         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19264         * lib/vasnprintf.c (decode_long_double): Likewise.
19265         * tests/test-argmatch.c: Insert blank lines, for clarity.
19266         * tests/test-exclude.c: Likewise.
19267
19268 2011-02-22  Bruno Haible  <bruno@clisp.org>
19269
19270         ioctl: Fix for MacOS X in 64-bit mode.
19271         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19272         value.
19273         Suggested by Eric Blake.
19274         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19275
19276 2011-02-22  Jim Meyering  <meyering@redhat.com>
19277
19278         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19279         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19280         in lib/.
19281
19282 2011-02-22  Eric Blake  <eblake@redhat.com>
19283
19284         maint: avoid any CDPATH issue
19285         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19286
19287         maint: adjust cpp indentation for my modules, as well
19288         * Makefile (sc_cpp_indent_check): Add my name.
19289         * lib/fbufmode.c: Filter through cppi.
19290         * lib/fpurge.c: Likewise.
19291         * lib/freadable.c: Likewise.
19292         * lib/freading.c: Likewise.
19293         * lib/fwritable.c: Likewise.
19294         * lib/fwriting.c: Likewise.
19295         * lib/sigaction.c: Likewise.
19296
19297 2011-02-22  Jim Meyering  <meyering@redhat.com>
19298
19299         maint: adjust cpp indentation to reflect nesting depth
19300         I.e., in a block of code that begins with an unnested "#if",
19301         put one space between the "#" in column 1 and following token.
19302         For example,
19303         -#include <sys/vfs.h>
19304         +# include <sys/vfs.h>
19305         Do this only in .c files that are part of a module I maintain.
19306         * lib/linkat.c: Filter through cppi.
19307         * lib/nanosleep.c: Likewise.
19308         * lib/openat.c: Likewise.
19309         * lib/openat-die.c: Likewise.
19310         * lib/dup3.c: Likewise.
19311         * lib/fchownat.c: Likewise.
19312         * lib/flock.c: Likewise.
19313         * lib/fsync.c: Likewise.
19314         * lib/fts.c: Likewise.
19315         * lib/getpass.c: Likewise.
19316         * lib/gettimeofday.c: Likewise.
19317         * lib/userspec.c: Likewise.
19318         * Makefile (sc_cpp_indent_check): New rule, to check this.
19319
19320 2011-02-22  Bruno Haible  <bruno@clisp.org>
19321
19322         New module 'wctomb'.
19323         * lib/stdlib.in.h (wctomb): New declaration.
19324         * lib/wctomb.c: New file.
19325         * lib/wctomb-impl.h: New file.
19326         * m4/wctomb.m4: New file.
19327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19328         REPLACE_WCTOMB.
19329         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19330         REPLACE_WCTOMB.
19331         * modules/wctomb: New file.
19332         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19333         * doc/posix-functions/wctomb.texi: Mention the new module.
19334         * modules/wctob (Depends-on): Add wctomb.
19335
19336 2011-02-22  Bruno Haible  <bruno@clisp.org>
19337
19338         New module 'mbtowc'.
19339         * lib/stdlib.in.h (mbtowc): New declaration.
19340         * lib/mbtowc.c: New file.
19341         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19342         * m4/mbtowc.m4: New file.
19343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19344         REPLACE_MBTOWC.
19345         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19346         REPLACE_MBTOWC.
19347         * modules/mbtowc: New file.
19348         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19349         * doc/posix-functions/mbtowc.texi: Mention the new module.
19350         * modules/btowc (Depends-on): Add mbtowc.
19351
19352 2011-02-22  Bruno Haible  <bruno@clisp.org>
19353
19354         wcrtomb: Add more tests for native Windows platforms.
19355         * tests/test-wcrtomb-w32-1.sh: New file.
19356         * tests/test-wcrtomb-w32-2.sh: New file.
19357         * tests/test-wcrtomb-w32-3.sh: New file.
19358         * tests/test-wcrtomb-w32-4.sh: New file.
19359         * tests/test-wcrtomb-w32-5.sh: New file.
19360         * tests/test-wcrtomb-w32.c: New file.
19361         * modules/wcrtomb-tests (Files): Add them.
19362         (Makefile.am): Arrange to run these tests.
19363         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19364         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19365
19366 2011-02-20  Bruno Haible  <bruno@clisp.org>
19367
19368         wcrtomb: Enhance test.
19369         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19370
19371 2011-02-20  Bruno Haible  <bruno@clisp.org>
19372
19373         mbrtowc: Tiny optimization.
19374         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19375
19376 2011-02-20  Jim Meyering  <meyering@redhat.com>
19377
19378         test-exclude.c: remove unmatched #endif
19379         * tests/test-exclude.c: Remove stray #endif, left over from
19380         the change of a week ago.
19381
19382 2011-02-19  Jim Meyering  <meyering@redhat.com>
19383
19384         git-version-gen: skip "-dirty" check when appropriate
19385         * build-aux/git-version-gen: Don't run any git commands when the
19386         version string comes from .tarball-version.  Prior to this, we
19387         would run git update-index --refresh even from a just-unpacked
19388         tarball directory, and that could affect a .git/ directory in a
19389         parent of the build directory.  Reported by Mike Frysinger.
19390
19391 2011-02-19  Bruno Haible  <bruno@clisp.org>
19392
19393         unictype/property-byname: Reduce the size of the 'data' segment.
19394         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19395
19396 2011-02-19  Bruno Haible  <bruno@clisp.org>
19397
19398         unictype/scripts: Reduce the size of the 'data' segment.
19399         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19400         '%pic'.
19401         * lib/unictype/scripts_byname.gperf: Regenerated.
19402
19403 2011-02-19  Bruno Haible  <bruno@clisp.org>
19404
19405         stdint: Update documentation.
19406         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19407
19408 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19409
19410         stdint: omit redundant check for wchar.h
19411         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19412         always tests whether wchar.h exists, so remove the now-redundant test.
19413
19414 2011-02-18  Bruno Haible  <bruno@clisp.org>
19415
19416         stdint: Cut dependency to module 'wchar'.
19417         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19418         include the necessary prerequisites.
19419         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19420         * modules/stdint (Depends-on): Remove wchar.
19421         (Makefile.am): Substitute HAVE_WCHAR_H.
19422         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19423
19424 2011-02-18  Eric Blake  <eblake@redhat.com>
19425
19426         longlong: skip, rather than fail, on cross-compilation
19427         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19428         when cross-compiling; regression from 2011-02-16.
19429
19430 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19431
19432         * NEWS: Mention 2011-02-08 change to stdlib.
19433
19434 2011-02-17  Bruno Haible  <bruno@clisp.org>
19435
19436         getloadavg: Add comments about platforms.
19437         * m4/getloadavg.m4: Add comment.
19438         * lib/getloadavg.c: Likewise.
19439
19440 2011-02-17  Bruno Haible  <bruno@clisp.org>
19441
19442         getloadavg: Fix link error on Solaris 2.6.
19443         * modules/getloadavg (Link): New section.
19444         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19445         linking test-getloadavg.
19446         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19447         getloadavg.
19448
19449 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19450
19451         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19452         It was 'int', but this doesn't match the IRIX 6.5 manual.
19453         Suggested by Bruno Haible in
19454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19455
19456 2011-02-17  Bruno Haible  <bruno@clisp.org>
19457
19458         havelib: Fix comments.
19459         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19460         change.
19461
19462 2011-02-17  Bruno Haible  <bruno@clisp.org>
19463
19464         havelib: Update config.rpath.
19465         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19466
19467 2011-02-17  Bruno Haible  <bruno@clisp.org>
19468
19469         getloadavg test: Add some plausibility checks.
19470         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19471         is improbable.
19472
19473 2011-02-16  Eric Blake  <eblake@redhat.com>
19474
19475         maintainer-makefile: make syntax-check a no-op from tarballs
19476         * top/maint.mk (no-vc-detected): New rule.
19477         (local-checks-available): Use it to avoid hanging if someone tries
19478         'make syntax-check' from a tarball.  Also append to any non-syntax
19479         checks already defined in cfg.mk.
19480
19481 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19482
19483         longlong: tune, particularly for common case of c99
19484
19485         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19486         or running anything if c99, or if unsigned long long int does not
19487         work.  In either case, we know the answer without further tests.
19488         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19489         it at most once, and use its results for both long long int and
19490         unsigned long long int.  This is more likely to be efficient in
19491         the common case where the program wants to check for both long
19492         long int and unsigned long long int.
19493         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19494         since the answer is already known.
19495
19496 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19497
19498         getloadavg: set errno
19499         * lib/getloadavg.c: Set errno when returning -1.  If no other
19500         error number looks appropriate, set it to ENOSYS if the getloadavg
19501         looks like it can't possibly ever work, ENOTSUP otherwise.
19502         Suggested by Bruno Haible in
19503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19504
19505         getloadavg: trim unused parts and speed up 'configure'
19506         * NEWS: Document this.
19507         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19508         always compiled if getloadavg is absent.
19509         Move test code to ...
19510         * tests/test-getloadavg.c: New file, containing previous
19511         contents of test from lib/getloadavg.c.  It also contains
19512         suggestions by Bruno Haible in
19513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19514         * modules/getloadavg-tests: New file.
19515         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19516         Do tests in the same order as they're needed for getloadavg.c.
19517         Omit setgid-related tests that generate symbols KMEM_GROUP,
19518         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19519         Do only the tests that are needed to see whether the system has
19520         getloadavg, moving the other tests into ...
19521         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19522         NLIST_NAME_UNION; nobody should be using it.  Do not define
19523         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19524         relevant, as the user of this module shouldn't care how getloadavg
19525         is implemented.
19526
19527         getloadavg: omit unused var
19528         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19529
19530 2011-02-15  Jim Meyering  <meyering@redhat.com>
19531
19532         doc: update users.txt
19533         * users.txt: Update iwhd's URL.
19534
19535 2011-02-13  Bruno Haible  <bruno@clisp.org>
19536
19537         Consistent macro naming for macros that use GCC __attribute__.
19538         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19539         _ATTRIBUTE_NONNULL_.
19540         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19541         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19542         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19543         ATTRIBUTE_DEPRECATED.
19544         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19545         ATTRIBUTE_NORETURN.
19546         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19547         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19548         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19549         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19550         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19551         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19552         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19553         ATTRIBUTE_SENTINEL.
19554         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19555         ATTRIBUTE_RETURN_CHECK.
19556         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19557         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19558         ATTRIBUTE_NORETURN.
19559         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19560         Reported by Paul Eggert.
19561
19562 2011-02-13  Bruno Haible  <bruno@clisp.org>
19563
19564         Don't interfere with a program's definition of __attribute__.
19565         * lib/argp.h (__attribute__): Remove definition.
19566         (_GL_ATTRIBUTE_FORMAT): New macro.
19567         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19568         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19569         (_GL_ATTRIBUTE_FORMAT): New macro.
19570         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19571         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19572         GCC 3 or newer.
19573         * lib/error.h (__attribute__): Remove definition.
19574         (_GL_ATTRIBUTE_FORMAT): New macro.
19575         (error, error_at_line): Use it.
19576         * lib/hash.h (__attribute__): Remove definition.
19577         (ATTRIBUTE_WUR): Update definition. Define always.
19578         * lib/openat.h (__attribute__): Remove definition.
19579         (ATTRIBUTE_NORETURN): Update definition. Define always.
19580         * lib/sigpipe-die.h (__attribute__): Remove definition.
19581         (ATTRIBUTE_NORETURN): Update definition. Define always.
19582         * lib/vasnprintf.h (__attribute__): Remove definition.
19583         (_GL_ATTRIBUTE_FORMAT): New macro.
19584         (asnprintf, vasnprintf): Use it.
19585         * lib/xalloc.h (__attribute__): Remove definition.
19586         (ATTRIBUTE_NORETURN): Update definition. Define always.
19587         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19588         * lib/xmemdup0.h (__attribute__): Remove definition.
19589         (ATTRIBUTE_NORETURN): Update definition. Define always.
19590         * lib/xprintf.h (__attribute__): Remove definition.
19591         (_GL_ATTRIBUTE_FORMAT): New macro.
19592         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19593         * lib/xstrtol.h (__attribute__): Remove definition.
19594         (ATTRIBUTE_NORETURN): Update definition. Define always.
19595         * lib/xvasprintf.h (__attribute__): Remove definition.
19596         (_GL_ATTRIBUTE_FORMAT): New macro.
19597         (xasprintf, xvasprintf): Use it.
19598         * tests/test-argmatch.c (__attribute__): Remove definition.
19599         (ATTRIBUTE_NORETURN): Update definition. Define always.
19600         * tests/test-exclude.c (__attribute__): Remove definition.
19601         (ATTRIBUTE_NORETURN): Update definition. Define always.
19602         Reported by Paul Eggert.
19603
19604 2011-02-13  Bruno Haible  <bruno@clisp.org>
19605
19606         mbrtowc: Add more tests for native Windows platforms.
19607         * tests/test-mbrtowc-w32-1.sh: New file.
19608         * tests/test-mbrtowc-w32-2.sh: New file.
19609         * tests/test-mbrtowc-w32-3.sh: New file.
19610         * tests/test-mbrtowc-w32-4.sh: New file.
19611         * tests/test-mbrtowc-w32-5.sh: New file.
19612         * tests/test-mbrtowc-w32.c: New file.
19613         * modules/mbrtowc-tests (Files): Add them.
19614         (Makefile.am): Arrange to run these tests.
19615         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19616         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19617
19618 2011-02-13  Bruno Haible  <bruno@clisp.org>
19619
19620         mbrtowc: Work around native Windows bug.
19621         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19622         guess when no suitable locale for testing was found.
19623         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19624
19625 2011-02-13  Bruno Haible  <bruno@clisp.org>
19626
19627         mbsinit: Work around mingw bug.
19628         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19629         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19630         Windows.
19631         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19632
19633 2011-02-13  Bruno Haible  <bruno@clisp.org>
19634
19635         mbsinit: Don't crash for a NULL argument.
19636         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19637         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19638
19639 2011-02-13  Bruno Haible  <bruno@clisp.org>
19640
19641         Don't interfere with a program's definition of __attribute__.
19642         * lib/stdio.in.h (__attribute__): Remove definition.
19643         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19644         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19645         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19646         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19647         * lib/string.in.h (__attribute__): Remove definition.
19648         Reported by Paul Eggert.
19649
19650 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19651
19652         stdlib: don't get in the way of non-GCC __attribute__
19653         See thread starting at
19654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19655         Revert previous stdlib change, installing the following instead:
19656         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19657         to get in the way of a non-GCC compiler that supports __attribute__.
19658         (_GL_ATTRIBUTE_RETURN): New macro.
19659         (_Exit): Use it instead of __attribute__.
19660
19661 2011-02-12  Bruno Haible  <bruno@clisp.org>
19662
19663         quotearg test: Avoid test failure on mingw.
19664         * tests/test-quotearg.sh: Convert the locale identifier from native
19665         Windows syntax to Unix syntax.
19666
19667 2011-02-12  Bruno Haible  <bruno@clisp.org>
19668
19669         setlocale: Prefer gnulib's override over libintl's override.
19670         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19671         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19672         GNULIB_defined_setlocale is set.
19673
19674 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19675
19676         stdlib: support non-GCC __attribute__
19677
19678         Fix a serious and tricky problem encountered when attempting to
19679         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19680         5.5, but it crashed due to memory corruption on Solaris 10 with
19681         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19682         bits that are otherwise zero.  This tagging is optional inside
19683         Emacs but is preferred and is used when __attribute__ ((__aligned
19684         (8))) works, as it does with both recent-enough GCC and with Sun C
19685         5.11.  However, Sun C 5.11 is not GCC and does not #define
19686         __GNUC__ and __GNUC_MINOR__.
19687
19688         When I added the getloadavg module to Emacs, it brought in
19689         stdlib.in.h, which contained this fragment:
19690
19691            #ifndef __attribute__
19692            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19693            #  define __attribute__(Spec)   /* empty */
19694            # endif
19695            #endif
19696
19697         When files that include <stdlib.h> were compiled with Sun C 5.11,
19698         the above code disabled __attribute__ ((__aligned (8))), which
19699         caused variables to not be properly aligned, which eventually led
19700         to the pointer corruption mentioned above.  (This was a bit hard
19701         to diagnose, unfortunately.)
19702
19703         Several "#define __attribute__(X) /* empty */" code snippets need
19704         to be eradicated from Gnulib to work with non-GCC compilers that
19705         support __attribute__.  The Autoconf way to do this is to test for
19706         each kind of attribute that we want support for, and selectively
19707         enable that in source code.
19708
19709         Fix this problem just for stdlib.h, by adding a test for the
19710         __noreturn__ attribute, and change stdlib.in.h to use that test
19711         when needed.  This technique can be easily generalized to the
19712         other *.in.h files and attributes, and a similar technique can be
19713         used for *.h and *.c files.  This patch is enough to solve the
19714         problem for Emacs + getloadavg, and I thought I'd publish it for
19715         feedback before undertaking further, similar fixes in other
19716         modules.
19717
19718         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19719         because it's not needed for stdlib.h.  It merely substitutes the
19720         value directly into stdlib.h.  We may well need to #define it, or
19721         similar symbols, for other modules, but it's nice to also have an
19722         option to not #define it for applications like Emacs that do not
19723         need it.
19724
19725         * lib/stdlib.in.h (__attribute__): Do not #define.
19726         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19727         be defined only if the _Exit module is also used.
19728         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19730         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19731         platforms.
19732         * modules/_Exit (Files): Add m4/attribute.m4.
19733         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19734         * m4/attribute.m4: New file.
19735
19736 2011-02-12  Bruno Haible  <bruno@clisp.org>
19737
19738         wcsrtombs: Work around bug on native Windows.
19739         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19740         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19741         instead of len.
19742         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19743
19744 2011-02-12  Bruno Haible  <bruno@clisp.org>
19745
19746         mbsrtowcs: Work around bug on native Windows.
19747         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19748         against mingw bug.
19749         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19750
19751 2011-02-12  Bruno Haible  <bruno@clisp.org>
19752
19753         Avoid setlocale bugs in tests.
19754         * modules/btowc (Dependencies): Add setlocale.
19755         * modules/c-strcase (Dependencies): Likewise.
19756         * modules/mbmemcasecmp (Dependencies): Likewise.
19757         * modules/mbmemcasecoll (Dependencies): Likewise.
19758         * modules/mbrtowc (Dependencies): Likewise.
19759         * modules/mbscasecmp (Dependencies): Likewise.
19760         * modules/mbscasestr (Dependencies): Likewise.
19761         * modules/mbschr (Dependencies): Likewise.
19762         * modules/mbscspn (Dependencies): Likewise.
19763         * modules/mbsinit (Dependencies): Likewise.
19764         * modules/mbsncasecmp (Dependencies): Likewise.
19765         * modules/mbsnrtowcs (Dependencies): Likewise.
19766         * modules/mbspbrk (Dependencies): Likewise.
19767         * modules/mbspcasecmp (Dependencies): Likewise.
19768         * modules/mbsrchr (Dependencies): Likewise.
19769         * modules/mbsrtowcs (Dependencies): Likewise.
19770         * modules/mbsspn (Dependencies): Likewise.
19771         * modules/mbsstr (Dependencies): Likewise.
19772         * modules/nl_langinfo (Dependencies): Likewise.
19773         * modules/quotearg (Dependencies): Likewise.
19774         * modules/unicase/locale-language (Dependencies): Likewise.
19775         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19776         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19777         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19778         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19779         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19780         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19781         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19782         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19783         * modules/vasnprintf-posix (Dependencies): Likewise.
19784         * modules/wcrtomb (Dependencies): Likewise.
19785         * modules/wcsnrtombs (Dependencies): Likewise.
19786         * modules/wcsrtombs (Dependencies): Likewise.
19787
19788 2011-02-12  Bruno Haible  <bruno@clisp.org>
19789
19790         setlocale: Workaround native Windows bug.
19791         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19792         succeeds but sets LC_CTYPE to "C", report a failure.
19793         * tests/test-setlocale2.sh: New file.
19794         * tests/test-setlocale2.c: New file.
19795         * modules/setlocale-tests (Files): Add the new files.
19796         (Makefile.am): Enable test-setlocale2.sh test.
19797         * doc/posix-functions/setlocale.texi: Mention workaround.
19798
19799 2011-02-11  Bruno Haible  <bruno@clisp.org>
19800
19801         Tests for module 'setlocale'.
19802         * modules/setlocale-tests: New file.
19803         * tests/test-setlocale1.sh: New file.
19804         * tests/test-setlocale1.c: New file.
19805
19806         New module 'setlocale'.
19807         * lib/locale.in.h (setlocale): New declaration.
19808         * lib/setlocale.c: New file, based on
19809         gettext/gettext-runtime/intl/setlocale.c.
19810         * m4/setlocale.m4: New file.
19811         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19812         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19813         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19814         REPLACE_SETLOCALE.
19815         * modules/setlocale: New file.
19816         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19817         * doc/posix-functions/setlocale.texi: Mention the new module.
19818
19819 2011-02-11  Bruno Haible  <bruno@clisp.org>
19820
19821         Prepare for locale dependent tests on mingw.
19822         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19823         because it has the wrong locale encoding.
19824         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19825         French_France.1252 instead of "fr".
19826         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19827         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19828         because it has the wrong locale encoding.
19829         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19830         native Windows, try Turkish_Turkey.65001.
19831         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19832         Chinese_China.54936.
19833
19834         Prepare for locale dependent tests on mingw.
19835         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19836         differently.
19837         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19838         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19839         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19840         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19841
19842 2011-02-11  Eric Blake  <eblake@redhat.com>
19843
19844         strptime: avoid compiler warnings
19845         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19846         compiler warnings about dead code.
19847         Reported by Daniel P. Berrange.
19848
19849 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19850
19851         doc: update users.txt
19852         * users.txt: Add rcs.
19853
19854 2011-02-10  John W. Eaton  <jwe@gnu.org>
19855
19856         doc: update users.txt
19857         * users.txt: Add octave.
19858
19859 2011-02-10  Jim Meyering  <meyering@redhat.com>
19860
19861         doc: update users.txt
19862         * users.txt: Add iwhd.
19863
19864 2011-02-09  Bruno Haible  <bruno@clisp.org>
19865
19866         gnulib-tool: Make copyright notice adjustment more robust.
19867         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19868         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19869         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19870         License".
19871         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19872
19873 2011-02-06  Bruno Haible  <bruno@clisp.org>
19874
19875         New module 'towctrans'.
19876         * modules/towctrans: New file.
19877         * lib/wctype.in.h (towctrans): New declaration.
19878         * lib/towctrans.c: New file.
19879         * lib/towctrans-impl.h: New file.
19880         * m4/towctrans.m4: New file.
19881         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19882         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19883         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19884         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19885         * doc/posix-functions/towctrans.texi: Mention the new module.
19886
19887 2011-02-06  Bruno Haible  <bruno@clisp.org>
19888
19889         New module 'wctrans'.
19890         * modules/wctrans: New file.
19891         * lib/wctype.in.h (wctrans): New declaration.
19892         * lib/wctrans.c: New file.
19893         * lib/wctrans-impl.h: New file.
19894         * m4/wctrans.m4: New file.
19895         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19896         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19897         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19898         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19899         * doc/posix-functions/wctrans.texi: Mention the new module.
19900
19901 2011-02-06  Bruno Haible  <bruno@clisp.org>
19902
19903         New module 'iswctype'.
19904         * modules/iswctype: New file.
19905         * lib/wctype.in.h (iswctype): New declaration.
19906         * lib/iswctype.c: New file.
19907         * lib/iswctype-impl.h: New file.
19908         * m4/iswctype.m4: New file.
19909         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19910         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19911         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19912         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19913         * doc/posix-functions/iswctype.texi: Mention the new module and the
19914         HP-UX 11.00 problem.
19915
19916 2011-02-06  Bruno Haible  <bruno@clisp.org>
19917
19918         New module 'wctype'.
19919         * modules/wctype: Change to represent the wctype() substitute.
19920         * lib/wctype.in.h (wctype): New declaration.
19921         * lib/wctype.c: New file.
19922         * lib/wctype-impl.h: New file.
19923         * m4/wctype.m4: New file.
19924         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19925         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19926         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19927         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19928         * doc/posix-functions/wctype.texi: Mention the new module and the
19929         HP-UX 11.00 problem.
19930
19931 2011-02-06  Bruno Haible  <bruno@clisp.org>
19932
19933         wctype-h: Ensure wctype_t and wctrans_t are defined.
19934         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19935         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19936         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19937         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19938         HAVE_WCTRANS_T.
19939         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19940
19941 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19942
19943         flock: fix license typo
19944
19945         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19946         omitted.
19947
19948 2011-02-08  Bruno Haible  <bruno@clisp.org>
19949
19950         Split large sed scripts, for HP-UX sed.
19951         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19952         to avoid HP-UX limit of 99 commands, in the near future.
19953         * modules/stdlib (Makefile.am): Likewise.
19954         * modules/unistd (Makefile.am): Likewise.
19955         * modules/wchar (Makefile.am): Likewise.
19956         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19957         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19958         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19959
19960 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19961             Bruno Haible  <bruno@clisp.org>
19962
19963         stdlib: improve random_r modularization
19964         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19965         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19966         you also need the random_r module to get this material right.
19967         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19968         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19969         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19970
19971 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19972
19973         stdlib: don't depend on stdint
19974         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19975         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19976         be independent of whether stdint.h is needed.
19977         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19978         here, instead of ...
19979         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19980         struct random_data should be using the random_r module, not just
19981         the stdlib module (which wouldn't make sense: what package needs
19982         just struct random_data without also needing random_r?).
19983         * modules/stdlib (Depends-on): Remove stdint.
19984
19985         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19986         See the thread rooted at
19987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19988         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19989         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19990         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19991         __VMS)); previously it was always included (via fcntl--.h).
19992         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19993         hand; this is good enough for load averages.  Also, do not use
19994         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19995         flags directly if available and don't bother otherwise.  (Packages
19996         that need the extra reliability should use the modules that define
19997         these flags on older platforms that lack them.)
19998         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19999         fcntl-safer.
20000
20001 2011-02-08  Jim Meyering  <meyering@redhat.com>
20002
20003         di-set.h, ino-map.h: add multiple-inclusion guard
20004         Technically, the guard is required only for ino-map.h, due to its
20005         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20006         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20007         * lib/ino-map.h: Likewise.
20008
20009 2011-02-06  Bruno Haible  <bruno@clisp.org>
20010
20011         iswblank: Ensure declaration on glibc systems.
20012         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20013         * modules/iswblank (Dependencies): Add 'extensions'.
20014         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20015
20016 2011-02-06  Bruno Haible  <bruno@clisp.org>
20017
20018         New module 'iswblank'.
20019         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20020         * modules/iswblank: New file.
20021         * modules/wctype-h (Files): Remove lib/iswblank.c.
20022         (Makefile.am): Substitute GNULIB_ISWBLANK.
20023         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20024         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20025         (gl_WCTYPE_H_DEFAULTS): New macro.
20026         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20027         * modules/iswblank-tests: New file.
20028         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20029         * tests/test-wctype-h.c (main): Remove iswblank tests.
20030         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20031         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20032         of 'wctype-h'.
20033         * NEWS: Mention the change.
20034         * modules/mbchar (Depends-on): Add iswblank.
20035
20036 2011-02-08  Bruno Haible  <bruno@clisp.org>
20037
20038         di-set tests: Refactor.
20039         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20040         unnecessary includes.
20041         (ASSERT): Remove macro.
20042         (main): Make C90 compliant by avoiding variable declaration after
20043         statement.
20044         * modules/di-set-tests (Files): Add tests/macros.h.
20045
20046 2011-02-08  Bruno Haible  <bruno@clisp.org>
20047
20048         ino-map tests: Refactor.
20049         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20050         unnecessary includes.
20051         (ASSERT): Remove macro.
20052         (main): Make C90 compliant by avoiding variable declaration after
20053         statement.
20054         * modules/ino-map-tests (Files): Add tests/macros.h.
20055
20056 2011-02-08  Jim Meyering  <meyering@redhat.com>
20057
20058         di-set: add "const" to a cast
20059         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20060         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20061
20062 2011-02-06  Bruno Haible  <bruno@clisp.org>
20063
20064         Rename module 'wctype' to 'wctype-h'.
20065         * modules/wctype-h: Renamed from modules/wctype.
20066         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20067         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20068         (Files, Depends-on, Makefile.am): Update.
20069         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20070         (Files, Makefile.am): Update.
20071         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20072         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20073         * doc/posix-headers/wctype.texi: Update.
20074         * doc/posix-functions/iswalnum.texi: Update.
20075         * doc/posix-functions/iswalpha.texi: Update.
20076         * doc/posix-functions/iswblank.texi: Update.
20077         * doc/posix-functions/iswcntrl.texi: Update.
20078         * doc/posix-functions/iswdigit.texi: Update.
20079         * doc/posix-functions/iswgraph.texi: Update.
20080         * doc/posix-functions/iswlower.texi: Update.
20081         * doc/posix-functions/iswprint.texi: Update.
20082         * doc/posix-functions/iswpunct.texi: Update.
20083         * doc/posix-functions/iswspace.texi: Update.
20084         * doc/posix-functions/iswupper.texi: Update.
20085         * doc/posix-functions/iswxdigit.texi: Update.
20086         * doc/posix-functions/towlower.texi: Update.
20087         * doc/posix-functions/towupper.texi: Update.
20088         * NEWS: Mention the change.
20089         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20090         * modules/mbchar (Dependencies): Likewise.
20091         * modules/mbswidth (Dependencies): Likewise.
20092         * modules/quotearg (Dependencies): Likewise.
20093         * modules/regex (Dependencies): Likewise.
20094         * modules/wcscasecmp (Dependencies): Likewise.
20095         * modules/wcsncasecmp (Dependencies): Likewise.
20096         * modules/wcwidth (Dependencies): Likewise.
20097
20098 2011-02-06  Bruno Haible  <bruno@clisp.org>
20099
20100         New module 'wcswidth'.
20101         * modules/wcswidth: New file.
20102         * lib/wchar.in.h (wcswidth): New declaration.
20103         * lib/wcswidth.c: New file.
20104         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20105         * m4/wcswidth.m4: New file.
20106         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20107         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20108         REPLACE_WCSWIDTH.
20109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20110         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20111         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20112         * doc/posix-functions/wcswidth.texi: Mention the new module.
20113
20114 2011-02-06  Bruno Haible  <bruno@clisp.org>
20115
20116         New module 'wcstok'.
20117         * modules/wcstok: New file.
20118         * lib/wchar.in.h (wcstok): New declaration.
20119         * lib/wcstok.c: New file.
20120         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20121         * m4/wcstok.m4: New file.
20122         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20123         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20124         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20125         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20126         * doc/posix-functions/wcstok.texi: Mention the new module.
20127
20128 2011-02-06  Bruno Haible  <bruno@clisp.org>
20129
20130         New module 'wcsstr'.
20131         * modules/wcsstr: New file.
20132         * lib/wchar.in.h (wcsstr): New declaration.
20133         * lib/wcsstr.c: New file.
20134         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20135         * m4/wcsstr.m4: New file.
20136         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20137         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20138         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20139         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20140         * doc/posix-functions/wcsstr.texi: Mention the new module.
20141
20142 2011-02-06  Bruno Haible  <bruno@clisp.org>
20143
20144         New module 'wcspbrk'.
20145         * modules/wcspbrk: New file.
20146         * lib/wchar.in.h (wcspbrk): New declaration.
20147         * lib/wcspbrk.c: New file.
20148         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20149         * m4/wcspbrk.m4: New file.
20150         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20151         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20152         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20153         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20154         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20155
20156 2011-02-06  Bruno Haible  <bruno@clisp.org>
20157
20158         New module 'wcsspn'.
20159         * modules/wcsspn: New file.
20160         * lib/wchar.in.h (wcsspn): New declaration.
20161         * lib/wcsspn.c: New file.
20162         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20163         * m4/wcsspn.m4: New file.
20164         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20165         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20166         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20167         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20168         * doc/posix-functions/wcsspn.texi: Mention the new module.
20169
20170 2011-02-06  Bruno Haible  <bruno@clisp.org>
20171
20172         New module 'wcscspn'.
20173         * modules/wcscspn: New file.
20174         * lib/wchar.in.h (wcscspn): New declaration.
20175         * lib/wcscspn.c: New file.
20176         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20177         * m4/wcscspn.m4: New file.
20178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20180         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20181         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20182         * doc/posix-functions/wcscspn.texi: Mention the new module.
20183
20184 2011-02-06  Bruno Haible  <bruno@clisp.org>
20185
20186         New module 'wcsrchr'.
20187         * modules/wcsrchr: New file.
20188         * lib/wchar.in.h (wcsrchr): New declaration.
20189         * lib/wcsrchr.c: New file.
20190         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20191         * m4/wcsrchr.m4: New file.
20192         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20193         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20194         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20195         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20196         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20197
20198 2011-02-06  Bruno Haible  <bruno@clisp.org>
20199
20200         New module 'wcschr'.
20201         * modules/wcschr: New file.
20202         * lib/wchar.in.h (wcschr): New declaration.
20203         * lib/wcschr.c: New file.
20204         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20205         * m4/wcschr.m4: New file.
20206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20209         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20210         * doc/posix-functions/wcschr.texi: Mention the new module.
20211
20212 2011-02-06  Bruno Haible  <bruno@clisp.org>
20213
20214         New module 'wcsdup'.
20215         * modules/wcsdup: New file.
20216         * lib/wchar.in.h (wcsdup): New declaration.
20217         * lib/wcsdup.c: New file.
20218         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20219         * m4/wcsdup.m4: New file.
20220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20222         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20223         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20224         * doc/posix-functions/wcsdup.texi: Mention the new module.
20225
20226 2011-02-06  Bruno Haible  <bruno@clisp.org>
20227
20228         New module 'wcsxfrm'.
20229         * modules/wcsxfrm: New file.
20230         * lib/wchar.in.h (wcsxfrm): New declaration.
20231         * lib/wcsxfrm.c: New file.
20232         * lib/wcsxfrm-impl.h: New file.
20233         * m4/wcsxfrm.m4: New file.
20234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20237         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20238         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20239
20240 2011-02-06  Bruno Haible  <bruno@clisp.org>
20241
20242         New module 'wcscoll'.
20243         * modules/wcscoll: New file.
20244         * lib/wchar.in.h (wcscoll): New declaration.
20245         * lib/wcscoll.c: New file.
20246         * lib/wcscoll-impl.h: New file.
20247         * m4/wcscoll.m4: New file.
20248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20251         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20252         * doc/posix-functions/wcscoll.texi: Mention the new module.
20253
20254 2011-02-06  Bruno Haible  <bruno@clisp.org>
20255
20256         New module 'wcsncasecmp'.
20257         * modules/wcsncasecmp: New file.
20258         * lib/wchar.in.h (wcsncasecmp): New declaration.
20259         * lib/wcsncasecmp.c: New file.
20260         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20261         * m4/wcsncasecmp.m4: New file.
20262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20265         HAVE_WCSNCASECMP.
20266         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20267         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20268
20269 2011-02-06  Bruno Haible  <bruno@clisp.org>
20270
20271         New module 'wcscasecmp'.
20272         * modules/wcscasecmp: New file.
20273         * lib/wchar.in.h (wcscasecmp): New declaration.
20274         * lib/wcscasecmp.c: New file.
20275         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20276         * m4/wcscasecmp.m4: New file.
20277         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20278         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20279         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20280         HAVE_WCSCASECMP.
20281         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20282         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20283
20284 2011-02-05  Bruno Haible  <bruno@clisp.org>
20285
20286         New module 'wcsncmp'.
20287         * modules/wcsncmp: New file.
20288         * lib/wchar.in.h (wcsncmp): New declaration.
20289         * lib/wcsncmp.c: New file.
20290         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20291         * m4/wcsncmp.m4: New file.
20292         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20293         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20294         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20295         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20296         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20297
20298 2011-02-05  Bruno Haible  <bruno@clisp.org>
20299
20300         New module 'wcscmp'.
20301         * modules/wcscmp: New file.
20302         * lib/wchar.in.h (wcscmp): New declaration.
20303         * lib/wcscmp.c: New file.
20304         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20305         * m4/wcscmp.m4: New file.
20306         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20307         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20308         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20309         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20310         * doc/posix-functions/wcscmp.texi: Mention the new module.
20311
20312 2011-02-05  Bruno Haible  <bruno@clisp.org>
20313
20314         New module 'wcsncat'.
20315         * modules/wcsncat: New file.
20316         * lib/wchar.in.h (wcsncat): New declaration.
20317         * lib/wcsncat.c: New file.
20318         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20319         * m4/wcsncat.m4: New file.
20320         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20321         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20322         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20323         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20324         * doc/posix-functions/wcsncat.texi: Mention the new module.
20325
20326 2011-02-05  Bruno Haible  <bruno@clisp.org>
20327
20328         New module 'wcscat'.
20329         * modules/wcscat: New file.
20330         * lib/wchar.in.h (wcscat): New declaration.
20331         * lib/wcscat.c: New file.
20332         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20333         * m4/wcscat.m4: New file.
20334         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20335         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20336         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20337         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20338         * doc/posix-functions/wcscat.texi: Mention the new module.
20339
20340 2011-02-05  Bruno Haible  <bruno@clisp.org>
20341
20342         New module 'wcpncpy'.
20343         * modules/wcpncpy: New file.
20344         * lib/wchar.in.h (wcpncpy): New declaration.
20345         * lib/wcpncpy.c: New file.
20346         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20347         * m4/wcpncpy.m4: New file.
20348         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20349         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20350         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20351         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20352         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20353
20354 2011-02-05  Bruno Haible  <bruno@clisp.org>
20355
20356         New module 'wcsncpy'.
20357         * modules/wcsncpy: New file.
20358         * lib/wchar.in.h (wcsncpy): New declaration.
20359         * lib/wcsncpy.c: New file.
20360         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20361         * m4/wcsncpy.m4: New file.
20362         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20363         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20364         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20365         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20366         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20367
20368 2011-02-05  Bruno Haible  <bruno@clisp.org>
20369
20370         New module 'wcpcpy'.
20371         * modules/wcpcpy: New file.
20372         * lib/wchar.in.h (wcpcpy): New declaration.
20373         * lib/wcpcpy.c: New file.
20374         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20375         * m4/wcpcpy.m4: New file.
20376         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20377         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20378         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20379         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20380         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20381
20382 2011-02-05  Bruno Haible  <bruno@clisp.org>
20383
20384         New module 'wcscpy'.
20385         * modules/wcscpy: New file.
20386         * lib/wchar.in.h (wcscpy): New declaration.
20387         * lib/wcscpy.c: New file.
20388         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20389         * m4/wcscpy.m4: New file.
20390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20392         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20393         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20394         * doc/posix-functions/wcscpy.texi: Mention the new module.
20395
20396 2011-02-05  Bruno Haible  <bruno@clisp.org>
20397
20398         New module 'wcsnlen'.
20399         * modules/wcsnlen: New file.
20400         * lib/wchar.in.h (wcsnlen): New declaration.
20401         * lib/wcsnlen.c: New file.
20402         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20403         * m4/wcsnlen.m4: New file.
20404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20407         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20408         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20409
20410 2011-02-05  Bruno Haible  <bruno@clisp.org>
20411
20412         New module 'wcslen'.
20413         * modules/wcslen: New file.
20414         * lib/wchar.in.h (wcslen): New declaration.
20415         * lib/wcslen.c: New file.
20416         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20417         * m4/wcslen.m4: New file.
20418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20421         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20422         * doc/posix-functions/wcslen.texi: Mention the new module.
20423
20424 2011-02-05  Bruno Haible  <bruno@clisp.org>
20425
20426         New module 'wmemset'.
20427         * modules/wmemset: New file.
20428         * lib/wchar.in.h (wmemset): New declaration.
20429         * lib/wmemset.c: New file.
20430         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20431         * m4/wmemset.m4: New file.
20432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20434         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20435         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20436         * doc/posix-functions/wmemset.texi: Mention the new module.
20437
20438 2011-02-05  Bruno Haible  <bruno@clisp.org>
20439
20440         New module 'wmemmove'.
20441         * modules/wmemmove: New file.
20442         * lib/wchar.in.h (wmemmove): New declaration.
20443         * lib/wmemmove.c: New file.
20444         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20445         * m4/wmemmove.m4: New file.
20446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20448         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20449         HAVE_WMEMMOVE.
20450         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20451         * doc/posix-functions/wmemmove.texi: Mention the new module.
20452
20453 2011-02-05  Bruno Haible  <bruno@clisp.org>
20454
20455         New module 'wmemcpy'.
20456         * modules/wmemcpy: New file.
20457         * lib/wchar.in.h (wmemcpy): New declaration.
20458         * lib/wmemcpy.c: New file.
20459         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20460         * m4/wmemcpy.m4: New file.
20461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20463         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20464         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20465         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20466
20467 2011-02-05  Bruno Haible  <bruno@clisp.org>
20468
20469         New module 'wmemcmp'.
20470         * modules/wmemcmp: New file.
20471         * lib/wchar.in.h (wmemcmp): New declaration.
20472         * lib/wmemcmp.c: New file.
20473         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20474         * m4/wmemcmp.m4: New file.
20475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20477         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20478         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20479         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20480
20481 2011-02-07  Jim Meyering  <meyering@redhat.com>
20482
20483         di-set, ino-map: new modules, from coreutils
20484         * lib/di-set.c: New file.
20485         * lib/di-set.h: Likewise.
20486         * lib/ino-map.c: Likewise.
20487         * lib/ino-map.h: Likewise.
20488         * modules/di-set: Likewise.
20489         * modules/di-set-tests: Likewise.
20490         * modules/ino-map: Likewise.
20491         * modules/ino-map-tests: Likewise.
20492         * tests/test-di-set.c: Likewise.
20493         * tests/test-ino-map.c: Likewise.
20494
20495 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20496
20497         getloadavg: merge minor changes from Emacs
20498
20499         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20500         (getloadavg): Use memset, not bzero.
20501
20502         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20503         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20504         clash (bug#86).
20505
20506 2010-11-14  Bruno Haible  <bruno@clisp.org>
20507
20508         Allow multiple gnulib generated replacements to coexist.
20509         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20510         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20511         * lib/langinfo.in.h (nl_item): Likewise.
20512         * lib/math.in.h (_NaN, NAN): Likewise.
20513         * lib/netdb.in.h (struct addrinfo): Likewise.
20514         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20515         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20516         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20517         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20518         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20519         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20520         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20521         pthread_mutexattr_init, pthread_mutexattr_settype,
20522         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20523         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20524         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20525         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20526         * lib/sched.in.h (struct sched_param): Likewise.
20527         * lib/se-selinux.in.h (security_class_t, security_context_t,
20528         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20529         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20530         lsetfilecon, fsetfilecon, security_check_context,
20531         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20532         Likewise.
20533         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20534         Likewise.
20535         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20536         _gl_function_taking_int_returning_void_t, union sigval,
20537         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20538         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20539         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20540         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20541         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20542         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20543         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20544         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20545         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20546         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20547         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20548         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20549         socklen_t, rpl_fd_isset): Likewise.
20550         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20551         * lib/sys_time.in.h (struct timeval): Likewise.
20552         * lib/sys_times.in.h (struct tms): Likewise.
20553         * lib/sys_utsname.in.h (struct utsname):
20554         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20555         * lib/unistd.in.h (getpagesize): Likewise.
20556         * lib/wchar.in.h (mbstate_t): Likewise.
20557         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20558         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20559         towlower, towupper): Likewise.
20560         Reported by Sam Steingold <sds@gnu.org>.
20561
20562 2011-02-05  Eric Blake  <eblake@redhat.com>
20563
20564         unsetenv: work around Haiku issues
20565         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20566         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20567
20568 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20569
20570         libposix: avoid calling error() within libposix
20571         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20572         is defined.
20573
20574 2011-02-05  Eric Blake  <eblake@redhat.com>
20575
20576         strerror_r-posix: port to cygwin
20577         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20578         implementation.
20579         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20580         * tests/test-strerror_r.c (main): Fix test.
20581         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20582         issue.
20583
20584 2011-02-05  Bruno Haible  <bruno@clisp.org>
20585
20586         New module 'wmemchr'.
20587         * modules/wmemchr: New file.
20588         * lib/wchar.in.h (wmemchr): New declaration.
20589         * lib/wmemchr.c: New file.
20590         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20591         * m4/wmemchr.m4: New file.
20592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20594         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20595         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20596         * doc/posix-functions/wmemchr.texi: Mention the new module.
20597
20598 2011-02-04  Eric Blake  <eblake@redhat.com>
20599
20600         fdopendir: detect FreeBSD bug
20601         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20602         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20603
20604 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20605
20606         stdbool: do not define HAVE_STDBOOL_H
20607         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20608         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20609         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20610         imported from the latest Autoconf git.  It was motivated by Emacs,
20611         which uses gnulib but does not need HAVE_STDBOOL_H.
20612
20613 2011-02-04  Bruno Haible  <bruno@clisp.org>
20614
20615         wcsnrtombs: Prepare for new module wwcsnrtombs.
20616         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20617         * lib/wcsnrtombs.c: Include it.
20618         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20619
20620         wcsrtombs: Prepare for new module wwcsrtombs.
20621         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20622         * lib/wcsrtombs.c: Include it.
20623         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20624
20625         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20626         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20627         * lib/mbsnrtowcs.c: Include it.
20628         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20629
20630         mbsrtowcs: Prepare for new module mbsrtowwcs.
20631         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20632         * lib/mbsrtowcs.c: Include it.
20633         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20634
20635 2011-02-04  Bruno Haible  <bruno@clisp.org>
20636
20637         vasnprintf: Reduce use of malloc for small format strings.
20638         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20639         (arguments): Add room for the first 7 arguments.
20640         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20641         (char_directives, u8_directives, u16_directives, u32_directives): Add
20642         room for the first 7 directives.
20643         * lib/printf-parse.c: Include <string.h>.
20644         (PRINTF_PARSE): Change memory handling code so that it uses the first
20645         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20646         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20647         Reported by Pádraig Brady <P@draigbrady.com>.
20648
20649 2011-01-31  Eric Blake  <eblake@redhat.com>
20650
20651         dup2: work around Haiku bug
20652         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20653         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20654         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20655         * tests/test-dup2.c (main): Enhance test.
20656
20657 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20658
20659         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20660         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20661         declared by eglibc 2.11.2.
20662         * lib/stdio.in.h: Likewise.
20663
20664 2011-01-31  Eric Blake  <eblake@redhat.com>
20665
20666         ignore-value: add missing test dependency
20667         * tests/test-ignore-value.c: Revert previous change; stdio.h
20668         provides off_t.
20669         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20670
20671 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20672
20673         mktime: clarify long_int width checking
20674         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20675         the top level, to make it clearer that the assumption about
20676         long_int width is being checked.  See
20677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20678
20679 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20680
20681         ignore-value: Fix self-test.
20682         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20683
20684 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20685
20686         TYPE_MAXIMUM: avoid theoretically undefined behavior
20687         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20688         negative number, which the C Standard says has undefined behavior.
20689         In practice this is not a problem, but might as well do it by the book.
20690         Reported by Rich Felker and Eric Blake; see
20691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20692         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20693         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20694         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20695         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20696         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20697         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20698
20699         mktime: #undef mktime before #defining it
20700         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20701
20702         mktime: systematically normalize tm_isdst comparisons
20703         * lib/mktime.c (isdst_differ): New function.
20704         (__mktime_internal): Use it systematically for all isdst comparisons.
20705         This completes the fix for libc BZ #6723, and removes the need for
20706         normalizing tm_isdst.  See
20707         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20708         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20709
20710         mktime: fix some integer overflow issues and sidestep the rest
20711
20712         This was prompted by a bug report by Benjamin Lindner for MinGW
20713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20714         His bug is due to signed integer overflow (0 - INT_MIN), and I
20715         I scanned through mktime.c looking for other integer overflow
20716         problems, fixing all the bugs I found.
20717
20718         Although the C Standard says the resulting code is still not safe
20719         in the presence of integer overflow, in practice it should be good
20720         enough for all real-world two's-complement implementations, except
20721         for debugging environments that deliberately trap on integer
20722         overflow (e.g., gcc -ftrapv).
20723
20724         * lib/mktime.c (WRAPV): New macro.
20725         (SHR): Also check that long_int and time_t shift right in the
20726         usual way, before using the fast-but-unportable method.
20727         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20728         used.  The code already assumed two's complement, so there's
20729         no need to test for alternatives.  All uses removed.
20730         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20731         the C standard.  Problem reported by Rich Felker in
20732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20733         (twos_complement_arithmetic): Also check long_int and time_t.
20734         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20735         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20736         (__mktime_internal): Avoid integer overflow with unary subtraction
20737         in two instances where -1 - X is an adequate replacement for -X,
20738         since the calculations are approximate.
20739
20740 2011-01-29  Eric Blake  <eblake@redhat.com>
20741
20742         mktime: avoid infinite loop
20743         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20744         type; behavior is still undefined but portable to all known targets.
20745         Reported by Rich Felker.
20746
20747 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20748
20749         rename, unlink, same-inode: Relicense.
20750         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20751         * modules/unlink (License): Likewise.
20752         * modules/same-inode (License): Likewise.
20753
20754 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20755
20756         mktime: avoid problems on NetBSD 5 / i386
20757         * lib/mktime.c (long_int): New type.  This works around a problem
20758         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20759         but time_t is 64 bits, and where I expect the existing code is
20760         wrong in some cases.
20761         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20762         (ydhms_diff): Bring back the compile-time check for wide-enough
20763         year and yday.
20764
20765         mktime: fix misspelling in comment
20766         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20767         This merges all recent glibc changes of importance.
20768
20769 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20770
20771         move-if-change: cope with concurrent mv of identical file.
20772         * build-aux/move-if-change (CMPPROG): Accept environment
20773         variable as an override for `cmp'.
20774         (usage): Document CMPPROG.
20775         Adjust comparison to drop stdout.  Cope with failure of mv if
20776         the target file exists and is identical to the source, for
20777         parallel builds.
20778         Report from H.J. Lu against binutils in PR binutils/12283.
20779
20780 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20781
20782         * users.txt: Mention sharutils.
20783
20784 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20785
20786         * users.txt: Mention OATH Toolkit.
20787
20788 2011-01-27  Bruno Haible  <bruno@clisp.org>
20789
20790         Prepare for supporting FreeBSD 10.
20791         * build-aux/config.libpath: Remove handling of freebsd1*.
20792
20793 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20794
20795         Prepare for supporting FreeBSD 10.
20796         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20797         match FreeBSD 10.0.
20798
20799 2011-01-27  Bruno Haible  <bruno@clisp.org>
20800
20801         vma-iter, get-rusage-as: Add OpenBSD support.
20802         * modules/vma-iter (configure.ac): Test for mquery.
20803         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20804         * lib/vma-iter.c: Include <sys/mman.h>.
20805         (vma_iterate): Add an implementation based on mquery().
20806         * lib/resource-ext.h (get_rusage_as): Update comments.
20807         * lib/get-rusage-as.c: Likewise.
20808         * lib/get-rusage-data.c: Likewise.
20809
20810 2011-01-26  Karl Berry  <karl@gnu.org>
20811
20812         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20813         variables to make it easier to override the makeinfo program used.
20814
20815 2011-01-26  Eric Blake  <eblake@redhat.com>
20816
20817         fcntl: work around Haiku F_DUPFD bugs
20818         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20819         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20820         cloexec bit on duplication.
20821         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20822
20823 2011-01-26  Bruno Haible  <bruno@clisp.org>
20824
20825         Enable memory leak tests on AIX.
20826         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20827         * tests/test-fprintf-posix3.c (main): Likewise.
20828
20829 2011-01-26  Bruno Haible  <bruno@clisp.org>
20830
20831         Tests for module 'get-rusage-data'.
20832         * modules/get-rusage-data-tests: New file.
20833         * tests/test-get-rusage-data.c: New file.
20834
20835         New module 'get-rusage-data'.
20836         * lib/resource-ext.h (get_rusage_data): New declaration.
20837         * lib/get-rusage-data.c: New file.
20838         * modules/get-rusage-data: New file.
20839
20840 2011-01-25  Bruno Haible  <bruno@clisp.org>
20841
20842         get-rusage-as: Allow for easier testing.
20843         * lib/resource-ext.h (get_rusage_as): Add comment.
20844         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20845         (main): New function for interactive testing.
20846
20847 2011-01-25  Bruno Haible  <bruno@clisp.org>
20848
20849         vma-iter: Treat Haiku like BeOS.
20850         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20851         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20852
20853 2011-01-25  Eric Blake  <eblake@redhat.com>
20854
20855         c-stack: fix regression on cygwin when libsigsegv is present
20856         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20857
20858 2011-01-24  Bruno Haible  <bruno@clisp.org>
20859
20860         vma-iter: Avoid empty intervals.
20861         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20862         on an empty interval.
20863
20864 2011-01-24  Jim Meyering  <meyering@redhat.com>
20865
20866         u64: remove unnecessary #include
20867         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20868
20869 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20870
20871         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20872         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20873
20874 2011-01-23  Bruno Haible  <bruno@clisp.org>
20875
20876         New module 'vma-iter'.
20877         * lib/vma-iter.h: New file.
20878         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20879         * modules/vma-iter: New file.
20880         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20881         for get_rusage_as_via_iterator.
20882         (vma_iterate_callback): New function.
20883         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20884         * modules/get-rusage-as (Depends-on): Add vma-iter.
20885
20886 2011-01-23  Bruno Haible  <bruno@clisp.org>
20887
20888         uninorm: Tweak includes.
20889         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20890         Reported by Jim Meyering.
20891
20892 2011-01-23  Bruno Haible  <bruno@clisp.org>
20893
20894         get-rusage-as: Improve on NetBSD.
20895         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20896         /proc, like on FreeBSD.
20897
20898 2011-01-23  Jim Meyering  <meyering@redhat.com>
20899
20900         xreadlink.h: remove unnecessary #include
20901         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20902
20903         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20904         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20905
20906 2011-01-23  Bruno Haible  <bruno@clisp.org>
20907
20908         get-rusage-as: Fix bug.
20909         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20910         original limit when aborting the first loop.
20911
20912 2011-01-23  Bruno Haible  <bruno@clisp.org>
20913
20914         wctype: Ensure valid C syntax.
20915         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20916         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20917
20918 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20919
20920         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20921         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20922         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20923         as they are needed only for configure's test case.
20924         This removes two unnecessary symbols from config.h.
20925
20926         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20927         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20929         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20930         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20931         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20932         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20933         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20934         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20935         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20936         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20937         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20938         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20939         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20940         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20941         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20942         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20943         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20944
20945 2011-01-21  Eric Blake  <eblake@redhat.com>
20946
20947         maintainer-makefile: work with older git for submodule check
20948         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20949         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20950         Reported by Matthias Bolte.
20951
20952         bootstrap: minor portability fixes
20953         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20954         (usage): Omit leading capital and trailing . on help phrases, per
20955         GNU Coding Standards.
20956         (check_versions, top level): Prefix messages with script name.
20957
20958 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20959
20960         bootstrap: support --no-git option
20961         * build-aux/bootstrap: Add --no-git option, to be used when
20962         --gnulib-srcdir points to the exact desired checkout.
20963
20964 2011-01-21  Eric Blake  <eblake@redhat.com>
20965
20966         strerror_r-posix: work with glibc 2.13
20967         * lib/strerror_r.c (strerror_r): Fix return type.
20968
20969 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20970             Bruno Haible  <bruno@clisp.org>
20971
20972         uN_strstr: New unit tests.
20973         * modules/unistr/u8-strstr-tests: New file.
20974         * modules/unistr/u16-strstr-tests: New file.
20975         * modules/unistr/u32-strstr-tests: New file.
20976         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20977         * tests/unistr/test-u8-strstr.c: New file.
20978         * tests/unistr/test-u16-strstr.c: New file.
20979         * tests/unistr/test-u32-strstr.c: New file.
20980
20981 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20982             Bruno Haible  <bruno@clisp.org>
20983
20984         Make uN_strstr functions O(n) worst-case.
20985         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20986         16-bit and 32-bit unit cases, use the unibyte algorithm from
20987         lib/mbsstr.c.
20988         * lib/unistr/u8-strstr.c: Include <string.h>.
20989         (UNIT_IS_UINT8_T): New macro.
20990         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20991         (U_STRLEN, U_STRNLEN): New macros.
20992         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20993         (U_STRLEN, U_STRNLEN): New macros.
20994         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20995         (configure.ac): Update required libunistring version.
20996         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20997         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20998         malloca.
20999         (configure.ac): Update required libunistring version.
21000         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21001         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21002         malloca.
21003         (configure.ac): Update required libunistring version.
21004
21005 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21006             Bruno Haible  <bruno@clisp.org>
21007
21008         Prepare for faster uN_strstr functions.
21009         * lib/str-kmp.h: Support definable UNITs.
21010         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21011         needle_len argument.
21012         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21013         * lib/mbscasestr.c (mbscasestr): Likewise.
21014
21015 2011-01-21  Pádraig Brady <P@draigBrady.com>
21016
21017         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21018         * tests/test-malloca.c (main): Unset the environment variable
21019         to greatly speed up the test.
21020         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21021         * modules/malloca-tests: Depend on unsetenv.
21022
21023 2011-01-21  Pádraig Brady <P@draigBrady.com>
21024
21025         ignore-value: remove stdint dependency
21026         * lib/ignore-value.h: Remove <stdint.h>
21027         * modules/ignore-value: Remove stdint dependency.
21028
21029 2011-01-21  Jim Meyering  <meyering@redhat.com>
21030
21031         maint.mk: adjust variable name to be consistent with other gl_ vars
21032         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21033         to be lower case.
21034
21035 2011-01-20  Jim Meyering  <meyering@redhat.com>
21036
21037         maint.mk: make "check" depend on public-submodule-commit by default
21038         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21039
21040 2011-01-20  Bruno Haible  <bruno@clisp.org>
21041
21042         mbfile, mbiter: Complete change from 2008-12-21.
21043         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21044         * m4/mbiter.m4 (gl_MBITER): Likewise.
21045
21046 2011-01-20  Jim Meyering  <meyering@redhat.com>
21047
21048         init.sh: insert space between each function name and "()"
21049         * tests/init.sh: Make it a little easier to see that a function's
21050         name is "warn_", and not "warn" when looking at the first part of
21051         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21052
21053 2011-01-20  Jim Meyering  <meyering@redhat.com>
21054
21055         mountlist: clean up code formatting
21056         * lib/mountlist.c (read_file_system_list): Split a long line,
21057         correct bracing style, use NULL in place of "(struct statfs *)0",
21058         don't parenthesize return value, add spaces around "=" and after
21059         ";-in-for-stmt".
21060
21061 2011-01-14  Markus Duft <mduft@gentoo.org>
21062
21063         mountlist: add support for Interix
21064         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21065         Apply statvfs to all entries of /dev/fs.
21066         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21067         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21068
21069 2011-01-20  Jim Meyering  <meyering@redhat.com>
21070
21071         maint.mk: improve the public-submodule-commit rule
21072         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21073         to suppress printing of its commands... unless V=1.
21074         Add git submodule's --quiet option to suppress printing of e.g.,
21075         "Entering gnulib" output.
21076         "cd" into $(srcdir) before running git submodule.
21077
21078 2011-01-20  Bruno Haible  <bruno@clisp.org>
21079
21080         include_next: Fix bug introduced on 2011-01-18.
21081         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21082         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21083         ac_cv_header_... variable if the second argument is not 'check'.
21084         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21085         gl_NEXT_HEADERS_INTERNAL.
21086
21087 2011-01-20  Bruno Haible  <bruno@clisp.org>
21088
21089         Allow the user to avoid the GNULIB_TEST_* macros.
21090         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21091         Suggested by Paul Eggert.
21092
21093 2011-01-14  Jim Meyering  <meyering@redhat.com>
21094
21095         bootstrap: avoid failure when there is no .gitmodules file
21096         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21097         has been assigned to, even when its value is the empty string.
21098         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21099         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21100         Reported by John W. Eaton <jwe@gnu.org>.
21101
21102 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21103
21104         assume <ctype.h>, ..., <time.h> exist
21105         For years gnulib has been assuming the existence of the headers
21106         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21107         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21108         them, since they don't appear to be needed.
21109         * README (Portability guidelines): Document this.
21110         * lib/flock.c: Assume <fcntl.h> exists.
21111         * lib/regex_internal.h: Assume <locale.h> exists.
21112         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21113         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21114         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21115         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21116         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21117         * m4/regex.m4 (gl_REGEX): Likewise.
21118         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21119         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21120         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21121         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21122         * tests/test-argp.c: Likewise.
21123         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21124
21125         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21126         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21127         AA_APPLE_UNIVERSAL_BUILD.  See
21128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21129         * NEWS: Document this.
21130
21131 2011-01-19  Eric Blake  <eblake@redhat.com>
21132
21133         c-stack: assume stack overflow if SA_SIGINFO unsupported
21134         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21135         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21136         sigaction will work.
21137         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21138         behavior match Linux.
21139         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21140
21141         stdbool-tests: accomodate Haiku
21142         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21143
21144         binary-io: fix O_TEXT on Haiku
21145         * modules/binary-io (Depends-on): Add fcntl-h.
21146         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21147         than blindly undefining O_TEXT.
21148         Reported by Scott McCreary.
21149
21150 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21151
21152         include_next: do not check for standard headers like stddef.h
21153
21154         I found this problem when modifying Emacs to use gnulib.
21155         I noticed that it added HAVE_STDDEF_H to config.h, even though
21156         gnulib always assumes <stddef.h> exists as per README and this
21157         symbol is unnecessary.
21158         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21159         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21160         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21161         faster for headers like stddef.h that are known to exist.
21162         (gl_CHECK_NEXT_HEADERS): Use it.
21163         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21164         rather than gl_CHECK_NEXT_HEADERS.
21165         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21166         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21167
21168 2011-01-18  Eric Blake  <eblake@redhat.com>
21169
21170         ansi-c++-opt: skip C++ dependency style if C++ is unused
21171         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21172         tests when we know C++ compilation is not desired.
21173         Reported by Scott McCreary.
21174
21175 2011-01-18  Bruno Haible  <bruno@clisp.org>
21176
21177         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21178         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21179         (main): Perform test also when getrlimit and setrlimit don't exist or
21180         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21181         limiting the address space size using setrlimit, compare the address
21182         space size before and after the the test.
21183         * tests/test-dprintf-posix2.c: Likewise.
21184         * tests/test-fprintf-posix3.sh: Update skip messages.
21185         * tests/test-dprintf-posix2.sh: Likewise.
21186         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21187         * modules/dprintf-posix-tests (Depends-on): Likewise.
21188         Reported by Bruce Korb <bkorb@gnu.org> and
21189         Gary V. Vaughan <gary@gnu.org>.
21190
21191 2011-01-18  Bruno Haible  <bruno@clisp.org>
21192
21193         get-rusage-as: Improvement for Cygwin.
21194         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21195         areas that are merely reserved.
21196
21197 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         strftime: remove dependencies on multibyte modules
21200
21201         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21202         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21203         only if __osf__ is defined, and I suspect OSF doesn't need these
21204         other modules.  If my guess is wrong, we'll need to come up with a
21205         variant of strftime that doesn't need the multibyte modules.
21206
21207         I discovered this problem when attempting modify Emacs to use the
21208         strftime module.  With the previous gnulib, this caused Emacs to
21209         need 31 new files, ranging from lib/config.charset to
21210         m4/wint_t.m4.  This was overkill and I expect would be offputting
21211         to the Emacs maintainers.  After this change, only 6 new files are
21212         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21213         stdbool.m4, and tm_gmtoff.m4.
21214
21215         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21216         Suggested by Bruno Haible in
21217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21218         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21219         and do not check for wchar.h.
21220         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21221         (Depends-on): Remove mbrlen, mbsinit, wchar.
21222
21223 2011-01-18  Bruno Haible  <bruno@clisp.org>
21224
21225         Tests for module 'get-rusage-as'.
21226         * modules/get-rusage-as-tests: New file.
21227         * tests/test-get-rusage-as.c: New file.
21228
21229         New module 'get-rusage-as'.
21230         * modules/get-rusage-as: New file.
21231         * lib/resource-ext.h: New file.
21232         * lib/get-rusage-as.c: New file.
21233
21234 2011-01-17  Eric Blake  <eblake@redhat.com>
21235
21236         sigaction: relax license from LGPLv3+ to LGPLv2+
21237         * modules/sigaction (License): Relax to LGPLv2+.
21238
21239 2011-01-14  Bruno Haible  <bruno@clisp.org>
21240
21241         filemode: Make function declarations usable in C++ mode.
21242         * lib/filemode.h: Enclose function declarations in extern "C" block.
21243         Reported by John W. Eaton <jwe@gnu.org>.
21244
21245 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21246
21247         save-cwd: no longer include "xgetcwd.h"
21248         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21249         This avoids a compilation failure in projects that use save-cwd
21250         without also using the xgetcwd module.
21251
21252 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21253
21254         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21255         This is so that a program like Emacs, which needs only dtoastr,
21256         does not have to bother with distributing and compiling ftoastr
21257         and ldtoastr.
21258         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21259         * modules/dtoastr, modules/ldtoastr: New files.
21260         * modules/ftoastr: Now works just for 'float'.
21261         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21262         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21263         dtoastr.c, ldtoastr.c.
21264
21265 2011-01-11  Jim Meyering  <meyering@redhat.com>
21266
21267         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21268         There is no need to work around the lack of the fchdir function,
21269         since gnulib can now provide a replacement when required.
21270         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21271         * modules/save-cwd (Depends-on): Add fchdir.
21272
21273 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21274
21275         openat, save-cwd: avoid xmalloc
21276
21277         This removes a direct (but undocumented) dependency of openat on
21278         xalloc, along with an indirect dependency via save-cwd.  It also
21279         removes a dependency of save-cwd on xgetcwd, and thereby
21280         indirectly on xalloc.  This change causes the openat substitute
21281         to fall back on save_cwd when memory is tight, and for save_cwd to
21282         fail instead of dying when memory is tight, but that's good enough.
21283         Problem and initial idea for fix reported by Bastien Roucaries in
21284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21285
21286         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21287         xalloc.h (for xmalloc).
21288         (openat_proc_name): Use malloc, not xmalloc.
21289         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21290         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21291
21292         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21293         This avoids heap allocation for file names whose lengths are in
21294         the range 512..1023, with the upper bound increasing to at most
21295         4031 depending on the platform's PATH_MAX.  (We do not want
21296         pathmax.h here as it might supply a non-constant PATH_MAX.)
21297         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21298         Perhaps they should be moved to malloca.h?
21299         (OPENAT_BUFFER_SIZE): Use them.
21300
21301 2011-01-10  Bruno Haible  <bruno@clisp.org>
21302
21303         doc: Update users.txt.
21304         * users.txt: Add recutils.
21305
21306 2011-01-09  Karl Berry  <karl@gnu.org>
21307
21308         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21309
21310         * doc/configmake.texi: New file.
21311         * doc/gnulib.texi: Include it.
21312         * modules/configmake: Move documentation from here.
21313
21314 2011-01-09  Bruno Haible  <bruno@clisp.org>
21315
21316         Update to Unicode 6.0.0.
21317         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21318         (get_lbp): Update for Unicode 6.0.0.
21319         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21320         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21321         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21322         U+11001, U+11038..U+11046. Remove U+06DE.
21323         (uc_width): Fix bounds of planes.
21324         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21325         lib/uniwidth/width.c.
21326         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21327         trailing whitespace removed.
21328         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21329         without comments, but with the original copyright notice.
21330         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21331         * lib/unicase/ignorable.h: Likewise.
21332         * lib/unicase/tocasefold.h: Likewise.
21333         * lib/unicase/tolower.h: Likewise.
21334         * lib/unicase/totitle.h: Likewise.
21335         * lib/unicase/toupper.h: Likewise.
21336         * lib/unictype/bidi_of.h: Likewise.
21337         * lib/unictype/blocks.h: Likewise.
21338         * lib/unictype/categ_C.h: Likewise.
21339         * lib/unictype/categ_Cn.h: Likewise.
21340         * lib/unictype/categ_L.h: Likewise.
21341         * lib/unictype/categ_Ll.h: Likewise.
21342         * lib/unictype/categ_Lm.h: Likewise.
21343         * lib/unictype/categ_Lo.h: Likewise.
21344         * lib/unictype/categ_Lu.h: Likewise.
21345         * lib/unictype/categ_M.h: Likewise.
21346         * lib/unictype/categ_Mc.h: Likewise.
21347         * lib/unictype/categ_Me.h: Likewise.
21348         * lib/unictype/categ_Mn.h: Likewise.
21349         * lib/unictype/categ_N.h: Likewise.
21350         * lib/unictype/categ_Nd.h: Likewise.
21351         * lib/unictype/categ_No.h: Likewise.
21352         * lib/unictype/categ_P.h: Likewise.
21353         * lib/unictype/categ_Po.h: Likewise.
21354         * lib/unictype/categ_S.h: Likewise.
21355         * lib/unictype/categ_Sc.h: Likewise.
21356         * lib/unictype/categ_Sk.h: Likewise.
21357         * lib/unictype/categ_Sm.h: Likewise.
21358         * lib/unictype/categ_So.h: Likewise.
21359         * lib/unictype/categ_of.h: Likewise.
21360         * lib/unictype/combining.h: Likewise.
21361         * lib/unictype/ctype_alnum.h: Likewise.
21362         * lib/unictype/ctype_alpha.h: Likewise.
21363         * lib/unictype/ctype_graph.h: Likewise.
21364         * lib/unictype/ctype_lower.h: Likewise.
21365         * lib/unictype/ctype_print.h: Likewise.
21366         * lib/unictype/ctype_punct.h: Likewise.
21367         * lib/unictype/ctype_upper.h: Likewise.
21368         * lib/unictype/decdigit.h: Likewise.
21369         * lib/unictype/digit.h: Likewise.
21370         * lib/unictype/numeric.h: Likewise.
21371         * lib/unictype/pr_alphabetic.h: Likewise.
21372         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21373         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21374         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21375         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21376         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21377         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21378         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21379         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21380         * lib/unictype/pr_case_ignorable.h: Likewise.
21381         * lib/unictype/pr_cased.h: Likewise.
21382         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21383         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21384         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21385         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21386         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21387         * lib/unictype/pr_combining.h: Likewise.
21388         * lib/unictype/pr_composite.h: Likewise.
21389         * lib/unictype/pr_currency_symbol.h: Likewise.
21390         * lib/unictype/pr_decimal_digit.h: Likewise.
21391         * lib/unictype/pr_deprecated.h: Likewise.
21392         * lib/unictype/pr_format_control.h: Likewise.
21393         * lib/unictype/pr_grapheme_base.h: Likewise.
21394         * lib/unictype/pr_grapheme_extend.h: Likewise.
21395         * lib/unictype/pr_grapheme_link.h: Likewise.
21396         * lib/unictype/pr_id_continue.h: Likewise.
21397         * lib/unictype/pr_id_start.h: Likewise.
21398         * lib/unictype/pr_ideographic.h: Likewise.
21399         * lib/unictype/pr_lowercase.h: Likewise.
21400         * lib/unictype/pr_math.h: Likewise.
21401         * lib/unictype/pr_numeric.h: Likewise.
21402         * lib/unictype/pr_other_alphabetic.h: Likewise.
21403         * lib/unictype/pr_other_id_continue.h: Likewise.
21404         * lib/unictype/pr_other_math.h: Likewise.
21405         * lib/unictype/pr_punctuation.h: Likewise.
21406         * lib/unictype/pr_sentence_terminal.h: Likewise.
21407         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21408         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21409         * lib/unictype/pr_unified_ideograph.h: Likewise.
21410         * lib/unictype/pr_uppercase.h: Likewise.
21411         * lib/unictype/pr_xid_continue.h: Likewise.
21412         * lib/unictype/pr_xid_start.h: Likewise.
21413         * lib/unictype/scripts.h: Likewise.
21414         * lib/unictype/scripts_byname.gperf: Likewise.
21415         * lib/unictype/sy_java_ident.h: Likewise.
21416         * lib/unigbrk/gbrkprop.h: Likewise.
21417         * lib/unilbrk/lbrkprop1.h: Likewise.
21418         * lib/unilbrk/lbrkprop2.h: Likewise.
21419         * lib/uninorm/decomposition-table2.h: Likewise.
21420         * lib/uniwbrk/wbrkprop.h: Likewise.
21421         * tests/unicase/test-cased.c: Likewise.
21422         * tests/unicase/test-ignorable.c: Likewise.
21423         * tests/unicase/test-uc_tolower.c: Likewise.
21424         * tests/unicase/test-uc_totitle.c: Likewise.
21425         * tests/unicase/test-uc_toupper.c: Likewise.
21426         * tests/unictype/test-categ_C.c: Likewise.
21427         * tests/unictype/test-categ_Cn.c: Likewise.
21428         * tests/unictype/test-categ_L.c: Likewise.
21429         * tests/unictype/test-categ_Ll.c: Likewise.
21430         * tests/unictype/test-categ_Lm.c: Likewise.
21431         * tests/unictype/test-categ_Lo.c: Likewise.
21432         * tests/unictype/test-categ_Lu.c: Likewise.
21433         * tests/unictype/test-categ_M.c: Likewise.
21434         * tests/unictype/test-categ_Mc.c: Likewise.
21435         * tests/unictype/test-categ_Me.c: Likewise.
21436         * tests/unictype/test-categ_Mn.c: Likewise.
21437         * tests/unictype/test-categ_N.c: Likewise.
21438         * tests/unictype/test-categ_Nd.c: Likewise.
21439         * tests/unictype/test-categ_No.c: Likewise.
21440         * tests/unictype/test-categ_P.c: Likewise.
21441         * tests/unictype/test-categ_Po.c: Likewise.
21442         * tests/unictype/test-categ_S.c: Likewise.
21443         * tests/unictype/test-categ_Sc.c: Likewise.
21444         * tests/unictype/test-categ_Sk.c: Likewise.
21445         * tests/unictype/test-categ_Sm.c: Likewise.
21446         * tests/unictype/test-categ_So.c: Likewise.
21447         * tests/unictype/test-ctype_alnum.c: Likewise.
21448         * tests/unictype/test-ctype_alpha.c: Likewise.
21449         * tests/unictype/test-ctype_graph.c: Likewise.
21450         * tests/unictype/test-ctype_lower.c: Likewise.
21451         * tests/unictype/test-ctype_print.c: Likewise.
21452         * tests/unictype/test-ctype_punct.c: Likewise.
21453         * tests/unictype/test-ctype_upper.c: Likewise.
21454         * tests/unictype/test-decdigit.h: Likewise.
21455         * tests/unictype/test-digit.h: Likewise.
21456         * tests/unictype/test-numeric.h: Likewise.
21457         * tests/unictype/test-pr_alphabetic.c: Likewise.
21458         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21459         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21460         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21461         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21462         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21463         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21464         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21465         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21466         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21467         * tests/unictype/test-pr_cased.c: Likewise.
21468         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21469         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21470         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21471         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21472         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21473         * tests/unictype/test-pr_combining.c: Likewise.
21474         * tests/unictype/test-pr_composite.c: Likewise.
21475         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21476         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21477         * tests/unictype/test-pr_deprecated.c: Likewise.
21478         * tests/unictype/test-pr_format_control.c: Likewise.
21479         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21480         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21481         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21482         * tests/unictype/test-pr_id_continue.c: Likewise.
21483         * tests/unictype/test-pr_id_start.c: Likewise.
21484         * tests/unictype/test-pr_ideographic.c: Likewise.
21485         * tests/unictype/test-pr_lowercase.c: Likewise.
21486         * tests/unictype/test-pr_math.c: Likewise.
21487         * tests/unictype/test-pr_numeric.c: Likewise.
21488         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21489         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21490         * tests/unictype/test-pr_other_math.c: Likewise.
21491         * tests/unictype/test-pr_punctuation.c: Likewise.
21492         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21493         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21494         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21495         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21496         * tests/unictype/test-pr_uppercase.c: Likewise.
21497         * tests/unictype/test-pr_xid_continue.c: Likewise.
21498         * tests/unictype/test-pr_xid_start.c: Likewise.
21499         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21500         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21501         changes.
21502         * lib/unictype/categ_Cc.h: Likewise.
21503         * lib/unictype/categ_Cf.h: Likewise.
21504         * lib/unictype/categ_Co.h: Likewise.
21505         * lib/unictype/categ_Cs.h: Likewise.
21506         * lib/unictype/categ_Lt.h: Likewise.
21507         * lib/unictype/categ_Nl.h: Likewise.
21508         * lib/unictype/categ_Pc.h: Likewise.
21509         * lib/unictype/categ_Pd.h: Likewise.
21510         * lib/unictype/categ_Pe.h: Likewise.
21511         * lib/unictype/categ_Pf.h: Likewise.
21512         * lib/unictype/categ_Pi.h: Likewise.
21513         * lib/unictype/categ_Ps.h: Likewise.
21514         * lib/unictype/categ_Z.h: Likewise.
21515         * lib/unictype/categ_Zl.h: Likewise.
21516         * lib/unictype/categ_Zp.h: Likewise.
21517         * lib/unictype/categ_Zs.h: Likewise.
21518         * lib/unictype/ctype_blank.h: Likewise.
21519         * lib/unictype/ctype_cntrl.h: Likewise.
21520         * lib/unictype/ctype_digit.h: Likewise.
21521         * lib/unictype/ctype_space.h: Likewise.
21522         * lib/unictype/ctype_xdigit.h: Likewise.
21523         * lib/unictype/mirror.h: Likewise.
21524         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21525         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21526         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21527         * lib/unictype/pr_bidi_control.h: Likewise.
21528         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21529         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21530         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21531         * lib/unictype/pr_bidi_pdf.h: Likewise.
21532         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21533         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21534         * lib/unictype/pr_dash.h: Likewise.
21535         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21536         * lib/unictype/pr_diacritic.h: Likewise.
21537         * lib/unictype/pr_extender.h: Likewise.
21538         * lib/unictype/pr_hex_digit.h: Likewise.
21539         * lib/unictype/pr_hyphen.h: Likewise.
21540         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21541         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21542         * lib/unictype/pr_ignorable_control.h: Likewise.
21543         * lib/unictype/pr_iso_control.h: Likewise.
21544         * lib/unictype/pr_join_control.h: Likewise.
21545         * lib/unictype/pr_left_of_pair.h: Likewise.
21546         * lib/unictype/pr_line_separator.h: Likewise.
21547         * lib/unictype/pr_logical_order_exception.h: Likewise.
21548         * lib/unictype/pr_non_break.h: Likewise.
21549         * lib/unictype/pr_not_a_character.h: Likewise.
21550         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21551         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21552         * lib/unictype/pr_other_id_start.h: Likewise.
21553         * lib/unictype/pr_other_lowercase.h: Likewise.
21554         * lib/unictype/pr_other_uppercase.h: Likewise.
21555         * lib/unictype/pr_paired_punctuation.h: Likewise.
21556         * lib/unictype/pr_paragraph_separator.h: Likewise.
21557         * lib/unictype/pr_pattern_syntax.h: Likewise.
21558         * lib/unictype/pr_pattern_white_space.h: Likewise.
21559         * lib/unictype/pr_private_use.h: Likewise.
21560         * lib/unictype/pr_quotation_mark.h: Likewise.
21561         * lib/unictype/pr_radical.h: Likewise.
21562         * lib/unictype/pr_soft_dotted.h: Likewise.
21563         * lib/unictype/pr_space.h: Likewise.
21564         * lib/unictype/pr_titlecase.h: Likewise.
21565         * lib/unictype/pr_variation_selector.h: Likewise.
21566         * lib/unictype/pr_white_space.h: Likewise.
21567         * lib/unictype/pr_zero_width.h: Likewise.
21568         * lib/unictype/sy_c_ident.h: Likewise.
21569         * lib/unictype/sy_c_whitespace.h: Likewise.
21570         * lib/unictype/sy_java_whitespace.h: Likewise.
21571         * lib/uninorm/composition-table.gperf: Likewise.
21572         * lib/uninorm/decomposition-table1.h: Likewise.
21573         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21574         LB8.
21575         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21576         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21577         * modules/unictype/*: Bump version number of expected libunistring
21578         version.
21579
21580 2011-01-09  Bruno Haible  <bruno@clisp.org>
21581
21582         Update to Unicode 5.2.0.
21583         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21584         trailing whitespace removed.
21585
21586 2011-01-09  Bruno Haible  <bruno@clisp.org>
21587
21588         New Unicode character properties, from Unicode 5.2.0.
21589         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21590         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21591         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21592         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21593         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21594         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21595         uc_is_property_cased, uc_is_property_case_ignorable,
21596         uc_is_property_changes_when_lowercased,
21597         uc_is_property_changes_when_uppercased,
21598         uc_is_property_changes_when_titlecased,
21599         uc_is_property_changes_when_casefolded,
21600         uc_is_property_changes_when_casemapped): New declarations.
21601         * lib/unictype/pr_byname.gperf: Add the new properties.
21602         * modules/unictype/property-byname (Depends-on): Depend on the new
21603         properties modules.
21604         * modules/unictype/property-all (Depends-on): Likewise.
21605         * MODULES.html.sh (Unicode string functions): Add
21606         unictype/property-case-ignorable, unictype/property-cased,
21607         unictype/property-changes-when-casefolded,
21608         unictype/property-changes-when-casemapped,
21609         unictype/property-changes-when-lowercased,
21610         unictype/property-changes-when-titlecased,
21611         unictype/property-changes-when-uppercased.
21612
21613         New module 'unictype/property-changes-when-casemapped'.
21614         * modules/unictype/property-changes-when-casemapped: New file.
21615         * lib/unictype/pr_changes_when_casemapped.c: New file.
21616         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21617         generated by gen-uni-tables.
21618         * modules/unictype/property-changes-when-casemapped-tests: New file.
21619         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21620         automatically generated by gen-uni-tables.
21621
21622         New module 'unictype/property-changes-when-casefolded'.
21623         * modules/unictype/property-changes-when-casefolded: New file.
21624         * lib/unictype/pr_changes_when_casefolded.c: New file.
21625         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21626         generated by gen-uni-tables.
21627         * modules/unictype/property-changes-when-casefolded-tests: New file.
21628         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21629         automatically generated by gen-uni-tables.
21630
21631         New module 'unictype/property-changes-when-titlecased'.
21632         * modules/unictype/property-changes-when-titlecased: New file.
21633         * lib/unictype/pr_changes_when_titlecased.c: New file.
21634         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21635         generated by gen-uni-tables.
21636         * modules/unictype/property-changes-when-titlecased-tests: New file.
21637         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21638         automatically generated by gen-uni-tables.
21639
21640         New module 'unictype/property-changes-when-uppercased'.
21641         * modules/unictype/property-changes-when-uppercased: New file.
21642         * lib/unictype/pr_changes_when_uppercased.c: New file.
21643         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21644         generated by gen-uni-tables.
21645         * modules/unictype/property-changes-when-uppercased-tests: New file.
21646         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21647         automatically generated by gen-uni-tables.
21648
21649         New module 'unictype/property-changes-when-lowercased'.
21650         * modules/unictype/property-changes-when-lowercased: New file.
21651         * lib/unictype/pr_changes_when_lowercased.c: New file.
21652         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21653         generated by gen-uni-tables.
21654         * modules/unictype/property-changes-when-lowercased-tests: New file.
21655         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21656         automatically generated by gen-uni-tables.
21657
21658         New module 'unictype/property-case-ignorable'.
21659         * modules/unictype/property-case-ignorable: New file.
21660         * lib/unictype/pr_case_ignorable.c: New file.
21661         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21662         by gen-uni-tables.
21663         * modules/unictype/property-case-ignorable-tests: New file.
21664         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21665         generated by gen-uni-tables.
21666
21667         New module 'unictype/property-cased'.
21668         * modules/unictype/property-cased: New file.
21669         * lib/unictype/pr_cased.c: New file.
21670         * lib/unictype/pr_cased.h: New file, automatically generated by
21671         gen-uni-tables.
21672         * modules/unictype/property-cased-tests: New file.
21673         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21674         gen-uni-tables.
21675
21676 2011-01-09  Bruno Haible  <bruno@clisp.org>
21677
21678         Update to Unicode 5.2.0.
21679         * lib/gen-uni-tables.c (output_predicate, output_category,
21680         output_combclass, output_bidi_category, output_decimal_digit_test,
21681         output_decimal_digit, output_digit_test, output_digit,
21682         output_numeric_test, output_numeric, output_mirror, output_scripts,
21683         output_scripts_byname, output_blocks, output_ident_category): Fix
21684         comment header.
21685         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21686         get_wbp.
21687         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21688         items.
21689         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21690         Changes_When_Lowercased, Changes_When_Uppercased,
21691         Changes_When_Titlecased, Changes_When_Casefolded,
21692         Changes_When_Casemapped.
21693         (is_property_alphabetic, is_property_default_ignorable_code_point):
21694         Update for Unicode 5.2.0.
21695         (is_property_cased, is_property_case_ignorable,
21696         is_property_changes_when_lowercased,
21697         is_property_changes_when_uppercased,
21698         is_property_changes_when_titlecased,
21699         is_property_changes_when_casefolded,
21700         is_property_changes_when_casemapped): New functions.
21701         (output_properties): Output also the properties cased, case_ignorable,
21702         changes_when_lowercased, changes_when_uppercased,
21703         changes_when_titlecased, changes_when_casefolded,
21704         changes_when_casemapped.
21705         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21706         Unicode TR#11 revision 17 -> 19.
21707         (LBP_CP): New enumeration value.
21708         (LBP_*): Adjust values accordingly.
21709         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21710         TR#14 revision 22 -> 24.
21711         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21712         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21713         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21714         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21715         is_WBP_MIDLETTER.
21716         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21717         the code1 and code2 of each composition rule.
21718         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21719         * lib/unicase/ignorable.h: Likewise.
21720         * lib/unicase/tocasefold.h: Likewise.
21721         * lib/unicase/tolower.h: Likewise.
21722         * lib/unicase/totitle.h: Likewise.
21723         * lib/unicase/toupper.h: Likewise.
21724         * lib/unictype/bidi_of.h: Likewise.
21725         * lib/unictype/blocks.h: Likewise.
21726         * lib/unictype/categ_C.h: Likewise.
21727         * lib/unictype/categ_Cf.h: Likewise.
21728         * lib/unictype/categ_Cn.h: Likewise.
21729         * lib/unictype/categ_L.h: Likewise.
21730         * lib/unictype/categ_Ll.h: Likewise.
21731         * lib/unictype/categ_Lm.h: Likewise.
21732         * lib/unictype/categ_Lo.h: Likewise.
21733         * lib/unictype/categ_Lu.h: Likewise.
21734         * lib/unictype/categ_M.h: Likewise.
21735         * lib/unictype/categ_Mc.h: Likewise.
21736         * lib/unictype/categ_Mn.h: Likewise.
21737         * lib/unictype/categ_N.h: Likewise.
21738         * lib/unictype/categ_Nd.h: Likewise.
21739         * lib/unictype/categ_Nl.h: Likewise.
21740         * lib/unictype/categ_No.h: Likewise.
21741         * lib/unictype/categ_P.h: Likewise.
21742         * lib/unictype/categ_Pd.h: Likewise.
21743         * lib/unictype/categ_Po.h: Likewise.
21744         * lib/unictype/categ_S.h: Likewise.
21745         * lib/unictype/categ_Sc.h: Likewise.
21746         * lib/unictype/categ_So.h: Likewise.
21747         * lib/unictype/categ_of.h: Likewise.
21748         * lib/unictype/combining.h: Likewise.
21749         * lib/unictype/ctype_alnum.h: Likewise.
21750         * lib/unictype/ctype_alpha.h: Likewise.
21751         * lib/unictype/ctype_graph.h: Likewise.
21752         * lib/unictype/ctype_lower.h: Likewise.
21753         * lib/unictype/ctype_print.h: Likewise.
21754         * lib/unictype/ctype_punct.h: Likewise.
21755         * lib/unictype/ctype_upper.h: Likewise.
21756         * lib/unictype/decdigit.h: Likewise.
21757         * lib/unictype/digit.h: Likewise.
21758         * lib/unictype/numeric.h: Likewise.
21759         * lib/unictype/pr_alphabetic.h: Likewise.
21760         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21761         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21762         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21763         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21764         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21765         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21766         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21767         * lib/unictype/pr_combining.h: Likewise.
21768         * lib/unictype/pr_composite.h: Likewise.
21769         * lib/unictype/pr_currency_symbol.h: Likewise.
21770         * lib/unictype/pr_dash.h: Likewise.
21771         * lib/unictype/pr_decimal_digit.h: Likewise.
21772         * lib/unictype/pr_deprecated.h: Likewise.
21773         * lib/unictype/pr_diacritic.h: Likewise.
21774         * lib/unictype/pr_extender.h: Likewise.
21775         * lib/unictype/pr_grapheme_base.h: Likewise.
21776         * lib/unictype/pr_grapheme_extend.h: Likewise.
21777         * lib/unictype/pr_grapheme_link.h: Likewise.
21778         * lib/unictype/pr_id_continue.h: Likewise.
21779         * lib/unictype/pr_id_start.h: Likewise.
21780         * lib/unictype/pr_ideographic.h: Likewise.
21781         * lib/unictype/pr_ignorable_control.h: Likewise.
21782         * lib/unictype/pr_logical_order_exception.h: Likewise.
21783         * lib/unictype/pr_lowercase.h: Likewise.
21784         * lib/unictype/pr_numeric.h: Likewise.
21785         * lib/unictype/pr_other_alphabetic.h: Likewise.
21786         * lib/unictype/pr_punctuation.h: Likewise.
21787         * lib/unictype/pr_sentence_terminal.h: Likewise.
21788         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21789         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21790         * lib/unictype/pr_unified_ideograph.h: Likewise.
21791         * lib/unictype/pr_uppercase.h: Likewise.
21792         * lib/unictype/pr_xid_continue.h: Likewise.
21793         * lib/unictype/pr_xid_start.h: Likewise.
21794         * lib/unictype/pr_zero_width.h: Likewise.
21795         * lib/unictype/scripts.h: Likewise.
21796         * lib/unictype/scripts_byname.gperf: Likewise.
21797         * lib/unictype/sy_java_ident.h: Likewise.
21798         * lib/unigbrk/gbrkprop.h: Likewise.
21799         * lib/unilbrk/lbrkprop1.h: Likewise.
21800         * lib/unilbrk/lbrkprop2.h: Likewise.
21801         * lib/unilbrk/lbrktables.h: Likewise.
21802         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21803         LBP_CP. Implement rule LB30.
21804         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21805         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21806         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21807         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21808         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21809         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21810         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21811         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21812         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21813         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21814         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21815         bits instead of 16 bits in the code1 and code2 of each composition
21816         rule.
21817         (uc_composition): Update for Unicode 5.2.0.
21818         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21819         * lib/uninorm/decomposition-table2.h: Likewise.
21820         * lib/uniwbrk/wbrkprop.h: Likewise.
21821         * tests/unicase/test-cased.c: Likewise.
21822         * tests/unicase/test-ignorable.c: Likewise.
21823         * tests/unicase/test-uc_tolower.c: Likewise.
21824         * tests/unicase/test-uc_totitle.c: Likewise.
21825         * tests/unicase/test-uc_toupper.c: Likewise.
21826         * tests/unictype/test-categ_C.c: Likewise.
21827         * tests/unictype/test-categ_Cf.c: Likewise.
21828         * tests/unictype/test-categ_Cn.c: Likewise.
21829         * tests/unictype/test-categ_L.c: Likewise.
21830         * tests/unictype/test-categ_Ll.c: Likewise.
21831         * tests/unictype/test-categ_Lm.c: Likewise.
21832         * tests/unictype/test-categ_Lo.c: Likewise.
21833         * tests/unictype/test-categ_Lu.c: Likewise.
21834         * tests/unictype/test-categ_M.c: Likewise.
21835         * tests/unictype/test-categ_Mc.c: Likewise.
21836         * tests/unictype/test-categ_Mn.c: Likewise.
21837         * tests/unictype/test-categ_N.c: Likewise.
21838         * tests/unictype/test-categ_Nd.c: Likewise.
21839         * tests/unictype/test-categ_Nl.c: Likewise.
21840         * tests/unictype/test-categ_No.c: Likewise.
21841         * tests/unictype/test-categ_P.c: Likewise.
21842         * tests/unictype/test-categ_Pd.c: Likewise.
21843         * tests/unictype/test-categ_Po.c: Likewise.
21844         * tests/unictype/test-categ_S.c: Likewise.
21845         * tests/unictype/test-categ_Sc.c: Likewise.
21846         * tests/unictype/test-categ_So.c: Likewise.
21847         * tests/unictype/test-ctype_alnum.c: Likewise.
21848         * tests/unictype/test-ctype_alpha.c: Likewise.
21849         * tests/unictype/test-ctype_graph.c: Likewise.
21850         * tests/unictype/test-ctype_lower.c: Likewise.
21851         * tests/unictype/test-ctype_print.c: Likewise.
21852         * tests/unictype/test-ctype_punct.c: Likewise.
21853         * tests/unictype/test-ctype_upper.c: Likewise.
21854         * tests/unictype/test-decdigit.h: Likewise.
21855         * tests/unictype/test-digit.h: Likewise.
21856         * tests/unictype/test-numeric.h: Likewise.
21857         * tests/unictype/test-pr_alphabetic.c: Likewise.
21858         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21859         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21860         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21861         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21862         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21863         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21864         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21865         * tests/unictype/test-pr_combining.c: Likewise.
21866         * tests/unictype/test-pr_composite.c: Likewise.
21867         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21868         * tests/unictype/test-pr_dash.c: Likewise.
21869         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21870         * tests/unictype/test-pr_deprecated.c: Likewise.
21871         * tests/unictype/test-pr_diacritic.c: Likewise.
21872         * tests/unictype/test-pr_extender.c: Likewise.
21873         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21874         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21875         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21876         * tests/unictype/test-pr_id_continue.c: Likewise.
21877         * tests/unictype/test-pr_id_start.c: Likewise.
21878         * tests/unictype/test-pr_ideographic.c: Likewise.
21879         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21880         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21881         * tests/unictype/test-pr_lowercase.c: Likewise.
21882         * tests/unictype/test-pr_numeric.c: Likewise.
21883         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21884         * tests/unictype/test-pr_punctuation.c: Likewise.
21885         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21886         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21887         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21888         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21889         * tests/unictype/test-pr_uppercase.c: Likewise.
21890         * tests/unictype/test-pr_xid_continue.c: Likewise.
21891         * tests/unictype/test-pr_xid_start.c: Likewise.
21892         * tests/unictype/test-pr_zero_width.c: Likewise.
21893         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21894         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21895         changed behaviour: line breaking is now disallowed between a letter
21896         or '=' and '('.
21897         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21898         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21899         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21900         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21901         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21902         lib/uniwidth/width.c.
21903         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21904         without comments, but with the original copyright notice.
21905         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21906         changes.
21907         * lib/unictype/categ_Cc.h: Likewise.
21908         * lib/unictype/categ_Co.h: Likewise.
21909         * lib/unictype/categ_Cs.h: Likewise.
21910         * lib/unictype/categ_Lt.h: Likewise.
21911         * lib/unictype/categ_Me.h: Likewise.
21912         * lib/unictype/categ_Pc.h: Likewise.
21913         * lib/unictype/categ_Pe.h: Likewise.
21914         * lib/unictype/categ_Pf.h: Likewise.
21915         * lib/unictype/categ_Pi.h: Likewise.
21916         * lib/unictype/categ_Ps.h: Likewise.
21917         * lib/unictype/categ_Sk.h: Likewise.
21918         * lib/unictype/categ_Sm.h: Likewise.
21919         * lib/unictype/categ_Z.h: Likewise.
21920         * lib/unictype/categ_Zl.h: Likewise.
21921         * lib/unictype/categ_Zp.h: Likewise.
21922         * lib/unictype/categ_Zs.h: Likewise.
21923         * lib/unictype/ctype_blank.h: Likewise.
21924         * lib/unictype/ctype_cntrl.h: Likewise.
21925         * lib/unictype/ctype_digit.h: Likewise.
21926         * lib/unictype/ctype_space.h: Likewise.
21927         * lib/unictype/ctype_xdigit.h: Likewise.
21928         * lib/unictype/mirror.h: Likewise.
21929         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21930         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21931         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21932         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21933         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21934         * lib/unictype/pr_bidi_control.h: Likewise.
21935         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21936         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21937         * lib/unictype/pr_bidi_pdf.h: Likewise.
21938         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21939         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21940         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21941         * lib/unictype/pr_format_control.h: Likewise.
21942         * lib/unictype/pr_hex_digit.h: Likewise.
21943         * lib/unictype/pr_hyphen.h: Likewise.
21944         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21945         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21946         * lib/unictype/pr_iso_control.h: Likewise.
21947         * lib/unictype/pr_join_control.h: Likewise.
21948         * lib/unictype/pr_left_of_pair.h: Likewise.
21949         * lib/unictype/pr_line_separator.h: Likewise.
21950         * lib/unictype/pr_math.h: Likewise.
21951         * lib/unictype/pr_non_break.h: Likewise.
21952         * lib/unictype/pr_not_a_character.h: Likewise.
21953         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21954         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21955         * lib/unictype/pr_other_id_continue.h: Likewise.
21956         * lib/unictype/pr_other_id_start.h: Likewise.
21957         * lib/unictype/pr_other_lowercase.h: Likewise.
21958         * lib/unictype/pr_other_math.h: Likewise.
21959         * lib/unictype/pr_other_uppercase.h: Likewise.
21960         * lib/unictype/pr_paired_punctuation.h: Likewise.
21961         * lib/unictype/pr_paragraph_separator.h: Likewise.
21962         * lib/unictype/pr_pattern_syntax.h: Likewise.
21963         * lib/unictype/pr_pattern_white_space.h: Likewise.
21964         * lib/unictype/pr_private_use.h: Likewise.
21965         * lib/unictype/pr_quotation_mark.h: Likewise.
21966         * lib/unictype/pr_radical.h: Likewise.
21967         * lib/unictype/pr_soft_dotted.h: Likewise.
21968         * lib/unictype/pr_space.h: Likewise.
21969         * lib/unictype/pr_titlecase.h: Likewise.
21970         * lib/unictype/pr_variation_selector.h: Likewise.
21971         * lib/unictype/pr_white_space.h: Likewise.
21972         * lib/unictype/sy_c_ident.h: Likewise.
21973         * lib/unictype/sy_c_whitespace.h: Likewise.
21974         * lib/unictype/sy_java_whitespace.h: Likewise.
21975         * modules/uni*/*: Bump version number of expected libunistring version.
21976         Reported by Simon Josefsson.
21977
21978 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21979
21980         useless-if-before-free: fix typo in --help and make the internal,
21981         automatic version date update process work once again.
21982         --help output contained a NUL character instead of the
21983         backslash-zero that was intended.  Also, the "must lie within
21984         the first 8 lines" line is on line 9, and hence not getting
21985         automatically updated.
21986         * build-aux/useless-if-before-free: Fix the former by adding a
21987         backslash, and the latter by condensing the three lines of what-it-does
21988         to a single line, leaving one line of slack for the future.
21989
21990 2011-01-09  Bruno Haible  <bruno@clisp.org>
21991
21992         uniwidth/width: Fix width of U+1D173..U+1D17A.
21993         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21994         symbolic_width, output_width_property_test): New functions.
21995         (main): Invoke output_nonspacing_property, output_width_property_test.
21996         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21997         U+1D173..U+1D17A.
21998         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21999         1.
22000         * modules/uniwidth/*: Bump version number of expected libunistring
22001         version.
22002         * modules/unilbrk/*: Likewise.
22003
22004 2011-01-08  Bruno Haible  <bruno@clisp.org>
22005
22006         uninorm tests: Preserve copyright of Unicode data file.
22007         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22008         Mention modifications.
22009
22010 2011-01-08  Bruno Haible  <bruno@clisp.org>
22011
22012         gen-uni-tables: Prepare for Unicode 5.2.0.
22013         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22014         (debug_output_lbp, output_lbp): Update.
22015
22016 2011-01-08  Bruno Haible  <bruno@clisp.org>
22017
22018         unilbrk: Clarify gen-uni-tables.c code.
22019         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22020         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22021         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22022
22023 2011-01-07  Bruno Haible  <bruno@clisp.org>
22024
22025         strtod: Restore errno when successfully parsing Infinity or NaN.
22026         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22027         restore the original errno.
22028
22029 2011-01-07  Bruno Haible  <bruno@clisp.org>
22030
22031         remove test: Avoid failure on HP-UX 11.
22032         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22033
22034 2011-01-07  Bruno Haible  <bruno@clisp.org>
22035
22036         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22037         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22038         error code.
22039
22040 2011-01-07  Pádraig Brady <P@draigBrady.com>
22041
22042         ignore-value: fixup comments, and add Eric Blake
22043         as an author since he rewrote the macros.
22044         * lib/ignore-value.h (ignore_value):  State that
22045         we now support aggregates.  Also specify exactly
22046         when the GCC warn_unused_result feature was added.
22047
22048 2011-01-06  Eric Blake  <eblake@redhat.com>
22049
22050         ignore-value: support aggregate types
22051         * lib/ignore-value.h (ignore_value): Provide separate gcc
22052         definition.
22053         * modules/ignore-value-tests: New test module.
22054         * tests/test-ignore-value.c: New test.
22055
22056         maint.mk: improve sc_prohibit_strcmp regex
22057         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22058         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22059         definition of STRNEQ.
22060
22061         signal: work around Haiku issue with SIGBUS
22062         * lib/siglist.h: Add comment.
22063         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22064         strsignal's favoring of SIGSEGV.
22065         * tests/test-signal.c (main): Avoid test failure.
22066         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22067         Reported by Scott McCreary.
22068
22069         maint.mk: add pre-release check to ensure submodule commits are public
22070         * top/maint.mk (public-submodule-commit): New rule.
22071         (submodule-checks): New variable.
22072         (alpha beta stable): Depend on the variable.
22073
22074 2011-01-05  Pádraig Brady <P@draigBrady.com>
22075         and Jim Meyering  <meyering@redhat.com>
22076
22077         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22078         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22079         (ATTRIBUTE_DEPRECATED): Define.
22080         (_ignore_case): New function.
22081         (ignore_value): New macro, to replace the old function.
22082         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22083         * modules/ignore-value (Depends-on): Add stdint.
22084
22085 2011-01-04  Eric Blake  <eblake@redhat.com>
22086
22087         doc: regenerate INSTALL
22088         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22089         @firstparagraphindent support, now that autoconf dropped it.
22090         (INSTALL_PRELUDE): Reinstate old macro.
22091         * doc/install.texi: Resync from autoconf.
22092         * doc/INSTALL: Reflect recent autoconf update.
22093         * doc/INSTALL.ISO: Likewise.
22094         * doc/INSTALL.UTF-8: Likewise.
22095         Reported by Karl Berry.
22096
22097 2011-01-04  Bruce Korb  <address@hidden>
22098
22099         git-version-gen: avoid a sub-shell
22100         * build-aux/git-version-gen: Redirect stderr in `...` via
22101         "exec 2>...", rather than via an added sub-shell.
22102
22103 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22104
22105         git-version-gen: use (...) rather than sh -c '...'
22106         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22107         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22108
22109 2011-01-03  Jim Meyering  <meyering@redhat.com>
22110
22111         git-version-gen: convert leading TABs to spaces
22112         * build-aux/git-version-gen: Expand leading TABs.
22113
22114         git-version-gen: handle failed "git rev-list"
22115         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22116         from git and proceeding as if it had succeeded but printed no SHA1
22117         checksums, suppress the diagnostic and handle the failure.
22118         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22119
22120         git-version-gen: include command name in one more diagnostic
22121         * build-aux/git-version-gen: When the required .tarball-version file
22122         was missing or unreadable, you might see the diagnostic from "cat",
22123         but no trace of the name of the invoking script.  Now, you still see
22124         the diagnostic from cat, but also get one from "git-version-gen: ".
22125         Inspired by a patch from Bruce Korb.
22126
22127         update-copyright: adjust test to match changed code
22128         * tests/test-update-copyright.sh: Change test's expected output
22129         to match new actual output.
22130
22131 2011-01-02  Bruno Haible  <bruno@clisp.org>
22132
22133         getlogin_r: Avoid test failure on HP-UX 11.
22134         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22135         ERANGE when the second argument is zero.
22136         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22137         portability problem.
22138
22139 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22140
22141         * build-aux/update-copyright: doc Simon's changes
22142
22143 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22144
22145         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22146         environment variable.
22147
22148 2011-01-02  Bruno Haible  <bruno@clisp.org>
22149
22150         unigbrk: Avoid gcc warnings.
22151         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22152         unused variable.
22153         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22154         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22155         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22156         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22157         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22158         Change type of first argument to 'const char *'.
22159         (main): Remove unused variable.
22160         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22161         type of first argument to 'const char *'.
22162         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22163         Likewise.
22164         (main): Change type of variable 's'.
22165         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22166         to 'int'.
22167
22168 2011-01-02  Bruno Haible  <bruno@clisp.org>
22169
22170         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22171         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22172         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22173         bug.
22174         * lib/pwrite.c: Undo 2010-12-31 patch.
22175         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22176
22177 2011-01-02  Bruno Haible  <bruno@clisp.org>
22178
22179         pread: Fix test whether it works.
22180         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22181
22182 2011-01-02  Bruno Haible  <bruno@clisp.org>
22183
22184         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22185         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22186         ends in "6". Don't require a specific month name. Try also the locale
22187         names found on HP-UX 11 and Solaris 7.
22188
22189 2011-01-02  Bruno Haible  <bruno@clisp.org>
22190
22191         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22192         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22193         C linkage.
22194         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22195
22196 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22197
22198         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22199         for consistency, since the "cluster" term is not used elsewhere.
22200         * lib/unigbrk.in.h: Update name.
22201         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22202         * lib/unigbrk/u16-grapheme-next.c: Update name.
22203         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22204         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22205         * lib/unigbrk/u32-grapheme-next.c: Update name.
22206         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22207         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22208         * lib/unigbrk/u8-grapheme-next.c: Update name.
22209         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22210         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22211         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22212         Suggested by Bruno Haible.
22213
22214 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22215
22216         Remove module 'u8-grapheme-len' as too redundant with
22217         'u8-grapheme-next'.
22218         * modules/unigbrk/u8-grapheme-len: Delete file.
22219         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22220         * lib/unigbrk.in.h: Remove prototype for deleted function.
22221         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22222         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22223
22224         Remove module 'u16-grapheme-len' as too redundant with
22225         'u16-grapheme-next'.
22226         * modules/unigbrk/u16-grapheme-len: Delete file.
22227         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22228         * lib/unigbrk.in.h: Remove prototype for deleted function.
22229         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22230         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22231
22232         Remove module 'u32-grapheme-len' as too redundant with
22233         'u32-grapheme-next'.
22234         * modules/unigbrk/u32-grapheme-len: Delete file.
22235         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22236         * lib/unigbrk.in.h: Remove prototype for deleted function.
22237         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22238         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22239
22240         Suggested by Bruno Haible.
22241
22242 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22243
22244         * unigbrk.in.h: Fix typo: "ben" => "been".
22245         Reported by Bruno Haible.
22246
22247 2011-01-01  Jim Meyering  <meyering@redhat.com>
22248
22249         maint: update almost all copyright ranges to include 2011
22250         Run the new "make update-copyright" rule.
22251
22252 2011-01-01  Jim Meyering  <meyering@redhat.com>
22253
22254         maint: update-copyright: exempt doc/INSTALL*
22255         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22256         since they are generated.  Suggested by Bruno Haible.
22257
22258 2011-01-01  Jim Meyering  <meyering@redhat.com>
22259
22260         maint: refine the update-copyright rule
22261         * Makefile (update-copyright): Also exclude any file that includes
22262         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22263         code that merely generates the comment.
22264
22265 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22266
22267         New module 'u8-grapheme-len'.
22268         * modules/unigbrk/u8-grapheme-len: New file.
22269         * modules/unigbrk/u8-grapheme-len-tests: New file.
22270         * lib/unigbrk.in.h: Add prototype for new function.
22271         * lib/unigbrk/u8-grapheme-len.c: New file.
22272         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22273
22274         New module 'u16-grapheme-len'.
22275         * modules/unigbrk/u16-grapheme-len: New file.
22276         * modules/unigbrk/u16-grapheme-len-tests: New file.
22277         * lib/unigbrk.in.h: Add prototype for new function.
22278         * lib/unigbrk/u16-grapheme-len.c: New file.
22279         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22280
22281         New module 'u32-grapheme-len'.
22282         * modules/unigbrk/u32-grapheme-len: New file.
22283         * modules/unigbrk/u32-grapheme-len-tests: New file.
22284         * lib/unigbrk.in.h: Add prototype for new function.
22285         * lib/unigbrk/u32-grapheme-len.c: New file.
22286         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22287
22288         New module 'u8-grapheme-next'.
22289         * modules/unigbrk/u8-grapheme-next: New file.
22290         * modules/unigbrk/u8-grapheme-next-tests: New file.
22291         * lib/unigbrk.in.h: Add prototype for new function.
22292         * lib/unigbrk/u8-grapheme-next.c: New file.
22293         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22294
22295         New module 'u16-grapheme-next'.
22296         * modules/unigbrk/u16-grapheme-next: New file.
22297         * modules/unigbrk/u16-grapheme-next-tests: New file.
22298         * lib/unigbrk.in.h: Add prototype for new function.
22299         * lib/unigbrk/u16-grapheme-next.c: New file.
22300         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22301
22302         New module 'u32-grapheme-next'.
22303         * modules/unigbrk/u32-grapheme-next: New file.
22304         * modules/unigbrk/u32-grapheme-next-tests: New file.
22305         * lib/unigbrk.in.h: Add prototype for new function.
22306         * lib/unigbrk/u32-grapheme-next.c: New file.
22307         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22308
22309         New module 'u8-grapheme-prev'.
22310         * modules/unigbrk/u8-grapheme-prev: New file.
22311         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22312         * lib/unigbrk.in.h: Add prototype for new function.
22313         * lib/unigbrk/u8-grapheme-prev.c: New file.
22314         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22315
22316         New module 'u16-grapheme-prev'.
22317         * modules/unigbrk/u16-grapheme-prev: New file.
22318         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22319         * lib/unigbrk.in.h: Add prototype for new function.
22320         * lib/unigbrk/u16-grapheme-prev.c: New file.
22321         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22322
22323         New module 'u32-grapheme-prev'.
22324         * modules/unigbrk/u32-grapheme-prev: New file.
22325         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22326         * lib/unigbrk.in.h: Add prototype for new function.
22327         * lib/unigbrk/u32-grapheme-prev.c: New file.
22328         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22329
22330         New module 'u8-grapheme-breaks'.
22331         * modules/unigbrk/u8-grapheme-breaks: New file.
22332         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22333         * lib/unigbrk.in.h: Add prototype for new function.
22334         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22335         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22336
22337         New module 'u16-grapheme-breaks'.
22338         * modules/unigbrk/u16-grapheme-breaks: New file.
22339         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22340         * lib/unigbrk.in.h: Add prototype for new function.
22341         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22342         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22343
22344         New module 'u32-grapheme-breaks'.
22345         * modules/unigbrk/u32-grapheme-breaks: New file.
22346         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22347         * lib/unigbrk.in.h: Add prototype for new function.
22348         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22349         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22350
22351         New module 'ulc-grapheme-breaks'.
22352         * modules/unigbrk/ulc-grapheme-breaks: New file.
22353         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22354         * m4/locale-ar.m4: New file.
22355         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22356         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22357         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22358
22359 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22360
22361         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22362         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22363         modified how this file was generated before I initially submitted
22364         the module, but failed to regenerate it.  This meant that several
22365         of the level2 entries were wrong.
22366         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22367         Remove the division-by-2 that is folded into the table now that
22368         gbrkprop.h has been regenerated properly.  Now -1 entries are
22369         handled correctly.
22370
22371         New module 'unigbrk/uc-gbrk-prop-tests'.
22372         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22373         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22374         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22375         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22376
22377 2011-01-01  Bruno Haible  <bruno@clisp.org>
22378
22379         Avoid use of hexadecimal escapes.
22380         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22381         instead of hexadecimal escapes.
22382
22383 2011-01-01  Jim Meyering  <meyering@redhat.com>
22384
22385         maint: new rule to update copyright year ranges
22386         * Makefile (update-copyright): New rule.
22387
22388         maint: indent with TABs in Makefile
22389         * Makefile: Expand leading sequences of spaces to TABs
22390
22391         version-etc: update the copyright year it reports
22392         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22393
22394 2010-12-31  Bruno Haible  <bruno@clisp.org>
22395
22396         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22397         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22398         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22399         zero.
22400
22401 2010-12-31  Bruno Haible  <bruno@clisp.org>
22402
22403         pwrite: Work around HP-UX 11.11 bug.
22404         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22405         works and set REPLACE_PWRITE if not.
22406         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22407         function.
22408         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22409
22410 2010-12-31  Bruno Haible  <bruno@clisp.org>
22411
22412         pread: Work around HP-UX 11 bugs.
22413         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22414         and set REPLACE_PREAD if not.
22415         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22416
22417 2010-12-31  Eric Blake  <eblake@redhat.com>
22418
22419         nl_langinfo: fix YESEXPR on Irix 6.5
22420         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22421         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22422         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22423         it.
22424
22425 2010-12-31  Bruno Haible  <bruno@clisp.org>
22426
22427         iconv: Document HP-UX 11 bug.
22428         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22429
22430 2010-12-31  Bruno Haible  <bruno@clisp.org>
22431
22432         ldexpl: Fix link error on HP-UX 11.
22433         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22434         LDEXPL_LIBM, using $ISNANL_LIBM.
22435
22436 2010-12-31  Eric Blake  <eblake@redhat.com>
22437
22438         ftello: avoid compilation failure with SunStudio c89
22439         * lib/ftello.c (ftello): Use lseek, not llseek.
22440
22441         tests: avoid failing coreutils tests on cygwin
22442         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22443         (create_exe_shims_): Return 0 when skipping.
22444
22445 2010-12-31  Bruno Haible  <bruno@clisp.org>
22446
22447         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22448         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22449
22450 2010-12-31  Bruno Haible  <bruno@clisp.org>
22451
22452         waitpid: Fix link error in C++ mode.
22453         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22454
22455 2010-12-31  Bruno Haible  <bruno@clisp.org>
22456
22457         isnan: Use GCC built-ins when possible.
22458         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22459         __builtin_isnan.
22460         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22461         (isnan): Define using GCC built-ins for GCC >= 4.0.
22462
22463 2010-12-31  Bruno Haible  <bruno@clisp.org>
22464
22465         isnand: Fix mistake.
22466         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22467         __builtin_isnand.
22468
22469 2010-12-31  Bruno Haible  <bruno@clisp.org>
22470
22471         open: Avoid C++ error on HP-UX 11.
22472         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22473
22474 2010-12-31  Bruno Haible  <bruno@clisp.org>
22475
22476         time_r: Add missing declarations on HP-UX 11.
22477         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22478         instead of HAVE_LOCALTIME_R.
22479         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22480         HAVE_LOCALTIME_R always.
22481         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22482         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22483         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22484         HAVE_LOCALTIME_R.
22485         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22486         * doc/posix-functions/localtime_r.texi: Likewise.
22487
22488 2010-12-29  Eric Blake  <eblake@redhat.com>
22489
22490         mountlist: tweak previous commit
22491         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22492         Reported by Paul Eggert.
22493
22494         mountlist: fix local drive detection on cygwin
22495         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22496         that works for cygwin.
22497
22498 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         ftoastr, snprintf: ftoastr + snprintf module
22501         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22502         since the snprintf module now should be good enough here.
22503         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22504         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22505         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22506         GNULIB_SNPRINTF only for the test directory, and the latter
22507         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22508         seems to suffice by itself.
22509
22510 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22511
22512         alloca: one step towards thread-safety
22513         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22514         need for a static variable.  All callers changed.  This does not
22515         make the alloca replacement thread-safe, but it's one step.
22516
22517         tests: minor indenting change
22518         * tests/init.sh: Sync from coreutils housekeeping patch
22519         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22520         to keep lines within 80 columns.
22521
22522 2010-12-28  Jim Meyering  <meyering@redhat.com>
22523
22524         regex: don't infloop on persistent failing calloc
22525         * lib/regexec.c (build_trtable): Return failure indication upon
22526         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22527         In glibc, this was fixed for version 2.13:
22528         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22529
22530 2010-12-28  Bruno Haible  <bruno@clisp.org>
22531             Paul Eggert <eggert@cs.ucla.edu>
22532
22533         linkat: Make implementation robust against system behaviour variations.
22534         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22535         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22536         way, and to -2 if it needs a generic runtime test.
22537         * lib/linkat.c (solaris_optimized_link_immediate,
22538         solaris_optimized_link_follow): New functions.
22539         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22540         (check_same_link): Use it.
22541
22542 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22543
22544         New module 'unigbrk/base'.
22545         * modules/unigbrk/base: New file.
22546         * lib/unigbrk.in.h: New file.
22547
22548         New module 'unigbrk/uc-gbrk-prop'.
22549         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22550         * modules/unigbrk/uc-gbrk-prop: New file.
22551         * lib/unigbrk/gbrkprop.h: New file.
22552         * lib/unigbrk/uc-gbrk-prop.c: New file.
22553
22554         New module 'unigbrk/uc-is-grapheme-break'.
22555         * modules/unigbrk/uc-is-grapheme-break: New file.
22556         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22557         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22558         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22559         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22560         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22561
22562         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22563
22564 2010-12-27  Bruno Haible  <bruno@clisp.org>
22565
22566         linkat test: Avoid failure on Solaris 11 2010-11.
22567         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22568
22569 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22570
22571         utimens: work around glibc rounding bug on more platforms
22572         * lib/utimens.c (fdutimens): Work around rounding bug even if
22573         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22574         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22575
22576 2010-12-27  Bruno Haible  <bruno@clisp.org>
22577
22578         select tests: Improve comments.
22579         * tests/test-select.c (do_select): Add comments.
22580
22581 2010-12-27  Bruno Haible  <bruno@clisp.org>
22582
22583         select tests: Safer way of handling timeout.
22584         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22585         at every invocation.
22586
22587 2010-12-27  Bruno Haible  <bruno@clisp.org>
22588
22589         select tests: Use 'bool' where appropriate.
22590         * tests/test-select.c (connect_to_socket): Change argument type to
22591         'bool'.
22592
22593 2010-12-27  Bruno Haible  <bruno@clisp.org>
22594
22595         select tests: Use existing modules.
22596         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22597         (configure.ac): Don't test for unistd.h.
22598         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22599         declared in <unistd.h>.
22600
22601 2010-12-27  Bruno Haible  <bruno@clisp.org>
22602
22603         mbrtowc: Work around a Solaris 7 bug.
22604         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22605         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22606         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22607         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22608         MBRTOWC_NULL_ARG1_BUG.
22609         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22610         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22611         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22612         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22613
22614 2010-12-27  Jim Meyering  <meyering@redhat.com>
22615
22616         read-file.c: tweak syntax
22617         * lib/read-file.c (fread_file): Remove space after "*" in function
22618         definitions.
22619
22620 2010-12-27  Bruno Haible  <bruno@clisp.org>
22621
22622         times test: Avoid gcc warnings on OSF/1.
22623         * tests/test-times.c (main): Cast printf arguments from clock_t to
22624         'long int'.
22625
22626 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22627
22628         utimens: work around glibc rounding bug on older Linux kernels
22629         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22630         on Linux with a glibc whose utimes might not work, then work
22631         around a longstanding glibc bug involving rounding rather than
22632         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22634
22635 2010-12-26  Bruno Haible  <bruno@clisp.org>
22636
22637         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22638         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22639         _GL_CXXALIAS_SYS.
22640         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22641
22642 2010-12-26  Bruno Haible  <bruno@clisp.org>
22643
22644         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22645         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22646         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22647         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22648         looking for the declaration.
22649         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22650         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22651         problem.
22652         * doc/posix-functions/inet_pton.texi: Likewise.
22653
22654 2010-12-26  Bruno Haible  <bruno@clisp.org>
22655
22656         arpa_inet: Use the common idioms with C++ support.
22657         * lib/arpa_inet.in.h: Include c++defs.h.
22658         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22659         support.
22660         * modules/arpa_inet (Depends-on): Add c++defs.
22661         (Makefile.am): Substitute the contents of c++defs.h.
22662         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22663         * modules/arpa_inet-c++-tests: New file.
22664         * tests/test-arpa_inet-c++.cc: New file.
22665
22666 2010-12-25  Bruno Haible  <bruno@clisp.org>
22667
22668         Fix more C++ link errors on Solaris 8.
22669         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22670         $(LIB_EACCESS).
22671         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22672         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22673         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22674         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22675         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22676
22677 2010-12-25  Bruno Haible  <bruno@clisp.org>
22678
22679         printf-posix: Fix link error when a non-GCC compiler is used.
22680         * lib/stdio.in.h (printf): When not using GCC, override printf
22681         correctly.
22682         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22683
22684 2010-12-25  Bruno Haible  <bruno@clisp.org>
22685
22686         strerror_r-posix: Update doc.
22687         * doc/posix-functions/strerror_r.texi: Update doc about the return
22688         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22689
22690 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22691
22692         utimens: simplify the logic of the previous change
22693         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22694         This should not affect whether the test succeeds or fails.
22695
22696         utimens: configure better on hosts with NFS clock skew
22697         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22698         uses the clock of the local host.  It might use the clock of the
22699         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22700         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22701
22702 2010-12-25  Bruno Haible  <bruno@clisp.org>
22703
22704         ptsname test: Avoid failure on Solaris.
22705         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22706         open a pseudo-terminal; don't use BSD-style ptys.
22707         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22708
22709 2010-12-25  Bruno Haible  <bruno@clisp.org>
22710
22711         ptsname: Avoid ERANGE failure on some systems.
22712         * lib/ptsname.c (buffer): Increase size.
22713
22714 2010-12-25  Bruno Haible  <bruno@clisp.org>
22715
22716         rename, renameat: Avoid test failures at NFS mounted locations.
22717         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22718         so that subsequent mkdir calls succeed.
22719
22720 2010-12-25  Bruno Haible  <bruno@clisp.org>
22721
22722         iswblank: Fix C++ link error on Solaris 8.
22723         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22724         _GL_FUNCDECL_SYS.
22725
22726 2010-12-25  Bruno Haible  <bruno@clisp.org>
22727
22728         unistd: Fix C++ link error on Solaris 8.
22729         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22730
22731 2010-12-25  Bruno Haible  <bruno@clisp.org>
22732
22733         readlink doc: Mention an old glibc bug.
22734         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22735
22736 2010-12-25  Bruno Haible  <bruno@clisp.org>
22737
22738         fcntl-h: Fix for use of C++ on glibc systems.
22739         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22740         also on glibc systems in C++ mode.
22741         Reported by Gary V. Vaughan <gary@gnu.org>.
22742
22743 2010-12-25  Bruno Haible  <bruno@clisp.org>
22744
22745         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22746         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22747
22748 2010-12-25  Bruno Haible  <bruno@clisp.org>
22749
22750         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22751         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22752         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22753         test whether truncl works according to ISO C 99 with IEC 60559.
22754         * m4/truncl-ieee.m4: New file.
22755         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22756         m4/signbit.m4.
22757         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22758
22759 2010-12-25  Bruno Haible  <bruno@clisp.org>
22760
22761         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22762         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22763         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22764         test whether ceill works according to ISO C 99 with IEC 60559.
22765         * m4/ceill-ieee.m4: New file.
22766         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22767         m4/signbit.m4.
22768         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22769
22770 2010-12-25  Bruno Haible  <bruno@clisp.org>
22771
22772         Ensure all prerequisites of <wchar.h> are included.
22773         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22774         before <wchar.h>.
22775         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22776         gl_MBRLEN_NUL_RETVAL): Likewise.
22777         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22778         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22779         AC_FUNC_MBRTOWC): Likewise.
22780         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22781         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22782         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22783         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22784         Likewise.
22785         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22786         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22787         (gl_WCHAR_H): Improve comments.
22788         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22789
22790 2010-12-25  Bruno Haible  <bruno@clisp.org>
22791
22792         strtok_r: Fix C syntax error in autoconf macro.
22793         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22794         characters in test program.
22795
22796 2010-12-24  Bruno Haible  <bruno@clisp.org>
22797
22798         ceil, trunc, round: Fix gcc warnings.
22799         * lib/ceil.c (MIN): Undefine before redefining.
22800         * lib/trunc.c (MIN): Likewise.
22801         * lib/round.c (MIN): Likewise.
22802         Include <math.h> first.
22803
22804 2010-12-24  Bruno Haible  <bruno@clisp.org>
22805
22806         select tests: Avoid failures on OSF/1 5.1.
22807         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22808         failure of closing the last socket; it may fail with ECONNRESET.
22809
22810 2010-12-24  Eric Blake  <eblake@redhat.com>
22811
22812         stdint: avoid HP-UX 10.20 preprocessor bug
22813         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22814         than #if.
22815         * tests/test-floor2.c (main): Likewise.
22816         Reported by Peter O'Gorman.
22817
22818         pipe: make obsoletion transition easier
22819         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22820         * modules/pipe (Files): Include revived file.
22821         (Include): Drop reference, to mirror getdate's behavior.
22822
22823 2010-12-24  Bruno Haible  <bruno@clisp.org>
22824
22825         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22826         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22827         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22828         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22829
22830 2010-12-24  Bruno Haible  <bruno@clisp.org>
22831
22832         gethostname: Ensure declaration on NonStop Kernel.
22833         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22834         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22835
22836 2010-12-24  Bruno Haible  <bruno@clisp.org>
22837
22838         sys_select: Ensure all necessary types on NonStop Kernel.
22839         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22840         include <sys/time.h>.
22841         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22842         NonStop Kernel.
22843         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22844
22845 2010-12-24  Bruno Haible  <bruno@clisp.org>
22846
22847         sys_select: Remove unneeded include.
22848         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22849         have <sys/select.h>.
22850
22851 2010-12-24  Bruno Haible  <bruno@clisp.org>
22852
22853         gethostname: Provide a fallback for HOST_NAME_MAX.
22854         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22855         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22856         instead.
22857         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22858
22859 2010-12-24  Bruno Haible  <bruno@clisp.org>
22860
22861         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22862         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22863         (SA_RESTART): Likewise.
22864         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22865
22866 2010-12-24  Bruno Haible  <bruno@clisp.org>
22867
22868         signal: Define NSIG.
22869         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22870         * tests/test-signal.c (nsig): New variable.
22871         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22872
22873 2010-12-24  Bruno Haible  <bruno@clisp.org>
22874
22875         rename, renameat: Avoid test failures on OSF/1 5.1.
22876         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22877         alternative error codes.
22878         * tests/test-renameat.c (main): Likewise.
22879
22880 2010-12-24  Bruno Haible  <bruno@clisp.org>
22881
22882         *printf: Detect large precisions bug on Solaris 10/SPARC.
22883         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22884         by Paul Eggert.
22885         * tests/test-snprintf-posix.h (test_function): Add this test code here
22886         too.
22887         * tests/test-sprintf-posix.h (test_function): Likewise.
22888         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22889         * tests/test-vasprintf-posix.c (test_function): Likewise.
22890         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22891         around by gnulib.
22892         * doc/posix-functions/printf.texi: Likewise.
22893         * doc/posix-functions/snprintf.texi: Likewise.
22894         * doc/posix-functions/sprintf.texi: Likewise.
22895         * doc/posix-functions/vfprintf.texi: Likewise.
22896         * doc/posix-functions/vprintf.texi: Likewise.
22897         * doc/posix-functions/vsnprintf.texi: Likewise.
22898         * doc/posix-functions/vsprintf.texi: Likewise.
22899         * doc/posix-functions/dprintf.texi: Undo last commit.
22900         * doc/posix-functions/vdprintf.texi: Likewise.
22901
22902 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22903
22904         tests: port test-fdutimensat.c to Solaris 8
22905         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22906         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22907         On Solaris 8, it fails with errno == ENOSYS, because there is no
22908         futimens (so it can't use the fd), and there is no lutimens (so it
22909         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22910
22911         vsnprintf: make more consistent with snprintf; doc fixes
22912
22913         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22914         the byte count return problem was promoted from the snprintf-posix
22915         to the snprintf module.
22916         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22917         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22918         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22919         * tests/test-snprintf.c (main): Check the byte count returned.
22920         * tests/test-vsnprintf.c (main): Likewise.
22921
22922 2010-12-23  Eric Blake  <eblake@redhat.com>
22923
22924         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22925         * modules/sigpipe (License): Relax license.
22926
22927 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22928
22929         doc: document Solaris printf bug with large float precisions
22930         * doc/posix-functions/dprintf.texi (dprintf):
22931         * doc/posix-functions/fprintf.texi (fprintf):
22932         * doc/posix-functions/printf.texi (printf):
22933         * doc/posix-functions/snprintf.texi (snprintf):
22934         * doc/posix-functions/sprintf.texi (sprintf):
22935         * doc/posix-functions/vdprintf.texi (vdprintf):
22936         * doc/posix-functions/vfprintf.texi (vfprintf):
22937         * doc/posix-functions/vprintf.texi (vprintf):
22938         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22939         * doc/posix-functions/vsprintf.texi (vsprintf):
22940         Mention that these functions mishandle large floating point
22941         precisions on Solaris 10.  The same bug is also present in Solaris
22942         8, and I assume earlier.  This causes "cd gnulib-tests; make
22943         check" to fail on Solaris 8 (and I assume, later) when building
22944         the latest coreutils, in test-vasprintf-posix's call to
22945         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22946         the wide flavors (e.g., wprintf) so this patch just updates the
22947         documentation for the narrow ones.
22948
22949         test-posixtm.c: add two tests
22950         * tests/test-posixtm.c: Add two tests, to highlight the
22951         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22952         around this bug; this is merely to document it.
22953
22954 2010-12-22  Bruno Haible  <bruno@clisp.org>
22955
22956         getlogin_r: Work around portability problem on OSF/1.
22957         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22958         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22959         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22960         test for a truncated result.
22961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22962         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22963         * modules/getlogin_r (Depends-on): Add memchr.
22964         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22965
22966 2010-12-22  Bruno Haible  <bruno@clisp.org>
22967
22968         ptsname: Avoid test failure on OSF/1 5.1.
22969         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22970         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22971         (same_slave): New function.
22972         (main): Use it to compare ptsname's result with the expected file name.
22973
22974 2010-12-22  Bruno Haible  <bruno@clisp.org>
22975
22976         Port extended stdio modules to HP NonStop Kernel.
22977         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22978         macros.
22979         * lib/fbufmode.c: Update comments.
22980         * lib/fflush.c: Likewise.
22981         * lib/fpurge.c: Likewise.
22982         * lib/freadable.c: Likewise.
22983         * lib/freadahead.c: Likewise.
22984         * lib/freading.c: Likewise.
22985         * lib/freadptr.c: Likewise.
22986         * lib/freadseek.c: Likewise.
22987         * lib/fseeko.c: Likewise.
22988         * lib/fseterr.c: Likewise.
22989         * lib/fwritable.c: Likewise.
22990         * lib/fwriting.c: Likewise.
22991         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22992
22993 2010-12-22  Bruno Haible  <bruno@clisp.org>
22994
22995         ttyname_r: Work around bug on OSF/1 5.1.
22996         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22997         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22998         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22999         present.
23000         * lib/ttyname_r.c (ttyname_r): Update comments.
23001
23002 2010-12-22  Bruno Haible  <bruno@clisp.org>
23003
23004         round: Implement result sign according to IEEE 754.
23005         * lib/round.c (MIN, MINUS_ZERO): New macros.
23006         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23007         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23008         * tests/test-round-ieee.c (main): Likewise.
23009         * tests/test-roundl-ieee.c (main): Likewise.
23010
23011         trunc: Implement result sign according to IEEE 754.
23012         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23013         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23014         * tests/test-trunc2.c: Include minus-zero.h.
23015         (MINUS_ZERO): New macro.
23016         (trunc_reference): Keep in sync with lib/trunc.c.
23017         * tests/test-truncf2.c: Include minus-zero.h.
23018         (MINUS_ZERO): New macro.
23019         (truncf_reference): Keep in sync with lib/trunc.c.
23020         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23021         * tests/test-trunc-ieee.c (main): Likewise.
23022         * tests/test-truncl-ieee.c (main): Likewise.
23023
23024         ceil: Implement result sign according to IEEE 754.
23025         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23026         (FUNC): Return -0.0 for -1 < x < 0.
23027         * tests/test-ceil2.c: Include minus-zero.h.
23028         (MINUS_ZERO): New macro.
23029         (ceil_reference): Keep in sync with lib/ceil.c.
23030         * tests/test-ceilf2.c: Include minus-zero.h.
23031         (MINUS_ZERO): New macro.
23032         (ceilf_reference): Keep in sync with lib/ceil.c.
23033         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23034         * tests/test-ceil-ieee.c (main): Likewise.
23035         * tests/test-ceill-ieee.c (main): Likewise.
23036
23037         floor: Implement result sign according to IEEE 754.
23038         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23039         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23040         * tests/test-floorf2.c (floorf_reference): Likewise.
23041         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23042         * tests/test-floor-ieee.c (main): Likewise.
23043         * tests/test-floorl-ieee.c (main): Likewise.
23044
23045 2010-12-22  Bruno Haible  <bruno@clisp.org>
23046
23047         getaddrinfo: Update doc.
23048         * doc/posix-functions/gai_strerror.texi: Return type is also different
23049         on AIX and HP-UX.
23050
23051 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23052
23053         getaddrinfo, inet_ntop: Update doc for Solaris.
23054         * doc/posix-functions/gai_strerror.texi: Return type is also an
23055         issue on Solaris 9 and earlier.
23056         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23057         on Solaris 10 and earlier.
23058
23059 2010-12-21  Bruno Haible  <bruno@clisp.org>
23060
23061         New module 'roundl-ieee'.
23062         * modules/roundl-ieee: New file.
23063         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23064         test whether roundl works according to ISO C 99 with IEC 60559.
23065         * m4/roundl-ieee.m4: New file.
23066         * modules/roundl-ieee-tests: New file.
23067         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23068         * tests/test-roundl.c (main): Remove signbit tests.
23069         * modules/roundl-tests (Depends-on): Remove signbit.
23070         * doc/posix-functions/roundl.texi: Mention the new module.
23071
23072 2010-12-21  Bruno Haible  <bruno@clisp.org>
23073
23074         New module 'truncl-ieee'.
23075         * modules/truncl-ieee: New file.
23076         * modules/truncl-ieee-tests: New file.
23077         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23078         * tests/test-truncl.c (main): Remove signbit tests.
23079         * modules/truncl-tests (Depends-on): Remove signbit.
23080         * doc/posix-functions/truncl.texi: Mention the new module.
23081
23082 2010-12-21  Bruno Haible  <bruno@clisp.org>
23083
23084         New module 'ceill-ieee'.
23085         * modules/ceill-ieee: New file.
23086         * modules/ceill-ieee-tests: New file.
23087         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23088         * tests/test-ceill.c (main): Remove signbit tests.
23089         * modules/ceill-tests (Depends-on): Remove signbit.
23090         * doc/posix-functions/ceill.texi: Mention the new module.
23091
23092 2010-12-21  Bruno Haible  <bruno@clisp.org>
23093
23094         New module 'floorl-ieee'.
23095         * modules/floorl-ieee: New file.
23096         * modules/floorl-ieee-tests: New file.
23097         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23098         * tests/test-floorl.c (main): Remove signbit tests.
23099         * modules/floorl-tests (Depends-on): Remove signbit.
23100         * doc/posix-functions/floorl.texi: Mention the new module.
23101
23102 2010-12-21  Bruno Haible  <bruno@clisp.org>
23103
23104         New module 'round-ieee'.
23105         * modules/round-ieee: New file.
23106         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23107         whether round works according to ISO C 99 with IEC 60559.
23108         * m4/round-ieee.m4: New file.
23109         * modules/round-ieee-tests: New file.
23110         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23111         * tests/test-round1.c (main): Remove signbit tests.
23112         * modules/round-tests (Depends-on): Remove 'signbit'.
23113         * doc/posix-functions/round.texi: Mention the new module.
23114
23115 2010-12-21  Bruno Haible  <bruno@clisp.org>
23116
23117         New module 'trunc-ieee'.
23118         * modules/trunc-ieee: New file.
23119         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23120         whether trunc works according to ISO C 99 with IEC 60559.
23121         * m4/trunc-ieee.m4: New file.
23122         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23124         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23125         * modules/trunc-ieee-tests: New file.
23126         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23127         * tests/test-trunc1.c (main): Remove signbit tests.
23128         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23129         * doc/posix-functions/trunc.texi: Mention the new module.
23130
23131 2010-12-21  Bruno Haible  <bruno@clisp.org>
23132
23133         New module 'ceil-ieee'.
23134         * modules/ceil-ieee: New file.
23135         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23136         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23137         ISO C 99 with IEC 60559.
23138         * m4/ceil-ieee.m4: New file.
23139         * modules/ceil (Files): Add lib/ceil.c.
23140         (Depends-on): Add 'float'.
23141         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23142         * lib/math.in.h (ceil): New declaration.
23143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23144         REPLACE_CEIL.
23145         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23146         * modules/ceil-ieee-tests: New file.
23147         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23148         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23149         * doc/posix-functions/ceil.texi: Mention the new module.
23150
23151 2010-12-21  Bruno Haible  <bruno@clisp.org>
23152
23153         New module 'floor-ieee'.
23154         * modules/floor-ieee: New file.
23155         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23156         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23157         ISO C 99 with IEC 60559.
23158         * m4/floor-ieee.m4: New file.
23159         * modules/floor (Files): Add lib/floor.c.
23160         (Depends-on): Add 'float'.
23161         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23162         * lib/math.in.h (floor): New declaration.
23163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23164         REPLACE_FLOOR.
23165         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23166         * modules/floor-ieee-tests: New file.
23167         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23168         * tests/test-math-c++.cc: Check the signature of 'floor'.
23169         * doc/posix-functions/floor.texi: Mention the new module.
23170
23171 2010-12-21  Bruno Haible  <bruno@clisp.org>
23172
23173         New module 'roundf-ieee'.
23174         * modules/roundf-ieee: New file.
23175         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23176         test whether roundf works according to ISO C 99 with IEC 60559.
23177         * m4/roundf-ieee.m4: New file.
23178         * modules/roundf-ieee-tests: New file.
23179         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23180         * tests/test-roundf1.c (main): Remove signbit tests.
23181         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23182         * doc/posix-functions/roundf.texi: Mention the new module.
23183
23184 2010-12-21  Bruno Haible  <bruno@clisp.org>
23185
23186         New module 'truncf-ieee'.
23187         * modules/truncf-ieee: New file.
23188         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23189         test whether truncf works according to ISO C 99 with IEC 60559.
23190         * m4/truncf-ieee.m4: New file.
23191         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23193         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23194         * modules/truncf-ieee-tests: New file.
23195         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23196         * tests/test-truncf1.c (main): Remove signbit tests.
23197         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23198         * doc/posix-functions/truncf.texi: Mention the new module.
23199
23200 2010-12-21  Bruno Haible  <bruno@clisp.org>
23201
23202         New module 'ceilf-ieee'.
23203         * modules/ceilf-ieee: New file.
23204         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23205         test whether ceilf works according to ISO C 99 with IEC 60559.
23206         * m4/ceilf-ieee.m4: New file.
23207         * modules/ceilf-ieee-tests: New file.
23208         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23209         * tests/test-ceilf1.c (main): Remove signbit tests.
23210         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23211         * doc/posix-functions/ceilf.texi: Mention the new module.
23212
23213 2010-12-21  Bruno Haible  <bruno@clisp.org>
23214
23215         New module 'floorf-ieee'.
23216         * modules/floorf-ieee: New file.
23217         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23218         test whether floorf works according to ISO C 99 with IEC 60559.
23219         * m4/floorf-ieee.m4: New file.
23220         * modules/floorf-ieee-tests: New file.
23221         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23222         * tests/test-floorf1.c (main): Remove signbit tests.
23223         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23224         * doc/posix-functions/floorf.texi: Mention the new module.
23225
23226 2010-12-21  Bruno Haible  <bruno@clisp.org>
23227
23228         Support for minus zero in autoconf macros.
23229         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23230         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23231         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23232         * tests/minus-zero.h: Update comments.
23233
23234 2010-12-21  Bruno Haible  <bruno@clisp.org>
23235
23236         Tests for module 'ceil'.
23237         * modules/ceil-tests: New file.
23238         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23239         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23240
23241 2010-12-21  Bruno Haible  <bruno@clisp.org>
23242
23243         Tests for module 'floor'.
23244         * modules/floor-tests: New file.
23245         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23246         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23247
23248 2010-12-21  Bruno Haible  <bruno@clisp.org>
23249
23250         math: Fix indentation.
23251         * lib/math.in.h (floorf): Fix indentation.
23252
23253 2010-12-21  Bruno Haible  <bruno@clisp.org>
23254
23255         Fix cross-compilation guesses on Solaris.
23256         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23257         not match "solaris2.10".
23258         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23259         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23260         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23261
23262 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23263
23264         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23265         This fixes a problem observed with the latest coreutils snapshot
23266         that caused a test to fail on Solaris 8.  src/csplit.c's call
23267         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23268         earlier, instead of returning the number of bytes that would have
23269         been generated; this causes csplit to incorrectly report memory
23270         exhaustion.
23271         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23272         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23273         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23274         comments to match.
23275         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23276         Fix typo in matching older versions of Solaris: "solaris2.10"
23277         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23278         only for guessing while cross-compiling.
23279         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23280
23281 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23282
23283         ftoastr: fix comment again
23284         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23286         Also, simplify example a bit by using flags = 0.
23287
23288 2010-12-20  Bruno Haible  <bruno@clisp.org>
23289
23290         round*, trunc*: Update documentation regarding glibc.
23291         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23292         * doc/posix-functions/round.texi: Likewise.
23293         * doc/posix-functions/roundl.texi: Likewise.
23294         * doc/posix-functions/truncf.texi: Likewise.
23295         * doc/posix-functions/trunc.texi: Likewise.
23296         * doc/posix-functions/truncl.texi: Likewise.
23297
23298 2010-12-20  Bruno Haible  <bruno@clisp.org>
23299
23300         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23301         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23302         * doc/posix-functions/round.texi: Likewise.
23303         * doc/posix-functions/roundl.texi: Likewise.
23304
23305 2010-12-20  Bruno Haible  <bruno@clisp.org>
23306
23307         ttyname_r: Add missing declaration on HP-UX 11.
23308         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23309         HAVE_TTYNAME_R.
23310         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23311         declared. Set HAVE_TTYNAME_R always.
23312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23313         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23314         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23315         HAVE_TTYNAME_R.
23316         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23317
23318 2010-12-20  Bruno Haible  <bruno@clisp.org>
23319
23320         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23321         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23322         * doc/posix-functions/getlogin_r.texi: Likewise.
23323         * tests/test-getlogin.c: Include <errno.h>.
23324         (main): Avoid test failure on HP-UX 11.11.
23325         * tests/test-getlogin_r.c (main): Likewise.
23326
23327 2010-12-20  Bruno Haible  <bruno@clisp.org>
23328
23329         getlogin_r: Add missing declaration on HP-UX 11.
23330         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23331         declared also when it exists as a function.
23332         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23333
23334 2010-12-20  Bruno Haible  <bruno@clisp.org>
23335
23336         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23337         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23338         through wcrtomb.
23339
23340 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23341
23342         ftoastr: fix comment
23343         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23345
23346 2010-12-19  Bruno Haible  <bruno@clisp.org>
23347
23348         isnan: Ensure it is a macro.
23349         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23350         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23351         Solaris.
23352
23353 2010-12-19  Bruno Haible  <bruno@clisp.org>
23354
23355         ldexpl test: Fix link error on OSF/1 5.1.
23356         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23357
23358 2010-12-19  Bruno Haible  <bruno@clisp.org>
23359
23360         wctype: Make it work in C++ mode on OSF/1 5.1.
23361         * lib/wctype.in.h (iswblank): Declare but not define here.
23362         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23363         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23364         * modules/wctype (Files): Add lib/iswblank.c.
23365
23366 2010-12-19  Bruno Haible  <bruno@clisp.org>
23367
23368         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23369         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23370         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23371
23372 2010-12-19  Bruno Haible  <bruno@clisp.org>
23373
23374         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23376         _POSIX_PII_SOCKET.
23377         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23378         * doc/posix-functions/recvfrom.texi: Likewise.
23379         * doc/posix-functions/send.texi: Likewise.
23380         * doc/posix-functions/sendto.texi: Likewise.
23381
23382 2010-12-19  Bruno Haible  <bruno@clisp.org>
23383
23384         tcgetsid: Add missing declaration on OSF/1 5.1.
23385         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23386         HAVE_TCGETSID.
23387         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23388         Don't set HAVE_TCGETSID.
23389         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23390         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23391         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23392         HAVE_TCGETSID.
23393         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23394
23395 2010-12-19  Bruno Haible  <bruno@clisp.org>
23396
23397         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23398         * lib/stdio.in.h: During the include_next statement, let recursive
23399         includes of this file include only the system header file.
23400
23401 2010-12-19  Bruno Haible  <bruno@clisp.org>
23402
23403         iconv_open: Fix regression from 2010-12-04.
23404         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23405         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23406
23407 2010-12-19  Bruno Haible  <bruno@clisp.org>
23408
23409         stdbool test: Avoid a gcc warning.
23410         * tests/test-stdbool.c (main): Fail if e1 is false.
23411         Reported by Jim Meyering.
23412
23413 2010-12-19  Jim Meyering  <meyering@redhat.com>
23414
23415         setenv: restore to working order
23416         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23417         mistakenly removed.
23418         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23419         HAVE_SETENV.
23420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23421         HAVE_SETENV.
23422
23423 2010-12-19  Bruno Haible  <bruno@clisp.org>
23424
23425         Document some different function declarations on OSF/1 5.1.
23426         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23427         * doc/posix-functions/inet_ntop.texi: Likewise.
23428         * doc/posix-functions/gethostname.texi: Likewise.
23429         * lib/unistd.in.h (gethostname): Update comment.
23430
23431 2010-12-19  Bruno Haible  <bruno@clisp.org>
23432
23433         doc: Mention vasprintf-posix module.
23434         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23435         the 'vasprintf-posix' module.
23436         * doc/glibc-functions/vasprintf.texi: Likewise.
23437
23438 2010-12-19  Bruno Haible  <bruno@clisp.org>
23439
23440         unsetenv: Add missing declaration on OSF/1 5.1.
23441         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23442         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23443         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23445         not HAVE_UNSETENV.
23446         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23447         HAVE_UNSETENV.
23448         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23449
23450 2010-12-19  Bruno Haible  <bruno@clisp.org>
23451
23452         setenv: Add missing declaration on OSF/1 5.1.
23453         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23454         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23455         declared. Don't set HAVE_SETENV.
23456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23457         not HAVE_SETENV.
23458         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23459         HAVE_SETENV.
23460         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23461
23462 2010-12-19  Bruno Haible  <bruno@clisp.org>
23463
23464         nl_langinfo tests: Avoid gcc warning.
23465         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23466
23467 2010-12-19  Bruno Haible  <bruno@clisp.org>
23468
23469         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23470         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23471         _GL_CXXALIAS_SYS.
23472
23473 2010-12-19  Bruno Haible  <bruno@clisp.org>
23474
23475         stdbool: Relax test.
23476         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23477         address to 'bool' work in static initializer, for compilers other than
23478         GCC.
23479
23480 2010-12-19  Bruno Haible  <bruno@clisp.org>
23481
23482         ftello: Add missing declaration on OSF/1 5.1.
23483         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23484         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23486         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23487         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23488
23489 2010-12-19  Bruno Haible  <bruno@clisp.org>
23490
23491         fseeko: Add missing declaration on OSF/1 5.1.
23492         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23493         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23495         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23496         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23497
23498 2010-12-19  Bruno Haible  <bruno@clisp.org>
23499
23500         fchdir: Add missing declaration on OSF/1 5.1.
23501         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23504         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23505         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23506
23507 2010-12-19  Bruno Haible  <bruno@clisp.org>
23508
23509         relocatable-prog-wrapper: Separate from relocatable-prog.
23510         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23511         uninstall-relocwrapper rule here.
23512         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23513         Reported by Ian Beckwith <ianb@erislabs.net>.
23514
23515 2010-12-19  Bruno Haible  <bruno@clisp.org>
23516
23517         unistr/u8-mbsnlen: Add missing dependency.
23518         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23519         Reported by Ian Beckwith <ianb@erislabs.net>.
23520
23521 2010-12-19  Bruno Haible  <bruno@clisp.org>
23522
23523         iconv: Make it possible again to use this module without 'iconv-h'.
23524         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23525         if it is not defined.
23526         Reported by Ian Beckwith <ianb@erislabs.net>.
23527
23528 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23529
23530         acl: port to Solaris 8 when copying from tmpfs to ufs
23531         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23532         error number.  Problem observed on Solaris 8 with latest
23533         coreutils, with "mv A B", where A is on a tmpfs file system and B
23534         is on a ufs file system.  This caused coreutils' mv/part-symlink
23535         test to fail.
23536
23537         tests: set fail=0 at start
23538         * tests/init.sh (setup_): Move fail=0 initialization here ...
23539         (mktempd_): ... from here, so that tests can rely on fail being
23540         set to 0 initially.  This fixes a problem in coreutils; see:
23541         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23542
23543 2010-12-18  Bruno Haible  <bruno@clisp.org>
23544
23545         memmem-simple: Stylistic changes.
23546         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23547         Fix preprocessor directive indentation.
23548
23549 2010-12-15  Pádraig Brady <P@draigBrady.com>
23550
23551         memmem, memmem-simple: reorganize and expand empty needle check
23552         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23553         functional checks to memmem-simple so that one has a fully functional
23554         memmem by using just this module.
23555         Restrict the performance only check to the memmem module.
23556         Also expand the empty needle check to ensure the correct
23557         pointer is returned, not just a non NULL pointer.
23558         * doc/glibc-functions/memmem.texi: Rearrange the portability
23559         documentation to correlate with the rearranged checks.
23560         Clarify exactly how the memmem and memmem-simple modules
23561         relate to each other.
23562
23563 2010-12-15  Pádraig Brady <P@draigBrady.com>
23564             Bruno Haible  <bruno@clisp.org>
23565
23566         Improve cross-compilation guesses for uClibc.
23567         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23568         that uClibc does not have the glibc bug.
23569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23570         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23571
23572 2010-12-14  Eric Blake  <eblake@redhat.com>
23573
23574         configmake: provide fallbacks for oldest supported autotools
23575         * m4/configmake.m4: New file.
23576         * modules/configmake (Files): Ship it.
23577         (configure.ac): Use it to guarantee fallbacks.
23578
23579 2010-12-13  Pádraig Brady <P@draigBrady.com>
23580
23581         read-file: Improve handling of large files
23582         * lib/read-file.c (fread_file): Minimize realloc()s
23583         for regular files, and better manage sizes around SIZE_MAX.
23584
23585 2010-12-13  Eric Blake  <eblake@redhat.com>
23586
23587         cloexec, fcntl: relax license
23588         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23589         consent from all contributors.
23590         * modules/fcntl (License): Likewise.
23591
23592 2010-12-10  Bruno Haible  <bruno@clisp.org>
23593
23594         Tests for module 'pipe-posix'.
23595         * modules/pipe-posix-tests: New file.
23596         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23597
23598 2010-12-10  Bruno Haible  <bruno@clisp.org>
23599
23600         pipe-posix: Make it work in C++ mode.
23601         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23602         (pipe): Use common idiom, not a macro definition.
23603         * lib/pipe.c: New file.
23604         * m4/pipe.m4: New file.
23605         * modules/pipe-posix (Description): Enhance.
23606         (Files): Add lib/pipe.c, m4/pipe.m4.
23607         (configure.ac): Invoke gl_FUNC_PIPE.
23608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23609         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23610         * tests/test-unistd-c++.cc: Check the signature of pipe.
23611
23612 2010-12-10  Bruno Haible  <bruno@clisp.org>
23613
23614         Rename module 'pipe' to 'spawn-pipe'.
23615         * modules/spawn-pipe: New file, renamed from modules/pipe.
23616         (Files, configure.ac, Makefile.am): Update.
23617         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23618         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23619         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23620         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23621         "spawn-pipe.h" instead of "pipe.h".
23622         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23623         to gl_SPAWN_PIPE.
23624         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23625         (Files, Makefile.am): Update.
23626         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23627         Update.
23628         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23629         Include "spawn-pipe.h" instead of "pipe.h".
23630         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23631         * lib/javacomp.c: Likewise.
23632         * lib/javaversion.c: Likewise.
23633         * lib/pipe-filter-gi.c: Likewise.
23634         * lib/pipe-filter-ii.c: Likewise.
23635         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23636         * modules/javacomp (Depends-on): Likewise.
23637         * modules/javaversion (Depends-on): Likewise.
23638         * modules/pipe-filter-gi (Depends-on): Likewise.
23639         * modules/pipe-filter-ii (Depends-on): Likewise.
23640         * MODULES.html.sh (Executing programs): Update.
23641         * NEWS: Mention the change.
23642
23643 2010-12-10  Eric Blake  <eblake@redhat.com>
23644
23645         pipe-posix: new module
23646         * modules/pipe-posix: New file.
23647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23648         (gl_UNISTD_H): Check for declaration.
23649         * modules/unistd (Makefile.am): Substitute it.
23650         * lib/unistd.in.h (pipe): Provide it for mingw.
23651         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23652         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23653
23654 2010-12-07  Bruno Haible  <bruno@clisp.org>
23655
23656         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23657         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23658         u8_strcmp_gnu.
23659         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23660
23661 2010-12-06  Bruno Haible  <bruno@clisp.org>
23662
23663         Update internal documentation.
23664         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23665
23666 2010-12-04  Bruno Haible  <bruno@clisp.org>
23667
23668         Put more information about failed tests into the test return codes.
23669         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23670         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23671         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23672         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23674         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23675         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23676         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23677         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23679         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23680         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23681         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23682         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23683         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23684         returns a bit mask.
23685         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23686         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23687         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23688         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23689         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23690         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23691         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23693         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23694         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23695         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23696         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23697         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23698         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23699         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23700         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23701         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23702         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23703         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23704         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23705         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23706         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23707         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23708         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23709         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23710         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23711         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23712         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23713         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23714         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23715         gl_PRINTF_PRECISION): Likewise.
23716         * m4/regex.m4 (gl_REGEX): Likewise.
23717         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23718         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23719         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23720         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23722         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23724         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23725         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23726         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23727         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23728         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23729         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23730         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23731         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23732         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23733         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23734         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23736         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23737         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23738         enumerated value.
23739         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23740
23741 2010-12-04  Bruno Haible  <bruno@clisp.org>
23742
23743         Update for Solaris 11 2010-11.
23744         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23745         Express, released in November 2010.
23746
23747 2010-12-04  Bruno Haible  <bruno@clisp.org>
23748
23749         nproc: Relax license.
23750         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23751         and Paul Eggert.
23752         Requested by Ludovic Courtès <ludo@gnu.org>.
23753
23754 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23755
23756         utimecmp: fine-grained src to nearby coarse-grained dest
23757
23758         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23759         and the source is on a file system with higher-resolution time
23760         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23761         not work, and the time stamps are close together, the algorithm to
23762         determine the exact resolution from the read-back mtime was buggy:
23763         it had a "!=" where it should have had an "==".  This bug has been
23764         in the code ever since it was introduced to gnulib.
23765         Problem reported by Dan Jacobson in
23766         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23767
23768 2010-11-30  Bruno Haible  <bruno@clisp.org>
23769
23770         strerror_r-posix: Fix autoconf test.
23771         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23772
23773 2010-11-28  Bruno Haible  <bruno@clisp.org>
23774             Paul Eggert  <eggert@cs.ucla.edu>
23775
23776         Tests for module 'getdomainname'.
23777         * modules/getdomainname-tests: New file.
23778         * tests/test-getdomainname.c: New file, based on
23779         tests/test-gethostname.c.
23780
23781 2010-11-28  Bruno Haible  <bruno@clisp.org>
23782             Paul Eggert  <eggert@cs.ucla.edu>
23783
23784         getdomainname: Use the system function when possible.
23785         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23786         (getdomainname): Replace if needed. Provide the declaration if it is
23787         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23788         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23789         (getdomainname): When the system has getdomainname, call the system
23790         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23791         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23792         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23793         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23794         the function if its second argument is of type 'int' or if it is found
23795         in libnsl.
23796         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23797         <sys/systeminfo.h> and sysinfo().
23798         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23800         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23801         HAVE_GETDOMAINNAME.
23802         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23803         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23804         * doc/glibc-functions/getdomainname.texi: Document the problems with
23805         the getdomainname declaration.
23806
23807 2010-11-28  Bruno Haible  <bruno@clisp.org>
23808
23809         sys_socket: Ensure ss_family field on AIX.
23810         * lib/sys_socket.in.h (ss_family): New macro definition.
23811         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23812         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23813         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23814         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23815         * modules/sys_socket (Makefile.am): Substitute
23816         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23817         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23818
23819 2010-11-27  Bruno Haible  <bruno@clisp.org>
23820
23821         readline: Improve configure output.
23822         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23823         "checking for readline..." result understandable.
23824
23825 2010-11-27  Bruno Haible  <bruno@clisp.org>
23826
23827         *printf-posix: Detect a bug on Solaris 10/x86.
23828         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23829         for floating-point output.
23830         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23831         directive.
23832         * tests/test-snprintf-posix.h (test_function): Likewise.
23833         * tests/test-sprintf-posix.h (test_function): Likewise.
23834         * tests/test-vasprintf-posix.c (test_function): Likewise.
23835         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23836         * doc/posix-functions/printf.texi: Likewise.
23837         * doc/posix-functions/snprintf.texi: Likewise.
23838         * doc/posix-functions/sprintf.texi: Likewise.
23839         * doc/posix-functions/vfprintf.texi: Likewise.
23840         * doc/posix-functions/vprintf.texi: Likewise.
23841         * doc/posix-functions/vsnprintf.texi: Likewise.
23842         * doc/posix-functions/vsprintf.texi: Likewise.
23843         * doc/glibc-functions/obstack_printf.texi: Likewise.
23844         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23845
23846 2010-11-27  Bruno Haible  <bruno@clisp.org>
23847
23848         Fix link error when module libunistring-optional is in use.
23849         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23850         * modules/striconveha-tests (Makefile.am): Likewise.
23851
23852 2010-11-27  Bruno Haible  <bruno@clisp.org>
23853
23854         regex: Mention link dependencies.
23855         * modules/regex (Link): New section.
23856         * modules/rpmatch (Link): Likewise.
23857         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23858
23859 2010-11-27  Bruno Haible  <bruno@clisp.org>
23860
23861         ftoastr: Fix compilation error on Solaris.
23862         * lib/ftoastr.c: Include <config.h>.
23863
23864 2010-11-27  Bruno Haible  <bruno@clisp.org>
23865
23866         getloadavg: Update documentation.
23867         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23868
23869 2010-11-27  Bruno Haible  <bruno@clisp.org>
23870
23871         sys_socket: Fix test whether the functions are declared.
23872         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23873         not <sys/select.h>.
23874
23875 2010-11-27  Bruno Haible  <bruno@clisp.org>
23876
23877         getpass: Make sure to get system declaration on some platforms.
23878         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23879         gl_USE_SYSTEM_EXTENSIONS.
23880         * modules/getpass (Depends-on): Add extensions.
23881
23882 2010-11-26  Bruno Haible  <bruno@clisp.org>
23883
23884         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23885         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23886         'iconv' module is present.
23887         (ICONV_CONST): New macro.
23888         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23889         ICONV_CONST.
23890         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23891         set ICONV_CONST.
23892         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23893         here.
23894         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23895         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23896         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23897         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23898         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23899         present.
23900
23901 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23902
23903         ftoastr: comment fix
23904         * lib/ftoastr.c: "little" -> "little or no" in comment
23905
23906 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23907
23908         stdint: port to GCC 4.3 + OSX + Octave
23909         On this platform, stdint.h is buggy and defines int64_t to long
23910         long int.  The replacement defined it to long int, causing
23911         problems with C++ style name mangling.  Instead, trust the system
23912         definition if INT64_MAX is defined, and likewise for the unsigned
23913         variant.   Problem reported by Jarno Rajahalme in
23914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23915         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23916         and don't mess with int64_t and INT64_MAX in this case.
23917         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23918
23919 2010-11-24  Bruno Haible  <bruno@clisp.org>
23920
23921         doc: Corrections regarding MacOS X 10.4 and 10.5.
23922         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23923         MacOS X.
23924         Reported by Simon Josefsson.
23925
23926 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23927
23928         Uninstall ".bin" files installed by relocwrapper.
23929         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23930         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23931         unless it is already there.
23932
23933 2010-11-21  Bruno Haible  <bruno@clisp.org>
23934
23935         Update for NetBSD 5.0.
23936         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23937         NetBSD; the test fails on NetBSD 5.0.
23938         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23939         about NetBSD.
23940
23941 2010-11-21  Bruno Haible  <bruno@clisp.org>
23942
23943         Update for HP-UX 11.23 and HP-UX 11.31.
23944         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23945         HP-UX.
23946
23947 2010-11-21  Bruno Haible  <bruno@clisp.org>
23948
23949         Update for MacOS X 10.5.
23950         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23951         MacOS X; the test fails on MacOS X 10.5.8.
23952         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23953         about MacOS X.
23954
23955 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23956
23957         bootstrap: add bootstrap_sync option.
23958         See discussion at
23959         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23960         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23961         * build-aux/bootstrap: Accept --bootstrap-sync to update
23962         bootstrap if it is not identical to the local gnulib's
23963         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23964         enable this by default.  Accept --no-bootstrap-sync to disable
23965         it.
23966
23967 2010-11-20  Bruno Haible  <bruno@clisp.org>
23968
23969         Ensure that <features.h> is included before __GLIBC__ is tested.
23970         * lib/printf-parse.h: Include <features.h>.
23971         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23972         Reported by Mike Frysinger <vapier@gentoo.org>.
23973
23974         Ensure that <features.h> is included before __GLIBC__ is tested.
23975         * lib/wchar.in.h: Include <features.h>.
23976         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23977         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23978         Reported by Mike Frysinger <vapier@gentoo.org>.
23979
23980         Ensure that <features.h> is included before __GLIBC__ is tested.
23981         * lib/arpa_inet.in.h: Include <features.h>.
23982         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23983         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23984         Reported by Mike Frysinger <vapier@gentoo.org>.
23985
23986         Ensure that <features.h> is included before __GLIBC__ is tested.
23987         * build-aux/link-warning.h: Include <features.h>.
23988         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23989         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23990         Reported by Mike Frysinger <vapier@gentoo.org>.
23991
23992         Ensure that <features.h> is included before __GLIBC__ is tested.
23993         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23994         Reported by Mike Frysinger <vapier@gentoo.org>.
23995
23996 2010-11-20  Bruno Haible  <bruno@clisp.org>
23997
23998         memmem: Fix autoconf test.
23999         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24000
24001 2010-11-20  Bruno Haible  <bruno@clisp.org>
24002
24003         Port to uClibc.
24004         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24005         * lib/fcntl.in.h: Likewise.
24006         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24007         * lib/mbrtowc.c (mbrtowc): Likewise.
24008         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24009         * lib/strerror_r.c: Likewise.
24010         * lib/unistr/u8-strnlen.c: Likewise.
24011         * lib/vasnprintf.c (decimal_point_char): Likewise.
24012         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24013         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24014         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24015         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24016         * tests/test-sigaction.c (handler, main): Likewise.
24017         * lib/freading.h: Treat uClibc like a non-glibc platform.
24018         * lib/freading.c: Likewise.
24019         * lib/gettext.h: Likewise.
24020         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24021         Likewise.
24022         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24023         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24024         * lib/propername.c (proper_name_utf8): Likewise.
24025         * lib/spawn.in.h: Likewise.
24026         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24027         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24028         mem_cd_iconveh_internal): Likewise.
24029         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24030         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24031         strstr, strcasestr): Likewise.
24032         * lib/unicodeio.c (unicode_to_mb): Likewise.
24033         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24034         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24035         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24036         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24037         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24038         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24039         * lib/unistr/u8-stpncpy.c: Likewise.
24040         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24041         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24042         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24043         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24044         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24045         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24046         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24049         Likewise.
24050         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24051         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24052         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24053         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24054         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24055         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24056         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24057         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24058         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24059         * tests/test-striconveha.c (main): Likewise.
24060         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24061         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24062         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24063         * doc/posix-functions/getline.texi: Likewise.
24064         Reported by Mike Frysinger <vapier@gentoo.org>.
24065
24066 2010-11-20  Bruno Haible  <bruno@clisp.org>
24067
24068         nproc: Fix condition.
24069         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24070         HAVE_PTHREAD_AFFINITY_NP.
24071
24072 2010-11-20  Bruno Haible  <bruno@clisp.org>
24073
24074         Fix a comment.
24075         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24076
24077 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24078
24079         ftoastr: don't assume snprintf
24080         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24081         Implement a subset of snprintf here, by using sprintf safely.
24082         * modules/ftoastr (Depends-on): Remove snprintf.
24083
24084 2010-11-19  Jim Meyering  <meyering@redhat.com>
24085
24086         test-rename.h: fix compilation failure
24087         * tests/test-rename.h (test_rename): Add omitted "}".
24088
24089 2010-11-17  Jim Meyering  <meyering@redhat.com>
24090
24091         maint.mk: add a URL discussing the no-@acronym policy
24092         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24093
24094 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24095
24096         ftoastr: depend on snprintf, improve comments
24097         * lib/ftoastr.c: Also mention Loitsch's draft.
24098         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24099         needed in the current implementation, but it might simplify
24100         speeding up the code later.
24101         * modules/ftoastr: Depend on snprintf; this improves portability.
24102         Suggested by Bruno Haible in the same email.
24103
24104         ftoastr: port to hosts lacking strtof and strtold
24105         Problem reported by Bruno Haible in
24106         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24107         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24108         environment and strtold (and presumably strtof) are not available.
24109         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24110         (configure.ac): Require gl_C99_STRTOLD.
24111
24112 2010-11-18  Bruno Haible  <bruno@clisp.org>
24113
24114         c-strtold: Avoid link error on AIX 7.
24115         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24116         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24117         (gl_C_STRTOLD): Test whether strtold_l exists.
24118         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24119
24120 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24121
24122         intprops: new macro INT_BITS_STRLEN_BOUND
24123         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24124         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24125         not exposed.  Also, it uses a slightly tighter bound than before;
24126         though this makes no practical difference, we might as well be as
24127         tight as we easily can.
24128
24129         ftoastr: new module, for lossless conversion of floats to short strings
24130         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24131         * modules/ftoastr: New files.
24132
24133 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24134
24135         bootstrap: port to Solaris sed
24136         * build-aux/bootstrap (get_version): Port to Solaris sed.
24137         See Ralf Wildenhues's note in
24138         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24139
24140 2010-11-14  Jim Meyering  <meyering@redhat.com>
24141
24142         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24143         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24144         and move definition closer to sole use.
24145
24146 2010-11-13  Jim Meyering  <meyering@redhat.com>
24147
24148         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24149         Now we require at least autoconf-2.59, which means the work-around
24150         is no longer needed.
24151         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24152         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24153         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24154         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24155         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24156
24157 2010-11-13  Bruno Haible  <bruno@clisp.org>
24158
24159         rename, renameat: Avoid test failures at NFS mounted locations.
24160         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24161         functions.
24162         (test_rename): Use assert_nonexistent.
24163         * tests/test-rename.c: Include <dirent.h>.
24164         * tests/test-renameat.c: Likewise.
24165         Reported by Gary V. Vaughan <gary@gnu.org>.
24166
24167         rename, renameat: Document Linux bug with NFS
24168         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24169         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24170         * doc/posix-functions/renameat.texi: Likewise.
24171         Suggested by Eric Blake.
24172
24173 2010-11-13  Bruno Haible  <bruno@clisp.org>
24174
24175         rename test: Add comments.
24176         * tests/test-rename.h (test_rename): Add structure and comments.
24177
24178 2010-11-13  Eric Blake  <eblake@redhat.com>
24179
24180         maintainer-makefile: cover a few more files
24181         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24182         scripts generated within C files, for libvirt.
24183
24184 2010-11-13  Bruno Haible  <bruno@clisp.org>
24185
24186         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24187         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24188         character, return the number of bytes that belong together, not always
24189         1.
24190         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24191         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24192         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24193         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24194         number of bytes of an invalid character.
24195         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24196         (main): Invoke it.
24197         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24198         results.
24199         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24200         malformed byte sequences.
24201         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24202         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24203         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24204         Reported by Ben Pfaff and Paolo Bonzini.
24205
24206 2010-11-13  Bruno Haible  <bruno@clisp.org>
24207
24208         openat: Work around glibc bug with fchownat() and empty file names.
24209         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24210         (gl_FUNC_FCHOWNAT): Invoke it.
24211         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24212         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24213         Reported by Gary V. Vaughan <gary@gnu.org>.
24214
24215 2010-11-13  Bruno Haible  <bruno@clisp.org>
24216
24217         openat: Ensure autoconf macro ordering.
24218         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24219         gl_USE_SYSTEM_EXTENSIONS.
24220         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24221
24222 2010-11-13  Bruno Haible  <bruno@clisp.org>
24223
24224         Update comments.
24225         * lib/unistr/u8-check.c: Update file name in comments.
24226         * lib/unistr/u8-mblen.c: Likewise.
24227         * lib/unistr/u8-prev.c: Likewise.
24228         * lib/unistr/u8-strmblen.c: Likewise.
24229         * lib/unistr/u8-strmbtouc.c: Likewise.
24230
24231 2010-11-13  Jim Meyering  <meyering@redhat.com>
24232
24233         tests: avoid test failure on Solaris 10 due to lack of PATH export
24234         * tests/test-update-copyright.sh: Don't forget to export PATH.
24235
24236         init.sh: ensure that IFS is defined, just in case...
24237         * tests/init.sh (setup_): Ensure that IFS is defined,
24238         so that saving and restoring it works as expected.  This
24239         appears to be useful at least for an old version of dash
24240         from a long time ago (RH 6).  See here for details:
24241         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24242
24243         maint.mk: tighten "test a == b" check
24244         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24245         test to files that contain something like #!/bin/sh.
24246         Without this, coreutils would get two false positives in
24247         the comments of C source files.
24248
24249 2010-11-12  Eric Blake  <eblake@redhat.com>
24250
24251         bootstrap: fix typo in previous attempt
24252         * build-aux/bootstrap (buildreq): Correct the grouping.
24253         Reported by Paul Eggert.
24254
24255         maintainer-makefile: prohibit test x == x
24256         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24257         Based on a report by Matthias Bolte.
24258
24259         bootstrap: allow FreeBSD gzip
24260         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24261         which has no '.' and goes to stderr.
24262         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24263         Reported by Matthias Bolte.
24264
24265         maintainer-makefile: check for i18n setup
24266         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24267         will likely work.
24268
24269 2010-11-12  Bruno Haible  <bruno@clisp.org>
24270
24271         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24272         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24273         * lib/nanosleep.c (nanosleep): Likewise.
24274
24275 2010-11-11  Bruno Haible  <bruno@clisp.org>
24276
24277         fcntl-h: Fix for use of C++ on glibc systems.
24278         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24279         also on glibc systems in C++ mode.
24280         Reported by Gary V. Vaughan <gary@gnu.org>.
24281
24282 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24283
24284         mknod: avoid false failure with dash
24285         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24286
24287 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24288
24289         unlink: Fix "is it should" typo in diagnostic.
24290         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24291         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24292
24293 2010-11-11  Bruno Haible  <bruno@clisp.org>
24294
24295         Tests for module 'strerror_r-posix'.
24296         * modules/strerror_r-posix-tests: New file.
24297         * tests/test-strerror_r.c: New file.
24298         * tests/test-string-c++.cc: Check the signature of strerror_r.
24299
24300         New module 'strerror_r-posix'.
24301         * lib/string.in.h (strerror_r): New declaration.
24302         * lib/strerror_r.c: New file.
24303         * m4/strerror_r.m4: New file.
24304         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24305         of strerror_r.
24306         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24307         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24308         * modules/strerror_r-posix: New file.
24309         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24310         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24311         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24312         portability problems.
24313
24314 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24315
24316         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24317         line is also considered for output. Quoted function name in shell
24318         command, so temporary files for functions like MyClass::operator()
24319         are removed correctly without errors.
24320
24321 2010-11-09  Bruno Haible  <bruno@clisp.org>
24322
24323         * doc/posix-functions/strerror.texi: List more failing platforms.
24324
24325         * doc/posix-functions/strerror.texi: Add a comment.
24326
24327 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24328
24329         fdopendir: fix bug on MacOS X when low on file descriptors
24330
24331         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24332         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24333         All callers changed.
24334         (fdopendir): Invoke save_cwd at the top level, not after using
24335         multiple dup() calls to use up file descriptors.  Then retry
24336         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24337         less than the maximum number of open file descriptors, because
24338         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24339         on Mac OS X 10.6.4 for tar 1.24
24340         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24341         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24342         and for tar 1.25
24343         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24344
24345 2010-11-07  Bruno Haible  <bruno@clisp.org>
24346
24347         vasnprintf: Support I flag on glibc systems.
24348         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24349         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24350         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24351         snprintf function.
24352         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24353         glibc systems.
24354         * tests/test-vasnprintf-posix3.c: New file.
24355         * modules/vasnprintf-posix-tests (Files): Add it.
24356         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24357
24358 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24359
24360         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24361         * MODULES.html.sh: For compiler warnings, use name
24362         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24363
24364 2010-11-05  Eric Blake  <eblake@redhat.com>
24365
24366         ceil, floor: avoid spurious failure with icc
24367         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24368         [denormals-as-zero] when optimizing without -mieee-fp option.
24369         * tests/test-floorf2.c (floorf_reference): Likewise.
24370         * tests/test-ceilf1.c (dummy): New function.
24371         (main): Use it to outsmart icc's optimization.
24372         * tests/test-floorf1.c (dummy, main): Likewise.
24373
24374         tests: require working signbit
24375         * modules/ceilf-tests (Depends-on): Add signbit.
24376         * modules/ceill-tests (Depends-on): Likewise.
24377         * modules/floorf-tests (Depends-on): Likewise.
24378         * modules/floorl-tests (Depends-on): Likewise.
24379         * modules/round-tests (Depends-on): Likewise.
24380         * modules/roundf-tests (Depends-on): Likewise.
24381         * modules/roundl-tests (Depends-on): Likewise.
24382         * modules/trunc-tests (Depends-on): Likewise.
24383         * modules/truncf-tests (Depends-on): Likewise.
24384         * modules/truncl-tests (Depends-on): Likewise.
24385
24386         strtod: work around icc bug
24387         * lib/strtod.c (minus_zero): Define to working value.
24388         (strtod): Use it to avoid icc bug.
24389
24390         copysign: enhance tests
24391         * modules/copysign-tests (Files): Add minus-zero.h.
24392         * tests/test-copysign.c (main): Also test zeros.
24393
24394 2010-11-04  Eric Blake  <eblake@redhat.com>
24395
24396         ceil, floor, round, trunc: enhance tests of -0
24397         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24398         * tests/test-ceill.c (main): Likewise.
24399         * tests/test-floorf1.c (main): Likewise.
24400         * tests/test-floorl.c (main): Likewise.
24401         * tests/test-round1.c (main): Likewise.
24402         * tests/test-roundf1.c (main): Likewise.
24403         * tests/test-roundl.c (main): Likewise.
24404         * tests/test-trunc1.c (main): Likewise.
24405         * tests/test-truncf1.c (main): Likewise.
24406         * tests/test-truncl.c (main): Likewise.
24407
24408 2010-11-04  Eric Blake  <eblake@redhat.com>
24409
24410         frexp, tests: work around ICC bug with -zero
24411         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24412         works with more compilers.
24413         * tests/minus-zero.h: New file.
24414         * modules/ceilf-tests (Files): Include it.
24415         * modules/ceill-tests (Files): Likewise.
24416         * modules/floorf-tests (Files): Likewise.
24417         * modules/floorl-tests (Files): Likewise.
24418         * modules/frexp-nolibm-tests (Files): Likewise.
24419         * modules/frexp-tests (Files): Likewise.
24420         * modules/frexpl-nolibm-tests (Files): Likewise.
24421         * modules/frexpl-tests (Files): Likewise.
24422         * modules/isnan-tests (Files): Likewise.
24423         * modules/isnand-nolibm-tests (Files): Likewise.
24424         * modules/isnand-tests (Files): Likewise.
24425         * modules/isnanf-nolibm-tests (Files): Likewise.
24426         * modules/isnanf-tests (Files): Likewise.
24427         * modules/isnanl-nolibm-tests (Files): Likewise.
24428         * modules/isnanl-tests (Files): Likewise.
24429         * modules/round-tests (Files): Likewise.
24430         * modules/roundf-tests (Files): Likewise.
24431         * modules/roundl-tests (Files): Likewise.
24432         * modules/ldexpl-tests (Files): Likewise.
24433         * modules/signbit-tests (Files): Likewise.
24434         * modules/snprintf-posix-tests (Files): Likewise.
24435         * modules/sprintf-posix-tests (Files): Likewise.
24436         * modules/strtod-tests (Files): Likewise.
24437         * modules/trunc-tests (Files): Likewise.
24438         * modules/truncf-tests (Files): Likewise.
24439         * modules/truncl-tests (Files): Likewise.
24440         * modules/vsnprintf-posix-tests (Files): Likewise.
24441         * modules/vsprintf-posix-tests (Files): Likewise.
24442         * modules/vasnprintf-posix-tests (Files): Likewise.
24443         * modules/vasprintf-posix-tests (Files): Likewise.
24444         * tests/test-ceilf1.c (main): Use it.
24445         * tests/test-ceill.c (main): Likewise.
24446         * tests/test-floorf1.c (main): Likewise.
24447         * tests/test-floorl.c (main): Likewise.
24448         * tests/test-frexp.c (main): Likewise.
24449         * tests/test-frexpl.c (main): Likewise.
24450         * tests/test-isnan.c (main): Likewise.
24451         * tests/test-isnand.h (main): Likewise.
24452         * tests/test-isnanf.h (main): Likewise.
24453         * tests/test-isnanl.h (main): Likewise.
24454         * tests/test-ldexpl.c (main): Likewise.
24455         * tests/test-round.c (main): Likewise.
24456         * tests/test-roundf.c (main): Likewise.
24457         * tests/test-roundl.c (main): Likewise.
24458         * tests/test-signbit.c (test_signbitf, test_signbitd)
24459         (test_signbitl): Likewise.
24460         * tests/test-snprintf-posix.h (test_function): Likewise.
24461         * tests/test-sprintf-posix.h (test_function): Likewise.
24462         * tests/test-strtod.c (main): Likewise.
24463         * tests/test-trunc1.c (main): Likewise.
24464         * tests/test-truncf1.c (main): Likewise.
24465         * tests/test-truncl.c (main): Likewise.
24466
24467         isnanl: work around icc bug
24468         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24469
24470 2010-11-03  Eric Blake  <eblake@redhat.com>
24471
24472         tests: fix compiler warnings
24473         * tests/test-getopt.h (test_getopt): Fix condition.
24474         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24475         * tests/test-pipe2.c (main): Likewise.
24476         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24477
24478         utimens: fix broken m4 test
24479         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24480
24481 2010-10-28  Bruno Haible  <bruno@clisp.org>
24482
24483         posix_spawn*, getdtablesize: Relax license.
24484         * modules/posix_spawn (License): Change to LGPLv2+.
24485         * modules/posix_spawnp (License): Likewise.
24486         * modules/posix_spawn-internal (License): Likewise.
24487         * modules/posix_spawnattr_init (License): Likewise.
24488         * modules/posix_spawnattr_getflags (License): Likewise.
24489         * modules/posix_spawnattr_setflags (License): Likewise.
24490         * modules/posix_spawnattr_getpgroup (License): Likewise.
24491         * modules/posix_spawnattr_setpgroup (License): Likewise.
24492         * modules/posix_spawnattr_getschedparam (License): Likewise.
24493         * modules/posix_spawnattr_setschedparam (License): Likewise.
24494         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24495         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24496         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24497         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24498         * modules/posix_spawnattr_getsigmask (License): Likewise.
24499         * modules/posix_spawnattr_setsigmask (License): Likewise.
24500         * modules/posix_spawnattr_destroy (License): Likewise.
24501         * modules/posix_spawn_file_actions_init (License): Likewise.
24502         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24503         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24504         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24505         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24506         * modules/getdtablesize (License): Likewise.
24507         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24508
24509 2010-10-26  Bruno Haible  <bruno@clisp.org>
24510
24511         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24512         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24513         Cygwin and mingw.
24514         Suggested by Eric Blake.
24515
24516 2010-10-26  Bruno Haible  <bruno@clisp.org>
24517
24518         stdio: Work around compilation error due to renameat() on Solaris 10.
24519         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24520         * lib/renameat.c: Don't include <unistd.h> here.
24521         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24522         Reported by Paul Eggert and Eric Blake.
24523
24524 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24525
24526         renameat: port to Solaris 10, which declares renameat in unistd.h
24527
24528         * lib/renameat.c: Include unistd.h before stdio.h, because
24529         Solaris 10 declares renameat in unistd.h.  Problem encountered
24530         when building GNU tar 1.24 on Solaris 10.
24531
24532 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24533
24534         fdopendir: fix C89 compilation
24535         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24536         compilers.
24537
24538 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24539
24540         inttostr: simplify by removing unnecessary redundancy
24541         * lib/anytostr.c: Don't include verify.h.
24542         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24543         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24544         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24545         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24546         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24547         Likewise.
24548         * modules/inttostr (Depends-on): Remove 'verify'.
24549
24550 2010-10-23  Bruno Haible  <bruno@clisp.org>
24551
24552         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24553         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24554         Reported by Eric Blake.
24555
24556 2010-10-23  Bruno Haible  <bruno@clisp.org>
24557
24558         Tests: Fix LOCALE_JA on MirBSD 10.
24559         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24560         to an UTF-8 locale.
24561         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24562         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24563         Reported by Eric Blake.
24564
24565 2010-10-21  Bruno Haible  <bruno@clisp.org>
24566
24567         nl_langinfo test: Avoid test failure on NetBSD 5.
24568         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24569         Reported by Eric Blake.
24570
24571 2010-10-21  Eric Blake  <eblake@redhat.com>
24572
24573         c-stack: work around libsigsegv 2.8 bug
24574         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24575         overflow on at least PowerPC64.
24576
24577 2010-10-17  Bruno Haible  <bruno@clisp.org>
24578
24579         userspec: Drop redundant file.
24580         * modules/userspec (Files): Remove lib/inttostr.h.
24581
24582 2010-10-17  Bruno Haible  <bruno@clisp.org>
24583
24584         nl_langinfo tests: Silence some warnings.
24585         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24586         Reported by Jim Meyering.
24587
24588 2010-10-17  Bruno Haible  <bruno@clisp.org>
24589
24590         Make use of GCC's attribute __alloc_size__.
24591         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24592         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24593         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24594         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24595         __alloc_size__.
24596         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24597         Suggested by Jim Meyering.
24598
24599 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24600
24601         bootstrap: anchor .gitignore entries.
24602         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24603         with...
24604         (insert_vc_ignore): ... this new function, which prepends `/' to
24605         all .gitignore entries before passing them to
24606         insert_sorted_if_absent.
24607
24608 2010-10-16  Bruno Haible  <bruno@clisp.org>
24609
24610         nextafter: Fix configure check.
24611         * modules/nextafter (configure.ac): Correct expected prototype.
24612
24613 2010-10-16  Bruno Haible  <bruno@clisp.org>
24614
24615         termios: Update documentation.
24616         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24617
24618 2010-10-16  Bruno Haible  <bruno@clisp.org>
24619
24620         tests: Make them compile with TinyCC.
24621         * tests/test-strstr.c (main): Remove parentheses around array
24622         initializer.
24623
24624 2010-10-15  Eric Blake  <eblake@redhat.com>
24625
24626         ignore-value: make header idempotent
24627         * lib/ignore-value.h: Add double-inclusion guards.
24628         Reported by Stefan Berger.
24629
24630 2010-10-15  Jim Meyering  <meyering@redhat.com>
24631
24632         GNUmakefile: handle "stable" target, not "major"
24633         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24634         lists in maint.mk and announce-gen.  Without this, "make stable"
24635         would fail to ensure that $(VERSION) is up to date.
24636
24637 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24638
24639         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24640         & co.
24641
24642 2010-10-14  Bruno Haible  <bruno@clisp.org>
24643
24644         vasnprintf: Don't set errno to 0.
24645         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24646         block that sets it to 0.
24647         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24648
24649 2010-10-14  Bruno Haible  <bruno@clisp.org>
24650
24651         socketlib: Fix.
24652         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24653         gl_PREREQ_SYS_H_WINSOCK2.
24654         Reported by Ian Beckwith <ianb@erislabs.net>.
24655
24656 2010-10-13  Jim Meyering  <meyering@redhat.com>
24657
24658         test-select-stdin.c: avoid warn_unused_result warnings
24659         * tests/test-select-stdin.c: Include "macros.h".
24660         ASSERT that read and fflush succeed.
24661
24662 2010-10-13  Jim Meyering  <meyering@redhat.com>
24663
24664         git-version-gen: do require git-VC'd files in cwd
24665         * build-aux/git-version-gen: Reject a git version string
24666         if there are no commits associated with the current directory.
24667         This avoids an unlikely false-positive (unrelated dir whose parent
24668         repository also contains a tag matching v*), as pointed out
24669         by Giuseppe Scrivano in
24670         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24671
24672 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24673
24674         argv-iter: omit nonconforming declaration
24675         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24676         enum arg_iter_err declaration, which doesn't conform to C99.
24677         Solaris 10 cc warns about this.
24678
24679 2010-10-13  Eric Blake  <eblake@redhat.com>
24680
24681         termios: fix compilation on mingw
24682         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24683         (gl_TERMIOS_H): Adjust it on mingw.
24684         * modules/termios (Makefile.am): Substitute new key.
24685         * lib/termios.in.h (includes): Make include_next conditional.
24686         * doc/posix-headers/termios.texi (termios.h): Update
24687         documentation.
24688         Reported by Daniel P. Berrange.
24689
24690 2010-10-13  Jim Meyering  <meyering@redhat.com>
24691
24692         git-version-gen: don't require that .git/ be in the current dir
24693         * build-aux/git-version-gen: Adjust this script so that it works
24694         when run from any working directory beneath the top-level .git/-
24695         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24696         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24697
24698         test-select: avoid warn_unused_result warnings
24699         * tests/test-select.c: Include "macros.h".
24700         ASSERT that each call to read, write, and pipe succeeds.
24701         While not technically required, also check each "close".
24702         * modules/select-tests (Files): Add tests/macros.h.
24703
24704         test-symlinkat: remove declaration of unused local
24705         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24706
24707         test-inttostr: avoid shadowing warnings
24708         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24709         and use malloc rather than the stack for the same reason as
24710         mentioned in the comment justifying the other allocation.
24711
24712 2010-10-11  Bruno Haible  <bruno@clisp.org>
24713
24714         stdlib: Allow multiple gnulib generated replacements to coexist.
24715         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24716         Reported by Sam Steingold <sds@gnu.org>.
24717
24718 2010-10-11  Jim Meyering  <meyering@redhat.com>
24719
24720         fix a documentation typo
24721         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24722
24723 2010-10-11  Eric Blake  <eblake@redhat.com>
24724
24725         futimens: work around Solaris 11 bug
24726         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24727         * tests/test-futimens.h (test_futimens): Enhance, rather than
24728         weaken test.
24729         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24730
24731 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24732
24733         Indentation.
24734         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24735         higher-level operators more to the left.
24736
24737 2010-10-11  Jim Meyering  <meyering@redhat.com>
24738
24739         test-futimens: avoid unwarranted test failure on Solaris 5.11
24740         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24741         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24742         because it tries to dereference the NULL name argument.
24743
24744 2010-10-11  Bruno Haible  <bruno@clisp.org>
24745
24746         Indentation.
24747         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24748         indentation.
24749
24750 2010-10-11  Jim Meyering  <meyering@redhat.com>
24751
24752         spawn.in.h: make indentation consistent with parentheses
24753         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24754         Make indentation consistent with parentheses.
24755
24756 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24757
24758         Fix mismatched parens in previous commit
24759         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24760         parens.
24761
24762 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24763
24764         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24765
24766         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24767         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24768         * lib/malloca.c: Include "verify.h".
24769         (verify1): Remove, replacing with a verify call.
24770         * lib/relocwrapper.c (verify1): Likewise.
24771         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24772         Likewise.
24773         * modules/malloca (Depends-on): Add 'verify'.
24774         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24775         * modules/vasnprintf (Depends-on): Add 'verify'.
24776         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24777         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24778         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24779         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24780         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24781         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24782         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24783
24784         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24785
24786         Formerly the style was sometimes 2*X - 1, because the C standard
24787         was wrongly thought to disallow ?: in integral constant expressions.
24788         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24789         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24790         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24791         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24792         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24793         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24794         verify that time_t cannot be floating.
24795
24796 2010-10-08  Eric Blake  <eblake@redhat.com>
24797
24798         time: enforce recent POSIX ruling that time_t is integral
24799         * lib/time.in.h (__time_t_must_be_integral): Detect any
24800         problematic systems, allowing the rest of gnulib to assume POSIX.
24801
24802 2010-10-08  Jim Meyering  <meyering@redhat.com>
24803
24804         fdopendir: fix a bug on systems lacking openat and /proc support
24805         OpenBSD 4.7 is one such system.  The most noticeable effect was
24806         failure of any application making nontrivial use of fts: rm, du,
24807         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24808           ./rm: traversal failed: `a': Bad file descriptor
24809         Debugging that, you see that even though FD 6 was closed just
24810         prior to the opendir call in fd_clone_opendir, its resulting
24811         dir->dd_fd was 8, rather than the expected value of 6:
24812
24813         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24814         93                close (fd);
24815         (gdb) n
24816         94                dir = fd_clone_opendir (dupfd);
24817         (gdb) n
24818         95                saved_errno = errno;
24819         (gdb) p dir->dd_fd
24820         $11 = 8
24821
24822         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24823         The problem is that on OpenBSD, fd_clone_opendir has to resort
24824         to using the old-style save/restore CWD mechanism, due to its
24825         lack of openat/proc support, and *that* would steal the FD (6)
24826         that opendir was supposed to use.
24827
24828         The fix is to squirrel away the desired FD so that save_cwd uses a
24829         different one, and then free the dest FD right before calling opendir.
24830         That guarantees opendir will use the required file descriptor.
24831
24832         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24833
24834 2010-10-08  Bruno Haible  <bruno@clisp.org>
24835
24836         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24837         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24838
24839 2010-10-08  Bruno Haible  <bruno@clisp.org>
24840
24841         nanosleep: Make replacement POSIX compliant.
24842         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24843         is out of range.
24844         Reported by Jim Meyering.
24845
24846 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24847
24848         bootstrap: add hook for altering gnulib.mk, for Bison
24849         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24850         the Bison bootstrapping process can rewrite file names and variables
24851         in this file before later parts of 'bootstrap' use the file.
24852         Bison wants to include lib/gnulib.mk from the top-level makefile,
24853         so it needs the file names in this file to be relative to the top
24854         level, not relative to lib; plus it needs variable names to be
24855         rewritten.
24856         (slurp): Use the new function.
24857
24858         bootstrap: reformat for readability
24859         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24860
24861 2010-10-08  Eric Blake  <eblake@redhat.com>
24862
24863         docs: update cygwin progress
24864         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24865         1.7.7.
24866         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24867         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24868         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24869         * doc/posix-functions/carg.texi (carg): Likewise.
24870         * doc/posix-functions/cargf.texi (cargf): Likewise.
24871         * doc/posix-functions/casin.texi (casin): Likewise.
24872         * doc/posix-functions/casinf.texi (casinf): Likewise.
24873         * doc/posix-functions/casinh.texi (casinh): Likewise.
24874         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24875         * doc/posix-functions/catan.texi (catan): Likewise.
24876         * doc/posix-functions/catanf.texi (catanf): Likewise.
24877         * doc/posix-functions/catanh.texi (catanh): Likewise.
24878         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24879         * doc/posix-functions/ccos.texi (ccos): Likewise.
24880         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24881         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24882         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24883         * doc/posix-functions/cexp.texi (cexp): Likewise.
24884         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24885         * doc/posix-functions/cimag.texi (cimag): Likewise.
24886         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24887         * doc/posix-functions/clog.texi (clog): Likewise.
24888         * doc/posix-functions/clogf.texi (clogf): Likewise.
24889         * doc/posix-functions/conj.texi (conj): Likewise.
24890         * doc/posix-functions/conjf.texi (conjf): Likewise.
24891         * doc/posix-functions/cpow.texi (cpow): Likewise.
24892         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24893         * doc/posix-functions/cproj.texi (cproj): Likewise.
24894         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24895         * doc/posix-functions/creal.texi (creal): Likewise.
24896         * doc/posix-functions/crealf.texi (crealf): Likewise.
24897         * doc/posix-functions/csin.texi (csin): Likewise.
24898         * doc/posix-functions/csinf.texi (csinf): Likewise.
24899         * doc/posix-functions/csinh.texi (csinh): Likewise.
24900         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24901         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24902         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24903         * doc/posix-functions/ctan.texi (ctan): Likewise.
24904         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24905         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24906         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24907         * doc/posix-headers/complex.texi (complex.h): Likewise.
24908
24909 2010-10-07  Jim Meyering  <meyering@redhat.com>
24910
24911         parse-datetime: avoid compilation failure on OpenBSD 4.7
24912         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24913         This works around a compilation failure on OpenBSD 4.7:
24914         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24915
24916 2010-10-07  Eric Blake  <eblake@redhat.com>
24917
24918         docs: update cygwin progress
24919         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24920         1.7.6.
24921         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24922         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24923         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24924         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24925         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24926         Likewise.
24927         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24928         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24929         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24930         Likewise.
24931         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24932         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24933         Likewise.
24934         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24935         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24936         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24937         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24938         Likewise.
24939         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24940         Likewise.
24941         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24942
24943         docs: update parse-datetime history
24944         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24945         documentation of this function's history and alternatives.
24946
24947         cygwin: use more robust version check
24948         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24949         exclude an eventual cygwin 1.9.1.
24950         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24952         (gl_FUNC_STRCASESTR): Likewise.
24953         Reported by Bruno Haible.
24954
24955 2010-10-06  Bruno Haible  <bruno@clisp.org>
24956
24957         string, sys_select: Avoid #including large headers unless necessary.
24958         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24959         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24960         OSF/1, BeOS, Haiku.
24961         Reported by Jim Meyering.
24962
24963 2010-10-05  Eric Blake  <eblake@redhat.com>
24964
24965         memmem, strstr, strcasestr: fix bug with long periodic needle
24966         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24967         periodic needle having false positive.
24968         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24969         and cygwin 1.7.7.
24970         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24972         (gl_FUNC_STRCASESTR): Likewise.
24973         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24974         * tests/test-memmem.c (main): Expose the bug.
24975         * tests/test-strcasestr.c (main): Likewise.
24976         * tests/test-strstr.c (main): Likewise.
24977         * tests/test-c-strcasestr.c (main): Likewise.
24978         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24979         * doc/posix-functions/strstr.texi (strstr): Likewise.
24980         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24981         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24982
24983 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24984
24985         parse-datetime: do some more renaming
24986         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24987         parse_datetime, not get_date.  Mention the renaming.
24988         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24989         in comments.
24990         * m4/bison.m4: Likewise.
24991
24992 2010-10-05  Eric Blake  <eblake@redhat.com>
24993
24994         parse-datetime: better name than get_date
24995         * NEWS: Reword the deprecation notice.
24996         * modules/get_date: Rename to modules/parse-datetime.
24997         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24998         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24999         * lib/get_date.y: Rename to lib/parse-datetime.y.
25000         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25001         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25002         * doc/getdate.texi: Provide fallback wrapper.
25003         * lib/getdate.h: Move guts, and wrap...
25004         * lib/parse-datetime.h: ...new file.
25005         * lib/parse-datetime.y (get_date): Rename...
25006         (parse_datetime): ...to this.
25007         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25008         (gl_PARSE_DATETIME): ...to this.
25009         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25010         documentation.
25011         * modules/getdate (Files): Provide fallback docs and header.
25012         (Notice, Depends-on): Update references.
25013         * tests/test-parse-datetime.c: Likewise.
25014         * DEPENDENCIES: Likewise.
25015         * MODULES.html.sh (Date and time <time.h>): Likewise.
25016         * doc/parse-datetime.texi (Date input formats)
25017         (Authors of parse_datetime): Likewise.
25018         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25019         (Include): Likewise.
25020         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25021         * gnulib-tool: Likewise.
25022         * m4/bison.m4 (gl_BISON): Likewise.
25023         Suggested by Bruno Haible.
25024
25025 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25026
25027         more ports to Solaris tr, which needs [] around ranges
25028         * gnulib-tool: Solaris tr needs [] around ranges.
25029         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25030         * tests/test-pipe-filter-gi1.c (main): Likewise.
25031         * tests/test-pipe-filter-ii1.c (main): Likewise.
25032
25033 2010-10-05  Eric Blake  <eblake@redhat.com>
25034
25035         bootstrap: fix Solaris regression
25036         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25037         around ranges.
25038         Reported by Pádraig Brady.
25039
25040         bootstrap: work with pkg-config
25041         * build-aux/bootstrap (check_versions): Also transliterate - in
25042         prerequisite name.
25043         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25044         prerequisites that were already found, to avoid confusion.
25045         Reported by Justin Clift.
25046
25047         faccessat: remove unused wrappers
25048         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25049         presence of these wrappers dragged in -lgen on Solaris.
25050         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25051
25052 2010-10-05  Jim Meyering  <meyering@redhat.com>
25053
25054         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25055         * Makefile (sc_pragma_columns): New syntax-check rule.
25056
25057 2010-10-04  Bruno Haible  <bruno@clisp.org>
25058
25059         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25060         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25061         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25062         Reported by Bruce Korb and Eric Blake.
25063
25064 2010-10-04  Bruno Haible  <bruno@clisp.org>
25065
25066         threadlib: Make option --with-libpth-prefix work.
25067         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25068         use $LIBPTH, not just -lpth.
25069
25070 2010-10-04  Bruno Haible  <bruno@clisp.org>
25071
25072         Avoid line length limitation from HP NonStop system header files.
25073         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25074         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25075         * lib/ctype.in.h: Likewise.
25076         * lib/dirent.in.h: Likewise.
25077         * lib/errno.in.h: Likewise.
25078         * lib/fcntl.in.h: Likewise.
25079         * lib/float.in.h: Likewise.
25080         * lib/getopt.in.h: Likewise.
25081         * lib/iconv.in.h: Likewise.
25082         * lib/inttypes.in.h: Likewise.
25083         * lib/langinfo.in.h: Likewise.
25084         * lib/locale.in.h: Likewise.
25085         * lib/math.in.h: Likewise.
25086         * lib/netdb.in.h: Likewise.
25087         * lib/netinet_in.in.h: Likewise.
25088         * lib/poll.in.h: Likewise.
25089         * lib/pthread.in.h: Likewise.
25090         * lib/pty.in.h: Likewise.
25091         * lib/sched.in.h: Likewise.
25092         * lib/se-selinux.in.h: Likewise.
25093         * lib/search.in.h: Likewise.
25094         * lib/signal.in.h: Likewise.
25095         * lib/spawn.in.h: Likewise.
25096         * lib/stdarg.in.h: Likewise.
25097         * lib/stddef.in.h: Likewise.
25098         * lib/stdint.in.h: Likewise.
25099         * lib/stdio.in.h: Likewise.
25100         * lib/stdlib.in.h: Likewise.
25101         * lib/string.in.h: Likewise.
25102         * lib/strings.in.h: Likewise.
25103         * lib/sys_file.in.h: Likewise.
25104         * lib/sys_ioctl.in.h: Likewise.
25105         * lib/sys_select.in.h: Likewise.
25106         * lib/sys_socket.in.h: Likewise.
25107         * lib/sys_stat.in.h: Likewise.
25108         * lib/sys_time.in.h: Likewise.
25109         * lib/sys_times.in.h: Likewise.
25110         * lib/sys_utsname.in.h: Likewise.
25111         * lib/sys_wait.in.h: Likewise.
25112         * lib/sysexits.in.h: Likewise.
25113         * lib/termios.in.h: Likewise.
25114         * lib/time.in.h: Likewise.
25115         * lib/unistd.in.h: Likewise.
25116         * lib/wchar.in.h: Likewise.
25117         * lib/wctype.in.h: Likewise.
25118         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25119         * modules/ctype (Makefile.am): Likewise.
25120         * modules/dirent (Makefile.am): Likewise.
25121         * modules/errno (Makefile.am): Likewise.
25122         * modules/fcntl-h (Makefile.am): Likewise.
25123         * modules/float (Makefile.am): Likewise.
25124         * modules/getopt-posix (Makefile.am): Likewise.
25125         * modules/iconv-h (Makefile.am): Likewise.
25126         * modules/inttypes (Makefile.am): Likewise.
25127         * modules/langinfo (Makefile.am): Likewise.
25128         * modules/locale (Makefile.am): Likewise.
25129         * modules/math (Makefile.am): Likewise.
25130         * modules/netdb (Makefile.am): Likewise.
25131         * modules/netinet_in (Makefile.am): Likewise.
25132         * modules/poll-h (Makefile.am): Likewise.
25133         * modules/pthread (Makefile.am): Likewise.
25134         * modules/pty (Makefile.am): Likewise.
25135         * modules/sched (Makefile.am): Likewise.
25136         * modules/search (Makefile.am): Likewise.
25137         * modules/selinux-h (Makefile.am): Likewise.
25138         * modules/signal (Makefile.am): Likewise.
25139         * modules/spawn (Makefile.am): Likewise.
25140         * modules/stdarg (Makefile.am): Likewise.
25141         * modules/stddef (Makefile.am): Likewise.
25142         * modules/stdint (Makefile.am): Likewise.
25143         * modules/stdio (Makefile.am): Likewise.
25144         * modules/stdlib (Makefile.am): Likewise.
25145         * modules/string (Makefile.am): Likewise.
25146         * modules/strings (Makefile.am): Likewise.
25147         * modules/sys_file (Makefile.am): Likewise.
25148         * modules/sys_ioctl (Makefile.am): Likewise.
25149         * modules/sys_select (Makefile.am): Likewise.
25150         * modules/sys_socket (Makefile.am): Likewise.
25151         * modules/sys_stat (Makefile.am): Likewise.
25152         * modules/sys_time (Makefile.am): Likewise.
25153         * modules/sys_times (Makefile.am): Likewise.
25154         * modules/sys_utsname (Makefile.am): Likewise.
25155         * modules/sys_wait (Makefile.am): Likewise.
25156         * modules/sysexits (Makefile.am): Likewise.
25157         * modules/termios (Makefile.am): Likewise.
25158         * modules/time (Makefile.am): Likewise.
25159         * modules/unistd (Makefile.am): Likewise.
25160         * modules/wchar (Makefile.am): Likewise.
25161         * modules/wctype (Makefile.am): Likewise.
25162
25163 2010-10-04  Bruno Haible  <bruno@clisp.org>
25164
25165         read-file tests: Avoid a test failure on NonStop Kernel.
25166         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25167         a regular file.
25168         Reported by Joachim Schmitz <schmitz@hp.com>.
25169
25170 2010-10-03  Bruno Haible  <bruno@clisp.org>
25171
25172         gnulib-tool: Fixes for --create-testdir with --libtool.
25173         * gnulib-tool (func_get_automake_snippet): Don't augment
25174         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25175         an executable.
25176         (func_create_testdir): Handle module 'alloca' like func_import.
25177         Reported by Bruce Korb <bruce.korb@gmail.com>.
25178
25179 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25180
25181         Avoid some lines longer than 80 characters.
25182         * lib/stdint.in.h: Break long comment lines.
25183         * lib/math.in.h: Likewise.
25184         (_GL_NUM_UINT_WORDS): New macro, for readability.
25185         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25186         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25187         * lib/stdlib.in.h: Likewise.
25188         * lib/spawn.in.h: Likewise.
25189         * lib/sys_socket.in.h: Update an URL.
25190         * lib/sys_stat.in.h: Break long line.
25191
25192 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25193
25194         Improve pmccabe2html.
25195         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25196         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25197         when the sources change. Remove the line in the HTML about "Used
25198         ranges" (which implied that there might be other unused ranges),
25199         rename "Resume" to "Summary" (easier to understand for more users).
25200         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25201         styles, and some unnecessary blank lines.
25202
25203 2010-10-03  Bruno Haible  <bruno@clisp.org>
25204             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25205
25206         acl: Add support for ACLs on NonStop Kernel.
25207         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25208         Check whether the function aclsort() exists.
25209         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25210         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25211         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25212         (acl_nontrivial [HAVE_ACLSORT]: New function.
25213         (file_has_acl): Implement for NonStop Kernel.
25214         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25215         (qset_acl): Implement for NonStop Kernel.
25216         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25217         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25218         (main): Implement for NonStop Kernel.
25219         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25220         Kernel. Handle this flavor.
25221         * tests/test-set-mode-acl.sh: Likewise.
25222         * tests/test-copy-acl.sh: Likewise.
25223         * tests/test-copy-file.sh: Likewise.
25224
25225 2010-10-03  Bruno Haible  <bruno@clisp.org>
25226
25227         Info about ACLs on NonStop Kernel.
25228         * doc/acl-resources.txt: Add info about NonStop Kernel.
25229         References by Joachim Schmitz <schmitz@hp.com>.
25230
25231 2010-10-02  Bruno Haible  <bruno@clisp.org>
25232
25233         Define missing EDQUOT on NonStop Kernel.
25234         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25235         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25236         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25237         missing.
25238         * doc/posix-headers/errno.texi: Mention the NSK bug.
25239         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25240         Reported by Joachim Schmitz <schmitz@hp.com>.
25241
25242 2010-10-02  Bruno Haible  <bruno@clisp.org>
25243
25244         Update doc for POSIX:2008.
25245         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25246         Update URL of POSIX specification.
25247
25248 2010-10-02  Bruno Haible  <bruno@clisp.org>
25249
25250         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25251         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25252         from gnulib, not from Automake.
25253
25254 2010-10-02  Bruno Haible  <bruno@clisp.org>
25255
25256         New module 'system-posix'.
25257         * modules/system-posix: New file.
25258         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25259         module is present.
25260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25261         GNULIB_SYSTEM_POSIX.
25262         * modules/stdlib (Depends-on): Remove sys_wait.
25263         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25264         * doc/posix-functions/system.texi: Mention the new module.
25265         * doc/posix-headers/stdlib.texi: Likewise.
25266         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25267         define test_sys_wait_macros to a no-op.
25268         Reported by Sam Steingold <sds@gnu.org>.
25269
25270 2010-09-30  Bruno Haible  <bruno@clisp.org>
25271
25272         More renaming from 'getdate' to 'get_date'.
25273         * doc/get_date.texi: Renamed from doc/getdate.texi.
25274         * modules/get_date (Files): Update.
25275         * MODULES.html.sh (Date and time <time.h>): Update.
25276         * DEPENDENCIES: Update.
25277         * gnulib-tool: Update comment.
25278         * m4/bison.m4 (gl_BISON): Likewise.
25279         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25280
25281 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25282
25283         bootstrap: support ACLOCAL_FLAGS during aclocal
25284         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25285         can add additional -I dir for third-party .m4 files.
25286
25287 2010-09-30  Eric Blake  <eblake@redhat.com>
25288
25289         bootstrap: use glibtoolize on MacOS
25290         * build-aux/bootstrap (check_versions): Convert libtool into
25291         libtoolize.
25292         (tool search): Move libtool check earlier, and look for
25293         glibtoolize for MacOS.
25294         (gnulib_tool_options): Auto-add --libtool when appropriate.
25295         Reported by Justin Clift.
25296
25297         poll: fix typo that broke test on MacOS
25298         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25299         Reported by Justin Clift.
25300
25301         getdate: rename to get_date
25302         Note: getdate.h is not renamed, to minimize client impact.
25303         * modules/getdate: Mark obsolete.  Move old contents...
25304         * modules/get_date: ...to new module name.
25305         * modules/getdate-tests: Move...
25306         * modules/get_date-tests: ...here.
25307         * m4/getdate.m4: Move...
25308         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25309         * lib/getdate.y: Move...
25310         * lib/get_date.y: ...here.
25311         * tests/test-getdate.c: Move...
25312         * tests/test-get_date.c: ...here.
25313         * doc/posix-functions/getdate.texi (getdate): Update name.
25314         * NEWS: Mention the change.
25315
25316 2010-09-29  Bruno Haible  <bruno@clisp.org>
25317
25318         Separate the module 'waitpid' from the module 'sys_wait'.
25319         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25320         present.
25321         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25322         gl_MODULE_INDICATOR_FOR_TESTS.
25323         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25324         * modules/sys_wait (Depends-on): Remove waitpid.
25325         (Makefile.am): Substitute GNULIB_WAITPID.
25326         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25327         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25328         signature only if the 'waitpid' module is present.
25329         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25330         * NEWS: Mention the change.
25331         * modules/grantpt (Depends-on): Add waitpid.
25332         * modules/wait-process (Depends-on): Likewise.
25333
25334 2010-09-29  Bruno Haible  <bruno@clisp.org>
25335
25336         More tests for module 'sys_wait'.
25337         * modules/sys_wait-c++-tests: New file.
25338         * tests/test-sys_wait-c++.cc: New file.
25339         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25340         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25341
25342 2010-09-29  Bruno Haible  <bruno@clisp.org>
25343
25344         New module 'waitpid'.
25345         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25346         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25347         Don't include <process.h>.
25348         (waitpid): Declare only, using modern idiom.
25349         * m4/waitpid.m4: New file.
25350         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25351         * modules/waitpid: New file.
25352         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25353         (Makefile.am): Update.
25354         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25355
25356 2010-09-28  Bruno Haible  <bruno@clisp.org>
25357
25358         poll: Assume ANSI C.
25359         * lib/poll.c (poll): Use an ANSI C declaration.
25360
25361 2010-09-28  Bruno Haible  <bruno@clisp.org>
25362
25363         poll-h: Create poll.h on all platforms.
25364         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25365         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25366         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25367         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25368         (gl_REPLACE_POLL_H): Don't set POLL_H.
25369         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25370         * modules/poll-h (Depends-on): Add include_next.
25371         (Makefile.am): Create poll.h unconditionally. Substitute also
25372         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25373
25374 2010-09-28  Bruno Haible  <bruno@clisp.org>
25375
25376         Tests for module 'poll-h'.
25377         * modules/poll-h-c++-tests: New file.
25378         * tests/test-poll-h-c++.cc: New file.
25379
25380         Tests for module 'poll-h'.
25381         * modules/poll-h-tests: New file.
25382         * tests/test-poll-h.c: New file.
25383
25384 2010-09-28  Bruno Haible  <bruno@clisp.org>
25385
25386         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25387         * modules/poll-h (Depends-on): Add 'extensions'.
25388
25389 2010-09-28  Bruno Haible  <bruno@clisp.org>
25390
25391         New module 'poll-h'.
25392         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25393         (poll): Use modern idiom.
25394         * modules/poll-h: New file.
25395         * modules/poll (Files): Remove lib/poll.in.h.
25396         (Depends-on): Add poll-h.
25397         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25398         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25399         * m4/poll_h.m4: New file.
25400         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25401         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25402         and invoke gl_REPLACE_POLL_H.
25403         * lib/poll.c: Use common idiom.
25404         * tests/test-poll.c: Likewise.
25405         * doc/posix-headers/poll.texi: Mention the poll-h module.
25406         Suggested by Eric Blake.
25407
25408 2010-09-26  Bruno Haible  <bruno@clisp.org>
25409
25410         sys_wait: Implement WSTOPSIG.
25411         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25412         Reported by Simon Josefsson.
25413
25414 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25415
25416         stdlib, sys_wait: Avoid compilation error on mingw.
25417         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25418
25419 2010-09-26  Bruno Haible  <bruno@clisp.org>
25420
25421         stdlib tests: Avoid code duplication.
25422         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25423         * modules/sys_wait-tests (Files): Likewise.
25424         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25425         * tests/test-stdlib.c: Include test-sys_wait.h.
25426         (main): Invoke test_sys_wait_macros.
25427         * tests/test-sys_wait.c: Include test-sys_wait.h.
25428         (main): Invoke test_sys_wait_macros.
25429
25430 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25431
25432         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25433         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25434         sure Windows sockets are working before calling getaddrinfo.
25435         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25436         * doc/gnulib.texi (Windows sockets): Fix typo.
25437
25438 2010-09-25  Bruno Haible  <bruno@clisp.org>
25439
25440         Tests for module 'regex-quote'.
25441         * modules/regex-quote-tests: New file.
25442         * tests/test-regex-quote.c: New file.
25443
25444         New module 'regex-quote'.
25445         * lib/regex-quote.h: New file.
25446         * lib/regex-quote.c: New file.
25447         * modules/regex-quote: New file.
25448         Suggested by Reuben Thomas <rrt@sc3d.org>.
25449
25450 2010-09-24  Bruno Haible  <bruno@clisp.org>
25451
25452         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25453         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25454
25455 2010-09-23  Bruno Haible  <bruno@clisp.org>
25456
25457         setenv: Relax license.
25458         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25459         Blake.
25460         Requested by Eric Blake.
25461
25462 2010-09-22  Bruno Haible  <bruno@clisp.org>
25463
25464         termios: Relax license.
25465         * modules/termios (License): Change to LGPLv2+.
25466         Requested by Eric Blake.
25467
25468 2010-09-22  Bruno Haible  <bruno@clisp.org>
25469
25470         threadlib: Allow the package to change the default to 'no'.
25471         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25472         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25473         Reported by Paul Eggert.
25474
25475 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25476             Bruno Haible  <bruno@clisp.org>
25477
25478         Fix endless loop in mbmemcasecoll.
25479         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25480         byte.
25481         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25482
25483 2010-09-22  Bruno Haible  <bruno@clisp.org>
25484
25485         Tests for module 'memcoll'.
25486         * modules/memcoll-tests: New file.
25487         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25488
25489         memcoll, xmemcoll: Clarify size vs. length.
25490         * modules/memcoll.c (memcoll0): Clarify specification.
25491         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25492         passed to collate_error.
25493
25494 2010-09-22  Bruno Haible  <bruno@clisp.org>
25495
25496         Tests for module 'memcasecmp'.
25497         * modules/memcasecmp-tests: New file.
25498         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25499
25500 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25501
25502         * lib/pthread.in.h: Add split double-inclusion guard, and include
25503         system <pthread.h> if there is one.  Use @@-style as in other
25504         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25505         pthread.h doesn't.
25506         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25507         (pthread_mutexattr_settype, pthread_mutex_trylock):
25508         New static inline functions, if there's no system <pthread.h>.
25509         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25510         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25511         Approximate with mutexes if the system lacks spinlocks, as in
25512         MacOS.
25513         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25514         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25515         @@-style.  Check for spinlocks separately.
25516         (gl_PTHREAD_DEFAULTS): New macro.
25517         * modules/pthread: Redo to use a more typical style for in.h files.
25518
25519 2010-09-21  Eric Blake  <eblake@redhat.com>
25520
25521         net_if: enhance tests
25522         * tests/test-net_if.c (main): Move signature checks earlier.
25523         Print failures to stderr.
25524         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25525         Document the bug that we do not yet fix.
25526
25527 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25528
25529         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25530         about gnulib, not GSS.
25531
25532 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25533
25534         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25535         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25536         for Emacs.
25537         * build-aux/pmccabe2html: Make Makefile.am example code more
25538         cut-and-paste friendly.
25539
25540 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25541
25542         * tests/test-net_if.c: New file.
25543         * modules/net_if-tests: New file.
25544
25545 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25546
25547         pthread: add pthread_spin_destroy
25548         * lib/pthread.in.h (pthread_spin_destroy): New function.
25549
25550 2010-09-19  Bruno Haible  <bruno@clisp.org>
25551
25552         gnulib-tool: Fix --help output.
25553         * gnulib-tool (func_usage): Fix help message.
25554         Reported by Reuben Thomas <rrt@sc3d.org>.
25555
25556 2010-09-18  Jim Meyering  <meyering@redhat.com>
25557
25558         maint.mk: avoid unexpanded \n in two diagnostics
25559         * top/maint.mk (sc_prohibit_always_true_header_tests):
25560         Don't use a literal \n in a halt=... assignment.  It would not be
25561         expanded, and the two \n bytes would appear in the diagnostic output
25562         rather than the desired newline.  Use halt=$$(printf ... instead.
25563         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25564
25565 2010-09-18  Bruno Haible  <bruno@clisp.org>
25566
25567         netinet_in: Doc tweak.
25568         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25569         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25570
25571 2010-09-18  Jim Meyering  <meyering@redhat.com>
25572
25573         init.sh: correct an outdated comment
25574         * tests/init.sh (create_exe_shims_):  s/function/alias/
25575
25576         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25577         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25578         a file named "*.exe" is removed between the glob expansion and the
25579         processing of that oddly named file.
25580
25581 2010-09-17  Eric Blake  <eblake@redhat.com>
25582
25583         mirbsd: add some more support
25584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25585         in BSD family.
25586         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25587         devices as OpenBSD.
25588         * m4/host-os.m4 (mirbsd): Add MirBSD.
25589
25590         tests: fix unportable assumption on sys/wait.h
25591         * tests/test-sys_wait.c (main): Relax test.
25592         * tests/test-stdlib.c (main): Likewise.
25593
25594         init.sh: accomodate directory with no .exes
25595         * tests/init.sh: Accomodate directory containing only scripts.
25596
25597         tests: avoid compiler warning
25598         * tests/test-stdlib.c (main): Use the variable.
25599
25600         fdutimens, fdutimensat: update signature, again
25601         * lib/utimens.h (gl_futimens): Delete, and move signature...
25602         (fdutimens): ...here.
25603         (fdutimensat): Rearrange signature.
25604         (lutimensat): Rename variable for clarity.
25605         * lib/fdutimensat.c (fdutimensat): Update signature.
25606         * lib/utimens.c (fdutimens): Likewise.
25607         (gl_futimens): Delete.
25608         (utimens, lutimens): Update callers.
25609         * lib/futimens.c (futimens): Likewise.
25610         * tests/test-fdutimensat.c: Likewise.
25611         * tests/test-utimens.c: Likewise.
25612         * tests/test-futimens.h: Update comment.
25613         * NEWS: Mention this.
25614         Suggested by Paul Eggert.
25615
25616 2010-09-17  Bruno Haible  <bruno@clisp.org>
25617
25618         Take over the maintenance of some older macros from Autoconf.
25619         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25620         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25621         GNU Autoconf.
25622         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25623         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25624
25625 2010-09-17  Eric Blake  <eblake@redhat.com>
25626
25627         fdutimensat: drop atflag validation
25628         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25629         with valid fd, to close a race scenario where futimens is
25630         unsupported and FILE was replaced by a symlink.
25631         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25632         accordingly.
25633         Suggested by Paul Eggert.
25634
25635 2010-09-16  Bruno Haible  <bruno@clisp.org>
25636
25637         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25638         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25639
25640 2010-09-16  Bruno Haible  <bruno@clisp.org>
25641
25642         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25643         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25644         login_tty exists.
25645         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25646
25647 2010-09-16  Bruno Haible  <bruno@clisp.org>
25648
25649         login_tty: Make the replacement code work on BSD systems.
25650         * lib/login_tty.c: Include <sys/ioctl.h>.
25651         (login_tty): Use ioctl TIOCSCTTY when available.
25652         * modules/login_tty (Depends-on): Add sys_ioctl.
25653         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25654
25655 2010-09-16  Bruno Haible  <bruno@clisp.org>
25656
25657         login_tty: Stricter unit test.
25658         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25659         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25660         and tcgetsid() after login_tty.
25661         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25662
25663 2010-09-16  Bruno Haible  <bruno@clisp.org>
25664
25665         New module 'tcgetsid'.
25666         * lib/tcgetsid.c: New file.
25667         * m4/tcgetsid.m4: New file.
25668         * modules/tcgetsid: New file.
25669         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25670         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25671         GNULIB_TCGETSID, HAVE_TCGETSID.
25672         * lib/termios.in.h: Include <sys/types.h>.
25673         (tcgetsid): New declaration.
25674         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25675         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25676         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25677         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25678
25679 2010-09-16  Bruno Haible  <bruno@clisp.org>
25680
25681         Tests for module 'termios'.
25682         * modules/termios-c++-tests: New file.
25683         * modules/termios-tests: New file.
25684         * tests/test-termios-c++.cc: New file.
25685         * tests/test-termios.c: New file.
25686
25687         New module 'termios'.
25688         * modules/termios: New file.
25689         * lib/termios.in.h: New file.
25690         * m4/termios_h.m4: New file.
25691         * doc/posix-headers/termios.texi: Mention the new module.
25692
25693 2010-09-16  Eric Blake  <eblake@redhat.com>
25694
25695         fdutimensat: add an atflag parameter
25696         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25697         * lib/utimens.h (fdutimensat): Update prototype.
25698         * tests/test-fdutimensat.c: Adjust test to match.
25699         * NEWS: Document the change.
25700         Suggested by Paul Eggert.
25701
25702 2010-09-16  Bruno Haible  <bruno@clisp.org>
25703
25704         Fix typos in comments.
25705         * lib/striconveh.h: Fix typo in comment.
25706         * lib/login_tty.c (login_tty): Likewise.
25707
25708 2010-09-15  Bruno Haible  <bruno@clisp.org>
25709
25710         stdlib: clarify MirBSD WEXITSTATUS bug
25711         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25712         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25713
25714 2010-09-15  Eric Blake  <eblake@redhat.com>
25715
25716         stdlib: work around MirBSD WEXITSTATUS bug
25717         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25718         * modules/stdlib (Depends-on): Add sys_wait.
25719         * tests/test-sys_wait.c (main): Enhance test.
25720         * tests/test-stdlib.c (main): Likewise.
25721         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25722
25723         docs: mention MacOS issue with WEXITSTATUS(constant)
25724         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25725         issue.
25726         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25727
25728         strnlen: add tests
25729         * modules/strnlen-tests: New file.
25730         * tests/test-strnlen.c: Likewise.
25731
25732 2010-09-14  Bruno Haible  <bruno@clisp.org>
25733
25734         unistr/base: Avoid link errors when module 'libunistring' is also used.
25735         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25736         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25737         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25738         Declare also when HAVE_LIBUNISTRING is set.
25739         Reported by Pádraig Brady <P@draigbrady.com>.
25740
25741 2010-09-14  Eric Blake  <eblake@redhat.com>
25742
25743         test-rawmemchr: make more robust
25744         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25745         (Depends-on, configure.ac): Add needed prerequisites to use it.
25746         * modules/memchr-tests (Files, Depends-on, configure.ac):
25747         Likewise, to avoid implicit reliance on memchr module prereqs.
25748         * tests/test-memchr.c (main): Ensure proper masking.
25749         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25750         reads.
25751
25752         memchr: detect glibc Alpha bug
25753         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25754         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25755         Alpha.
25756         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25757         * tests/test-memchr.c (main): Enhance test.
25758         Reported by Nelson H. F. Beebe.
25759
25760 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25761
25762         fts, getcwd, glob: audit for dirfd returning -1
25763         * lib/fts.c (opendir): Remove #define; no longer used.
25764         (opendirat): New arg PDIR_FD.  All callers changed.
25765         (fts_build, _opendir2): Use new opendirat to avoid the need for
25766         dirfd, or for checking whether dirfd returns a negative value.
25767         Don't use opendir; always use openat followed by fdopendir.
25768         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25769         it.
25770         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25771         returns -1 here.
25772         * modules/fts (Depends-on): Remove dirfd.
25773         * modules/getcwd (Depends-on): Likewise.
25774
25775 2010-09-13  Eric Blake  <eblake@redhat.com>
25776
25777         float: fix broken MirBSD header
25778         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25779         * doc/posix-headers/float.texi (float.h): Document it.
25780
25781 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25782
25783         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25784         * lib/fts.c (opendirat): New arg extra_flags.
25785         (__opendir2): Use it to avoid following symlinks when opening
25786         a directory, if symlinks are not supposed to be followed.  See
25787         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25788
25789         fdopendir: preserve argument fd before returning
25790         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25791         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25792         (fdopendir): Use them, arranging for FD to be open to the same
25793         directory that it was when it started.  (It might be temporarily
25794         closed while fdopendir is running, so this not thread- or
25795         signal-safe.)  Be careful to do the right thing even when file
25796         descriptors are scarce and dup fails with errno == EMFILE.  See
25797         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25798
25799 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25800
25801         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25802         * NEWS: Document change.
25803         * m4/regex.m4: Disable test for regoff_t size.
25804
25805 2010-09-13  Jim Meyering  <meyering@redhat.com>
25806
25807         fts: don't operate on an invalid file descriptor after failed dup
25808         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25809         negative file descriptor.
25810
25811 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25812
25813         savedir: add streamsavedir, deprecate fdsavedir
25814         * NEWS: Mention deprecation of fdsavedir.
25815         * lib/savedir.c (streamsavedir): New extern function, whose name
25816         ends in "savedir" to be consistent with the others.  This differs
25817         from savedirstream in that it doesn't close its argument.  The
25818         next version of GNU tar will use this instead of fdsavedir, to
25819         avoid some race conditions and conserve file descriptors.
25820         (savedirstream): Reimplement as a wrapper around streamsavedir.
25821         (fdsavedir): Add a comment deprecating this function.  As far as
25822         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25823         * lib/savedir.h (streamsavedir): New decl.
25824         (fdsavedir): Add a comment deprecating this.
25825
25826 2010-09-10  Bruno Haible  <bruno@clisp.org>
25827
25828         langinfo: Fix last commit.
25829         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25830         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25832
25833 2010-09-10  Bruno Haible  <bruno@clisp.org>
25834
25835         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25836         * lib/progreloc.c (O_EXEC): Define fallback.
25837
25838 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25839
25840         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25841         * NEWS: Document recent changes to fcntl-h.
25842         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25843         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25844         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25845         Similarly for O_SEARCH; this last was already true, but not documented.
25846         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25847         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25848         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25849         Likewise.
25850         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25851         is zero, not whether it is defined.
25852         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25853         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25854         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25855
25856 2010-09-10  Bruno Haible  <bruno@clisp.org>
25857
25858         langinfo, nl_langinfo: Fix for IRIX 5.3.
25859         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25860         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25861         HAVE_LANGINFO_YESEXPR.
25862         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25863         HAVE_LANGINFO_YESEXPR.
25864         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25865         HAVE_LANGINFO_T_FMT_AMPM is 0.
25866         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25867         HAVE_LANGINFO_YESEXPR is 0.
25868         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25869         NOEXPR.
25870         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25871         * doc/posix-functions/nl_langinfo.texi: Likewise.
25872         Reported by Eric Blake.
25873
25874 2010-09-10  Bruno Haible  <bruno@clisp.org>
25875
25876         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25877         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25878         on FreeBSD 8.0 and OpenBSD 4.6.
25879         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25880         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25881         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25882         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25883         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25884         ac_includes_default.
25885         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25886
25887 2010-09-09  Eric Blake  <eblake@redhat.com>
25888
25889         strsignal: work around NetBSD bug
25890         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25891         * lib/string.in.h (includes): Likewise.
25892         * doc/posix-functions/strsignal.texi (strsignal): Document the
25893         bug.
25894         Reported by Nelson H. F. Beebe.
25895
25896         gnulib-tool: work with NetBSD /bin/sh
25897         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25898         (func_get_description, func_get_comment, func_get_status)
25899         (func_get_notice, func_get_applicability, func_get_filelist)
25900         (func_get_dependencies, func_get_autoconf_early_snippet)
25901         (func_get_autoconf_snippet, func_get_automake_snippet)
25902         (func_get_include_directive, func_get_link_directive)
25903         (func_get_license, func_get_maintainer, func_import): Avoid
25904         shell syntax errors from parsing syntax extensions.
25905
25906 2010-09-09  Bruno Haible  <bruno@clisp.org>
25907
25908         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25909         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25910         a reliable way to determine whether the 'alias' command works.
25911
25912 2010-09-08  Jim Meyering  <meyering@redhat.com>
25913
25914         init.sh: penalize a set-x-impaired shell; don't disqualify it
25915         * tests/init.sh: Too many shells corrupt application stderr when
25916         you set -x, so we can't afford to disqualify them, since at least
25917         on Irix-6.5, that would disqualify all bourne shells.
25918         Instead, use a two-pass approach.
25919         On the first pass, try to find a shell that meets the stricter
25920         condition that set -x does not corrupt stderr.
25921         If no shell meets the stricter condition, retest each candidate
25922         shell, but without that extra condition.  Finally, when
25923         VERBOSE=yes is requested and set -x might cause trouble, simply
25924         issue a warning and refrain from enabling debug output.
25925
25926 2010-09-08  Eric Blake  <eblake@redhat.com>
25927
25928         unsetenv: fix OpenBSD bug
25929         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25930         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25931         documentation.
25932         Reported by Jim Meyering.
25933
25934         strtod: work around IRIX 6.5 bug
25935         * lib/strtod.c (strtod): Reparse number on shorter string if
25936         exponent parse was invalid.
25937         * tests/test-strtod.c (main): Add check for "0x1p 2".
25938         Reported by Tom G. Christensen.
25939
25940         getopt: optimize previous patch
25941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25942         empty variable.  Speed up awk script.
25943         Reported by Paolo Bonzini.
25944
25945 2010-09-08  Jim Meyering  <meyering@redhat.com>
25946
25947         test.sh: disqualify shells for which set -x corrupts stderr
25948         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25949         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25950         appear in stderr output.  For example, this command:
25951             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25952         prints "P=1" on those two systems:
25953
25954 2010-09-08  Bruno Haible  <bruno@clisp.org>
25955
25956         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25957         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25958         commands, because some shells ignore redirections when there is an
25959         error in the command lookup.
25960         Reported by Eric Blake.
25961
25962 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25963
25964         * lib/regex.h: Fix a mention of `regex_compile' (should be
25965         `re_compile_pattern').
25966         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25967         (re_set_registers): Correct name of parameter in comment.
25968
25969         * doc/regex.texi: Add documentation for missing syntax flags.
25970         Remove commented-out documentation of defunct syntax option
25971         RE_NO_EMPTY_ALTS.
25972         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25973         Add documentation of re_set_registers.
25974         Document trick to re-use a pattern buffer by setting fastmap manually.
25975         Update documentation of struct re_pattern_buffer per public members.
25976         Uncomment documentation of equivalence class operators and
25977         collating symbol operators, since they are now implemented,
25978         Explain leftmost-longest matching in relation to alternatives.
25979         Tidy documentation of substring matching.
25980         Remove POSIX documentation, which is done better in
25981         glibc, and refer the reader there. Keep BSD API documentation, as
25982         that is not readily available elsewhere.
25983
25984 2010-09-07  Eric Blake  <eblake@redhat.com>
25985
25986         getopt: handle POSIXLY_CORRECT set but not exported
25987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25988         export state of POSIXLY_CORRECT, due to bash set -o posix.
25989         Reported by Dustin J. Mitchell.
25990
25991 2010-09-05  Bruno Haible  <bruno@clisp.org>
25992
25993         gnulib-tool: Highlight the changed options.
25994         * gnulib-tool (func_usage): Display the --import, --add-import,
25995         --remove-import explanations in bold font.
25996
25997 2010-09-06  Karl Berry  <karl@gnu.org>
25998
25999         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26000
26001 2010-09-05  Bruno Haible  <bruno@clisp.org>
26002
26003         uniwidth/width: Update comment.
26004         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26005         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26006
26007 2010-09-05  Bruno Haible  <bruno@clisp.org>
26008
26009         isinf, isnan: Relax license.
26010         * modules/isinf (License): Change from GPL to LGPL, with consent from
26011         Ben Pfaff.
26012         * modules/isnan (License): Likewise.
26013         Requested by Ludovic Courtès.
26014
26015 2010-09-04  Bruno Haible  <bruno@clisp.org>
26016
26017         gnulib-tool: Help migration from --import to --add-import or --update.
26018         * gnulib-tool: Emit a verbose error message when --import is used
26019         without any module name.
26020
26021 2010-09-04  Bruno Haible  <bruno@clisp.org>
26022
26023         Update doc about gnulib-tool.
26024         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26025         'gnulib-tool --update' in more detail.
26026         Reported by Eric Blake.
26027
26028 2010-09-04  Bruno Haible  <bruno@clisp.org>
26029
26030         gnulib-tool: Change --import. New options --add/remove-import.
26031         * gnulib-tool: New options --add-import, --remove-import.
26032         (func_usage): Document them.
26033         (have_associative): Define always.
26034         (func_import): In import mode, don't merge the specified settings with
26035         the cached settings. Implement remove-import mode.
26036         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26037         Explain when to use them versus --import.
26038         (Simple update): Use --add-import instead of --import.
26039         * NEWS: Mention the change.
26040
26041 2010-09-04  Bruno Haible  <bruno@clisp.org>
26042
26043         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26044         separate gnulib.mk.
26045
26046 2010-09-04  Bruno Haible  <bruno@clisp.org>
26047
26048         gnulib-tool: Don't talk about CVS any more.
26049         * gnulib-tool (func_usage, func_import): Write "version control"
26050         instead of CVS.
26051
26052 2010-09-04  Jim Meyering  <meyering@redhat.com>
26053
26054         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26055         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26056         false positives (whose names may be ill-chosen) when searching
26057         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26058         would cause a false-positive.
26059
26060         avoid coreutils "make distcheck" failure
26061         Coreutils tests with an absolute build directory name that contains
26062         a space.  Not quoting this directory name caused a failure.
26063         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26064         * tests/test-vc-list-files-cvs.sh: Likewise.
26065
26066 2010-09-04  Bruno Haible  <bruno@clisp.org>
26067
26068         gnulib-tool: Avoid error when run in a package without Makefile.am.
26069         * gnulib-tool: When collecting the m4dirs in a package that does not
26070         have a Makefile.am, eliminate those directories that contain no
26071         gnulib-cache.m4. Fix expression that counts these directories.
26072
26073 2010-09-04  Bruno Haible  <bruno@clisp.org>
26074
26075         update-copyright test: Improve output when perl is missing or too old.
26076         * tests/test-update-copyright.sh: Move test of Perl version down after
26077         the test whether Perl exists. Provide an explanation relating Perl's
26078         error message to Automake's SKIP: message.
26079
26080 2010-09-04  Bruno Haible  <bruno@clisp.org>
26081
26082         Don't augment PATH in TESTS_ENVIRONMENT.
26083         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26084         set abs_aux_dir instead of augmenting PATH.
26085         * modules/vc-list-files-tests (Makefile.am): Likewise.
26086         * tests/test-update-copyright.sh: Augment PATH here.
26087         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26088         path_prepend_.
26089         * tests/test-vc-list-files-git.sh: Likewise.
26090
26091 2010-09-04  Jim Meyering  <meyering@redhat.com>
26092
26093         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26094         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26095
26096 2010-09-04  Bruno Haible  <bruno@clisp.org>
26097
26098         strdup: Fix compilation error in C++ mode.
26099         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26100         the macro.
26101
26102 2010-09-04  Bruno Haible  <bruno@clisp.org>
26103
26104         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26105         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26106         macro into a function.
26107         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26108
26109 2010-09-04  Bruno Haible  <bruno@clisp.org>
26110
26111         Set PATH_SEPARATOR the same way autoconf does.
26112         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26113         the value of PATH_SEPARATOR the same way autoconf-generated configure
26114         scripts do.
26115         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26116         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26117
26118 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26119
26120         Set PATH_SEPARATOR the same way autoconf does.
26121         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26122         the same way autoconf-generated configure scripts do.
26123         * posix-modules: Likewise.
26124
26125 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26126
26127         hash: fix safe_hasher const typo
26128         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26129         const; otherwise, there is a type error later.
26130
26131 2010-09-02  Jim Meyering  <meyering@redhat.com>
26132
26133         test-update-copyright.sh: require perl 5.8.0
26134         * tests/test-update-copyright.sh: Require 5.8.0,
26135         which Tom G. Christensen has confirmed is adequate,
26136         while 5.6.1 is not.
26137
26138 2010-09-02  Eric Blake  <eblake@redhat.com>
26139
26140         tests: init.sh improvements for re-exec'ing with zsh
26141         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26142         -vx through shell re-exec.
26143         Reported by Tom G. Christensen.
26144
26145         wctype: fix typo in previous commit
26146         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26147         Reported by Ludovic Courtès.
26148
26149 2010-09-02  Jim Meyering  <meyering@redhat.com>
26150
26151         test-update-copyright.sh: skip test if Perl is too old
26152         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26153         Reported by Tom G. Christensen.
26154
26155 2010-09-02  Bruno Haible  <bruno@clisp.org>
26156
26157         wctype: Avoid compilation error on IRIX 6.5.30.
26158         * lib/wctype.in.h (iswblank): Declare with a replacement if
26159         REPLACE_ISWBLANK is set.
26160         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26161         declared. Set REPLACE_ISWBLANK.
26162         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26163         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26164         * doc/posix-headers/wctype.texi: Likewise.
26165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26166
26167 2010-09-01  Bruno Haible  <bruno@clisp.org>
26168
26169         New module 'socketlib'.
26170         * modules/socketlib: New file.
26171         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26172         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26173         * modules/sockets (Depends-on): Add socketlib.
26174         Suggested by Sam Steingold <sds@gnu.org>.
26175
26176 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26177
26178         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26179
26180         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26181         when one needs search access to a directory but not read access.
26182         On systems where it is available, it works in some cases where
26183         O_RDONLY does not, namely on directories that are searchable but
26184         not readable, and which need only to be searchable.  If O_SEARCH
26185         is not available, fall back to the traditional method of using
26186         O_RDONLY.
26187
26188         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26189         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26190         when opening a directory that needs only to be searchable.
26191         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26192         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26193         * lib/openat-proc.c (openat_proc_name): Likewise.
26194         * lib/openat.c (openat_needs_fchdir): Likewise.
26195         * lib/save-cwd.c (save_cwd): Likewise.
26196         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26197
26198 2010-08-28  Bruno Haible  <bruno@clisp.org>
26199
26200         New module 'host-cpu-c-abi'.
26201         * modules/host-cpu-c-abi: New file.
26202         * m4/host-cpu-c-abi.m4: New file, based on part of
26203         clisp/src/m4/general.m4.
26204         Requested by Sam Steingold <sds@gnu.org>.
26205
26206 2010-08-31  Eric Blake  <eblake@redhat.com>
26207         and Jim Meyering  <meyering@redhat.com>
26208
26209         hash: factor, and guard against misbehaving hasher function
26210         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26211         of table->hasher's return value.  Also protect against a hash value
26212         so large that adding it to table->bucket results in a NULL pointer.
26213         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26214         Use it in place of open-coded check-and-abort.
26215
26216 2010-08-30  Bruno Haible  <bruno@clisp.org>
26217
26218         hash: silence spurious clang warning
26219         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26220         Reported by Eric Blake.
26221
26222 2010-08-30  Eric Blake  <eblake@redhat.com>
26223
26224         strstr, memmem, strcasestr: avoid leaked shell message
26225         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26226         FreeBSD.
26227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26228         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26229
26230         tests: silence clang warning
26231         * tests/test-malloca.c (do_allocation): Avoid dead store.
26232
26233 2010-08-29  Bruno Haible  <bruno@clisp.org>
26234
26235         gettext: Fix recent mistake.
26236         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26237
26238 2010-08-29  Bruno Haible  <bruno@clisp.org>
26239
26240         selinux-h: Offer a --without-selinux option.
26241         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26242         --without-selinux was specified, skip all tests and define
26243         HAVE_SELINUX_SELINUX_H to 0.
26244         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26245         set LIB_SELINUX to empty.
26246         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26247         gl_LIBSELINUX. If --without-selinux was specified, replace
26248         selinux/context.h.
26249         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26250
26251 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26252             Bruno Haible  <bruno@clisp.org>
26253
26254         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26255         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26256         of HAVE_REALLOC.
26257         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26258         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26259         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26260         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26261
26262 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26263             Bruno Haible  <bruno@clisp.org>
26264
26265         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26266         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26267         HAVE_CALLOC.
26268         * lib/xmalloc.c: Update accordingly.
26269         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26270         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26271         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26272
26273 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26274             Bruno Haible  <bruno@clisp.org>
26275
26276         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26277         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26278         HAVE_MALLOC.
26279         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26280         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26281         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26282
26283 2010-08-29  Bruno Haible  <bruno@clisp.org>
26284
26285         Update modules list.
26286         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26287         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26288         (String handling <string.h>): Add astrxfrm.
26289         (File system functions): Add readlinkat.
26290
26291 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26292
26293         Tests for module 'realloc-gnu'.
26294         * modules/realloc-gnu-tests: New file.
26295         * tests/test-realloc-gnu.c: New file.
26296
26297         Tests for module 'calloc-gnu'.
26298         * modules/calloc-gnu-tests: New file.
26299         * tests/test-calloc-gnu.c: New file.
26300
26301         Tests for module 'malloc-gnu'.
26302         * modules/malloc-gnu-tests: New file.
26303         * tests/test-malloc-gnu.c: New file.
26304
26305 2010-08-28  Bruno Haible  <bruno@clisp.org>
26306
26307         Rename module 'realloc' -> 'realloc-gnu'.
26308         * modules/realloc-gnu: New file, copied from modules/realloc.
26309         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26310         obsolete.
26311         * modules/mgetgroups (Depends-on): Update.
26312         * doc/posix-functions/realloc.texi: Update.
26313         * NEWS: Mention the change.
26314
26315         Rename module 'calloc' -> 'calloc-gnu'.
26316         * modules/calloc-gnu: New file, copied from modules/calloc.
26317         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26318         obsolete.
26319         * doc/posix-functions/calloc.texi: Update.
26320         * NEWS: Mention the change.
26321
26322         Rename module 'malloc' -> 'malloc-gnu'.
26323         * modules/malloc-gnu: New file, copied from modules/malloc.
26324         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26325         obsolete.
26326         * modules/argp (Depends-on): Update.
26327         * modules/regex (Depends-on): Update.
26328         * doc/posix-functions/malloc.texi: Update.
26329         * NEWS: Mention the change.
26330
26331 2010-08-28  Eric Blake  <eblake@redhat.com>
26332
26333         pread, pwrite: add missing dependency
26334         * modules/pread (Depends-on): Add extensions.
26335         * modules/pwrite (Depends-on): Likewise.
26336
26337 2010-08-28  Bruno Haible  <bruno@clisp.org>
26338
26339         unistr/u*-strchr: Fix tests dependencies.
26340         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26341         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26342         Reported by Ian Beckwith <ianb@erislabs.net>.
26343
26344 2010-08-28  Bruno Haible  <bruno@clisp.org>
26345
26346         read-file: Don't occupy too much unused memory.
26347         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26348
26349 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26350             Eric Blake  <eblake@redhat.com>
26351             Bruno Haible  <bruno@clisp.org>
26352
26353         read-file: Avoid memory reallocations with regular files.
26354         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26355         (fread_file): With regular files, use the remaining length as the
26356         initial buffer size.  Check against overflow.
26357         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26358         sys_stat.
26359
26360 2010-08-28  Bruno Haible  <bruno@clisp.org>
26361
26362         ftello: Relax license.
26363         * modules/ftello (License): Relax to LGPLv2+.
26364         Reported by Eric Blake.
26365
26366 2010-08-28  Bruno Haible  <bruno@clisp.org>
26367
26368         Avoid relocwrapper link errors due to gnulib replacement functions.
26369         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26370         function.
26371         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26372
26373 2010-08-28  Bruno Haible  <bruno@clisp.org>
26374
26375         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26376         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26377         defined.
26378         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26379         Suggested by Eric Blake.
26380
26381 2010-08-28  Bruno Haible  <bruno@clisp.org>
26382
26383         sys_socket, netdb: Ensure socklen_t gets defined.
26384         * modules/sys_socket (Depends-on): Add socklen.
26385         * modules/netdb (Depends-on): Likewise.
26386         * modules/getaddrinfo (Depends-on): Remove socklen.
26387         * modules/getsockopt (Depends-on): Likewise.
26388         * modules/setsockopt (Depends-on): Likewise.
26389         * tests/test-sys_socket.c: Check that socklen_t is defined.
26390         * tests/test-netdb.c: Likewise.
26391         * m4/socklen.m4: Update comments.
26392         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26393
26394 2010-08-27  Eric Blake  <eblake@redhat.com>
26395
26396         login_tty: add missing dependency
26397         * modules/login_tty (Depends-on): Add pty.
26398
26399 2010-08-26  Eric Blake  <eblake@redhat.com>
26400
26401         lib-symbol-versions: fix m4 quoting
26402         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26403         format for AC_LINK_IFELSE.
26404
26405         glob: fix compile test
26406         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26407
26408         btowc: fix missing file
26409         * modules/btowc (Files): Also ship locale-fr.m4.
26410
26411         lseek: fix link test
26412         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26413         AC_LINK_IFELSE.
26414
26415         include_next: silence autoconf 2.68 warning
26416         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26417         AC_COMPILE_IFELSE as special.
26418         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26419         autoconf < 2.68.
26420
26421         acl: fix compilation test
26422         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26423         AC_COMPILE_IFELSE.
26424
26425 2010-08-26  Bruno Haible  <bruno@clisp.org>
26426
26427         Modernize AC_TRY_RUN invocations.
26428         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26429         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26430         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26431         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26432         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26433         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26434         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26435         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26436         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26437         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26438         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26439         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26440         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26441         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26442         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26443         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26444         gl_MBRLEN_NUL_RETVAL): Likewise.
26445         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26446         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26447         Likewise.
26448         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26449         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26450         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26451         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26452         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26453         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26454         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26455         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26456         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26457         Likewise.
26458         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26459         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26461         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26462         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26463         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26464         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26465         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26466         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26468
26469 2010-08-26  Bruno Haible  <bruno@clisp.org>
26470
26471         Modernize AC_TRY_LINK invocations.
26472         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26473         AC_TRY_LINK.
26474         * m4/argp.m4 (gl_ARGP): Likewise.
26475         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26476         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26477         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26478         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26479         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26480         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26481         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26482         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26483         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26484         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26485         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26486         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26487         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26488         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26489         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26490         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26491         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26492         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26493         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26494         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26495         Likewise.
26496         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26497         Likewise.
26498         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26499         Likewise.
26500         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26501         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26502         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26503         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26504         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26505         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26506         * m4/servent.m4 (gl_SERVENT): Likewise.
26507         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26508         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26509         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26510         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26511         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26512         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26513         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26514         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26515         * modules/tsearch-tests (configure.ac): Likewise.
26516
26517 2010-08-26  Bruno Haible  <bruno@clisp.org>
26518
26519         Modernize AC_TRY_COMPILE invocations.
26520         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26521         AC_TRY_COMPILE.
26522         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26523         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26524         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26525         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26526         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26527         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26528         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26529         * m4/lock.m4 (gl_LOCK): Likewise.
26530         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26531         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26532         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26533         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26534         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26535         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26536         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26537         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26538         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26539         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26540         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26541         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26542         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26543         extraneous semicolon.
26544
26545 2010-08-26  Jim Meyering  <meyering@redhat.com>
26546
26547         stat-time: relax license LGPL
26548         * modules/stat-time (License): Change from GPL to LGPL,
26549         with consent from all contributors, for use in libguile.
26550         Requested by Ludovic Courtès.
26551
26552 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26553
26554         poll: return immediately on POLLHUP.
26555         * lib/poll.c (poll): Always set timeout before wait_timeout is
26556         computed.
26557
26558 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26559
26560         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26561         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26562         rmdir ("dir/.//"), unlinkat.
26563
26564 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26565
26566         stdbool: avoid spurious failure with modern xlc
26567         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26568
26569 2010-08-24  Bruno Haible  <bruno@clisp.org>
26570
26571         getloadavg: simplify code
26572         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26573         gl_have_func. Update comments.
26574
26575 2010-08-24  Eric Blake  <eblake@redhat.com>
26576
26577         getloadavg: don't define SVR4 on cygwin
26578         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26579         only define SVR4 when -lkvm is required.
26580         Reported by Yaakov Selkowitz.
26581
26582 2010-08-24  Bruno Haible  <bruno@clisp.org>
26583
26584         priv-set: fix comment
26585         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26586
26587 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26588
26589         priv-set: fix comments
26590         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26591         to match code, as suggested by David Bartley in:
26592         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26593
26594 2010-08-23  Eric Blake  <eblake@redhat.com>
26595
26596         stdbool: avoid rejecting clang
26597         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26598         * tests/test-stdbool.c: Enable more tests if using the system
26599         <stdbool.h> instead of the gnulib replacement.
26600         (main): Move xlc bug test to a runtime test for all compilers.
26601         Reported by Anders Kaseorg.
26602
26603         argz: fix shell quoting issue
26604         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26605         Reported by Charles Wilson.
26606
26607 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26608             Erik Faye-Lund <kusmabite@gmail.com>
26609
26610         poll, select: handle ERROR_BROKEN_PIPE.
26611         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26612         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26613         * lib/select.c (win32_compute_revents): Do not mark a pipe
26614         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26615
26616 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26617
26618         fts: allow compilation with C++
26619         * lib/fts_.h: Specify extern "C" linkage with C++.
26620
26621 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26622
26623         Fix gnulib-tool sed script de-commentation for AIX sed.
26624         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26625         sed.
26626
26627 2010-08-17  Eric Blake  <eblake@redhat.com>
26628
26629         test-stddef: test for (some) offsetof bugs
26630         * tests/test-stddef.c: Enhance test to ensure correct type of
26631         offsetof.
26632         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26633         that we are not fixing at this time.
26634
26635 2010-08-15  Bruno Haible  <bruno@clisp.org>
26636
26637         stpncpy: Allow stpncpy to be defined as a macro.
26638         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26639         if it's already correctly declared.
26640         * lib/string.in.h (stpncpy): Undefine before redefining.
26641         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26642
26643 2010-08-14  Bruno Haible  <bruno@clisp.org>
26644
26645         Rename module 'memxfrm' to 'amemxfrm'.
26646         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26647         (amemxfrm): Renamed from memxfrm.
26648         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26649         (amemxfrm): Renamed from memxfrm.
26650         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26651         * NEWS: Mention the change.
26652         * MODULES.html.sh (String handling <string.h>): Update.
26653         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26654         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26655         * lib/unicase/u16-casexfrm.c: Likewise.
26656         * lib/unicase/u32-casexfrm.c: Likewise.
26657         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26658         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26659         * lib/uninorm/u16-normxfrm.c: Likewise.
26660         * lib/uninorm/u32-normxfrm.c: Likewise.
26661         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26662         memxfrm.
26663         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26664         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26665         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26666         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26667         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26668         Suggested by Paul Eggert.
26669
26670 2010-08-14  Bruno Haible  <bruno@clisp.org>
26671
26672         Tests for module 'astrxfrm'.
26673         * modules/astrxfrm-tests: New file.
26674         * tests/test-astrxfrm.c: New file.
26675
26676         New module 'astrxfrm'.
26677         * lib/astrxfrm.h: New file.
26678         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26679         * modules/astrxfrm: New file.
26680
26681 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26682
26683         regex: Tweak doc.
26684         * doc/regex.texi (Overview): Don't mention regex.c.
26685         (GNU Regular Expression Compiling): Likewise.
26686         (Match-end-of-line Operator): Mention 'not_eol'.
26687
26688 2010-08-14  Brian Gough  <bjg@gnu.org>
26689             Bruno Haible  <bruno@clisp.org>
26690
26691         git-merge-changelog: add doc relating to use with bzr and hg.
26692         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26693
26694 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26695
26696         pthread: fix pthread.h creation for srcdir != builddir
26697         * modules/pthread (Makefile.am): Fix the rule to work also in a
26698         non-srcdir build.
26699
26700 2010-08-13  Karl Berry  <karl@gnu.org>
26701
26702         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26703         * doc/posix-*/*: force line break before @url of POSIX
26704         specifications.
26705         Suggested by Werner Lemberg.
26706
26707 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26708
26709         strtod: fix const diagnostic
26710         * lib/strtod.c (strtod): Don't assign const char * to char *,
26711         as this elicits a warning from GCC when warnings are enabled.
26712
26713 2010-08-10  Pádraig Brady <P@draigbrady.com>
26714         and Eric Blake  <eblake@redhat.com>
26715
26716         copy-acl: ignore ENOTSUP on HP-UX
26717         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26718         so that it is available for HP-UX.
26719         * lib/copy-acl.c (qcopy_acl): Use it.
26720         Reported by Patrick M. Callahan.
26721
26722 2010-08-10  Eric Blake  <eblake@redhat.com>
26723
26724         open, chown: relax license
26725         * modules/open (License): Change to LGPLv2+, with consent by all
26726         authors, for use in augeas.
26727         * modules/chown (License): Likewise.
26728         * modules/lchown (Likewise): Likewise.
26729         Requested by Adam Stokes.
26730
26731 2010-08-09  Karl Berry  <karl@gnu.org>
26732
26733         * build-aux/ar-lib: new file, import from Automake.
26734         * config/srclist.txt: autocheck for updates.
26735
26736 2010-08-09  Eric Blake  <eblake@redhat.com>
26737
26738         readlinkat: adjust client modules
26739         * modules/areadlinkat (Depends-on): Use readlinkat, not
26740         symlinkat.
26741         * modules/areadlinkat-with-size (Depends-on): Likewise.
26742
26743         mknod: be more vocal about danger of running tests as root
26744         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26745         root, since that is just asking for problems.
26746         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26747
26748         readlinkat: split into its own module
26749         * modules/symlinkat: Split readlinkat...
26750         * modules/readlinkat: ...into separate module.
26751         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26752         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26753         * lib/symlinkat.c (readlinkat): Move...
26754         * lib/readlinkat.c: ...into new file.
26755         * modules/symlinkat-tests: Split readlinkat test...
26756         * modules/readlinkat-tests: ...into separate module.
26757         * tests/test-symlinkat.c: Split...
26758         * tests/test-readlinkat.c: ...into new file.
26759         * NEWS: Document the split.
26760         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26761         * lib/unistd.in.h (readlinkat): Likewise.
26762         Suggested by Bruno Haible.
26763
26764 2010-08-08  Bruno Haible  <bruno@clisp.org>
26765
26766         memxfrm: Speed up.
26767         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26768         that usually only one call to strxfrm is necessary for each string
26769         part.
26770         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26771
26772 2010-08-07  Karl Berry  <karl@gnu.org>
26773
26774         * doc/posix-headers/limits.texi,
26775         * doc/posix-functions/malloc.texi,
26776         * doc/posix-functions/strsignal.texi: missing @item.
26777         * doc/ld-version-script.texi: spurious leading i.
26778         * doc/regex.texi (Interval Operators): no commas inside @var.
26779
26780 2010-08-01  Bruno Haible  <bruno@clisp.org>
26781
26782         Integrate the regex documentation.
26783         * doc/gnulib.texi: Define 'cn' index.
26784         (Regular expressions): New a chapter that includes regex.texi and
26785         regexprops-generic.texi.
26786         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26787         syntax.
26788
26789         Whitespace cleanup.
26790         * doc/regex.texi: Remove trailing spaces.
26791
26792         Add regex documentation.
26793         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26794         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26795         Written by Kathy A. Hargreaves and Karl Berry.
26796
26797 2010-08-01  Bruno Haible  <bruno@clisp.org>
26798
26799         link: Update documentation.
26800         * doc/posix-functions/link.texi: Update regarding Solaris.
26801
26802 2010-07-31  Bruno Haible  <bruno@clisp.org>
26803
26804         Update modules list.
26805         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26806         (String handling <string.h>): Add memcmp2, memxfrm.
26807         (Container data structures): Add xlist, xsublist, xoset.
26808         (Core language properties): Add alignof, unused-parameter.
26809         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26810         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26811         (Unibyte characters <ctype.h>): New section.
26812         (String handling <string.h>): New section.
26813         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26814         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26815         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26816         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26817         tan, tanh, tanl, y0, y1, yn.
26818         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26819         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26820         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26821         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26822         unlockpt, vdprintf, vdprintf-posix.
26823         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26824         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26825         xconcat-filename.
26826         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26827         getdtablesize, pipe2, pipe2-safer.
26828         (Security): New section.
26829         (Networking functions): Add accept4.
26830         (Signal handling): Add sigpipe.
26831         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26832         mbmemcasecoll.
26833         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26834         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26835         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26836         pipe-filter-ii.
26837         (Misc): Add argp-version-etc, login_tty, parse-duration.
26838
26839 2010-07-31  Bruno Haible  <bruno@clisp.org>
26840
26841         Improve doc in MODULES.html.
26842         * modules/linkat (Description): Add the word "function".
26843         * modules/mkfifo (Description): Likewise.
26844         * modules/mknod (Description): Likewise.
26845         * modules/remove (Description): Likewise.
26846         * modules/renameat (Description): Likewise.
26847         * modules/stat (Description): Likewise.
26848         * modules/symlink (Description): Likewise.
26849         * modules/unlink (Description): Likewise.
26850
26851 2010-07-31  Bruno Haible  <bruno@clisp.org>
26852
26853         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26854         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26855         option --enable/disable-c++ instead of --enable/disable-cxx.
26856         * NEWS: Mention the change.
26857
26858 2010-07-31  Bruno Haible  <bruno@clisp.org>
26859
26860         readlink, areadlink: Relax test a bit.
26861         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26862         alternative to ENOTDIR.
26863         * tests/test-areadlink.h (test_areadlink): Likewise.
26864         Reported by Rainer Tammer.
26865
26866 2010-07-31  Bruno Haible  <bruno@clisp.org>
26867
26868         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26869         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26870         character, perform the search using U_STRCHR.
26871         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26872         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26873         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26874         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26875         Suggested by Paolo Bonzini.
26876
26877 2010-07-31  Bruno Haible  <bruno@clisp.org>
26878
26879         unistr/u*-strstr: Fix dependencies.
26880         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26881         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26882         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26883
26884 2010-07-31  Bruno Haible  <bruno@clisp.org>
26885
26886         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26887         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26888         the beginning of the loop.
26889         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26890         cases in 'switch' statement.
26891
26892         unistr/u8-strchr: Fix several bugs.
26893         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26894         the string. When not found, return NULL, not a pointer near the end.
26895
26896         More tests for unistr/u8-strchr.
26897         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26898         that the function does not read past the first occurrence of the byte
26899         being searched.
26900         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26901         * tests/unistr/test-u16-strchr.c (main): New function.
26902         * tests/unistr/test-u32-strchr.c (main): New function.
26903
26904 2010-07-31  Bruno Haible  <bruno@clisp.org>
26905
26906         posix-modules: Ignore backup files of documentation files.
26907         * posix-modules: grep only through files named *.texi.
26908
26909 2010-07-31  Bruno Haible  <bruno@clisp.org>
26910
26911         symlinkat: Fix documentation.
26912         * doc/posix-functions/readlinkat.texi: Fix module name.
26913
26914 2010-07-31  Bruno Haible  <bruno@clisp.org>
26915
26916         fchownat: Replace also when chown has the trailing slash bug.
26917         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26918         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26919         introduced on 2010-04-10.
26920         Reported by Rainer Tammer.
26921
26922 2010-07-31  Bruno Haible  <bruno@clisp.org>
26923
26924         linkat: Work around AIX 7.1 bug.
26925         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26926         whether linkat handles trailing slash correctly. If not, replace linkat
26927         and define LINKAT_TRAILING_SLASH_BUG.
26928         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26929         check whether (fd1,file1) points to a directory if file1 or file2 ends
26930         in a slash. Code taken from lib/link.c.
26931         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26932         Reported by Rainer Tammer.
26933
26934 2010-07-31  Bruno Haible  <bruno@clisp.org>
26935
26936         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26937         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26938         This disables an xlc optimization that was causing wrong test results.
26939         Reported by Rainer Tammer.
26940
26941 2010-07-31  Bruno Haible  <bruno@clisp.org>
26942
26943         iconv: Work around AIX 6.1..7.1 bug.
26944         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26945         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26946         cross-compiling, guess no on all versions of AIX.
26947         Reported by Rainer Tammer.
26948
26949 2010-07-31  Bruno Haible  <bruno@clisp.org>
26950
26951         readlink: Relax test a bit.
26952         * tests/test-readlink.h (test_readlink): Allow different errno value
26953         when readlink is called with a file name that ends in / and refers to
26954         a file.
26955         Suggested by Eric Blake.
26956         Reported by Rainer Tammer.
26957
26958 2010-07-31  Bruno Haible  <bruno@clisp.org>
26959
26960         copysign: Does not require -lm on glibc systems.
26961         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26962         gl_COMMON_DOUBLE_MATHFUNC.
26963         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26964
26965 2010-07-31  Bruno Haible  <bruno@clisp.org>
26966
26967         duplocale: Work around AIX 7.1 bug.
26968         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26969         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26970         * lib/duplocale.c (rpl_duplocale): Update comment.
26971         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26972         Reported by Rainer Tammer.
26973
26974 2010-07-30  Bruno Haible  <bruno@clisp.org>
26975
26976         dirfd: Avoid link error on AIX 7.1.
26977         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26978         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26979         exist, set REPLACE_DIRFD.
26980         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26981         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26982         * doc/posix-functions/dirfd.texi: Update.
26983         Reported by Rainer Tammer.
26984
26985 2010-07-30  Eric Blake  <eblake@redhat.com>
26986
26987         strtod: next round of AIX fixes
26988         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26989         exponent.
26990         * tests/test-strtod.c (main): Enhance tests.
26991         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26992         Reported by Rainer Tammer.
26993
26994         futimens: fix configure check
26995         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26996         Reported by Bruno Haible.
26997
26998 2010-07-30  Bruno Haible  <bruno@clisp.org>
26999
27000         getline: Update regarding AIX.
27001         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27002         Reported by Rainer Tammer.
27003
27004 2010-07-30  Bruno Haible  <bruno@clisp.org>
27005
27006         wcwidth: Drop replacement on AIX 7.
27007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27008         AIX 7.
27009         Reported by Rainer Tammer.
27010
27011 2010-07-30  Bruno Haible  <bruno@clisp.org>
27012
27013         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27014         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27015         a 'char *'.
27016         Reported by Rainer Tammer.
27017
27018 2010-07-30  Bruno Haible  <bruno@clisp.org>
27019
27020         unlink: Update regarding AIX.
27021         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27022         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27023         Reported by Rainer Tammer.
27024
27025 2010-07-30  Bruno Haible  <bruno@clisp.org>
27026
27027         symlink: Update regarding AIX.
27028         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27029         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27030         Reported by Rainer Tammer.
27031
27032 2010-07-30  Bruno Haible  <bruno@clisp.org>
27033
27034         strndup: Update regarding AIX.
27035         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27036         AIX 7.
27037         Reported by Rainer Tammer.
27038
27039 2010-07-30  Bruno Haible  <bruno@clisp.org>
27040
27041         stat: Update regarding AIX.
27042         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27043         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27044         Reported by Rainer Tammer.
27045
27046 2010-07-30  Bruno Haible  <bruno@clisp.org>
27047
27048         truncl: Fix autoconf test.
27049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27050         whether truncl works.
27051         Reported by Rainer Tammer.
27052
27053 2010-07-30  Bruno Haible  <bruno@clisp.org>
27054
27055         round: Update regarding AIX.
27056         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27057         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27058         Reported by Rainer Tammer.
27059
27060 2010-07-30  Bruno Haible  <bruno@clisp.org>
27061
27062         rename: Update regarding AIX.
27063         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27064         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27065         Reported by Rainer Tammer.
27066
27067 2010-07-30  Bruno Haible  <bruno@clisp.org>
27068
27069         printf.m4: Update regarding AIX.
27070         * m4/printf.m4: Update comments regarding AIX.
27071         Reported by Rainer Tammer.
27072
27073 2010-07-30  Bruno Haible  <bruno@clisp.org>
27074
27075         iconv: Update regarding AIX.
27076         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27077         AIX 7.
27078         Reported by Rainer Tammer.
27079
27080 2010-07-30  Bruno Haible  <bruno@clisp.org>
27081
27082         getopt: Update regarding AIX.
27083         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27084         no on AIX.
27085         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27086         Reported by Rainer Tammer.
27087
27088 2010-07-30  Bruno Haible  <bruno@clisp.org>
27089
27090         ldexpl; Update regarding AIX.
27091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27092         on AIX 7.
27093         Reported by Rainer Tammer.
27094
27095 2010-07-30  Bruno Haible  <bruno@clisp.org>
27096
27097         frexpl: Update regarding AIX.
27098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27099         on AIX 7.
27100         Reported by Rainer Tammer.
27101
27102 2010-07-30  Bruno Haible  <bruno@clisp.org>
27103
27104         open, fopen: Update regarding AIX.
27105         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27106         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27107         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27108         * doc/posix-functions/fopen.texi: Likewise.
27109         Reported by Rainer Tammer.
27110
27111 2010-07-30  Bruno Haible  <bruno@clisp.org>
27112
27113         chown: Update doc regarding AIX.
27114         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27115         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27116         Reported by Rainer Tammer.
27117
27118 2010-07-30  Eric Blake  <eblake@redhat.com>
27119
27120         strtod: fix bug in replacement function on AIX
27121         * lib/strtod.c (strtod): Special case broken "0x" parse in
27122         underlying strtod.
27123         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27124         * doc/posix-functions/strtod.texi (strtod): Likewise.
27125         Reported by Rainer Tammer.
27126
27127 2010-07-30  Bruno Haible  <bruno@clisp.org>
27128
27129         mbrlen: Fix cross-compilation guess for AIX.
27130         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27131         guess. Leftover from 2008-12-22.
27132
27133 2010-07-30  Bruno Haible  <bruno@clisp.org>
27134
27135         mbrtowc: Fix cross-compilation guess for AIX.
27136         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27137         guess. Leftover from 2008-12-21.
27138
27139 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27140
27141         init.sh: work around trap limitation of some shells
27142         * tests/init.sh (setup_): Move exit trap outside of shell function.
27143
27144 2010-07-29  Eric Blake  <eblake@redhat.com>
27145
27146         strtod: aid debugging
27147         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27148         understanding why strtod is rejected.
27149
27150 2010-07-28  Bruno Haible  <bruno@clisp.org>
27151
27152         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27153         * lib/unistr/u8-chr.c: Include <string.h>.
27154         * tests/unistr/test-u8-chr.c: Likewise.
27155         * tests/unistr/test-u16-chr.c: Likewise.
27156         * tests/unistr/test-u32-chr.c: Likewise.
27157         * tests/unistr/test-u8-strchr.c: Likewise.
27158         * tests/unistr/test-u16-strchr.c: Likewise.
27159         * tests/unistr/test-u32-strchr.c: Likewise.
27160         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27161         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27162         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27163         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27164
27165 2010-07-28  Bruno Haible  <bruno@clisp.org>
27166
27167         Use spaces for indentation, not tabs.
27168         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27169
27170 2010-07-27  Bruno Haible  <bruno@clisp.org>
27171
27172         mbspcasecmp: Fix function specification.
27173         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27174         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27175         Reported by Eric Blake <eblake@redhat.com>.
27176
27177 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27178
27179         timespec: use cast and not conditional, as truncation isn't possible
27180         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27181         instead of a conditional.  Comment about the situation in more detail.
27182         This undoes most of the 2009-10-29 patch.
27183
27184 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27185
27186         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27187         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27188         * lib/unistr/u8-strchr.c: Likewise.
27189         * modules/unistr/u8-chr: Depend on memchr.
27190
27191         unistr/u*-strchr: add tests
27192         * modules/unistr/u8-strchr-tests: New file.
27193         * modules/unistr/u16-strchr-tests: New file.
27194         * modules/unistr/u32-strchr-tests: New file.
27195         * tests/unistr/test-strchr.h: New file.
27196         * tests/unistr/test-u8-strchr.c: New file.
27197         * tests/unistr/test-u16-strchr.c: New file.
27198         * tests/unistr/test-u32-strchr.c: New file.
27199
27200         unistr/u*-chr: test multibyte sequences more
27201         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27202         test vector.
27203         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27204         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27205         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27206
27207         unistr/u*-chr: test multibyte sequences
27208         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27209
27210         unistr/u*-chr: prepare for multibyte tests
27211         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27212         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27213         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27214         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27215         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27216         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27217
27218 2010-07-18  Bruno Haible  <bruno@clisp.org>
27219
27220         unistr/u8-strchr: Optimize non-ASCII argument case.
27221         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27222         because the first byte often matches anyway.
27223         Reported by Pádraig Brady <P@draigbrady.com>.
27224
27225 2010-07-15  Karl Berry  <karl@gnu.org>
27226
27227         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27228
27229 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27230
27231         getcwd: on Solaris, work better if ancestors are inaccessible
27232         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27233         buffer and size, try again with a large buffer.  This works better
27234         on Solaris, since its getcwd succeeds even if the path to the root
27235         is inaccessible, and this is helpful in common cases such as .zfs
27236         hidden directories.  Problem reported by J Chapman Flack in
27237         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27238         Use system getcwd if it's declared, not merely if it's partly
27239         working; use the partly-working test only to avoid needless effort
27240         if the system getcwd fails.
27241         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27242         comment that was already obsolete and is now even more obsolete.
27243         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27244         now might call strdup.
27245
27246 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27247
27248         pthread: Add enough so that coreutils/src/sort.c compiles.
27249         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27250         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27251         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27252         Include <sys/types.h>, in case it defines pthread_t.
27253         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27254         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27255         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27256         (pthread_rwlockattr_t, pthread_spinlock_t):
27257         New typedefs, if HAVE_PTHREAD_T is not defined.
27258         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27259         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27260         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27261         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27262         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27263         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27264         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27265         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27266         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27267         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27268         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27269         New macros.
27270         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27271         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27272         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27273         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27274         (pthread_spin_unlock): New dummy functions.
27275         (pthread_create): Return EAGAIN; don't set errno.
27276         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27277         require AC_C_INLINE.
27278         * modules/pthread (Depends-on): Add sched, time.
27279         (pthread.h): Use AM_V_GEN.
27280
27281 2010-07-13  Bruno Haible  <bruno@clisp.org>
27282
27283         striconveh: Don't malloc memory if the result buffer is sufficient.
27284         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27285         buffer if its size is sufficient.
27286         Reported by Ludovic Courtès <ludo@gnu.org>.
27287
27288 2010-07-13  Bruno Haible  <bruno@clisp.org>
27289
27290         strtod: Add safety check.
27291         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27292
27293 2010-07-12  Bruno Haible  <bruno@clisp.org>
27294
27295         Unify tests that set gl_cv_func_ldexpl_no_libm.
27296         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27297         gl_FUNC_LDEXPL.
27298         (gl_FUNC_LDEXPL): Invoke it.
27299         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27300
27301 2010-07-12  Bruno Haible  <bruno@clisp.org>
27302
27303         Unify tests that set gl_cv_func_ldexp_no_libm.
27304         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27305         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27306         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27307         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27308         * modules/strtod (Files): Add m4/ldexp.m4.
27309
27310 2010-07-12  Bruno Haible  <bruno@clisp.org>
27311
27312         Unify tests that set gl_cv_func_frexpl_no_libm.
27313         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27314         gl_FUNC_FREXPL_NO_LIBM.
27315         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27316         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27317
27318 2010-07-12  Bruno Haible  <bruno@clisp.org>
27319
27320         Unify tests that set gl_cv_func_frexp_no_libm.
27321         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27322         gl_FUNC_FREXP_NO_LIBM.
27323         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27324         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27325
27326 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27327
27328         memcoll: clarify sizes versus lengths, document better, and tweak perf
27329         * lib/memcoll.c (strcoll_loop, memcoll0):
27330         Improve quality of descriptive comments.  Name variables
27331         consistently as to whether they are lengths (which do not include
27332         terminating null) versus sizes (which do).
27333         * lib/xmemcoll.c (xmemcoll0): Likewise.
27334         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27335         returned when s1size == 0; this is easier to compile and saves
27336         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27337
27338 2010-07-12  Bruno Haible  <bruno@clisp.org>
27339
27340         Tests for module '_Exit'.
27341         * modules/_Exit-tests: New file.
27342         * tests/test-_Exit.sh: New file.
27343         * tests/test-_Exit.c: New file.
27344
27345         New module '_Exit'.
27346         * lib/stdlib.in.h (__attribute__): New macro.
27347         (_Exit): New declaration.
27348         * lib/_Exit.c: New file.
27349         * m4/_Exit.m4: New file.
27350         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27351         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27352         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27353         * modules/_Exit: New file.
27354         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27355         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27356
27357 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27358
27359         strtod: make it more-accurate typically, and don't require libm
27360         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27361         Include limits.h.  Don't include string.h.
27362         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27363         (locale_isspace): New function, so that no casts are needed to
27364         check whether *s is a space.
27365         (ldexp): Provide an unused dummy if not available.
27366         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27367         (strtod): Use them.  This implementation prefers to use the
27368         underlying strtod if available, falling back on our own code
27369         only to fix known bugs.  This is more likely to produce an
27370         accurate result.  Also, it avoids the use of libm functions.
27371         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27372         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27373         was absent, but it caused a test failure with coreutils.
27374         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27375         with libm.
27376         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27377         * modules/strtod-tests (Makefile.am): Likewise.
27378
27379 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27380             Bruno Haible  <bruno@clisp.org>
27381
27382         unistr/u8-strchr: Optimize ASCII argument case.
27383         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27384
27385 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27386
27387         (x)memcoll: minor tweaks
27388         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27389         is after the type that it qualifies.
27390         (memcoll0): Likewise.
27391         * lib/memcoll.h (memcoll0): Likewise.
27392         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27393         * lib/xmemcoll.h (xmemcoll0): Likewise.
27394         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27395         differs from memcoll in that the NUL byte is part of the argument.
27396         Omit the abort-checks, as performance is a real issue here.  Plus,
27397         the checks were wrong anyway (an off-by-one error).  Omit local
27398         variable 'diff', as it's a bit clearer that way.
27399         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27400         no longer needed.
27401
27402 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27403
27404         (x)memcoll: speedup when input is known to be NUL delimited
27405         * lib/memcoll.c: Include stdlib.
27406         (memcoll0): New function.
27407         (strcoll_loop): New function, refactored for use in both memcoll
27408         and memcoll0.
27409         * lib/memcoll.h (memcoll0): Add prototype.
27410         * lib/xmemcoll.c (xmemcoll0): New function.
27411         (collate_error): New function, refactored for use in both xmemcoll
27412         and xmemcoll0.
27413         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27414         * m4/memcoll.m4: add inline invocation.
27415
27416 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27417
27418         * build-aux/bootstrap: Remove any local translations
27419         from the translation project synchronization directory,
27420         so that local only translations are not distributed.
27421
27422 2010-07-04  Bruno Haible  <bruno@clisp.org>
27423
27424         fsusage: Clarify which code applies to which platforms.
27425         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27426         platform.
27427         * lib/fsusage.c (get_fs_usage): Likewise.
27428
27429 2010-07-04  Bruno Haible  <bruno@clisp.org>
27430
27431         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27432         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27433         Reported by Martin Lambers <marlam@marlam.de>.
27434
27435 2010-07-04  Jim Meyering  <meyering@redhat.com>
27436
27437         hash: once again explicitly disallow insertion of NULL
27438         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27439         inserting a NULL pointer cannot work with these functions.
27440         Add a comment with details.
27441         This reverts part of the 2010-07-01 commit, 5bef1a35
27442         "hash: extend module to deal with non-pointer keys".
27443
27444 2010-07-01  Bruno Haible  <bruno@clisp.org>
27445
27446         stdbool: Update doc.
27447         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27448         Info from Christian Weisgerber <naddy@mips.inka.de>.
27449
27450 2010-07-01  Jim Meyering  <meyering@redhat.com>
27451
27452         hash: extend module to deal with non-pointer keys
27453         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27454         but that allows insertion of non-pointer entries.
27455         Do not disallow an ENTRY value of NULL.
27456         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27457         * lib/hash.h (hash_insert0): Declare.
27458
27459 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27460
27461         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27462         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27463         not present (i.e. with autoconf 2.59 and when using gettextize, not
27464         gnulib), require AC_GNU_SOURCE instead.
27465
27466 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27467
27468         idpriv-drop: Fix tests.
27469         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27470         not to the test-idpriv-droptemp program.
27471
27472 2010-06-29  Bruno Haible  <bruno@clisp.org>
27473
27474         string: Fix syntax error with g++ 2.96.
27475         * lib/string.in.h (__pure__): Remove definition.
27476         (_GL_ATTRIBUTE_PURE): New macro.
27477         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27478         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27479         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27480
27481 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27482
27483         unitypes: Fix bug introduced on 2010-05-18.
27484         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27485
27486 2010-06-22  Eric Blake  <eblake@redhat.com>
27487
27488         memmem: slight optimization
27489         * lib/str-two-way.h (critical_factorization): Update comments.
27490         Reduce work during factorization phase.
27491         Reported by Carlos Bueno <carlos@bueno.org>.
27492
27493 2010-06-21  Bruno Haible  <bruno@clisp.org>
27494
27495         Fix HAVE_CALLOC_POSIX misnomer.
27496         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27497         !HAVE_CALLOC_POSIX.
27498         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27499         HAVE_CALLOC_POSIX.
27500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27501         instead of HAVE_CALLOC_POSIX.
27502         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27503         HAVE_CALLOC_POSIX.
27504
27505         Use modern idiom for calloc() replacement.
27506         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27507         AC_FUNC_CALLOC.
27508         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27509         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27510         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27511         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27512         (gl_REPLACE_CALLOC): New macro.
27513
27514 2010-06-21  Bruno Haible  <bruno@clisp.org>
27515
27516         Fix HAVE_REALLOC_POSIX misnomer.
27517         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27518         !HAVE_REALLOC_POSIX.
27519         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27520         HAVE_REALLOC_POSIX.
27521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27522         instead of HAVE_REALLOC_POSIX.
27523         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27524         HAVE_REALLOC_POSIX.
27525
27526         Use modern idiom for realloc() replacement.
27527         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27528         AC_FUNC_REALLOC.
27529         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27530         Autoconf's AC_FUNC_REALLOC.
27531         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27532         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27533         (gl_REPLACE_REALLOC): New macro.
27534         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27535
27536 2010-06-21  Bruno Haible  <bruno@clisp.org>
27537
27538         Fix HAVE_MALLOC_POSIX misnomer.
27539         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27540         !HAVE_MALLOC_POSIX.
27541         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27542         HAVE_MALLOC_POSIX.
27543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27544         instead of HAVE_MALLOC_POSIX.
27545         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27546         HAVE_MALLOC_POSIX.
27547
27548         Use modern idiom for malloc() replacement.
27549         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27550         AC_FUNC_MALLOC.
27551         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27552         Autoconf's AC_FUNC_MALLOC.
27553         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27554         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27555         (gl_REPLACE_MALLOC): New macro.
27556         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27557
27558 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27559
27560         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27561         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27562         This macro takes 3 arguments, not 4.
27563
27564 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27565
27566         ipv6: fix detection under mingw
27567         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27568         in6_addr.
27569
27570 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27571
27572         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27573         that strtod() works when cross-compiling to a glibc version known
27574         to work.
27575
27576 2010-06-15  Bruno Haible  <bruno@clisp.org>
27577
27578         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27579
27580 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27581
27582         select: Correct timeout.
27583         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27584
27585 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27586
27587         git-version-gen: init shell var to avoid env var influence
27588         * build-aux/git-version-gen (v): Init shell var to empty.
27589
27590 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27591
27592         priv-set: Don't assume that priv.h exists merely because getppriv does.
27593         See Jan Andersen's bug report about AIX 5L in
27594         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27595         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27596         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27597         * lib/priv-set.h: Likewise.
27598         * tests/test-priv-set.c: Likewise.
27599
27600 2010-06-13  Bruno Haible  <bruno@clisp.org>
27601
27602         relocatable: Make it easier to test whether to install wrappers.
27603         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27604         RELOCATABLE_VIA_WRAPPER.
27605
27606 2010-06-13  Bruno Haible  <bruno@clisp.org>
27607
27608         gnulib-tool: Display specified modules and dependencies differently.
27609         * gnulib-tool (func_show_module_list): New function.
27610         (func_import, func_create_testdir): Invoke it.
27611         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27612
27613 2010-06-13  Bruno Haible  <bruno@clisp.org>
27614
27615         gnulib-tool: Align code of func_import and func_create_testdir.
27616         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27617         specified_modules.
27618
27619 2010-06-12  Jim Meyering  <meyering@redhat.com>
27620
27621         test-inttostr: avoid spurious failure on Solaris 9
27622         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27623         to accept "%ju".  Reported by Bruno Haible.
27624
27625 2010-06-11  Jim Meyering  <meyering@redhat.com>
27626
27627         test-sys_socket: mark variables as used more readably
27628         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27629         as "used" explicitly via (void) statement casts.  This is more
27630         readable than using them in an artificial return expression.
27631         Suggestion from Bruno Haible.
27632
27633 2010-06-11  Bruno Haible  <bruno@clisp.org>
27634
27635         Avoid some more warnings from "gcc -Wwrite-strings".
27636         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27637         to 'const char *'.
27638         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27639         * tests/test-c-strcasestr.c (main): Likewise.
27640         * tests/test-mbscasestr1.c (main): Likewise.
27641         * tests/test-mbscasestr2.c (main): Likewise.
27642         * tests/test-memmem.c (main): Likewise.
27643         * tests/test-strstr.c (main): Likewise.
27644         * tests/test-strcasestr.c (main): Likewise.
27645
27646 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27647
27648         init.sh: change framework_failure_ to fail with status 99, not 1
27649         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27650         automake's parallel-tests rule that this is an unexpected failure,
27651         even if the test is listed in XFAIL_TESTS.
27652
27653 2010-06-11  Jim Meyering  <meyering@redhat.com>
27654
27655         test-inttostr: avoid warnings about 4-6KB literal strings
27656         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27657         Include "macros.h", for its definition of ASSERT.
27658         (CK): s/assert/ASSERT/
27659         * modules/inttostr-tests (Files): Add macros.h.
27660
27661         init.sh: don't use $ME_ or skip_ before they are defined
27662         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27663         their first uses.  Also hoist their companions: warn_, fail_,
27664         framework_failure_, $stderr_fileno.  Prompted by a patch from
27665         Stefano Lattarini.
27666
27667         test-sys_socket: avoid set-but-not-used warnings from gcc
27668         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27669         avoid warning about set-but-not-used variables.
27670
27671         test-xvasprintf: avoid 'const' discard warnings
27672         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27673         "const" when assigning from literal strings.
27674         (test_xasprintf): Add "void" in function argument list to placate
27675         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27676
27677         tests: avoid compilation warnings in argmatch and exclude tests...
27678         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27679         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27680         Since it always exits, declare with the "noreturn" attribute.
27681         * tests/test-argmatch.c: Likewise.
27682
27683         tests: avoid 'const' discard warnings in mbsstr tests
27684         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27685         * tests/test-mbsstr2.c (main): Likewise.
27686
27687         test-verify: avoid warning from gcc's -Wmissing-declarations
27688         * tests/test-verify.c (function): Declare to be static.
27689
27690         test-inttostr.c: include <string.h> for use of strcmp
27691         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27692
27693         test-linkat: avoid failed assertion on "other" architectures
27694         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27695         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27696         sparc: https://bugs.launchpad.net/bugs/591968
27697
27698 2010-06-11  Jim Meyering  <meyering@redhat.com>
27699
27700         printf.m4: avoid autoconf's "Expanded Before Required" warning
27701         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27702         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27703         autoconf warning.
27704
27705 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27706
27707         Replacement header templates are now named with ".in", not "_".
27708         * doc/gnulib-intro.texi: Correct.
27709
27710 2010-06-10  Jim Meyering  <meyering@redhat.com>
27711
27712         inttostr-tests: depend on snprintf, not snprintf-posix
27713         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27714         snprintf-posix, to avoid this aclocal failure:
27715           missing file gnulib-tests/vasnprintf.c
27716           configure.ac:45: error: expected source file, required through \
27717           AC_LIBSOURCES, not found
27718
27719 2010-06-10  Jim Meyering  <meyering@redhat.com>
27720
27721         inttostr: add a new function, inttostr, and tests
27722         The namesake function was not available.  The existence of the
27723         template file, inttostr.c makes its addition nontrivial.
27724         * lib/anytostr.c: Rename from inttostr.c.
27725         (anytostr): Rename from inttostr.
27726         * lib/inttostr.c: New file.
27727         * modules/inttostr (Files): Add anytostr.c.
27728         (Makefile.am): Set lib_SOURCES instead of ...
27729         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27730         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27731         * lib/offtostr.c: Likewise.
27732         * lib/uinttostr.c: Likewise.
27733         * lib/umaxtostr.c: Likewise.
27734         * modules/inttostr-tests: New file.
27735         * tests/test-inttostr.c: New file.  Test these functions.
27736
27737 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27738             Bruno Haible  <bruno@clisp.org>
27739
27740         Add "Extending Gnulib" chapter to manual.
27741         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27742         chapter.
27743         (Extending Gnulib): New chapter.
27744         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27745         chapter.
27746
27747 2010-06-09  Bruno Haible  <bruno@clisp.org>
27748
27749         Avoid relocwrapper link errors due to gnulib replacement functions.
27750         * lib/areadlink.c: Use the system's malloc, realloc functions.
27751         (areadlink): Set errno to ENOMEM explicitly.
27752         * modules/areadlink (Depends-on): Remove malloc-posix.
27753         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27754
27755 2010-06-09  Bruno Haible  <bruno@clisp.org>
27756
27757         Avoid relocwrapper link errors due to gnulib replacement functions.
27758         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27759         * lib/malloca.c: Likewise.
27760         * lib/relocatable.c: Likewise.
27761         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27762         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27763         * lib/setenv.c: Use the system's malloc, realloc functions.
27764         * lib/strerror.c: Use the system's sprintf function.
27765         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27766
27767 2010-06-04  Bruno Haible  <bruno@clisp.org>
27768
27769         Prefer documented low-level autoconf macro names.
27770         * m4/lib-link.m4: Use m4_translit instead of translit.
27771         * m4/environ.m4: Likewise.
27772         * m4/mathfunc.m4: Likewise.
27773         * m4/onceonly.m4: Likewise.
27774         * m4/stdint.m4: Likewise.
27775         Suggested by Eric Blake.
27776
27777 2010-06-04  Martin Lambers  <marlam@marlam.de>
27778             Bruno Haible  <bruno@clisp.org>
27779
27780         havelib: Allow library names with '+' characters.
27781         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27782         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27783
27784 2010-06-09  Bruno Haible  <bruno@clisp.org>
27785
27786         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27787         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27788         realloc failed.
27789
27790 2010-06-08  Peter Simons  <simons@cryp.to>
27791
27792         maint.mk: make the news-check rule more configurable
27793         * top/maint.mk (news-check-lines-spec): New variable.
27794         (news-check): Use "sed -n 1,10p" in place of "head".
27795
27796 2010-06-07  Jim Meyering  <meyering@redhat.com>
27797
27798         do-release-commit-and-tag: fix typo in --help
27799         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27800
27801         regex: avoid new dead-code warning with gcc-4.6.0
27802         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27803         if-block containing a while-loop.  It's been unused for at least
27804         5 years.
27805
27806 2010-06-05  Bruno Haible  <bruno@clisp.org>
27807
27808         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27809         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27810
27811 2010-06-04  Bruno Haible  <bruno@clisp.org>
27812
27813         Update to GNU gettext 0.18.1.
27814         * modules/gettext (configure.ac): Require gettext infrastructure from
27815         version 0.18.1.
27816
27817 2010-06-03  Bruno Haible  <bruno@clisp.org>
27818
27819         Don't use AC_LIBOBJ with file names in subdirectories.
27820         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27821         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27822         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27823         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27824         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27825         gl_LIBUNISTRING_LIBSOURCE.
27826         (Makefile.am): Augment lib_SOURCES here, conditionally.
27827         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27828
27829 2010-06-03  Bruno Haible  <bruno@clisp.org>
27830
27831         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27832         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27833         expansion does not end with a newline.
27834         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27835         unnecessary newline.
27836
27837 2010-06-03  Bruno Haible  <bruno@clisp.org>
27838
27839         Reduce dependencies.
27840         * tests/test-quotearg.h: New file, extracted from
27841         tests/test-quotearg.c.
27842         * tests/test-quotearg-simple.c: New file, extracted from
27843         tests/test-quotearg.c.
27844         * tests/test-quotearg.c: Don't include <ctype.h>.
27845         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27846         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27847         use_quote_double_quotes, use_quotearg_colon): Moved to
27848         tests/test-quotearg.h.
27849         (results_g, flag_results, custom_quotes, custom_results): Moved
27850         to tests/test-quotearg-simple.c.
27851         (main): Moved the part that does not depend on gettext to
27852         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27853         performed.
27854         * modules/quotearg-simple: New file.
27855         * modules/quotearg-simple-tests: New file.
27856         * modules/quotearg (Depends-on): Add quotearg-simple.
27857         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27858         (Files): Add tests/test-quotearg.h.
27859         Reported by Paolo Bonzini.
27860
27861 2010-06-03  Bruno Haible  <bruno@clisp.org>
27862
27863         Reduce dependencies.
27864         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27865
27866 2010-06-03  Bruno Haible  <bruno@clisp.org>
27867
27868         time: Undefine more broken macros.
27869         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27870         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27871         Reported by Eric Blake.
27872
27873 2010-06-03  Bruno Haible  <bruno@clisp.org>
27874
27875         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27876         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27877         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27878         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27879         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27880         Reported by Ludovic Courtès <ludo@gnu.org>.
27881
27882 2010-06-02  Eric Blake  <eblake@redhat.com>
27883
27884         time: work with mingw + pthreads-win32 library
27885         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27886         if timespec is defined only in pthread.h.
27887         * modules/time (Makefile.am): Substitute it.
27888         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27889         <pthread.h>, when needed.
27890         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27891         from the library.
27892
27893 2010-05-31  Bruno Haible  <bruno@clisp.org>
27894
27895         Avoid expanding two macros in the wrong order.
27896         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27897         gl_LIBUNISTRING if it is defined.
27898         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27899         autoconf >= 2.64.
27900         Reported by Ludovic Courtès <ludo@gnu.org>.
27901
27902 2010-05-27  Jim Meyering  <meyering@redhat.com>
27903
27904         maint.mk: also prohibit "#undef" of always-defined symbols
27905         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27906         Allow more than one space before the symbol name.
27907         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27908         the regexp uses alternation.
27909
27910 2010-05-26  Eric Blake  <eblake@redhat.com>
27911
27912         maint.mk: avoid echo -e
27913         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27914         Convert all uses of echo -* to printf.
27915         Reported by Matthias Bolte.
27916
27917 2010-05-25  Bruno Haible  <bruno@clisp.org>
27918
27919         Update to GNU gettext 0.18, part 2.
27920         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27921         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27922
27923 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27924
27925         Add missing include in test-pwrite.c.
27926         * tests/test-pwrite.c: Include string.h, for strcmp.
27927
27928 2010-05-24  Bruno Haible  <bruno@clisp.org>
27929
27930         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27931
27932 2010-05-24  Bruno Haible  <bruno@clisp.org>
27933
27934         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27935         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27936         iconveh_error argument.
27937         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27938         U_STRCONV_TO_LOCALE.
27939         * lib/unistr/u16-strcoll.c: Likewise.
27940         * lib/unistr/u32-strcoll.c: Likewise.
27941         * modules/unistr/u8-strcoll (Depends-on): Add
27942         uniconv/u8-strconv-to-enc, localcharset. Remove
27943         uniconv/u8-strconv-to-locale.
27944         (configure.ac): Bump version number.
27945         * modules/unistr/u16-strcoll (Depends-on): Add
27946         uniconv/u16-strconv-to-enc, localcharset. Remove
27947         uniconv/u16-strconv-to-locale.
27948         (configure.ac): Bump version number.
27949         * modules/unistr/u32-strcoll (Depends-on): Add
27950         uniconv/u32-strconv-to-enc, localcharset. Remove
27951         uniconv/u32-strconv-to-locale.
27952         (configure.ac): Bump version number.
27953
27954 2010-05-24  Bruno Haible  <bruno@clisp.org>
27955
27956         Avoid a test failure on NetBSD 5.0.
27957         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27958         an iconv() bug.
27959
27960 2010-05-24  Bruno Haible  <bruno@clisp.org>
27961
27962         Adjust #include directive style.
27963         * modules/regex (Includes): Recommend to write <regex.h>.
27964
27965 2010-05-24  Bruno Haible  <bruno@clisp.org>
27966
27967         regex: Don't require alloca.
27968         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27969         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27970         only inside if (0).
27971
27972 2010-05-23  Jim Meyering  <meyering@redhat.com>
27973
27974         test-renameat.c: include <sys/stat.h>
27975         * tests/test-renameat.c: Include <sys/stat.h>; required for
27976         definition of S_IS* macros.
27977
27978 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27979
27980         Update maintainer documentation for 'relocatable-prog' module.
27981         * doc/relocatable-maint.texi: Update.
27982         Comments by Bruno Haible.
27983
27984 2010-05-23  Bruno Haible  <bruno@clisp.org>
27985
27986         git-merge-changelog: Enable --split-merged-entry by default.
27987         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27988         (usage): Don't mention this option any more.
27989         Reported by Ralf Wildenhues.
27990
27991 2010-05-23  Jim Meyering  <meyering@redhat.com>
27992
27993         test-pwrite: do not leave behind a test file named "out"
27994         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27995         The trivial-looking use of init.sh is really necessary.
27996         It ensures that the temporary file, "out", is created in
27997         a temporary directory, and removed upon termination.
27998         * tests/test-pwrite.sh: Re-add file.
27999         * modules/pwrite-tests: Reference it.
28000
28001 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28002
28003         Fix output redirection buglet in init.sh.
28004         * tests/init.sh: Fix redirection of stderr.
28005
28006 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28007
28008         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28009
28010 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28011
28012         * modules/valgrind-tests: New file.
28013         * m4/valgrind-tests.m4: New file.
28014         * doc/valgrind-tests.texi: New file.
28015         * doc/gnulib.texi (Running self-tests under valgrind): New
28016         section.
28017
28018 2010-05-19  Bruno Haible  <bruno@clisp.org>
28019
28020         Clean up dead code in recent commit.
28021         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28022         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28023         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28024         Suggested by Paolo Bonzini.
28025
28026 2010-05-19  Bruno Haible  <bruno@clisp.org>
28027
28028         Avoid valgrind error reports from libunistring.
28029         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28030         * modules/libunistring (Files): Add it.
28031         * modules/libunistring-optional (Files): Likewise.
28032
28033 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28034             Bruno Haible  <bruno@clisp.org>
28035
28036         New module 'libunistring-optional'.
28037         * modules/libunistring-optional: New file.
28038         * m4/libunistring-base.m4: New file.
28039         * m4/libunistring-optional.m4: New file.
28040         * lib/unicase.in.h: Renamed from lib/unicase.h.
28041         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28042         * lib/unictype.in.h: Renamed from lib/unictype.h.
28043         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28044         * lib/uniname.in.h: Renamed from lib/uniname.h.
28045         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28046         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28047         * lib/unistr.in.h: Renamed from lib/unistr.h.
28048         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28049         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28050         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28051         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28052         gl_LIBUNISTRING. If the library was found, determine the installed
28053         version and set LIBUNISTRING_VERSION.
28054         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28055         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28056         handle a configuration option --with-included-libunistring.
28057         * modules/libunistring (Files): Add m4/absolute-header.m4.
28058         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28059         Add m4/libunistring-base.m4.
28060         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28061         (Makefile.am): Build unicase.h from unicase.in.h.
28062         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28063         Add m4/libunistring-base.m4.
28064         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28065         (Makefile.am): Build uniconv.h from uniconv.in.h.
28066         * modules/unictype/base (Files): Use unictype.in.h instead of
28067         unictype.h. Add m4/libunistring-base.m4.
28068         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28069         (Makefile.am): Build unictype.h from unictype.in.h.
28070         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28071         Add m4/libunistring-base.m4.
28072         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28073         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28074         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28075         Add m4/libunistring-base.m4.
28076         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28077         (Makefile.am): Build uniname.h from uniname.in.h.
28078         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28079         Add m4/libunistring-base.m4.
28080         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28081         (Makefile.am): Build uninorm.h from uninorm.in.h.
28082         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28083         unistdio.h. Add m4/libunistring-base.m4.
28084         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28085         (Makefile.am): Build unistdio.h from unistdio.in.h.
28086         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28087         Add m4/libunistring-base.m4.
28088         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28089         (Makefile.am): Build unistr.h from unistr.in.h.
28090         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28091         Add m4/libunistring-base.m4.
28092         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28093         (Makefile.am): Build unitypes.h from unitypes.in.h.
28094         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28095         Add m4/libunistring-base.m4.
28096         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28097         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28098         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28099         uniwidth.h. Add m4/libunistring-base.m4.
28100         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28101         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28102         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28103         instead of augmenting lib_SOURCES.
28104         * modules/unicase/empty-suffix-context: Likewise.
28105         * modules/unicase/locale-language: Likewise.
28106         * modules/unicase/tolower: Likewise.
28107         * modules/unicase/totitle: Likewise.
28108         * modules/unicase/toupper: Likewise.
28109         * modules/unicase/u8-casecmp: Likewise.
28110         * modules/unicase/u8-casecoll: Likewise.
28111         * modules/unicase/u8-casefold: Likewise.
28112         * modules/unicase/u8-casexfrm: Likewise.
28113         * modules/unicase/u8-ct-casefold: Likewise.
28114         * modules/unicase/u8-ct-tolower: Likewise.
28115         * modules/unicase/u8-ct-totitle: Likewise.
28116         * modules/unicase/u8-ct-toupper: Likewise.
28117         * modules/unicase/u8-is-cased: Likewise.
28118         * modules/unicase/u8-is-casefolded: Likewise.
28119         * modules/unicase/u8-is-lowercase: Likewise.
28120         * modules/unicase/u8-is-titlecase: Likewise.
28121         * modules/unicase/u8-is-uppercase: Likewise.
28122         * modules/unicase/u8-prefix-context: Likewise.
28123         * modules/unicase/u8-suffix-context: Likewise.
28124         * modules/unicase/u8-tolower: Likewise.
28125         * modules/unicase/u8-totitle: Likewise.
28126         * modules/unicase/u8-toupper: Likewise.
28127         * modules/unicase/u16-casecmp: Likewise.
28128         * modules/unicase/u16-casecoll: Likewise.
28129         * modules/unicase/u16-casefold: Likewise.
28130         * modules/unicase/u16-casexfrm: Likewise.
28131         * modules/unicase/u16-ct-casefold: Likewise.
28132         * modules/unicase/u16-ct-tolower: Likewise.
28133         * modules/unicase/u16-ct-totitle: Likewise.
28134         * modules/unicase/u16-ct-toupper: Likewise.
28135         * modules/unicase/u16-is-cased: Likewise.
28136         * modules/unicase/u16-is-casefolded: Likewise.
28137         * modules/unicase/u16-is-lowercase: Likewise.
28138         * modules/unicase/u16-is-titlecase: Likewise.
28139         * modules/unicase/u16-is-uppercase: Likewise.
28140         * modules/unicase/u16-prefix-context: Likewise.
28141         * modules/unicase/u16-suffix-context: Likewise.
28142         * modules/unicase/u16-tolower: Likewise.
28143         * modules/unicase/u16-totitle: Likewise.
28144         * modules/unicase/u16-toupper: Likewise.
28145         * modules/unicase/u32-casecmp: Likewise.
28146         * modules/unicase/u32-casecoll: Likewise.
28147         * modules/unicase/u32-casefold: Likewise.
28148         * modules/unicase/u32-casexfrm: Likewise.
28149         * modules/unicase/u32-ct-casefold: Likewise.
28150         * modules/unicase/u32-ct-tolower: Likewise.
28151         * modules/unicase/u32-ct-totitle: Likewise.
28152         * modules/unicase/u32-ct-toupper: Likewise.
28153         * modules/unicase/u32-is-cased: Likewise.
28154         * modules/unicase/u32-is-casefolded: Likewise.
28155         * modules/unicase/u32-is-lowercase: Likewise.
28156         * modules/unicase/u32-is-titlecase: Likewise.
28157         * modules/unicase/u32-is-uppercase: Likewise.
28158         * modules/unicase/u32-prefix-context: Likewise.
28159         * modules/unicase/u32-suffix-context: Likewise.
28160         * modules/unicase/u32-tolower: Likewise.
28161         * modules/unicase/u32-totitle: Likewise.
28162         * modules/unicase/u32-toupper: Likewise.
28163         * modules/unicase/ulc-casecmp: Likewise.
28164         * modules/unicase/ulc-casecoll: Likewise.
28165         * modules/unicase/ulc-casexfrm: Likewise.
28166         * modules/uniconv/u8-conv-from-enc: Likewise.
28167         * modules/uniconv/u8-conv-to-enc: Likewise.
28168         * modules/uniconv/u8-strconv-from-enc: Likewise.
28169         * modules/uniconv/u8-strconv-from-locale: Likewise.
28170         * modules/uniconv/u8-strconv-to-enc: Likewise.
28171         * modules/uniconv/u8-strconv-to-locale: Likewise.
28172         * modules/uniconv/u16-conv-from-enc: Likewise.
28173         * modules/uniconv/u16-conv-to-enc: Likewise.
28174         * modules/uniconv/u16-strconv-from-enc: Likewise.
28175         * modules/uniconv/u16-strconv-from-locale: Likewise.
28176         * modules/uniconv/u16-strconv-to-enc: Likewise.
28177         * modules/uniconv/u16-strconv-to-locale: Likewise.
28178         * modules/uniconv/u32-conv-from-enc: Likewise.
28179         * modules/uniconv/u32-conv-to-enc: Likewise.
28180         * modules/uniconv/u32-strconv-from-enc: Likewise.
28181         * modules/uniconv/u32-strconv-from-locale: Likewise.
28182         * modules/uniconv/u32-strconv-to-enc: Likewise.
28183         * modules/uniconv/u32-strconv-to-locale: Likewise.
28184         * modules/unictype/bidicategory-byname: Likewise.
28185         * modules/unictype/bidicategory-name: Likewise.
28186         * modules/unictype/bidicategory-of: Likewise.
28187         * modules/unictype/bidicategory-test: Likewise.
28188         * modules/unictype/block-list: Likewise.
28189         * modules/unictype/block-test: Likewise.
28190         * modules/unictype/category-C: Likewise.
28191         * modules/unictype/category-Cc: Likewise.
28192         * modules/unictype/category-Cf: Likewise.
28193         * modules/unictype/category-Cn: Likewise.
28194         * modules/unictype/category-Co: Likewise.
28195         * modules/unictype/category-Cs: Likewise.
28196         * modules/unictype/category-L: Likewise.
28197         * modules/unictype/category-Ll: Likewise.
28198         * modules/unictype/category-Lm: Likewise.
28199         * modules/unictype/category-Lo: Likewise.
28200         * modules/unictype/category-Lt: Likewise.
28201         * modules/unictype/category-Lu: Likewise.
28202         * modules/unictype/category-M: Likewise.
28203         * modules/unictype/category-Mc: Likewise.
28204         * modules/unictype/category-Me: Likewise.
28205         * modules/unictype/category-Mn: Likewise.
28206         * modules/unictype/category-N: Likewise.
28207         * modules/unictype/category-Nd: Likewise.
28208         * modules/unictype/category-Nl: Likewise.
28209         * modules/unictype/category-No: Likewise.
28210         * modules/unictype/category-P: Likewise.
28211         * modules/unictype/category-Pc: Likewise.
28212         * modules/unictype/category-Pd: Likewise.
28213         * modules/unictype/category-Pe: Likewise.
28214         * modules/unictype/category-Pf: Likewise.
28215         * modules/unictype/category-Pi: Likewise.
28216         * modules/unictype/category-Po: Likewise.
28217         * modules/unictype/category-Ps: Likewise.
28218         * modules/unictype/category-S: Likewise.
28219         * modules/unictype/category-Sc: Likewise.
28220         * modules/unictype/category-Sk: Likewise.
28221         * modules/unictype/category-Sm: Likewise.
28222         * modules/unictype/category-So: Likewise.
28223         * modules/unictype/category-Z: Likewise.
28224         * modules/unictype/category-Zl: Likewise.
28225         * modules/unictype/category-Zp: Likewise.
28226         * modules/unictype/category-Zs: Likewise.
28227         * modules/unictype/category-and: Likewise.
28228         * modules/unictype/category-and-not: Likewise.
28229         * modules/unictype/category-byname: Likewise.
28230         * modules/unictype/category-name: Likewise.
28231         * modules/unictype/category-none: Likewise.
28232         * modules/unictype/category-of: Likewise.
28233         * modules/unictype/category-or: Likewise.
28234         * modules/unictype/category-test: Likewise.
28235         * modules/unictype/combining-class: Likewise.
28236         * modules/unictype/ctype-alnum: Likewise.
28237         * modules/unictype/ctype-alpha: Likewise.
28238         * modules/unictype/ctype-blank: Likewise.
28239         * modules/unictype/ctype-cntrl: Likewise.
28240         * modules/unictype/ctype-digit: Likewise.
28241         * modules/unictype/ctype-graph: Likewise.
28242         * modules/unictype/ctype-lower: Likewise.
28243         * modules/unictype/ctype-print: Likewise.
28244         * modules/unictype/ctype-punct: Likewise.
28245         * modules/unictype/ctype-space: Likewise.
28246         * modules/unictype/ctype-upper: Likewise.
28247         * modules/unictype/ctype-xdigit: Likewise.
28248         * modules/unictype/decimal-digit: Likewise.
28249         * modules/unictype/digit: Likewise.
28250         * modules/unictype/mirror: Likewise.
28251         * modules/unictype/numeric: Likewise.
28252         * modules/unictype/property-alphabetic: Likewise.
28253         * modules/unictype/property-ascii-hex-digit: Likewise.
28254         * modules/unictype/property-bidi-arabic-digit: Likewise.
28255         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28256         * modules/unictype/property-bidi-block-separator: Likewise.
28257         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28258         * modules/unictype/property-bidi-common-separator: Likewise.
28259         * modules/unictype/property-bidi-control: Likewise.
28260         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28261         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28262         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28263         * modules/unictype/property-bidi-european-digit: Likewise.
28264         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28265         * modules/unictype/property-bidi-left-to-right: Likewise.
28266         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28267         * modules/unictype/property-bidi-other-neutral: Likewise.
28268         * modules/unictype/property-bidi-pdf: Likewise.
28269         * modules/unictype/property-bidi-segment-separator: Likewise.
28270         * modules/unictype/property-bidi-whitespace: Likewise.
28271         * modules/unictype/property-byname: Likewise.
28272         * modules/unictype/property-combining: Likewise.
28273         * modules/unictype/property-composite: Likewise.
28274         * modules/unictype/property-currency-symbol: Likewise.
28275         * modules/unictype/property-dash: Likewise.
28276         * modules/unictype/property-decimal-digit: Likewise.
28277         * modules/unictype/property-default-ignorable-code-point: Likewise.
28278         * modules/unictype/property-deprecated: Likewise.
28279         * modules/unictype/property-diacritic: Likewise.
28280         * modules/unictype/property-extender: Likewise.
28281         * modules/unictype/property-format-control: Likewise.
28282         * modules/unictype/property-grapheme-base: Likewise.
28283         * modules/unictype/property-grapheme-extend: Likewise.
28284         * modules/unictype/property-grapheme-link: Likewise.
28285         * modules/unictype/property-hex-digit: Likewise.
28286         * modules/unictype/property-hyphen: Likewise.
28287         * modules/unictype/property-id-continue: Likewise.
28288         * modules/unictype/property-id-start: Likewise.
28289         * modules/unictype/property-ideographic: Likewise.
28290         * modules/unictype/property-ids-binary-operator: Likewise.
28291         * modules/unictype/property-ids-trinary-operator: Likewise.
28292         * modules/unictype/property-ignorable-control: Likewise.
28293         * modules/unictype/property-iso-control: Likewise.
28294         * modules/unictype/property-join-control: Likewise.
28295         * modules/unictype/property-left-of-pair: Likewise.
28296         * modules/unictype/property-line-separator: Likewise.
28297         * modules/unictype/property-logical-order-exception: Likewise.
28298         * modules/unictype/property-lowercase: Likewise.
28299         * modules/unictype/property-math: Likewise.
28300         * modules/unictype/property-non-break: Likewise.
28301         * modules/unictype/property-not-a-character: Likewise.
28302         * modules/unictype/property-numeric: Likewise.
28303         * modules/unictype/property-other-alphabetic: Likewise.
28304         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28305         * modules/unictype/property-other-grapheme-extend: Likewise.
28306         * modules/unictype/property-other-id-continue: Likewise.
28307         * modules/unictype/property-other-id-start: Likewise.
28308         * modules/unictype/property-other-lowercase: Likewise.
28309         * modules/unictype/property-other-math: Likewise.
28310         * modules/unictype/property-other-uppercase: Likewise.
28311         * modules/unictype/property-paired-punctuation: Likewise.
28312         * modules/unictype/property-paragraph-separator: Likewise.
28313         * modules/unictype/property-pattern-syntax: Likewise.
28314         * modules/unictype/property-pattern-white-space: Likewise.
28315         * modules/unictype/property-private-use: Likewise.
28316         * modules/unictype/property-punctuation: Likewise.
28317         * modules/unictype/property-quotation-mark: Likewise.
28318         * modules/unictype/property-radical: Likewise.
28319         * modules/unictype/property-sentence-terminal: Likewise.
28320         * modules/unictype/property-soft-dotted: Likewise.
28321         * modules/unictype/property-space: Likewise.
28322         * modules/unictype/property-terminal-punctuation: Likewise.
28323         * modules/unictype/property-test: Likewise.
28324         * modules/unictype/property-titlecase: Likewise.
28325         * modules/unictype/property-unassigned-code-value: Likewise.
28326         * modules/unictype/property-unified-ideograph: Likewise.
28327         * modules/unictype/property-uppercase: Likewise.
28328         * modules/unictype/property-variation-selector: Likewise.
28329         * modules/unictype/property-white-space: Likewise.
28330         * modules/unictype/property-xid-continue: Likewise.
28331         * modules/unictype/property-xid-start: Likewise.
28332         * modules/unictype/property-zero-width: Likewise.
28333         * modules/unictype/scripts: Likewise.
28334         * modules/unictype/syntax-c-ident: Likewise.
28335         * modules/unictype/syntax-c-whitespace: Likewise.
28336         * modules/unictype/syntax-java-ident: Likewise.
28337         * modules/unictype/syntax-java-whitespace: Likewise.
28338         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28339         * modules/unilbrk/u8-width-linebreaks: Likewise.
28340         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28341         * modules/unilbrk/u16-width-linebreaks: Likewise.
28342         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28343         * modules/unilbrk/u32-width-linebreaks: Likewise.
28344         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28345         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28346         * modules/uniname/uniname: Likewise.
28347         * modules/uninorm/canonical-decomposition: Likewise.
28348         * modules/uninorm/composition: Likewise.
28349         * modules/uninorm/decomposing-form: Likewise.
28350         * modules/uninorm/decomposition: Likewise.
28351         * modules/uninorm/filter: Likewise.
28352         * modules/uninorm/nfc: Likewise.
28353         * modules/uninorm/nfd: Likewise.
28354         * modules/uninorm/nfkc: Likewise.
28355         * modules/uninorm/nfkd: Likewise.
28356         * modules/uninorm/u8-normalize: Likewise.
28357         * modules/uninorm/u8-normcmp: Likewise.
28358         * modules/uninorm/u8-normcoll: Likewise.
28359         * modules/uninorm/u8-normxfrm: Likewise.
28360         * modules/uninorm/u16-normalize: Likewise.
28361         * modules/uninorm/u16-normcmp: Likewise.
28362         * modules/uninorm/u16-normcoll: Likewise.
28363         * modules/uninorm/u16-normxfrm: Likewise.
28364         * modules/uninorm/u32-normalize: Likewise.
28365         * modules/uninorm/u32-normcmp: Likewise.
28366         * modules/uninorm/u32-normcoll: Likewise.
28367         * modules/uninorm/u32-normxfrm: Likewise.
28368         * modules/unistdio/u8-asnprintf: Likewise.
28369         * modules/unistdio/u8-asprintf: Likewise.
28370         * modules/unistdio/u8-snprintf: Likewise.
28371         * modules/unistdio/u8-sprintf: Likewise.
28372         * modules/unistdio/u8-u8-asnprintf: Likewise.
28373         * modules/unistdio/u8-u8-asprintf: Likewise.
28374         * modules/unistdio/u8-u8-snprintf: Likewise.
28375         * modules/unistdio/u8-u8-sprintf: Likewise.
28376         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28377         * modules/unistdio/u8-u8-vasprintf: Likewise.
28378         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28379         * modules/unistdio/u8-u8-vsprintf: Likewise.
28380         * modules/unistdio/u8-vasnprintf: Likewise.
28381         * modules/unistdio/u8-vasprintf: Likewise.
28382         * modules/unistdio/u8-vsnprintf: Likewise.
28383         * modules/unistdio/u8-vsprintf: Likewise.
28384         * modules/unistdio/u16-asnprintf: Likewise.
28385         * modules/unistdio/u16-asprintf: Likewise.
28386         * modules/unistdio/u16-snprintf: Likewise.
28387         * modules/unistdio/u16-sprintf: Likewise.
28388         * modules/unistdio/u16-u16-asnprintf: Likewise.
28389         * modules/unistdio/u16-u16-asprintf: Likewise.
28390         * modules/unistdio/u16-u16-snprintf: Likewise.
28391         * modules/unistdio/u16-u16-sprintf: Likewise.
28392         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28393         * modules/unistdio/u16-u16-vasprintf: Likewise.
28394         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28395         * modules/unistdio/u16-u16-vsprintf: Likewise.
28396         * modules/unistdio/u16-vasnprintf: Likewise.
28397         * modules/unistdio/u16-vasprintf: Likewise.
28398         * modules/unistdio/u16-vsnprintf: Likewise.
28399         * modules/unistdio/u16-vsprintf: Likewise.
28400         * modules/unistdio/u32-asnprintf: Likewise.
28401         * modules/unistdio/u32-asprintf: Likewise.
28402         * modules/unistdio/u32-snprintf: Likewise.
28403         * modules/unistdio/u32-sprintf: Likewise.
28404         * modules/unistdio/u32-u32-asnprintf: Likewise.
28405         * modules/unistdio/u32-u32-asprintf: Likewise.
28406         * modules/unistdio/u32-u32-snprintf: Likewise.
28407         * modules/unistdio/u32-u32-sprintf: Likewise.
28408         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28409         * modules/unistdio/u32-u32-vasprintf: Likewise.
28410         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28411         * modules/unistdio/u32-u32-vsprintf: Likewise.
28412         * modules/unistdio/u32-vasnprintf: Likewise.
28413         * modules/unistdio/u32-vasprintf: Likewise.
28414         * modules/unistdio/u32-vsnprintf: Likewise.
28415         * modules/unistdio/u32-vsprintf: Likewise.
28416         * modules/unistdio/ulc-asnprintf: Likewise.
28417         * modules/unistdio/ulc-asprintf: Likewise.
28418         * modules/unistdio/ulc-fprintf: Likewise.
28419         * modules/unistdio/ulc-snprintf: Likewise.
28420         * modules/unistdio/ulc-sprintf: Likewise.
28421         * modules/unistdio/ulc-vasnprintf: Likewise.
28422         * modules/unistdio/ulc-vasprintf: Likewise.
28423         * modules/unistdio/ulc-vfprintf: Likewise.
28424         * modules/unistdio/ulc-vsnprintf: Likewise.
28425         * modules/unistdio/ulc-vsprintf: Likewise.
28426         * modules/unistr/u8-check: Likewise.
28427         * modules/unistr/u8-chr: Likewise.
28428         * modules/unistr/u8-cmp: Likewise.
28429         * modules/unistr/u8-cmp2: Likewise.
28430         * modules/unistr/u8-cpy: Likewise.
28431         * modules/unistr/u8-cpy-alloc: Likewise.
28432         * modules/unistr/u8-endswith: Likewise.
28433         * modules/unistr/u8-mblen: Likewise.
28434         * modules/unistr/u8-mbsnlen: Likewise.
28435         * modules/unistr/u8-mbtouc: Likewise.
28436         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28437         * modules/unistr/u8-mbtoucr: Likewise.
28438         * modules/unistr/u8-move: Likewise.
28439         * modules/unistr/u8-next: Likewise.
28440         * modules/unistr/u8-prev: Likewise.
28441         * modules/unistr/u8-set: Likewise.
28442         * modules/unistr/u8-startswith: Likewise.
28443         * modules/unistr/u8-stpcpy: Likewise.
28444         * modules/unistr/u8-stpncpy: Likewise.
28445         * modules/unistr/u8-strcat: Likewise.
28446         * modules/unistr/u8-strchr: Likewise.
28447         * modules/unistr/u8-strcmp: Likewise.
28448         * modules/unistr/u8-strcoll: Likewise.
28449         * modules/unistr/u8-strcpy: Likewise.
28450         * modules/unistr/u8-strcspn: Likewise.
28451         * modules/unistr/u8-strdup: Likewise.
28452         * modules/unistr/u8-strlen: Likewise.
28453         * modules/unistr/u8-strmblen: Likewise.
28454         * modules/unistr/u8-strmbtouc: Likewise.
28455         * modules/unistr/u8-strncat: Likewise.
28456         * modules/unistr/u8-strncmp: Likewise.
28457         * modules/unistr/u8-strncpy: Likewise.
28458         * modules/unistr/u8-strnlen: Likewise.
28459         * modules/unistr/u8-strpbrk: Likewise.
28460         * modules/unistr/u8-strrchr: Likewise.
28461         * modules/unistr/u8-strspn: Likewise.
28462         * modules/unistr/u8-strstr: Likewise.
28463         * modules/unistr/u8-strtok: Likewise.
28464         * modules/unistr/u8-to-u16: Likewise.
28465         * modules/unistr/u8-to-u32: Likewise.
28466         * modules/unistr/u8-uctomb: Likewise.
28467         * modules/unistr/u16-check: Likewise.
28468         * modules/unistr/u16-chr: Likewise.
28469         * modules/unistr/u16-cmp: Likewise.
28470         * modules/unistr/u16-cmp2: Likewise.
28471         * modules/unistr/u16-cpy: Likewise.
28472         * modules/unistr/u16-cpy-alloc: Likewise.
28473         * modules/unistr/u16-endswith: Likewise.
28474         * modules/unistr/u16-mblen: Likewise.
28475         * modules/unistr/u16-mbsnlen: Likewise.
28476         * modules/unistr/u16-mbtouc: Likewise.
28477         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28478         * modules/unistr/u16-mbtoucr: Likewise.
28479         * modules/unistr/u16-move: Likewise.
28480         * modules/unistr/u16-next: Likewise.
28481         * modules/unistr/u16-prev: Likewise.
28482         * modules/unistr/u16-set: Likewise.
28483         * modules/unistr/u16-startswith: Likewise.
28484         * modules/unistr/u16-stpcpy: Likewise.
28485         * modules/unistr/u16-stpncpy: Likewise.
28486         * modules/unistr/u16-strcat: Likewise.
28487         * modules/unistr/u16-strchr: Likewise.
28488         * modules/unistr/u16-strcmp: Likewise.
28489         * modules/unistr/u16-strcoll: Likewise.
28490         * modules/unistr/u16-strcpy: Likewise.
28491         * modules/unistr/u16-strcspn: Likewise.
28492         * modules/unistr/u16-strdup: Likewise.
28493         * modules/unistr/u16-strlen: Likewise.
28494         * modules/unistr/u16-strmblen: Likewise.
28495         * modules/unistr/u16-strmbtouc: Likewise.
28496         * modules/unistr/u16-strncat: Likewise.
28497         * modules/unistr/u16-strncmp: Likewise.
28498         * modules/unistr/u16-strncpy: Likewise.
28499         * modules/unistr/u16-strnlen: Likewise.
28500         * modules/unistr/u16-strpbrk: Likewise.
28501         * modules/unistr/u16-strrchr: Likewise.
28502         * modules/unistr/u16-strspn: Likewise.
28503         * modules/unistr/u16-strstr: Likewise.
28504         * modules/unistr/u16-strtok: Likewise.
28505         * modules/unistr/u16-to-u32: Likewise.
28506         * modules/unistr/u16-to-u8: Likewise.
28507         * modules/unistr/u16-uctomb: Likewise.
28508         * modules/unistr/u32-check: Likewise.
28509         * modules/unistr/u32-chr: Likewise.
28510         * modules/unistr/u32-cmp: Likewise.
28511         * modules/unistr/u32-cmp2: Likewise.
28512         * modules/unistr/u32-cpy: Likewise.
28513         * modules/unistr/u32-cpy-alloc: Likewise.
28514         * modules/unistr/u32-endswith: Likewise.
28515         * modules/unistr/u32-mblen: Likewise.
28516         * modules/unistr/u32-mbsnlen: Likewise.
28517         * modules/unistr/u32-mbtouc: Likewise.
28518         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28519         * modules/unistr/u32-mbtoucr: Likewise.
28520         * modules/unistr/u32-move: Likewise.
28521         * modules/unistr/u32-next: Likewise.
28522         * modules/unistr/u32-prev: Likewise.
28523         * modules/unistr/u32-set: Likewise.
28524         * modules/unistr/u32-startswith: Likewise.
28525         * modules/unistr/u32-stpcpy: Likewise.
28526         * modules/unistr/u32-stpncpy: Likewise.
28527         * modules/unistr/u32-strcat: Likewise.
28528         * modules/unistr/u32-strchr: Likewise.
28529         * modules/unistr/u32-strcmp: Likewise.
28530         * modules/unistr/u32-strcoll: Likewise.
28531         * modules/unistr/u32-strcpy: Likewise.
28532         * modules/unistr/u32-strcspn: Likewise.
28533         * modules/unistr/u32-strdup: Likewise.
28534         * modules/unistr/u32-strlen: Likewise.
28535         * modules/unistr/u32-strmblen: Likewise.
28536         * modules/unistr/u32-strmbtouc: Likewise.
28537         * modules/unistr/u32-strncat: Likewise.
28538         * modules/unistr/u32-strncmp: Likewise.
28539         * modules/unistr/u32-strncpy: Likewise.
28540         * modules/unistr/u32-strnlen: Likewise.
28541         * modules/unistr/u32-strpbrk: Likewise.
28542         * modules/unistr/u32-strrchr: Likewise.
28543         * modules/unistr/u32-strspn: Likewise.
28544         * modules/unistr/u32-strstr: Likewise.
28545         * modules/unistr/u32-strtok: Likewise.
28546         * modules/unistr/u32-to-u16: Likewise.
28547         * modules/unistr/u32-to-u8: Likewise.
28548         * modules/unistr/u32-uctomb: Likewise.
28549         * modules/uniwbrk/u8-wordbreaks: Likewise.
28550         * modules/uniwbrk/u16-wordbreaks: Likewise.
28551         * modules/uniwbrk/u32-wordbreaks: Likewise.
28552         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28553         * modules/uniwbrk/wordbreak-property: Likewise.
28554         * modules/uniwidth/u8-strwidth: Likewise.
28555         * modules/uniwidth/u8-width: Likewise.
28556         * modules/uniwidth/u16-strwidth: Likewise.
28557         * modules/uniwidth/u16-width: Likewise.
28558         * modules/uniwidth/u32-strwidth: Likewise.
28559         * modules/uniwidth/u32-width: Likewise.
28560         * modules/uniwidth/width: Likewise.
28561         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28562         with $(LIBUNISTRING).
28563         * modules/unicase/ignorable-tests: Likewise.
28564         * modules/unicase/locale-language-tests: Likewise.
28565         * modules/unicase/tolower-tests: Likewise.
28566         * modules/unicase/totitle-tests: Likewise.
28567         * modules/unicase/toupper-tests: Likewise.
28568         * modules/unicase/u8-casecmp-tests: Likewise.
28569         * modules/unicase/u8-casecoll-tests: Likewise.
28570         * modules/unicase/u8-casefold-tests: Likewise.
28571         * modules/unicase/u8-is-cased-tests: Likewise.
28572         * modules/unicase/u8-is-casefolded-tests: Likewise.
28573         * modules/unicase/u8-is-lowercase-tests: Likewise.
28574         * modules/unicase/u8-is-titlecase-tests: Likewise.
28575         * modules/unicase/u8-is-uppercase-tests: Likewise.
28576         * modules/unicase/u8-tolower-tests: Likewise.
28577         * modules/unicase/u8-totitle-tests: Likewise.
28578         * modules/unicase/u8-toupper-tests: Likewise.
28579         * modules/unicase/u16-casecmp-tests: Likewise.
28580         * modules/unicase/u16-casecoll-tests: Likewise.
28581         * modules/unicase/u16-casefold-tests: Likewise.
28582         * modules/unicase/u16-is-cased-tests: Likewise.
28583         * modules/unicase/u16-is-casefolded-tests: Likewise.
28584         * modules/unicase/u16-is-lowercase-tests: Likewise.
28585         * modules/unicase/u16-is-titlecase-tests: Likewise.
28586         * modules/unicase/u16-is-uppercase-tests: Likewise.
28587         * modules/unicase/u16-tolower-tests: Likewise.
28588         * modules/unicase/u16-totitle-tests: Likewise.
28589         * modules/unicase/u16-toupper-tests: Likewise.
28590         * modules/unicase/u32-casecmp-tests: Likewise.
28591         * modules/unicase/u32-casecoll-tests: Likewise.
28592         * modules/unicase/u32-casefold-tests: Likewise.
28593         * modules/unicase/u32-is-cased-tests: Likewise.
28594         * modules/unicase/u32-is-casefolded-tests: Likewise.
28595         * modules/unicase/u32-is-lowercase-tests: Likewise.
28596         * modules/unicase/u32-is-titlecase-tests: Likewise.
28597         * modules/unicase/u32-is-uppercase-tests: Likewise.
28598         * modules/unicase/u32-tolower-tests: Likewise.
28599         * modules/unicase/u32-totitle-tests: Likewise.
28600         * modules/unicase/u32-toupper-tests: Likewise.
28601         * modules/unicase/ulc-casecmp-tests: Likewise.
28602         * modules/unicase/ulc-casecoll-tests: Likewise.
28603         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28604         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28605         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28606         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28607         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28608         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28609         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28610         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28611         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28612         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28613         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28614         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28615         * modules/unictype/bidicategory-byname-tests: Likewise.
28616         * modules/unictype/bidicategory-name-tests: Likewise.
28617         * modules/unictype/bidicategory-of-tests: Likewise.
28618         * modules/unictype/bidicategory-test-tests: Likewise.
28619         * modules/unictype/block-list-tests: Likewise.
28620         * modules/unictype/block-of-tests: Likewise.
28621         * modules/unictype/block-test-tests: Likewise.
28622         * modules/unictype/category-C-tests: Likewise.
28623         * modules/unictype/category-Cc-tests: Likewise.
28624         * modules/unictype/category-Cf-tests: Likewise.
28625         * modules/unictype/category-Cn-tests: Likewise.
28626         * modules/unictype/category-Co-tests: Likewise.
28627         * modules/unictype/category-Cs-tests: Likewise.
28628         * modules/unictype/category-L-tests: Likewise.
28629         * modules/unictype/category-Ll-tests: Likewise.
28630         * modules/unictype/category-Lm-tests: Likewise.
28631         * modules/unictype/category-Lo-tests: Likewise.
28632         * modules/unictype/category-Lt-tests: Likewise.
28633         * modules/unictype/category-Lu-tests: Likewise.
28634         * modules/unictype/category-M-tests: Likewise.
28635         * modules/unictype/category-Mc-tests: Likewise.
28636         * modules/unictype/category-Me-tests: Likewise.
28637         * modules/unictype/category-Mn-tests: Likewise.
28638         * modules/unictype/category-N-tests: Likewise.
28639         * modules/unictype/category-Nd-tests: Likewise.
28640         * modules/unictype/category-Nl-tests: Likewise.
28641         * modules/unictype/category-No-tests: Likewise.
28642         * modules/unictype/category-P-tests: Likewise.
28643         * modules/unictype/category-Pc-tests: Likewise.
28644         * modules/unictype/category-Pd-tests: Likewise.
28645         * modules/unictype/category-Pe-tests: Likewise.
28646         * modules/unictype/category-Pf-tests: Likewise.
28647         * modules/unictype/category-Pi-tests: Likewise.
28648         * modules/unictype/category-Po-tests: Likewise.
28649         * modules/unictype/category-Ps-tests: Likewise.
28650         * modules/unictype/category-S-tests: Likewise.
28651         * modules/unictype/category-Sc-tests: Likewise.
28652         * modules/unictype/category-Sk-tests: Likewise.
28653         * modules/unictype/category-Sm-tests: Likewise.
28654         * modules/unictype/category-So-tests: Likewise.
28655         * modules/unictype/category-Z-tests: Likewise.
28656         * modules/unictype/category-Zl-tests: Likewise.
28657         * modules/unictype/category-Zp-tests: Likewise.
28658         * modules/unictype/category-Zs-tests: Likewise.
28659         * modules/unictype/category-and-not-tests: Likewise.
28660         * modules/unictype/category-and-tests: Likewise.
28661         * modules/unictype/category-byname-tests: Likewise.
28662         * modules/unictype/category-name-tests: Likewise.
28663         * modules/unictype/category-none-tests: Likewise.
28664         * modules/unictype/category-of-tests: Likewise.
28665         * modules/unictype/category-or-tests: Likewise.
28666         * modules/unictype/category-test-withtable-tests: Likewise.
28667         * modules/unictype/combining-class-tests: Likewise.
28668         * modules/unictype/ctype-alnum-tests: Likewise.
28669         * modules/unictype/ctype-alpha-tests: Likewise.
28670         * modules/unictype/ctype-blank-tests: Likewise.
28671         * modules/unictype/ctype-cntrl-tests: Likewise.
28672         * modules/unictype/ctype-digit-tests: Likewise.
28673         * modules/unictype/ctype-graph-tests: Likewise.
28674         * modules/unictype/ctype-lower-tests: Likewise.
28675         * modules/unictype/ctype-print-tests: Likewise.
28676         * modules/unictype/ctype-punct-tests: Likewise.
28677         * modules/unictype/ctype-space-tests: Likewise.
28678         * modules/unictype/ctype-upper-tests: Likewise.
28679         * modules/unictype/ctype-xdigit-tests: Likewise.
28680         * modules/unictype/decimal-digit-tests: Likewise.
28681         * modules/unictype/digit-tests: Likewise.
28682         * modules/unictype/mirror-tests: Likewise.
28683         * modules/unictype/numeric-tests: Likewise.
28684         * modules/unictype/property-alphabetic-tests: Likewise.
28685         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28686         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28687         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28688         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28689         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28690         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28691         * modules/unictype/property-bidi-control-tests: Likewise.
28692         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28693         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28694         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28695         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28696         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28697         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28698         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28699         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28700         * modules/unictype/property-bidi-pdf-tests: Likewise.
28701         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28702         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28703         * modules/unictype/property-byname-tests: Likewise.
28704         * modules/unictype/property-combining-tests: Likewise.
28705         * modules/unictype/property-composite-tests: Likewise.
28706         * modules/unictype/property-currency-symbol-tests: Likewise.
28707         * modules/unictype/property-dash-tests: Likewise.
28708         * modules/unictype/property-decimal-digit-tests: Likewise.
28709         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28710         * modules/unictype/property-deprecated-tests: Likewise.
28711         * modules/unictype/property-diacritic-tests: Likewise.
28712         * modules/unictype/property-extender-tests: Likewise.
28713         * modules/unictype/property-format-control-tests: Likewise.
28714         * modules/unictype/property-grapheme-base-tests: Likewise.
28715         * modules/unictype/property-grapheme-extend-tests: Likewise.
28716         * modules/unictype/property-grapheme-link-tests: Likewise.
28717         * modules/unictype/property-hex-digit-tests: Likewise.
28718         * modules/unictype/property-hyphen-tests: Likewise.
28719         * modules/unictype/property-id-continue-tests: Likewise.
28720         * modules/unictype/property-id-start-tests: Likewise.
28721         * modules/unictype/property-ideographic-tests: Likewise.
28722         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28723         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28724         * modules/unictype/property-ignorable-control-tests: Likewise.
28725         * modules/unictype/property-iso-control-tests: Likewise.
28726         * modules/unictype/property-join-control-tests: Likewise.
28727         * modules/unictype/property-left-of-pair-tests: Likewise.
28728         * modules/unictype/property-line-separator-tests: Likewise.
28729         * modules/unictype/property-logical-order-exception-tests: Likewise.
28730         * modules/unictype/property-lowercase-tests: Likewise.
28731         * modules/unictype/property-math-tests: Likewise.
28732         * modules/unictype/property-non-break-tests: Likewise.
28733         * modules/unictype/property-not-a-character-tests: Likewise.
28734         * modules/unictype/property-numeric-tests: Likewise.
28735         * modules/unictype/property-other-alphabetic-tests: Likewise.
28736         * modules/unictype/property-other-default-ignorable-code-point-tests:
28737         Likewise.
28738         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28739         * modules/unictype/property-other-id-continue-tests: Likewise.
28740         * modules/unictype/property-other-id-start-tests: Likewise.
28741         * modules/unictype/property-other-lowercase-tests: Likewise.
28742         * modules/unictype/property-other-math-tests: Likewise.
28743         * modules/unictype/property-other-uppercase-tests: Likewise.
28744         * modules/unictype/property-paired-punctuation-tests: Likewise.
28745         * modules/unictype/property-paragraph-separator-tests: Likewise.
28746         * modules/unictype/property-pattern-syntax-tests: Likewise.
28747         * modules/unictype/property-pattern-white-space-tests: Likewise.
28748         * modules/unictype/property-private-use-tests: Likewise.
28749         * modules/unictype/property-punctuation-tests: Likewise.
28750         * modules/unictype/property-quotation-mark-tests: Likewise.
28751         * modules/unictype/property-radical-tests: Likewise.
28752         * modules/unictype/property-sentence-terminal-tests: Likewise.
28753         * modules/unictype/property-soft-dotted-tests: Likewise.
28754         * modules/unictype/property-space-tests: Likewise.
28755         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28756         * modules/unictype/property-test-tests: Likewise.
28757         * modules/unictype/property-titlecase-tests: Likewise.
28758         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28759         * modules/unictype/property-unified-ideograph-tests: Likewise.
28760         * modules/unictype/property-uppercase-tests: Likewise.
28761         * modules/unictype/property-variation-selector-tests: Likewise.
28762         * modules/unictype/property-white-space-tests: Likewise.
28763         * modules/unictype/property-xid-continue-tests: Likewise.
28764         * modules/unictype/property-xid-start-tests: Likewise.
28765         * modules/unictype/property-zero-width-tests: Likewise.
28766         * modules/unictype/scripts-tests: Likewise.
28767         * modules/unictype/syntax-c-ident-tests: Likewise.
28768         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28769         * modules/unictype/syntax-java-ident-tests: Likewise.
28770         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28771         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28772         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28773         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28774         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28775         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28776         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28777         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28778         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28779         * modules/uniname/uniname-tests: Likewise.
28780         * modules/uninorm/canonical-decomposition-tests: Likewise.
28781         * modules/uninorm/compat-decomposition-tests: Likewise.
28782         * modules/uninorm/composition-tests: Likewise.
28783         * modules/uninorm/decomposing-form-tests: Likewise.
28784         * modules/uninorm/decomposition-tests: Likewise.
28785         * modules/uninorm/filter-tests: Likewise.
28786         * modules/uninorm/nfc-tests: Likewise.
28787         * modules/uninorm/nfd-tests: Likewise.
28788         * modules/uninorm/nfkc-tests: Likewise.
28789         * modules/uninorm/nfkd-tests: Likewise.
28790         * modules/uninorm/u8-normcmp-tests: Likewise.
28791         * modules/uninorm/u8-normcoll-tests: Likewise.
28792         * modules/uninorm/u16-normcmp-tests: Likewise.
28793         * modules/uninorm/u16-normcoll-tests: Likewise.
28794         * modules/uninorm/u32-normcmp-tests: Likewise.
28795         * modules/uninorm/u32-normcoll-tests: Likewise.
28796         * modules/unistdio/u8-asnprintf-tests: Likewise.
28797         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28798         * modules/unistdio/u8-vasprintf-tests: Likewise.
28799         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28800         * modules/unistdio/u8-vsprintf-tests: Likewise.
28801         * modules/unistdio/u16-asnprintf-tests: Likewise.
28802         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28803         * modules/unistdio/u16-vasprintf-tests: Likewise.
28804         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28805         * modules/unistdio/u16-vsprintf-tests: Likewise.
28806         * modules/unistdio/u32-asnprintf-tests: Likewise.
28807         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28808         * modules/unistdio/u32-vasprintf-tests: Likewise.
28809         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28810         * modules/unistdio/u32-vsprintf-tests: Likewise.
28811         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28812         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28813         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28814         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28815         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28816         * modules/unistr/u8-check-tests: Likewise.
28817         * modules/unistr/u8-chr-tests: Likewise.
28818         * modules/unistr/u8-cmp-tests: Likewise.
28819         * modules/unistr/u8-cmp2-tests: Likewise.
28820         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28821         * modules/unistr/u8-cpy-tests: Likewise.
28822         * modules/unistr/u8-mblen-tests: Likewise.
28823         * modules/unistr/u8-mbsnlen-tests: Likewise.
28824         * modules/unistr/u8-mbtouc-tests: Likewise.
28825         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28826         * modules/unistr/u8-mbtoucr-tests: Likewise.
28827         * modules/unistr/u8-move-tests: Likewise.
28828         * modules/unistr/u8-next-tests: Likewise.
28829         * modules/unistr/u8-prev-tests: Likewise.
28830         * modules/unistr/u8-set-tests: Likewise.
28831         * modules/unistr/u8-stpcpy-tests: Likewise.
28832         * modules/unistr/u8-stpncpy-tests: Likewise.
28833         * modules/unistr/u8-strcat-tests: Likewise.
28834         * modules/unistr/u8-strcmp-tests: Likewise.
28835         * modules/unistr/u8-strcoll-tests: Likewise.
28836         * modules/unistr/u8-strcpy-tests: Likewise.
28837         * modules/unistr/u8-strdup-tests: Likewise.
28838         * modules/unistr/u8-strlen-tests: Likewise.
28839         * modules/unistr/u8-strmblen-tests: Likewise.
28840         * modules/unistr/u8-strmbtouc-tests: Likewise.
28841         * modules/unistr/u8-strncat-tests: Likewise.
28842         * modules/unistr/u8-strncmp-tests: Likewise.
28843         * modules/unistr/u8-strncpy-tests: Likewise.
28844         * modules/unistr/u8-strnlen-tests: Likewise.
28845         * modules/unistr/u8-to-u16-tests: Likewise.
28846         * modules/unistr/u8-to-u32-tests: Likewise.
28847         * modules/unistr/u8-uctomb-tests: Likewise.
28848         * modules/unistr/u16-check-tests: Likewise.
28849         * modules/unistr/u16-chr-tests: Likewise.
28850         * modules/unistr/u16-cmp-tests: Likewise.
28851         * modules/unistr/u16-cmp2-tests: Likewise.
28852         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28853         * modules/unistr/u16-cpy-tests: Likewise.
28854         * modules/unistr/u16-mblen-tests: Likewise.
28855         * modules/unistr/u16-mbsnlen-tests: Likewise.
28856         * modules/unistr/u16-mbtouc-tests: Likewise.
28857         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28858         * modules/unistr/u16-mbtoucr-tests: Likewise.
28859         * modules/unistr/u16-move-tests: Likewise.
28860         * modules/unistr/u16-next-tests: Likewise.
28861         * modules/unistr/u16-prev-tests: Likewise.
28862         * modules/unistr/u16-set-tests: Likewise.
28863         * modules/unistr/u16-stpcpy-tests: Likewise.
28864         * modules/unistr/u16-stpncpy-tests: Likewise.
28865         * modules/unistr/u16-strcat-tests: Likewise.
28866         * modules/unistr/u16-strcmp-tests: Likewise.
28867         * modules/unistr/u16-strcoll-tests: Likewise.
28868         * modules/unistr/u16-strcpy-tests: Likewise.
28869         * modules/unistr/u16-strdup-tests: Likewise.
28870         * modules/unistr/u16-strlen-tests: Likewise.
28871         * modules/unistr/u16-strmblen-tests: Likewise.
28872         * modules/unistr/u16-strmbtouc-tests: Likewise.
28873         * modules/unistr/u16-strncat-tests: Likewise.
28874         * modules/unistr/u16-strncmp-tests: Likewise.
28875         * modules/unistr/u16-strncpy-tests: Likewise.
28876         * modules/unistr/u16-strnlen-tests: Likewise.
28877         * modules/unistr/u16-to-u32-tests: Likewise.
28878         * modules/unistr/u16-to-u8-tests: Likewise.
28879         * modules/unistr/u16-uctomb-tests: Likewise.
28880         * modules/unistr/u32-check-tests: Likewise.
28881         * modules/unistr/u32-chr-tests: Likewise.
28882         * modules/unistr/u32-cmp-tests: Likewise.
28883         * modules/unistr/u32-cmp2-tests: Likewise.
28884         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28885         * modules/unistr/u32-cpy-tests: Likewise.
28886         * modules/unistr/u32-mblen-tests: Likewise.
28887         * modules/unistr/u32-mbsnlen-tests: Likewise.
28888         * modules/unistr/u32-mbtouc-tests: Likewise.
28889         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28890         * modules/unistr/u32-mbtoucr-tests: Likewise.
28891         * modules/unistr/u32-move-tests: Likewise.
28892         * modules/unistr/u32-next-tests: Likewise.
28893         * modules/unistr/u32-prev-tests: Likewise.
28894         * modules/unistr/u32-set-tests: Likewise.
28895         * modules/unistr/u32-stpcpy-tests: Likewise.
28896         * modules/unistr/u32-stpncpy-tests: Likewise.
28897         * modules/unistr/u32-strcat-tests: Likewise.
28898         * modules/unistr/u32-strcmp-tests: Likewise.
28899         * modules/unistr/u32-strcoll-tests: Likewise.
28900         * modules/unistr/u32-strcpy-tests: Likewise.
28901         * modules/unistr/u32-strdup-tests: Likewise.
28902         * modules/unistr/u32-strlen-tests: Likewise.
28903         * modules/unistr/u32-strmblen-tests: Likewise.
28904         * modules/unistr/u32-strmbtouc-tests: Likewise.
28905         * modules/unistr/u32-strncat-tests: Likewise.
28906         * modules/unistr/u32-strncmp-tests: Likewise.
28907         * modules/unistr/u32-strncpy-tests: Likewise.
28908         * modules/unistr/u32-strnlen-tests: Likewise.
28909         * modules/unistr/u32-to-u16-tests: Likewise.
28910         * modules/unistr/u32-to-u8-tests: Likewise.
28911         * modules/unistr/u32-uctomb-tests: Likewise.
28912         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28913         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28914         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28915         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28916         * modules/uniwidth/u8-strwidth-tests: Likewise.
28917         * modules/uniwidth/u8-width-tests: Likewise.
28918         * modules/uniwidth/u16-strwidth-tests: Likewise.
28919         * modules/uniwidth/u16-width-tests: Likewise.
28920         * modules/uniwidth/u32-strwidth-tests: Likewise.
28921         * modules/uniwidth/u32-width-tests: Likewise.
28922         * modules/uniwidth/width-tests: Likewise.
28923
28924 2010-05-18  Richard Jones  <rjones@redhat.com>
28925
28926         doc: users.txt: list hivex
28927         * users.txt: Add hivex.
28928
28929 2010-05-18  Richard Jones  <rjones@redhat.com>
28930
28931         doc: users.txt: list febootstrap
28932         * users.txt: Add febootstrap.
28933
28934 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28935
28936         bootstrap: fix an error when gnulib is not used as a git submodule
28937         * build-aux/bootstrap (gnulib_path): If its length is zero then
28938         assign "gnulib" to it.
28939         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28940
28941 2010-05-16  Bruno Haible  <bruno@clisp.org>
28942
28943         Avoid autoconf warnings about AM_ICONV.
28944         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28945         2.64.
28946
28947 2010-05-16  Bruno Haible  <bruno@clisp.org>
28948
28949         absolute-header: Make the macro usable in more situations.
28950         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28951         from gl_ABSOLUTE_HEADER.
28952         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28953
28954 2010-05-16  James Youngman  <jay@gnu.org>
28955
28956         doc: update users.txt
28957         * users.txt: Add CSSC.
28958
28959 2010-05-16  Jim Meyering  <meyering@redhat.com>
28960
28961         init.sh: fix an error in the previous change; add more comments
28962         * tests/init.sh: Compare exit code in loop against 9, not 2.
28963         Patch by Bruno Haible.
28964         Make the two tests more similar by adding an empty "then" clause.
28965         Add comments.
28966
28967         init.sh: avoid unnecessary shell re-exec
28968         * tests/init.sh: Improve the re-exec-required check to first test the
28969         current shell.  If it passes the test, do not search for a shell that
28970         does pass, and do not re-exec.  This test is particularly contorted to
28971         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28972         of $(...) evokes a syntax error and causes immediate shell exit with
28973         status 2.  Bruno Haible reported that the re-exec made it impossible
28974         to single-step through any init.sh-using script.
28975
28976 2010-05-16  Bruno Haible  <bruno@clisp.org>
28977
28978         Fix collision between gnulib's and libintl's printf replacements.
28979         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28980         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28981         (printf): When using GNU C, map the __printf__ function to rpl_printf
28982         via __asm__. When not using GNU C, define rpl_printf instead of
28983         __printf__.
28984         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28985         commit.
28986         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28987         commit.
28988         * m4/asm-underscore.m4: New file.
28989         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28990         * modules/stdio (Files): Add m4/asm-underscore.m4.
28991         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28992         Reported by Ben Pfaff.
28993
28994 2010-05-16  Bruno Haible  <bruno@clisp.org>
28995
28996         verify: Avoid skipping the test on openSUSE 11.0.
28997         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28998
28999 2010-05-13  Bruno Haible  <bruno@clisp.org>
29000
29001         Avoid useless warnings from G++.
29002         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29003         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29004         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29005
29006 2010-05-11  Jim Meyering  <meyering@redhat.com>
29007
29008         maint.mk: tweak preceding change
29009         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29010         regexps tighter by anchoring at EOL, and make the new group "shy"
29011         for slightly decreased overhead.
29012
29013 2010-05-11  Eric Blake  <eblake@redhat.com>
29014
29015         maint.mk: gnulib doesn't guarantee NSIG
29016         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29017
29018 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29019
29020         test-pwrite.c: Remove unused variable declaration.
29021         * tests/test-pwrite.c (main): Remove read_buf declaration.
29022
29023         Remove useless test-pwrite.sh file.
29024         * tests/test-pwrite.sh: Delete file.
29025         * modules/pwrite-tests: Remove references.
29026         Reported by Bruno Haible.
29027
29028 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29029
29030         init.sh: fix a typo
29031         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29032
29033 2010-05-10  Jim Meyering  <meyering@redhat.com>
29034
29035         maint.mk: avoid using a temporary file in the always-defined-macros check
29036         * top/maint.mk (.re-defmac): Remove rule.
29037         (gl_trap_): Remove definition.
29038         (sc_prohibit_always-defined_macros): Rewrite not to create and
29039         depend on a temporary file.  Instead, depend on GNU grep's ability
29040         to read a list of regular expressions from stdin when given "-f -".
29041
29042 2010-05-09  Bruno Haible  <bruno@clisp.org>
29043
29044         Update to GNU gettext 0.18, part 1.
29045         * m4/gettext.m4: Update to GNU gettext 0.18.
29046         * m4/intl.m4: Likewise.
29047         * m4/po.m4: Likewise.
29048         * modules/gettext (Files): Add m4/fcntl-o.m4.
29049         (configure.ac): Require gettext infrastructure from version 0.18.
29050
29051 2010-05-09  Jim Meyering  <meyering@redhat.com>
29052
29053         init.sh: enable MALLOC_PERTURB_
29054         * tests/init.sh: Enable glibc's malloc-perturbing option.
29055
29056         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29057         With my recent change in init.sh from the two-line form:
29058             -#   : ${srcdir=.}
29059             -#   . "$srcdir/init.sh"; path_prepend_ .
29060             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29061         I noticed that using the one-line form would cause this test
29062         to fail with a false-positive, or to stop working altogether,
29063         depending on whether help-version changed or all the tests did.
29064         * top/maint.mk (_hv_regex): Remove this definition.
29065         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29066         (_hv_regex_strong): Use a stronger regex to check for conformance.
29067         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29068         Give a separate diagnostic for lack of conforming use.
29069
29070         maint.mk: prohibit definition of symbols defined by gnulib
29071         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29072         definition of symbols defined by gnulib.
29073
29074 2010-05-09  Bruno Haible  <bruno@clisp.org>
29075
29076         acl: Avoid test failure on Cygwin-hosted mingw.
29077         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29078
29079 2010-05-09  Bruno Haible  <bruno@clisp.org>
29080
29081         error: Use system's fcntl function.
29082         * lib/error.c (fcntl): Undefine.
29083
29084 2010-05-09  Jim Meyering  <meyering@redhat.com>
29085
29086         verify: adjust formatting to be more consistent
29087         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29088         argument-list '('s, and after one comma.
29089
29090 2010-05-09  Bruno Haible  <bruno@clisp.org>
29091
29092         error: More reliable output on mingw.
29093         * lib/error.c: Include <windows.h>.
29094         (is_open): New function.
29095         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29096         defined.
29097
29098 2010-05-09  Bruno Haible  <bruno@clisp.org>
29099
29100         vasnprintf: Fix syntax errors in libintl build on mingw.
29101         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29102         pad_ourselves and prec_ourselves after use.
29103
29104 2010-05-08  Bruno Haible  <bruno@clisp.org>
29105
29106         * lib/config.charset: Update comments for Cygwin 1.7.
29107         * lib/localcharset.c: Likewise.
29108
29109 2010-05-07  Jim Meyering  <meyering@redhat.com>
29110
29111         init.sh: improve comments
29112         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29113         . "${srcdir=.}/init.sh"; path_prepend_ .
29114         Add a note about path_prepend_ and the alternative of using
29115         TESTS_ENVIRONMENT.
29116
29117 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29118
29119         exclude: Unescape hashed patterns in wildcard mode.
29120         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29121         to the hash list.
29122         * tests/test-exclude8.sh: New test case.
29123         * modules/exclude-tests: Add new test.
29124
29125 2010-05-05  Eric Blake  <eblake@redhat.com>
29126
29127         verify: automate tests
29128         * modules/verify-tests: New module.
29129         * tests/test-verify.sh: New file.
29130         * tests/test-verify.c: Guard each negative test with a unique id.
29131         Also avoid warning about unused left hand of comma expressions.
29132
29133 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29134
29135         Further improvements to verify.h, suggested by Eric Blake.
29136         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29137         the GL_* versions, to avoid collision with OpenGL.
29138         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29139         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29140         than testing merely whether it's defined.
29141
29142         Modify verify.h to pacify gcc -Wredundant_decls.
29143         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29144         These use the prefix "GL_" since they're likely to be useful elsewhere.
29145         We may need to break them out into a different .h file.
29146         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29147         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29148         of verify_function__.
29149
29150 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29151
29152         Tests for module pwrite.
29153         * modules/pwrite-tests: New file.
29154         * tests/test-pwrite.sh: New file.
29155         * tests/test-pwrite.c: New file.
29156
29157         New module pwrite.
29158         * lib/unistd.in.h (pwrite): New declaration.
29159         * lib/pwrite.c: New file, from glibc with modifications.
29160         * m4/pwrite.m4: New file.
29161         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29162         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29163         REPLACE_PWRITE.
29164         * modules/pwrite: New file.
29165         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29166         REPLACE_PWRITE.
29167         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29168         * doc/posix-functions/pwrite.texi: Mention the new module.
29169
29170 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29171
29172         pread: Update documentation.
29173         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29174
29175 2010-05-04  Eric Blake  <eblake@redhat.com>
29176
29177         docs: update cygwin progress
29178         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29179         this bug.
29180         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29181         Added in cygwin 1.7.2.
29182         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29183         Likewise.
29184         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29185         Likewise.
29186         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29187         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29188         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29189         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29190         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29191         Mention nproc module.
29192         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29193         bug in cygwin 1.7.5 addition.
29194         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29195         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29196         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29197         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29198         1.7.5.
29199         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29200         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29201         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29202         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29203         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29204         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29205         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29206         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29207         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29208         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29209         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29210         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29211         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29212         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29213         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29214         Likewise.
29215         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29216         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29217         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29218         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29219         Likewise.
29220         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29221         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29222         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29223         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29224         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29225         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29226         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29227         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29228         Likewise.
29229         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29230         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29231         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29232         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29233         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29234         Likewise.
29235         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29236         Likewise.
29237         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29238         Likewise.
29239         * doc/glibc-functions/xdrrec_endofrecord.texi
29240         (xdrrec_endofrecord): Likewise.
29241         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29242         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29243         Likewise.
29244         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29245         Likewise.
29246
29247 2010-05-04  Jim Meyering  <meyering@redhat.com>
29248
29249         gendocs.sh: make its "-s FILE" option more useful
29250         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29251         $PACKAGE to reflect the probably-different basename of "FILE".
29252
29253 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29254
29255         bootstrap: don't ignore download_po_files failure
29256         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29257         failure.
29258
29259 2010-05-03  Jim Meyering  <meyering@redhat.com>
29260
29261         maint.mk: allow to pass options to gendocs.sh
29262         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29263         (gendocs_options_): New overridable variable.
29264
29265         gnu-web-doc-update: don't ignore configure or build failure
29266         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29267
29268         announce-gen: backslash-escape '@'s in --help output
29269         * build-aux/announce-gen: Fix syntax errors.
29270
29271         maint.mk, announce-gen: allow project-specific announcement mail headers
29272         * top/maint.mk (translation_project_): Define default.
29273         (announcement_Cc_, announcement_mail_headers_): Likewise.
29274         (announcement): Invoke announce-gen with new --mail-headers option.
29275         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29276
29277         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29278         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29279         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29280         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29281         line in the "err2" output file when running "make check" in verbose
29282         mode (i.e., with set -x enabled).
29283
29284 2010-05-03  Bruno Haible  <bruno@clisp.org>
29285
29286         wctob: Fix for weird platforms.
29287         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29288         argument value.
29289
29290 2010-05-03  Jim Meyering  <meyering@redhat.com>
29291
29292         maint.mk: prohibit unwarranted use of <strings.h>
29293         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29294         strings.h in a file that does not also use strcasecmp, strncasecmp,
29295         ffs or ffsll.
29296
29297         maint.mk: remove obsolete comments
29298         * top/maint.mk: Remove stale, commented-out rules.
29299
29300 2010-05-02  Bruno Haible  <bruno@clisp.org>
29301
29302         wcwidth: Declare also when it's aliased.
29303         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29304         macro.
29305
29306 2010-05-02  Bruno Haible  <bruno@clisp.org>
29307
29308         Fix regression from 2010-04-25.
29309         * gnulib-tool (func_modules_transitive_closure): Check the status of
29310         all modules, not only of the tests that are of the form foo-tests where
29311         foo is a module.
29312
29313 2010-05-02  Bruno Haible  <bruno@clisp.org>
29314
29315         wctob: Work around nasty Cygwin 1.7.2 bug.
29316         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29317         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29318
29319 2010-05-01  Bruno Haible  <bruno@clisp.org>
29320
29321         fpurge: Sharper test.
29322         * tests/test-fpurge.c (main): Add one more ftell check.
29323         * modules/fpurge-tests (Depends-on): Add ftell.
29324         Suggested by Eric Blake.
29325
29326 2010-05-01  Bruno Haible  <bruno@clisp.org>
29327
29328         ftello: Another test.
29329         * tests/test-ftello3.c: New file.
29330         * modules/ftello-tests (Files): Add it.
29331         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29332         MOSTLYCLEANFILES.
29333
29334         ftell: Another test.
29335         * tests/test-ftell3.c: New file.
29336         * modules/ftell-tests (Files): Add it.
29337         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29338         MOSTLYCLEANFILES.
29339
29340 2010-05-01  Bruno Haible  <bruno@clisp.org>
29341
29342         ftell, ftello: Work around Solaris bug.
29343         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29344         * lib/ftello.c: Include stdio-impl.h.
29345         (ftello): On Solaris, when _IOWRT is set, compute the result without
29346         looking at _IOREAD.
29347         * modules/ftello (Files): Add lib/stdio-impl.h.
29348         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29349         * doc/posix-functions/ftello.texi: Likewise.
29350         Reported by Eric Blake.
29351
29352 2010-05-01  Bruno Haible  <bruno@clisp.org>
29353
29354         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29355         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29356         the _IOWRT flag is also set.
29357
29358 2010-05-01  Bruno Haible  <bruno@clisp.org>
29359
29360         Fix doc about a HP-UX stdio bug.
29361         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29362         * doc/posix-functions/ftello.texi: Likewise.
29363
29364 2010-05-01  Bruno Haible  <bruno@clisp.org>
29365
29366         lseek test: Fix failure on Solaris.
29367         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29368         output.
29369
29370 2010-04-30  Jim Meyering  <meyering@redhat.com>
29371
29372         bootstrap: don't ignore failure to generate po*/Makevars
29373         * build-aux/bootstrap (with_gettext): Don't ignore failure
29374         to create po/Makevars or runtime-po/Makevars.
29375
29376 2010-04-29  Eric Blake  <eblake@redhat.com>
29377
29378         headers: relax license to LGPLv2+
29379         * modules/fcntl-h (License): Relax license.
29380         * modules/getopt-posix (License): Likewise.
29381         * modules/locale (License): Likewise.
29382         * modules/math (License): Likewise.
29383         * modules/pty (License): Likewise.
29384         * modules/sched (License): Likewise.
29385         * modules/search (License): Likewise.
29386         * modules/spawn (License): Likewise.
29387         * modules/stdarg (License): Likewise.
29388         * modules/sysexits (License): Likewise.
29389
29390 2010-04-29  Jim Meyering  <meyering@redhat.com>
29391
29392         inttypes: relax license to LGPLv2+
29393         * modules/inttypes (License): Relax license.
29394
29395 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29396
29397         * top/maint.mk (indent): Run twice to produce idempotent results.
29398
29399 2010-04-28  Bruno Haible  <bruno@clisp.org>
29400
29401         getdate: Generate getdate.c in the source directory.
29402         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29403         MOSTLYCLEANFILES.
29404         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29405
29406 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29407
29408         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29409         is not declared as a const *; avoid warnings in that case.
29410
29411 2010-04-28  Eric Blake  <eblake@redhat.com>
29412
29413         canonicalize-lgpl: avoid compiler warning
29414         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29415         declaration' / 'extraneous semicolon' warning with some compilers.
29416         Reported by Andreas Gruenbacher.
29417
29418 2010-04-28  Jim Meyering  <meyering@redhat.com>
29419
29420         init.sh: ensure a more reliable exit status when exiting via trap
29421         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29422         Inspired by patches from Dmitry V. Levin.
29423         Also trap on signal 3 (SIGQUIT).
29424
29425 2010-04-27  Bruno Haible  <bruno@clisp.org>
29426
29427         Update doc about utimes().
29428         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29429         'utimens' module.
29430         Reported by Andreas Gruenbacher <agruen@suse.de>.
29431
29432 2010-04-27  Eric Blake  <eblake@redhat.com>
29433
29434         full-read, full-write: relax license
29435         * modules/full-read (License): Drop to LGPLv2+.
29436         * modules/full-write (License): Likewise.
29437         * modules/safe-read (License): Likewise.
29438         * modules/safe-write (License): Likewise.
29439
29440         pthread: mention library for linking
29441         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29442
29443 2010-04-27  Jim Meyering  <meyering@redhat.com>
29444
29445         maint.mk: fix a bug introduced in last change
29446         * top/maint.mk (gl_assured_headers_): Now that all names are on
29447         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29448         is not anchored to end of word, it should be adequate.
29449
29450         maint.mk: avoid side-effect in latest syntax-check
29451         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29452         to run commands via $(shell...), and hence to incur cost only when
29453         the new rule is actually run.
29454
29455         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29456         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29457         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29458         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29459         (gl_assured_headers_, az_, AZ_): Define.
29460         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29461
29462 2010-04-26  Jim Meyering  <jim@meyering.net>
29463             Bruno Haible  <bruno@clisp.org>
29464
29465         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29466         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29467         Prompted by an exchange with Gilles Espinasse.
29468
29469 2010-04-26  Jim Meyering  <meyering@redhat.com>
29470
29471         git-version-gen: aesthetic tweak
29472         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29473         so that the command remains on a single line.
29474
29475 2010-04-26  Eric Blake  <eblake@redhat.com>
29476
29477         git-version-gen: allow use on EBCDIC hosts
29478         * build-aux/git-version-gen (dirty): Use literal rather than tying
29479         ourselves to ascii.
29480         Reported by Steve Goetze.
29481
29482 2010-04-25  Bruno Haible  <bruno@clisp.org>
29483
29484         netdb: Add support for GNULIB_POSIXCHECK.
29485         * lib/netdb.in.h: Include warn-on-use.h.
29486         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29487         functions are used when GNULIB_POSIXCHECK is defined and the
29488         getaddrinfo module is not in use.
29489         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29490         freeaddrinfo, gai_strerror, getnameinfo are declared.
29491         * modules/netdb (Depends-on): Add warn-on-use.
29492         (Makefile.am): Include warn-on-use.h in netdb.h.
29493
29494 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29495
29496         build: avoid "make check" failure without .git/ directory
29497         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29498         there is no .git/ directory.
29499
29500 2010-04-25  Bruno Haible  <bruno@clisp.org>
29501
29502         ptsname: Fix misuse of ttyname_r.
29503         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29504         of errno.
29505
29506 2010-04-25  Bruno Haible  <bruno@clisp.org>
29507
29508         ttyname_r: Make it work on Solaris 10.
29509         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29510         if the system function has the POSIX declaration. Test whether the
29511         function fails if the buffer is less than 128 bytes large.
29512         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29513         system's ttyname_r function. Provide a reasonably large buffer.
29514         * modules/ttyname_r (Depends-on): Add extensions.
29515         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29516
29517 2010-04-25  Bruno Haible  <bruno@clisp.org>
29518
29519         Use the 'extensions' module for some more functions on Solaris.
29520         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29521         module.
29522         * doc/posix-functions/ctime_r.texi: Likewise.
29523         * doc/posix-functions/getgrgid_r.texi: Likewise.
29524         * doc/posix-functions/getgrnam_r.texi: Likewise.
29525         * doc/posix-functions/getpwnam_r.texi: Likewise.
29526         * doc/posix-functions/getpwuid_r.texi: Likewise.
29527         * doc/posix-functions/readdir_r.texi: Likewise.
29528         * doc/posix-functions/sigwait.texi: Likewise.
29529         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29530         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29531
29532 2010-04-25  Bruno Haible  <bruno@clisp.org>
29533
29534         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29535         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29536         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29537         * lib/ttyname_r.c: Include <limits.h>.
29538         (ttyname_r): Define using the system's ttyname_r function, if it exists
29539         and not on Solaris.
29540         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29541         set.
29542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29543         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29544         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29545         Reported by Simon Josefsson.
29546
29547 2010-04-25  Bruno Haible  <bruno@clisp.org>
29548
29549         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29550         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29551         * doc/posix-functions/ctime_r.texi: Likewise.
29552         * doc/posix-functions/getgrgid_r.texi: Likewise.
29553         * doc/posix-functions/getgrnam_r.texi: Likewise.
29554         * doc/posix-functions/getlogin_r.texi: Likewise.
29555         * doc/posix-functions/getpwnam_r.texi: Likewise.
29556         * doc/posix-functions/getpwuid_r.texi: Likewise.
29557         * doc/posix-functions/readdir_r.texi: Likewise.
29558         * doc/posix-functions/sigwait.texi: Likewise.
29559         * doc/posix-functions/ttyname_r.texi: Likewise.
29560         Reported by Simon Josefsson.
29561
29562 2010-04-25  Bruno Haible  <bruno@clisp.org>
29563
29564         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29565         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29566         also to --create-testdir.
29567         (func_acceptable): Don't consider the status of *-tests modules here.
29568         (func_modules_transitive_closure): Consider it here, before including a
29569         test module.
29570         (func_import, func_create_testdir): Set inc_all_direct_tests,
29571         inc_all_indirect_tests.
29572         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29573         --create-testdir and --create-megatestdir.
29574
29575 2010-04-25  Bruno Haible  <bruno@clisp.org>
29576
29577         gnulib-tool: Add --without-*-tests options.
29578         * gnulib-tool (func_usage): Document the --without-*-tests options.
29579         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29580         excl_unportable_tests): New variables.
29581         Fail if they are specified with --import or --update.
29582         (func_acceptable): Respect the excl_*_tests variables.
29583         (func_import): Set the excl_*_tests variables to empty.
29584
29585 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29586             Bruno Haible  <bruno@clisp.org>
29587
29588         Work around a MacOS X 10.4 bug with openpty.
29589         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29590         * tests/test-openpty.c (main): Close the master side explicitly.
29591
29592 2010-04-25  Bruno Haible  <bruno@clisp.org>
29593
29594         strnlen: Fix a C++ test error on MacOS X and Solaris.
29595         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29596         the function is not declared.
29597         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29598         Simon Josefsson.
29599
29600 2010-04-24  Bruno Haible  <bruno@clisp.org>
29601
29602         Avoid a gcc warning.
29603         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29604         of correct type for %08lx directive.
29605         Reported by Eric Blake.
29606
29607 2010-04-24  Bruno Haible  <bruno@clisp.org>
29608
29609         vasnprintf: Correct errno value in case of out-of-memory.
29610         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29611         or sprintf. Use the errno value from SNPRINTF or sprintf.
29612         Reported by Ian Beckwith <ianb@erislabs.net>.
29613
29614 2010-04-24  Bruno Haible  <bruno@clisp.org>
29615
29616         ansi-c++-opt: Find correct compiler when cross-compiling.
29617         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29618         AC_CHECK_PROGS.
29619         Reported by Simon Josefsson.
29620
29621 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29622
29623         vc-list-files: Add support for subversion
29624         * build-aux/vc-list-files: Use "svn list" to generate the list of
29625         files controlled by subversion.
29626
29627 2010-04-23  Jim Meyering  <meyering@redhat.com>
29628
29629         vc-list-files tests: convert to use init.sh
29630         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29631         path_prepend_.
29632         Use Exit, not exit.
29633         Use skip_ rather than open coding it.
29634         Remove trap set-up and compare definitions.
29635         * tests/test-vc-list-files-git.sh: Likewise.
29636         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29637
29638 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29639
29640         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29641         backup files.
29642
29643 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29644
29645         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29646
29647 2010-04-20  Eric Blake  <eblake@redhat.com>
29648
29649         tests: be robust to ignored SIGPIPE
29650         * tests/test-select-in.sh: Consume all output.
29651         * tests/test-lseek.sh: Check correct exit status, while avoiding
29652         EPIPE.
29653
29654 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29655             Bruno Haible  <bruno@clisp.org>
29656
29657         visibility: Don't use -fvisibility if it leads to a warning.
29658         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29659         yes, don't pretend that visibility works if it leads to a warning.
29660         Reported by Mike Gran <spk121@yahoo.com>.
29661
29662 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29663
29664         * build-aux/bootstrap: Use "git -h" for testing for supported options
29665         instead of "git --help".  The short-form option only shows a summary,
29666         and doesn't layout the full man page.  Grep for the full option name
29667         in the summary, too.
29668
29669 2010-04-19  Bruno Haible  <bruno@clisp.org>
29670
29671         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29672         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29673         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29674         mention of RELOCATABLE_STRIP.
29675         Reported by Sylvain Beucler <beuc@beuc.net>.
29676
29677 2010-04-19  Bruno Haible  <bruno@clisp.org>
29678
29679         * lib/diffseq.h: Fix typo in comment.
29680         Reported by Eric Blake.
29681
29682 2010-04-19  Bruno Haible  <bruno@clisp.org>
29683
29684         ioctl: Move autoconf macro to a .m4 file.
29685         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29686         * modules/ioctl (Files): Add it.
29687         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29688         Reported by Ian Beckwith <ianb@erislabs.net>.
29689
29690 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29691             Bruno Haible  <bruno@clisp.org>
29692
29693         diffseq: Accommodate use-case with abstract arrays.
29694         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29695         is not defined.
29696         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29697         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29698
29699 2010-04-18  Bruno Haible  <bruno@clisp.org>
29700
29701         * doc/posix-headers/stdbool.texi: More precise wording.
29702
29703 2010-04-17  Jim Meyering  <meyering@redhat.com>
29704
29705         maint.mk: use gnu-style indentation in an embedded perl script
29706         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29707         Rename variable: s/two/last_two_bytes/
29708
29709 2010-04-16  Eric Blake  <eblake@redhat.com>
29710
29711         test-stdbool: skip test that fails with Solaris CC
29712         * tests/test-stdbool.c (f): Skip test that causes compilation
29713         error under buggy C++ compiler.
29714         * lib/stdbool.in.h: Document the limitation.
29715         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29716
29717         setenv: allow compilation with C++
29718         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29719         register keyword.
29720
29721         stdint: allow test to pass with C++
29722         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29723
29724         getopt: allow compilation with C++
29725         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29726         struct.
29727         * lib/getopt.c (_getopt_internal_r): Use correct type.
29728         Reported by Dagobert Michelson, via Joel E. Denny.
29729
29730 2010-04-16  Bruno Haible  <bruno@clisp.org>
29731
29732         Override netdb.h always.
29733         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29734         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29735         Reported by Ludovic Courtès <ludo@gnu.org>.
29736
29737 2010-04-15  Bruno Haible  <bruno@clisp.org>
29738
29739         openpty: Fix mistake from 2010-03-21.
29740         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29741         Reported by Simon Josefsson.
29742
29743 2010-04-15  Eric Blake  <eblake@redhat.com>
29744
29745         test-forkpty: fix expected signature
29746         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29747         Reported by Simon Josefsson.
29748
29749 2010-04-15  Jim Meyering  <meyering@redhat.com>
29750
29751         maint.mk: texinfo_suffix_re_: correct the default regexp
29752         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29753
29754         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29755         make it configurable via texinfo_suffix_re_.
29756
29757 2010-04-14  Eric Blake  <eblake@redhat.com>
29758
29759         strtok_r: relax license to LGPLv2+
29760         * modules/strtok_r (License): Relax license.
29761         Reported by Matthias Bolte.
29762
29763 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29764
29765         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29766         version 1.4.4 by default instead of requiring the libgcrypt
29767         version used during build.  This makes it possible to use the
29768         application with older but still binary compatible libgcrypt
29769         versions.
29770
29771 2010-04-13  Eric Blake  <eblake@redhat.com>
29772
29773         getopt-gnu: match recent glibc fixes and posix ruling
29774         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29775         '+' handling, when requesting extensions.
29776         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29777         'W;' handling.
29778         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29779         * doc/posix-functions/getopt.texi (getopt): Document this.
29780         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29781         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29782         Likewise.
29783
29784         getopt: merge bug fixes from glibc
29785         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29786         diagnostics.  Honor '+:' correctly.  Reject ';'.
29787
29788         getopt-posix: detect MacOS bug
29789         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29790         optind when missing a required argument.
29791         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29792         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29793         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29794         Likewise.
29795
29796         getopt-posix: avoid spurious failure on Solaris
29797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29798         an indicator that setting optind=1 is sufficient for reset.
29799
29800         getopt-posix: avoid spurious failure on FreeBSD
29801         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29802         in POSIX mode, since the m4 test uses it.
29803
29804         gnulib-tool: silence warning on BSD sh
29805         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29806
29807 2010-04-13  Jim Meyering  <meyering@redhat.com>
29808
29809         doc: users.txt: GNU patch now uses gnulib
29810         * users.txt: Add patch.
29811
29812 2010-04-12  Jim Meyering  <meyering@redhat.com>
29813
29814         maint.mk: generate more concise timing data for syntax-check rules
29815         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29816         " done" from each line that reports a syntax-check test duration.
29817
29818 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29819
29820         git-version-gen: use "git update-index..." rather than "git status"
29821         * build-aux/git-version-gen: Use git update-index --refresh, not
29822         "git status".  With some versions of git, "git status" would fail
29823         to update the index and result in an unwarranted "-dirty" suffix.
29824
29825 2010-04-11  Jim Meyering  <meyering@redhat.com>
29826
29827         openat: correct formatting (no semantic change)
29828         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29829         Suggested by Bruno Haible.
29830
29831 2010-04-11  Bruno Haible  <bruno@clisp.org>
29832
29833         Stricter declaration checking in testdirs.
29834         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29835         If for_tests is true, augment AM_CPPFLAGS to define
29836         GNULIB_STRICT_CHECKING.
29837         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29838         GNULIB_STRICT_CHECKING is defined, verify that the function is
29839         declared.
29840
29841 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29842             Bruno Haible  <bruno@clisp.org>
29843
29844         libunistring: Improve configure output.
29845         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29846         Don't say "consider installing GNU libunistring" when checking again
29847         with libiconv.
29848
29849 2010-04-11  Bruno Haible  <bruno@clisp.org>
29850
29851         libunistring: Correct value of $LTLIBUNISTRING.
29852         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29853         correct the value of $LTLIBUNISTRING.
29854
29855 2010-04-11  Bruno Haible  <bruno@clisp.org>
29856
29857         havelib: Add static libraries to LIBS in the right order.
29858         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29859         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29860
29861 2010-04-11  Bruno Haible  <bruno@clisp.org>
29862
29863         libunistring: Detect libunistring also when it depends on libiconv.
29864         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29865         the second AC_LIB_HAVE_LINKFLAGS invocation.
29866
29867 2010-04-11  James Youngman  <jay@gnu.org>
29868
29869         close-stream: declare local scalars to be "const"
29870         * lib/close-stream.c (close_stream): Make boolean variables const
29871         to document the fact that we set but do not change them.
29872
29873 2010-04-11  Bruno Haible  <bruno@clisp.org>
29874
29875         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29876
29877 2010-04-11  Jim Meyering  <meyering@redhat.com>
29878
29879         maint.mk: don't include dist-check.mk
29880         * top/maint.mk: Remove bogus include directive.
29881
29882         maint.mk: improve empty-line-at-EOF check
29883         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29884         solution, rather than tail+Perl-based one.  The latter would read
29885         a few kilobytes from the end of each file, and did not handle empty
29886         files properly.
29887
29888         maint.mk: print the elapsed time for each syntax-check rule
29889         * top/maint.mk (sc_m_rules_): Save start time in a file.
29890         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29891         (local-check): Interpose the .z rules
29892
29893 2010-04-11  Jim Meyering  <meyering@redhat.com>
29894
29895         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29896         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29897         empty file with one that ends in an empty line.
29898
29899 2010-04-10  Bruno Haible  <bruno@clisp.org>
29900
29901         mkdir: Make it work on mingw64.
29902         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29903         * lib/mkdir.c: Update comment.
29904         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29905
29906 2010-04-10  Bruno Haible  <bruno@clisp.org>
29907
29908         Don't override improved macro from newer autoconf.
29909         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29910         autoconf >= 2.62.
29911         Reported by Joel E. Denny <jdenny@clemson.edu>.
29912
29913 2010-04-10  Jim Meyering  <meyering@redhat.com>
29914
29915         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29916         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29917
29918         maint.mk: correct a diagnostic
29919         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29920         in diagnostic; now use $prohibit.
29921
29922 2010-04-10  Bruno Haible  <address@hidden>
29923
29924         fchownat: Fix a C++ test error on Solaris 8.
29925         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29926         the function does not exist.
29927
29928 2010-04-10  Bruno Haible  <bruno@clisp.org>
29929
29930         vasnprintf: Add more tests.
29931         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29932         (test_function): Test converting an invalid wide string.
29933
29934         vasnprintf: Correct handling of unconvertible wide string arguments.
29935         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29936         VASNPRINTF.
29937         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29938         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29939         smaller than the expected maximum need for the directive. Set errno to
29940         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29941         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29943         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29944         * modules/vasnprintf (Files): Add m4/printf.m4.
29945         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29946
29947 2010-04-10  Bruno Haible  <bruno@clisp.org>
29948
29949         vasnprintf: Fix crash in %ls directive.
29950         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29951         string is passed as argument to %ls, with no precision and no width.
29952         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29953
29954 2010-04-10  Bruno Haible  <bruno@clisp.org>
29955
29956         vasnprintf: Fix multiple test failures on mingw.
29957         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29958         _snprintf, or snwprintf, not _snwprintf.
29959
29960 2010-04-10  Bruno Haible  <bruno@clisp.org>
29961
29962         write: Fix a C++ test error on mingw.
29963         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29964
29965 2010-04-10  Bruno Haible  <bruno@clisp.org>
29966
29967         vasnprintf test: Reduce code duplication.
29968         * tests/test-vasnprintf.c (test_function): New function, extracted from
29969         test_vasnprintf.
29970         (test_vasnprintf, test_asnprintf): Invoke it.
29971
29972 2010-04-10  Bruno Haible  <bruno@clisp.org>
29973
29974         strnlen: Fix warning in C++ mode on MacOS X.
29975         * lib/string.in.h (strnlen): Use the modern idiom.
29976         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29977         defining strnlen as a macro already in <config.h>.
29978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29979         REPLACE_STRNLEN.
29980         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29981         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29982
29983 2010-04-08  James Youngman  <jay@gnu.org>
29984
29985         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29986         the example.
29987
29988 2010-04-09  Jim Meyering  <meyering@redhat.com>
29989
29990         maint.mk: print better diagnostic when there is no $(_hv_file)
29991         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29992         announce that when $(_hv_file) (aka help-version) does not exist.
29993
29994         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29995         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29996         not try to interpret its random input bytes.  Jarno Rajahalme reported
29997         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29998         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29999         (mktempd_): Likewise, just in case.
30000
30001         ftruncate: add two years to projected module removal date: 2012
30002         * m4/ftruncate.m4: Adjust comments.
30003
30004         ftruncate: mark module as obsolete; even MinGW provides it, now
30005         * modules/ftruncate (Status): Obsolete.
30006         (Notice): Say that.
30007         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30008         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30009
30010 2010-04-08  Bruno Haible  <bruno@clisp.org>
30011
30012         Fix side effects from tests-related modules.
30013         * modules/dprintf-posix (Comment): New section.
30014         * modules/fprintf-posix (Comment): Likewise.
30015         * modules/obstack-printf-posix (Comment): Likewise.
30016         * modules/printf-posix (Comment): Likewise.
30017         * modules/snprintf-posix (Comment): Likewise.
30018         * modules/sprintf-posix (Comment): Likewise.
30019         * modules/vasnprintf-posix (Comment): Likewise.
30020         * modules/vasprintf-posix (Comment): Likewise.
30021         * modules/vdprintf-posix (Comment): Likewise.
30022         * modules/vfprintf-posix (Comment): Likewise.
30023         * modules/vprintf-posix (Comment): Likewise.
30024         * modules/vsnprintf-posix (Comment): Likewise.
30025         * modules/vsprintf-posix (Comment): Likewise.
30026         * modules/xprintf-posix (Comment): Likewise.
30027         * modules/xvasprintf-posix (Comment): Likewise.
30028         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30029         * modules/floorf-tests (Depends-on): Likewise.
30030         * modules/round-tests (Depends-on): Likewise.
30031         * modules/roundf-tests (Depends-on): Likewise.
30032         * modules/trunc-tests (Depends-on): Likewise.
30033         * modules/truncf-tests (Depends-on): Likewise.
30034         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30035         'fprintf-posix' module is not present.
30036         * tests/test-floorf2.c (check): Likewise.
30037         * tests/test-trunc2.c (check): Likewise.
30038         * tests/test-truncf2.c (check): Likewise.
30039         * tests/test-round2.c (equal): Likewise.
30040         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30041
30042 2010-04-07  Karl Berry  <karl@gnu.org>
30043
30044         * config/srclist.txt,
30045         * config/srclistvars.sh,
30046         * config/srclist-update: doc fixes.
30047
30048 2010-04-07  Jim Meyering  <meyering@redhat.com>
30049
30050         maint.mk: add a PATH crosschecking syntax-check rule
30051         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30052         Useful if you use a test like the one in help-version (coreutils,
30053         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30054         printed by prog --version.
30055
30056 2010-04-06  Bruno Haible  <bruno@clisp.org>
30057
30058         Fix link error on mingw.
30059         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30060         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30061
30062 2010-04-06  Bruno Haible  <bruno@clisp.org>
30063
30064         Assume rmdir exists.
30065         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30066
30067 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30068
30069         doc: update users.txt
30070         * users.txt: Add gcal.
30071
30072 2010-04-06  Jim Meyering  <meyering@redhat.com>
30073
30074         init.sh: simply unset TMPDIR rather than risking env -i
30075         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30076         although it probably works fine on all Unix-based systems, some
30077         systems (Cygwin?) cannot tolerate a totally cleared environment.
30078         Suggestion from Eric Blake.
30079
30080 2010-04-06  Jim Meyering  <meyering@redhat.com>
30081
30082         init.sh: portability fix: use env's POSIX-specified -i option not -u
30083         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30084         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30085
30086 2010-04-05  Bruno Haible  <bruno@clisp.org>
30087
30088         btowc: Work around Cygwin 1.7.2 bug.
30089         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30090         does not map NUL to 0.
30091         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30092
30093 2010-04-05  Bruno Haible  <bruno@clisp.org>
30094
30095         Make the multithread modules work on Cygwin 1.7.2.
30096         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30097         imported symbols can be declared weak, so that it returns "no" on
30098         Cygwin 1.7.2.
30099
30100 2010-04-05  Bruno Haible  <bruno@clisp.org>
30101
30102         Use the module 'strncat'.
30103         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30104
30105         Tests for module 'strncat'.
30106         * modules/strncat-tests: New file.
30107         * tests/test-strncat.c: New file.
30108
30109         New module 'strncat'.
30110         * lib/string.in.h (strncat): New declaration.
30111         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30112         * m4/strncat.m4: New file, based on m4/memchr.m4.
30113         * modules/strncat: New file.
30114         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30115         is declared.
30116         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30117         REPLACE_STRNCAT.
30118         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30119         REPLACE_STRNCAT.
30120         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30121         module.
30122         * tests/test-string-c++.cc: Check signature of strncat.
30123
30124 2010-04-05  Jim Meyering  <meyering@redhat.com>
30125
30126         xstrtoumax-tests: convert to use init.sh
30127         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30128         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30129         Use Exit, not exit.
30130         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30131
30132         xstrtoimax-tests: convert to use init.sh
30133         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30134         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30135         Use Exit, not exit.
30136         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30137
30138 2010-04-05  Bruno Haible  <bruno@clisp.org>
30139
30140         sys_socket: Avoid #define replacements in C++ mode.
30141         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30142         warning to the function if possible, rather than #defining the symbol
30143         to a dysfunctional alias.
30144
30145 2010-04-05  Bruno Haible  <bruno@clisp.org>
30146
30147         fseeko: Fix C++ test error on mingw.
30148         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30149         gl_FUNC_FSEEKO.
30150         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30151         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30152         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30153         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30154
30155 2010-04-05  Bruno Haible  <bruno@clisp.org>
30156
30157         duplocale: Improve test output.
30158         * tests/test-duplocale.c (main): Print reason for skipped test.
30159
30160 2010-04-05  Bruno Haible  <bruno@clisp.org>
30161
30162         Assume rmdir exists.
30163         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30164         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30165
30166 2010-04-05  Bruno Haible  <bruno@clisp.org>
30167
30168         Fix link error on Solaris 8 with cc.
30169         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30170
30171 2010-04-05  Bruno Haible  <bruno@clisp.org>
30172
30173         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30174         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30175
30176 2010-04-05  Bruno Haible  <bruno@clisp.org>
30177
30178         vasprintf: Update documentation.
30179         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30180
30181 2010-04-05  Bruno Haible  <bruno@clisp.org>
30182
30183         ptsname: Improve test.
30184         * tests/test-ptsname.c (main): Also try the various master names of BSD
30185         systems.
30186
30187 2010-04-05  Bruno Haible  <bruno@clisp.org>
30188
30189         memchr: Avoid a possible C++ test error.
30190         * lib/string.in.h (memchr): Provide declaration if function is missing.
30191         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30192         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30194         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30195
30196 2010-04-05  Bruno Haible  <bruno@clisp.org>
30197
30198         strtok_r: Improve idiom.
30199         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30200         AC_LIBOBJ is used.
30201
30202 2010-04-05  Bruno Haible  <bruno@clisp.org>
30203
30204         strdup: Improve idiom.
30205         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30206         AC_LIBOBJ is used.
30207         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30208         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30209         when AC_LIBOBJ is used.
30210
30211 2010-04-05  Bruno Haible  <bruno@clisp.org>
30212
30213         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30214         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30215         don't set REPLACE_MBSINIT to 1.
30216         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30217         don't set REPLACE_MBRTOWC to 1.
30218         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30219         exist, don't set REPLACE_MBSRTOWCS to 1.
30220         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30221         exist, don't set REPLACE_MBSNRTOWCS to 1.
30222         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30223         don't set REPLACE_WCRTOMB to 1.
30224         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30225         exist, don't set REPLACE_WCSRTOMBS to 1.
30226         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30227         exist, don't set REPLACE_WCSNRTOMBS to 1.
30228
30229 2010-04-05  Bruno Haible  <bruno@clisp.org>
30230
30231         ldexpl: Improve idiom.
30232         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30233         make sure to set HAVE_DECL_LDEXPL to 0.
30234
30235 2010-04-05  Jim Meyering  <meyering@redhat.com>
30236
30237         xstrtol-tests: convert to use init.sh
30238         * modules/xstrtol-tests (Files): Add tests/init.sh.
30239         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30240         Use Exit, not exit.
30241         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30242
30243         atexit-tests: convert to use init.sh
30244         * modules/atexit-tests (Files): Add tests/init.sh.
30245         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30246         Use Exit, not exit.
30247         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30248
30249         init.sh: fix typo
30250         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30251
30252         init.sh: make it easier for a test script to write to the tty, ...
30253         when using automake's parallel-tests mode.
30254         * tests/init.sh (stderr_fileno_): Define overridable variable.
30255         (warn_): New function, to use it.
30256         (fail_, skip_, framework_failure_): Use warn_.
30257
30258 2010-04-04  Bruno Haible  <bruno@clisp.org>
30259
30260         btowc: Avoid warning.
30261         * lib/btowc.c: Include <stdlib.h>.
30262         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30263
30264 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30265             Bruno Haible  <bruno@clisp.org>
30266
30267         wchar: Port to NetBSD 1.5.
30268         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30269         * lib/wctype.in.h (WEOF): Likewise.
30270
30271 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30272             Bruno Haible  <bruno@clisp.org>
30273
30274         Port extended stdio to NetBSD 1.5.
30275         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30276         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30277         older.
30278
30279 2010-04-04  Bruno Haible  <bruno@clisp.org>
30280
30281         string: Remove unused substitution.
30282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30283         HAVE_DECL_STRERROR.
30284         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30285
30286 2010-04-04  Bruno Haible  <bruno@clisp.org>
30287
30288         strtod: Avoid a possible C++ test error.
30289         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30290         set REPLACE_STRTOD.
30291
30292 2010-04-04  Bruno Haible  <bruno@clisp.org>
30293
30294         strerror: Update documentation.
30295         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30296
30297 2010-04-04  Bruno Haible  <bruno@clisp.org>
30298
30299         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30300         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30301         _GL_CXXALIAS_SYS_CAST.
30302
30303 2010-04-04  Bruno Haible  <bruno@clisp.org>
30304
30305         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30306         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30307         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30308         REPLACE_FREXPL to 1.
30309         * doc/posix-functions/frexpl.texi: Update documentation.
30310
30311 2010-04-04  Bruno Haible  <bruno@clisp.org>
30312
30313         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30314         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30315
30316 2010-04-04  Bruno Haible  <bruno@clisp.org>
30317
30318         Implement nanosleep for native Windows.
30319         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30320
30321 2010-04-04  Bruno Haible  <bruno@clisp.org>
30322
30323         math: Fix some C++ test errors on Solaris 8.
30324         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30325
30326 2010-04-04  Bruno Haible  <bruno@clisp.org>
30327
30328         math: Fix some C++ test errors on Cygwin.
30329         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30330         truncl): Provide declaration if the system does not have it.
30331         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30332         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30333         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30334         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30335         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30336         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30337         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30338         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30339         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30340         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30341         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30342         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30343         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30344         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30345         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30346         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30348         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30349         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30350         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30351         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30352         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30353
30354 2010-04-04  Bruno Haible  <bruno@clisp.org>
30355
30356         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30357         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30358         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30359         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30360         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30361         * m4/isinf.m4 (gl_ISINF): Likewise.
30362         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30363
30364 2010-04-04  Bruno Haible  <bruno@clisp.org>
30365
30366         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30367         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30368
30369 2010-04-04  Bruno Haible  <bruno@clisp.org>
30370
30371         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30372         * modules/tmpfile (configure.ac): Update.
30373
30374         tmpfile: Fix C++ test error on mingw.
30375         * lib/stdio.in.h (tmpfile): New declaration.
30376         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30377         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30378         * modules/tmpfile (Depends-on): Add stdio.
30379         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30380         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30381         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30382         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30383         REPLACE_TMPFILE.
30384         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30385
30386 2010-04-04  Bruno Haible  <bruno@clisp.org>
30387
30388         ioctl: Fix C++ test error on mingw.
30389         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30390         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30391         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30392
30393 2010-04-03  Bruno Haible  <bruno@clisp.org>
30394
30395         wcwidth: Fix C++ test error on mingw.
30396         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30398         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30399
30400 2010-04-03  Bruno Haible  <bruno@clisp.org>
30401
30402         nanosleep: Fix C++ test error on mingw.
30403         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30404         * lib/time.in.h (nanosleep): Use modern idiom.
30405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30406         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30407         REPLACE_NANOSLEEP to 1.
30408         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30409         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30410
30411 2010-04-03  Bruno Haible  <bruno@clisp.org>
30412
30413         strptime: Fix C++ test error on mingw.
30414         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30415         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30416         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30417         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30418         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30419         not REPLACE_STRPTIME.
30420         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30421         REPLACE_STRPTIME.
30422
30423 2010-04-03  Bruno Haible  <bruno@clisp.org>
30424
30425         timegm: Fix C++ test error on mingw.
30426         * lib/time.in.h (timegm): Use modern idiom.
30427         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30428         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30429         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30430         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30431
30432 2010-04-03  Bruno Haible  <bruno@clisp.org>
30433
30434         timegm: Assume declaration if function exists.
30435         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30436         if it exists. Don't clobber ac_cv_func_timegm.
30437
30438 2010-04-03  Bruno Haible  <bruno@clisp.org>
30439
30440         time_r: Fix C++ test error on mingw.
30441         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30442         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30443         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30444         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30445         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30446
30447 2010-04-03  Bruno Haible  <bruno@clisp.org>
30448
30449         time_r: Minor updates.
30450         * modules/time_r (Description): Mention the provided functions.
30451         * lib/time_r.c: Don't include <string.h>.
30452         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30453         * doc/posix-functions/localtime_r.texi: Likewise.
30454
30455 2010-04-03  Bruno Haible  <bruno@clisp.org>
30456
30457         time: Fix regression introduced on 2010-03-08.
30458         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30459         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30460
30461 2010-04-03  Jim Meyering  <meyering@redhat.com>
30462
30463         maint.mk: don't silently disable project-specific syntax-check rules
30464         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30465         that they need to convert their project-specific syntax-check rules
30466         to use the new _sc_search_regexp.
30467
30468 2010-04-03  Bruno Haible  <bruno@clisp.org>
30469
30470         fchdir: Fix regression introduced on 2010-03-08.
30471         * lib/unistd.in.h (fchdir): Fix declaration.
30472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30474         REPLACE_FCHDIR.
30475         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30476         REPLACE_FCHDIR.
30477
30478 2010-04-03  Bruno Haible  <bruno@clisp.org>
30479
30480         getpagesize: Fix C++ test error on mingw.
30481         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30482         system does not declare the function.
30483         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30484         declared.
30485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30486         HAVE_DECL_GETPAGESIZE.
30487         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30488
30489 2010-04-03  Bruno Haible  <bruno@clisp.org>
30490
30491         stdio: Make C++ tests work on mingw.
30492         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30493         does not declare the function.
30494
30495 2010-04-03  Bruno Haible  <bruno@clisp.org>
30496
30497         ftello: Fix C++ test error on mingw.
30498         * lib/stdio.in.h (ftello): Use modern idiom.
30499         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30500         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30501         is missing and that it needs to be replaced.
30502         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30504         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30505
30506 2010-04-03  Bruno Haible  <bruno@clisp.org>
30507
30508         fseeko: Fix C++ test error on mingw.
30509         * lib/stdio.in.h (fseeko): Use modern idiom.
30510         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30511         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30512         is missing and that it needs to be replaced.
30513         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30515         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30516
30517 2010-04-03  Bruno Haible  <bruno@clisp.org>
30518
30519         mkstemp: Fix C++ test error on mingw.
30520         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30521         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30522         function is missing and that it needs to be replaced.
30523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30524         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30525
30526 2010-04-03  Bruno Haible  <bruno@clisp.org>
30527
30528         stpncpy: Fix C++ test error on mingw.
30529         * lib/string.in.h (stpncpy): Use modern idiom.
30530         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30531         function is missing and that it needs to be replaced.
30532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30533         REPLACE_STPNCPY.
30534         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30535
30536 2010-04-03  Bruno Haible  <bruno@clisp.org>
30537
30538         sys_stat: Fix C++ test error on mingw.
30539         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30540         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30541
30542 2010-04-03  Bruno Haible  <bruno@clisp.org>
30543
30544         pty: Update doc.
30545         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30546
30547 2010-04-03  Bruno Haible  <bruno@clisp.org>
30548
30549         unistd: Fix C++ test error on mingw.
30550         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30551
30552 2010-04-03  Bruno Haible  <bruno@clisp.org>
30553
30554         Update doc regarding mingw.
30555         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30556         * doc/glibc-functions/login_tty.texi: Likewise.
30557         * doc/glibc-functions/forkpty.texi: Likewise.
30558
30559 2010-04-03  Bruno Haible  <bruno@clisp.org>
30560
30561         stdlib: Avoid compilation failure of c-strtold on mingw.
30562         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30563
30564 2010-04-03  Bruno Haible  <bruno@clisp.org>
30565
30566         locale: Make C++ tests work on Cygwin and mingw.
30567         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30568         cannot provide the function.
30569         Reported by Simon Josefsson.
30570
30571 2010-04-03  Bruno Haible  <bruno@clisp.org>
30572
30573         localename: Port to MacOS X 10.6.
30574         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30575         memory layout of the locales in MacOS X 10.6 as well.
30576         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30577
30578 2010-04-02  Bruno Haible  <bruno@clisp.org>
30579
30580         gnulib-tool: Ensure that long-running tests are executed last.
30581         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30582         running tests after the one for the other tests.
30583
30584 2010-04-02  Bruno Haible  <bruno@clisp.org>
30585
30586         gnulib-tool: Ensure the tests in the main directory are executed first.
30587         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30588         start with the current directory.
30589
30590 2010-04-02  Bruno Haible  <bruno@clisp.org>
30591
30592         Tests for module 'havelib', moved here from GNU gettext.
30593         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30594         modifications.
30595         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30596         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30597         with modifications.
30598         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30599         modifications.
30600         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30601         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30602         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30603         with modifications.
30604         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30605         with modifications.
30606         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30607         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30608         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30609         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30610         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30611         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30612         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30613         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30614         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30615         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30616         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30617         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30618         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30619         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30620         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30621         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30622         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30623         with modifications.
30624         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30625         with modifications.
30626         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30627         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30628         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30629         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30630         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30631         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30632         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30633         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30634         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30635         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30636         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30637         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30638         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30639         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30640         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30641         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30642         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30643         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30644         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30645         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30646         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30647         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30648         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30649         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30650         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30651         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30652         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30653         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30654         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30655         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30656         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30657         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30658         * tests/havelib/rpathx/rpathx.c: New file, from
30659         gettext/autoconf-lib-link.
30660         * tests/havelib/rpathx/Makefile.am: New file, from
30661         gettext/autoconf-lib-link.
30662         * tests/havelib/rpathx/configure.ac: New file, from
30663         gettext/autoconf-lib-link with modifications.
30664         * tests/havelib/rpathy/rpathy.c: New file, from
30665         gettext/autoconf-lib-link.
30666         * tests/havelib/rpathy/Makefile.am: New file, from
30667         gettext/autoconf-lib-link.
30668         * tests/havelib/rpathy/configure.ac: New file, from
30669         gettext/autoconf-lib-link with modifications.
30670         * tests/havelib/rpathz/rpathz.c: New file, from
30671         gettext/autoconf-lib-link.
30672         * tests/havelib/rpathz/Makefile.am: New file, from
30673         gettext/autoconf-lib-link.
30674         * tests/havelib/rpathz/configure.ac: New file, from
30675         gettext/autoconf-lib-link with modifications.
30676         * tests/havelib/rpathlx/usex.c: New file, from
30677         gettext/autoconf-lib-link.
30678         * tests/havelib/rpathlx/Makefile.am: New file, from
30679         gettext/autoconf-lib-link.
30680         * tests/havelib/rpathlx/configure.ac: New file, from
30681         gettext/autoconf-lib-link with modifications.
30682         * tests/havelib/rpathly/usey.c: New file, from
30683         gettext/autoconf-lib-link.
30684         * tests/havelib/rpathly/Makefile.am: New file, from
30685         gettext/autoconf-lib-link.
30686         * tests/havelib/rpathly/configure.ac: New file, from
30687         gettext/autoconf-lib-link with modifications.
30688         * tests/havelib/rpathlz/usez.c: New file, from
30689         gettext/autoconf-lib-link.
30690         * tests/havelib/rpathlz/Makefile.am: New file, from
30691         gettext/autoconf-lib-link.
30692         * tests/havelib/rpathlz/configure.ac: New file, from
30693         gettext/autoconf-lib-link with modifications.
30694         * tests/havelib/rpathlyx/usey.c: New file, from
30695         gettext/autoconf-lib-link.
30696         * tests/havelib/rpathlyx/Makefile.am: New file, from
30697         gettext/autoconf-lib-link.
30698         * tests/havelib/rpathlyx/configure.ac: New file, from
30699         gettext/autoconf-lib-link with modifications.
30700         * tests/havelib/rpathlzyx/usez.c: New file, from
30701         gettext/autoconf-lib-link.
30702         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30703         gettext/autoconf-lib-link.
30704         * tests/havelib/rpathlzyx/configure.ac: New file, from
30705         gettext/autoconf-lib-link with modifications.
30706         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30707         with modifications.
30708
30709 2010-04-02  Bruno Haible  <bruno@clisp.org>
30710
30711         gnulib-tool: Create distributed built sources also for the tests.
30712         * gnulib-tool (func_create_testdir): Also generate distributed built
30713         sources in the tests directory.
30714
30715 2010-04-02  Bruno Haible  <bruno@clisp.org>
30716
30717         gnulib-tool: Obey user's environment variables.
30718         * gnulib-tool (func_create_testdir): When creating built sources,
30719         respect the environment variables for autoconf, automake, etc. given by
30720         the user.
30721
30722 2010-04-02  Bruno Haible  <bruno@clisp.org>
30723
30724         gnulib-tool: Provide the value of --m4-base to modules.
30725         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30726         of gl_m4_base.
30727
30728 2010-04-02  Eric Blake  <eblake@redhat.com>
30729
30730         maint.mk: fix some fallout
30731         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30732         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30733
30734 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30735
30736         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30737         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30738         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30739         (sc_cast_of_x_alloc_return_value): Likewise.
30740         (sc_cast_of_alloca_return_value): Likewise.
30741         (sc_space_tab): Likewise.
30742         (sc_prohibit_atoi_atof): Likewise.
30743         (sc_prohibit_magic_number_exit): Likewise.
30744         (sc_error_exit_success): Likewise.
30745         (sc_file_system): Likewise.
30746         (sc_prohibit_have_config_h): Likewise.
30747         (sc_require_config_h): Likewise.
30748         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30749         (sc_obsolete_symbols): Likewise.
30750         (sc_changelog): Likewise.
30751         (sc_program_name): Likewise.
30752         (sc_the_the): Likewise.
30753         (sc_trailing_blank): Likewise.
30754         (sc_two_space_separator_in_usage): Likewise.
30755         (sc_useless_cpp_parens): Likewise.
30756         (sc_GPL_version): Likewise.
30757         (sc_GFDL_version): Likewise.
30758         (sc_texinfo_acronym): Likewise.
30759         (sc_prohibit_cvs_keyword): Likewise.
30760         (sc_prohibit_stat_st_blocks): Likewise.
30761         (sc_prohibit_S_IS_definition): Likewise.
30762         (sc_redundant_const): Likewise.
30763         (sc_makefile_TAB_only_indentation): Likewise.
30764         (sc_m4_quote_check): Likewise.
30765         (sc_makefile_path_separator_check): Likewise.
30766         (sc_copyright_check): Likewise.
30767         (sc_Wundef_boolean): Likewise.
30768         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30769
30770         maint.mk: match 0 or more whitespace-before-function-call '('
30771         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30772         that have zero or two-and-more spaces between the function name
30773         and the open parenthesis.
30774         (sc_error_message_warn_fatal): Likewise.
30775         (sc_error_message_uppercase): Likewise.
30776         (sc_error_message_period): Likewise.
30777
30778 2010-03-31  Eric Blake  <eblake@redhat.com>
30779
30780         maint.mk: check for [ as well as test
30781         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30782         Based on a libvirt report by Matthias Bolte.
30783
30784         gnumakefile: don't squelch _version output
30785         * top/GNUmakefile (_version): Create one-shot dependency rather
30786         than using $(shell) when version must be regenerated.
30787         (_autoreconf): Run verbosely, by default.
30788
30789         sys_time: avoid compiler warnings
30790         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30791         unconditional, fixing regression from 2010-03-29.
30792         Reported by Simon Josefsson.
30793
30794 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30795
30796         maint.mk: s/_header_without_use/_sc_header_without_use/
30797         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30798         (sc_prohibit_assert_without_use): Use the new name.
30799         (sc_prohibit_close_stream_without_use): Likewise.
30800         (sc_prohibit_getopt_without_use): Likewise.
30801         (sc_prohibit_quotearg_without_use): Likewise.
30802         (sc_prohibit_quote_without_use): Likewise.
30803         (sc_prohibit_long_options_without_use): Likewise.
30804         (sc_prohibit_inttostr_without_use): Likewise.
30805         (sc_prohibit_ignore_value_without_use): Likewise.
30806         (sc_prohibit_error_without_use): Likewise.
30807         (sc_prohibit_xalloc_without_use): Likewise.
30808         (sc_prohibit_hash_without_use): Likewise.
30809         (sc_prohibit_hash_pjw_without_use): Likewise.
30810         (sc_prohibit_safe_read_without_use): Likewise.
30811         (sc_prohibit_argmatch_without_use): Likewise.
30812         (sc_prohibit_canonicalize_without_use): Likewise.
30813         (sc_prohibit_root_dev_ino_without_use): Likewise.
30814         (sc_prohibit_openat_without_use): Likewise.
30815         (sc_prohibit_c_ctype_without_use): Likewise.
30816         (sc_prohibit_signal_without_use): Likewise.
30817         (sc_prohibit_intprops_without_use): Likewise.
30818
30819 2010-03-30  Eric Blake  <eblake@redhat.com>
30820
30821         maint: improve module indicators
30822         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30823         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30824         columns, and avoid extra macro expansion.
30825
30826         fdopendir: work around FreeBSD bug
30827         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30828         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30829         * modules/dirent (Makefile.am): Substitute it.
30830         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30831         declaration.
30832         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30833         fix.
30834         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30835
30836 2010-03-29  Bruno Haible  <bruno@clisp.org>
30837
30838         Emit #pragma system_header after the inclusion guard, not before.
30839         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30840         guard that spans the entire file, not before. This enables an
30841         optimization in GCC's preprocessor.
30842         * lib/ctype.in.h: Likewise.
30843         * lib/dirent.in.h: Likewise.
30844         * lib/errno.in.h: Likewise.
30845         * lib/float.in.h: Likewise.
30846         * lib/getopt.in.h: Likewise.
30847         * lib/iconv.in.h: Likewise.
30848         * lib/langinfo.in.h: Likewise.
30849         * lib/locale.in.h: Likewise.
30850         * lib/math.in.h: Likewise.
30851         * lib/netdb.in.h: Likewise.
30852         * lib/netinet_in.in.h: Likewise.
30853         * lib/pty.in.h: Likewise.
30854         * lib/sched.in.h: Likewise.
30855         * lib/se-selinux.in.h: Likewise.
30856         * lib/search.in.h: Likewise.
30857         * lib/spawn.in.h: Likewise.
30858         * lib/stdarg.in.h: Likewise.
30859         * lib/stdint.in.h: Likewise.
30860         * lib/string.in.h: Likewise.
30861         * lib/strings.in.h: Likewise.
30862         * lib/sys_file.in.h: Likewise.
30863         * lib/sys_ioctl.in.h: Likewise.
30864         * lib/sys_time.in.h: Likewise.
30865         * lib/sys_times.in.h: Likewise.
30866         * lib/sys_utsname.in.h: Likewise.
30867         * lib/sys_wait.in.h: Likewise.
30868         * lib/sysexits.in.h: Likewise.
30869         * lib/wctype.in.h: Likewise.
30870
30871 2010-03-28  James Youngman  <jay@gnu.org>
30872
30873         save-cwd: don't leak a file descriptor when the caller execs.
30874         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30875         saved file descriptor.
30876         * modules/save-cwd (Depends-on): Depend on cloexec.
30877
30878 2010-03-29  Bruno Haible  <bruno@clisp.org>
30879
30880         Remove vestiges of fts-lgpl module.
30881         * lib/fts_.h: Assume GNULIB_FTS is 1.
30882         * lib/fts.c: Likewise.
30883         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30884
30885 2010-03-28  Bruno Haible  <bruno@clisp.org>
30886
30887         Fix definition of tests witness macro.
30888         * gnulib-tool (func_import): Fix definition of witness macro.
30889
30890 2010-03-28  Bruno Haible  <bruno@clisp.org>
30891
30892         Fix ioctl's protoype on glibc systems.
30893         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30894         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30895         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30896         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30897         signature. If not, arrange to replace the ioctl function.
30898         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30899         REPLACE_IOCTL.
30900         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30901         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30902         Reported by Ludovic Courtès <ludo@gnu.org>.
30903
30904 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30905
30906         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30907         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30908         made it so grep -r --include=GLOB* ... did not work.
30909
30910 2010-03-26  Jim Meyering  <meyering@redhat.com>
30911             Eric Blake  <eblake@redhat.com>
30912
30913         maint.mk: prohibit use of test's -o and -a operators
30914         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30915
30916 2010-03-28  Bruno Haible  <bruno@clisp.org>
30917
30918         Remove unused GNULIB_XYZ macro definitions.
30919         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30920         invocation.
30921
30922 2010-03-28  Bruno Haible  <bruno@clisp.org>
30923
30924         Mark privileged tests modules.
30925         * modules/idpriv-drop-tests (Status): New section.
30926         * modules/idpriv-droptemp-tests (Status): New section.
30927
30928 2010-03-28  Bruno Haible  <bruno@clisp.org>
30929
30930         Split C++ tests into separate tests modules.
30931         * modules/dirent-c++-tests: New file, extracted from
30932         modules/dirent-tests.
30933         * modules/dirent-tests: Depend on it.
30934         * modules/fcntl-h-c++-tests: New file, extracted from
30935         modules/fcntl-h-tests.
30936         * modules/fcntl-h-tests: Depend on it.
30937         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30938         * modules/glob-tests: Depend on it.
30939         * modules/iconv-h-c++-tests: New file, extracted from
30940         modules/iconv-h-tests.
30941         * modules/iconv-h-tests: Depend on it.
30942         * modules/langinfo-c++-tests: New file, extracted from
30943         modules/langinfo-tests.
30944         * modules/langinfo-tests: Depend on it.
30945         * modules/locale-c++-tests: New file, extracted from
30946         modules/locale-tests.
30947         * modules/locale-tests: Depend on it.
30948         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30949         * modules/math-tests: Depend on it.
30950         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30951         * modules/pty-tests: Depend on it.
30952         * modules/search-c++-tests: New file, extracted from
30953         modules/search-tests.
30954         * modules/search-tests: Depend on it.
30955         * modules/signal-c++-tests: New file, extracted from
30956         modules/signal-tests.
30957         * modules/signal-tests: Depend on it.
30958         * modules/spawn-c++-tests: New file, extracted from
30959         modules/spawn-tests.
30960         * modules/spawn-tests: Depend on it.
30961         * modules/stdio-c++-tests: New file, extracted from
30962         modules/stdio-tests.
30963         * modules/stdio-tests: Depend on it.
30964         * modules/stdlib-c++-tests: New file, extracted from
30965         modules/stdlib-tests.
30966         * modules/stdlib-tests: Depend on it.
30967         * modules/string-c++-tests: New file, extracted from
30968         modules/string-tests.
30969         * modules/string-tests: Depend on it.
30970         * modules/sys_ioctl-c++-tests: New file, extracted from
30971         modules/sys_ioctl-tests.
30972         * modules/sys_ioctl-tests: Depend on it.
30973         * modules/sys_select-c++-tests: New file, extracted from
30974         modules/sys_select-tests.
30975         * modules/sys_select-tests: Depend on it.
30976         * modules/sys_socket-c++-tests: New file, extracted from
30977         modules/sys_socket-tests.
30978         * modules/sys_socket-tests: Depend on it.
30979         * modules/sys_stat-c++-tests: New file, extracted from
30980         modules/sys_stat-tests.
30981         * modules/sys_stat-tests: Depend on it.
30982         * modules/sys_time-c++-tests: New file, extracted from
30983         modules/sys_time-tests.
30984         * modules/sys_time-tests: Depend on it.
30985         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30986         * modules/time-tests: Depend on it.
30987         * modules/unistd-c++-tests: New file, extracted from
30988         modules/unistd-tests.
30989         * modules/unistd-tests: Depend on it.
30990         * modules/wchar-c++-tests: New file, extracted from
30991         modules/wchar-tests.
30992         * modules/wchar-tests: Depend on it.
30993         * modules/wctype-c++-tests: New file, extracted from
30994         modules/wctype-tests.
30995         * modules/wctype-tests: Depend on it.
30996         Reported by Simon Josefsson.
30997
30998 2010-03-28  Bruno Haible  <bruno@clisp.org>
30999
31000         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31001         * gnulib-tool (func_exists_module): New function, extracted from
31002         func_verify_module.
31003         (func_verify_module): Use it.
31004         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31005         'foo' only if 'foo' exists.
31006         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31007         module.
31008
31009 2010-03-28  Bruno Haible  <bruno@clisp.org>
31010
31011         gnulib-tool: Add support for special categories of tests.
31012         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31013         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31014         (func_usage): Document them.
31015         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31016         inc_unportable_tests, inc_all_tests): New variables.
31017         (func_acceptable): Consider these variables.
31018         (func_modules_transitive_closure): Make it work when the 'Status' field
31019         consists of multiple words.
31020         (func_import): Store and restore the values of inc_cxx_tests,
31021         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31022         inc_all_tests in gnulib-comp.m4.
31023         (func_create_testdir): Set inc_all_tests to true.
31024         * doc/gnulib.texi (Extra tests modules): New section.
31025         Suggested by Jim Meyering.
31026
31027 2010-03-28  Bruno Haible  <bruno@clisp.org>
31028
31029         ansi-c++-opt: Allow turning off the C++ build by default.
31030         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31031         gl_CXX_CHOICE_DEFAULT_NO is defined.
31032         Requested by Eric Blake.
31033
31034 2010-03-28  Bruno Haible  <bruno@clisp.org>
31035
31036         unistd: Avoid #define replacements in C++ mode.
31037         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31038         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31039         setsockopt, shutdown, select): In C++, attach a warning to the function
31040         if possible, rather than #defining the symbol to a dysfunctional alias.
31041         Reported by John W. Eaton <jwe@gnu.org>.
31042
31043 2010-03-28  Bruno Haible  <bruno@clisp.org>
31044
31045         Fix link errors on mingw.
31046         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31047         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31048         $(LIBSOCKET).
31049         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31050         $(LIBSOCKET).
31051
31052 2010-03-28  Bruno Haible  <bruno@clisp.org>
31053             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31054
31055         lib-ignore: Determine different options for different compilers.
31056         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31057         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31058         Add comments.
31059         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31060         * NEWS: Mention the change.
31061
31062 2010-03-27  Bruno Haible  <bruno@clisp.org>
31063
31064         Remove unused GNULIB_XYZ macro definitions.
31065         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31066         * modules/fseek (configure.ac): Likewise.
31067         * modules/ioctl (configure.ac): Likewise.
31068         * modules/open (configure.ac): Likewise.
31069         * modules/stdlib-safer (configure.ac): Likewise.
31070
31071 2010-03-27  Bruno Haible  <bruno@clisp.org>
31072
31073         Add a remark about certain modules.
31074         * modules/malloc (Comment): New section.
31075         * modules/realloc (Comment): Likewise.
31076         * modules/sigpipe (Comment): Likewise.
31077
31078 2010-03-27  Bruno Haible  <bruno@clisp.org>
31079
31080         Resolve conflict between the two kinds of module indicators.
31081         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31082         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31083         * modules/canonicalize (configure.ac): Invoke
31084         gl_MODULE_INDICATOR_FOR_TESTS.
31085         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31086         GNULIB_XYZ.
31087         * tests/test-dirent-c++.cc: Likewise.
31088         * tests/test-dirent-safer.c: Likewise.
31089         * tests/test-dup2.c: Likewise.
31090         * tests/test-fchdir.c: Likewise.
31091         * tests/test-fcntl-h-c++.cc: Likewise.
31092         * tests/test-getopt.c: Likewise.
31093         * tests/test-getopt.h: Likewise.
31094         * tests/test-langinfo-c++.cc: Likewise.
31095         * tests/test-locale-c++.cc: Likewise.
31096         * tests/test-math-c++.cc: Likewise.
31097         * tests/test-pty-c++.cc: Likewise.
31098         * tests/test-search-c++.cc: Likewise.
31099         * tests/test-signal-c++.cc: Likewise.
31100         * tests/test-spawn-c++.cc: Likewise.
31101         * tests/test-stdio-c++.cc: Likewise.
31102         * tests/test-stdlib-c++.cc: Likewise.
31103         * tests/test-string-c++.cc: Likewise.
31104         * tests/test-sys_ioctl-c++.cc: Likewise.
31105         * tests/test-sys_select-c++.cc: Likewise.
31106         * tests/test-sys_socket-c++.cc: Likewise.
31107         * tests/test-sys_stat-c++.cc: Likewise.
31108         * tests/test-sys_time-c++.cc: Likewise.
31109         * tests/test-time-c++.cc: Likewise.
31110         * tests/test-unistd-c++.cc: Likewise.
31111         * tests/test-wchar-c++.cc: Likewise.
31112         * tests/uninorm/test-u8-nfc.c: Likewise.
31113         * tests/uninorm/test-u8-nfd.c: Likewise.
31114         * tests/uninorm/test-u8-nfkc.c: Likewise.
31115         * tests/uninorm/test-u8-nfkd.c: Likewise.
31116         * tests/uninorm/test-u16-nfc.c: Likewise.
31117         * tests/uninorm/test-u16-nfd.c: Likewise.
31118         * tests/uninorm/test-u16-nfkc.c: Likewise.
31119         * tests/uninorm/test-u16-nfkd.c: Likewise.
31120         * tests/uninorm/test-u32-nfc.c: Likewise.
31121         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31122         * tests/uninorm/test-u32-nfd.c: Likewise.
31123         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31124         * tests/uninorm/test-u32-nfkc.c: Likewise.
31125         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31126         * tests/uninorm/test-u32-nfkd.c: Likewise.
31127         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31128         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31129
31130 2010-03-27  Bruno Haible  <bruno@clisp.org>
31131
31132         Distinguish two kinds of module indicators.
31133         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31134         gl_MODULE_INDICATOR.
31135         (gl_MODULE_INDICATOR): New macro.
31136         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31137         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31138         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31139         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31140         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31141         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31142         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31143         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31144         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31145         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31146         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31147         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31149         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31150         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31151         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31152         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31153         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31154         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31155         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31156         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31157         * modules/cloexec (configure.ac): Likewise.
31158         * modules/getopt-gnu (configure.ac): Likewise.
31159         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31160         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31161         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31162         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31163
31164 2010-03-27  Bruno Haible  <bruno@clisp.org>
31165
31166         New module description field 'Comment'.
31167         * gnulib-tool: New option --extract-comment.
31168         (func_usage): Document it.
31169         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31170         (func_get_comment): New function.
31171         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31172
31173 2010-03-27  Bruno Haible  <bruno@clisp.org>
31174
31175         Addendum to 2010-02-07 commit.
31176         * gnulib-tool (func_usage): Document --extract-applicability option.
31177
31178 2010-03-27  Bruno Haible  <bruno@clisp.org>
31179
31180         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31181         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31182         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31183         rather than link errors.
31184
31185 2010-03-27  Bruno Haible  <bruno@clisp.org>
31186
31187         Avoid side effects from tests-related modules on the compilation of lib.
31188         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31189         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31190         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31191         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31192         macro.
31193         (func_import): Define a witness macro. Assign it a value that depends
31194         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31195         tests-related modules.
31196         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31197         Reported by Jim Meyering.
31198
31199 2010-03-27  Bruno Haible  <bruno@clisp.org>
31200
31201         Factorize common .m4 code.
31202         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31203         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31204         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31205         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31206         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31207         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31208         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31209         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31210         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31211         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31212         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31213         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31214         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31215         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31216         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31217         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31218         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31219         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31220         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31221         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31222         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31223         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31224         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31225         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31226         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31227         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31228         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31230         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31231         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31232         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31233         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31234
31235 2010-03-27  Bruno Haible  <bruno@clisp.org>
31236
31237         Fix a compilation error on Cygwin with g++ >= 4.3.
31238         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31239         if it is undefined or if we alias it to chmod.
31240         (lstat): Don't warn about the use of this function if it is undefined
31241         or if we alias it to stat.
31242         Reported by Simon Josefsson.
31243
31244 2010-03-27  Bruno Haible  <bruno@clisp.org>
31245
31246         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31247         * modules/getlogin (configure.ac): Update.
31248
31249         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31250         * modules/getlogin_r (configure.ac): Update.
31251
31252         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31254         * modules/inet_ntop (configure.ac): Update.
31255
31256         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31257         * modules/inet_pton (configure.ac): Update.
31258
31259         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31260         * modules/mbslen (configure.ac): Update.
31261
31262         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31263         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31264         * modules/forkpty (configure.ac): Update.
31265         * modules/openpty (configure.ac): Update.
31266
31267 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31268
31269         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31270         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31271
31272 2010-03-25  Eric Blake  <eblake@redhat.com>
31273
31274         maint: use pragma consistently across replacement headers
31275         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31276         * lib/dirent.in.h (system_header): Likewise.
31277         * lib/errno.in.h (system_header): Likewise.
31278         * lib/float.in.h (system_header): Likewise.
31279         * lib/getopt.in.h (system_header): Likewise.
31280         * lib/iconv.in.h (system_header): Likewise.
31281         * lib/inttypes.in.h (system_header): Likewise.
31282         * lib/langinfo.in.h (system_header): Likewise.
31283         * lib/locale.in.h (system_header): Likewise.
31284         * lib/math.in.h (system_header): Likewise.
31285         * lib/netdb.in.h (system_header): Likewise.
31286         * lib/netinet_in.in.h (system_header): Likewise.
31287         * lib/pty.in.h (system_header): Likewise.
31288         * lib/sched.in.h (system_header): Likewise.
31289         * lib/se-selinux.in.h (system_header): Likewise.
31290         * lib/search.in.h (system_header): Likewise.
31291         * lib/spawn.in.h (system_header): Likewise.
31292         * lib/stdarg.in.h (system_header): Likewise.
31293         * lib/stdint.in.h (system_header): Likewise.
31294         * lib/string.in.h (system_header): Likewise.
31295         * lib/strings.in.h (system_header): Likewise.
31296         * lib/sys_file.in.h (system_header): Likewise.
31297         * lib/sys_ioctl.in.h (system_header): Likewise.
31298         * lib/sys_socket.in.h (system_header): Likewise.
31299         * lib/sys_times.in.h (system_header): Likewise.
31300         * lib/sys_utsname.in.h (system_header): Likewise.
31301         * lib/sys_wait.in.h (system_header): Likewise.
31302         * lib/sysexits.in.h (system_header): Likewise.
31303         * lib/unistd.in.h (system_header): Likewise.
31304         * lib/wctype.in.h (system_header): Likewise.
31305
31306         arpa/inet: fix mingw compilation warning
31307         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31308         Reported by Matthew Bolte.
31309
31310 2010-03-25  Bruno Haible  <bruno@clisp.org>
31311
31312         Avoid collision between gnulib wrapper and libintl wrapper.
31313         * lib/printf.c (printf): Don't define if a printf wrapper is already
31314         defined in intl/printf.c.
31315         Reported by Michel Boaventura <michel@michelboaventura.com>.
31316
31317 2010-03-25  Bruno Haible  <bruno@clisp.org>
31318
31319         Use ANSI C.
31320         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31321
31322 2010-03-25  Bruno Haible  <bruno@clisp.org>
31323
31324         Minor formatting changes.
31325         * lib/acosl.c: Insert space before function argument list.
31326         * lib/argz.c: Likewise.
31327         * lib/asinl.c: Likewise.
31328         * lib/expl.c: Likewise.
31329         * lib/gen-uni-tables.c: Likewise.
31330         * lib/gettext.h: Likewise.
31331         * lib/glthread/lock.h: Likewise.
31332         * lib/tanl.c: Likewise.
31333         * lib/uniname/uniname.c: Likewise.
31334         * tests/test-idpriv-drop.c: Likewise.
31335         * tests/test-idpriv-droptemp.c: Likewise.
31336         * tests/test-lock.c: Likewise.
31337         * tests/test-tls.c: Likewise.
31338         * lib/argp-help.c: Insert space before function-like macro argument
31339         list.
31340         * lib/memcmp.c: Likewise.
31341         * tests/test-base64.c: Likewise.
31342         * lib/localename.c: Insert space before sizeof's argument list.
31343         * lib/safe-alloc.h: Likewise.
31344         * lib/file-set.h: Insert space before macro argument list.
31345         * tests/test-argp.c: Likewise.
31346         * lib/argp-namefrob.h: Insert space before function parameter list.
31347         * lib/getaddrinfo.c: Likewise.
31348         * lib/netdb.in.h: Likewise.
31349         * lib/parse-duration.h: Likewise.
31350         * lib/parse-duration.c: Likewise.
31351         * lib/poll.c: Likewise.
31352         * lib/select.c: Likewise.
31353         * lib/trim.h: Likewise.
31354         * tests/test-usleep.c: Likewise.
31355         * lib/ldexpl.c: Insert space before function parameter list and before
31356         function argument list.
31357         * lib/logl.c: Likewise.
31358         * lib/sqrtl.c: Likewise.
31359         * lib/trim.c: Likewise.
31360         * lib/cosl.c: Use GNU style indentation. Insert space before function
31361         argument list.
31362         * lib/sinl.c: Likewise.
31363         * lib/tsearch.c: Insert space after 'for'.
31364         Reported by Jim Meyering.
31365
31366 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31367
31368         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31369         config header before grepping, as it's not present before
31370         autoreconf/configure are run.  Reported by Simon Josefsson.
31371
31372 2010-03-23  Bruno Haible  <bruno@clisp.org>
31373
31374         pt_chown: Make it work with automake < 1.11.
31375         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31376         Reported by Simon Josefsson.
31377
31378 2010-03-23  Bruno Haible  <bruno@clisp.org>
31379
31380         pt_chown: Don't depend on GPLed modules.
31381         * lib/pt_chown.c: Don't include idpriv.h.
31382         (main): Don't drop privileges.
31383         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31384         Reported by Simon Josefsson.
31385
31386 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31387
31388         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31389         suggestions from karl@freefriends.org (Karl Berry).
31390
31391 2010-03-22  Eric Blake  <eblake@redhat.com>
31392
31393         gethostname: further tweaks
31394         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31395         are overriding gethostname.
31396         Suggested by Bruno Haible.
31397
31398 2010-03-21  Bruno Haible  <bruno@clisp.org>
31399
31400         Fix comments.
31401         * lib/forkpty.c (rpl_forkpty): Fix comment.
31402         * lib/openpty.c (rpl_openpty): Likewise.
31403         Reported by Eric Blake.
31404
31405 2010-03-22  Eric Blake  <eblake@redhat.com>
31406
31407         gethostname: fix build on mingw
31408         * lib/unistd.in.h (includes): Work around fact that mingw
31409         <winsock2.h> re-includes <unistd.h>, by avoiding any
31410         redeclarations if we are being included by <winsock2.h>.
31411         Reported by Matthias Bolte.
31412
31413 2010-03-21  Bruno Haible  <bruno@clisp.org>
31414
31415         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31416         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31417         modifications.
31418         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31419         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31420         provide the replacement.
31421         * modules/forkpty (Depends-on): Add openpty, login_tty.
31422         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31423         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31424         * doc/glibc-functions/forkpty.texi: More supported platforms.
31425         * config/srclist.txt: Add forkpty.c (commented).
31426
31427 2010-03-21  Bruno Haible  <bruno@clisp.org>
31428
31429         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31430         (Makefile.am): Verify that PTY_LIB is defined.
31431
31432         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31433
31434 2010-03-21  Bruno Haible  <bruno@clisp.org>
31435
31436         Tests for module 'login_tty'.
31437         * modules/login_tty-tests: New file.
31438         * tests/test-login_tty.c: New file.
31439
31440         New module 'login_tty'.
31441         * lib/login_tty.c: New file.
31442         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31443         * modules/login_tty: New file.
31444         * doc/glibc-functions/login_tty.texi: Mention the new module.
31445
31446 2010-03-21  Bruno Haible  <bruno@clisp.org>
31447
31448         login_tty: Documentation.
31449         * doc/glibc-functions/login_tty.texi: New file.
31450         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31451
31452 2010-03-21  Bruno Haible  <bruno@clisp.org>
31453
31454         pty: Consistent macro naming.
31455         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31456         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31457         * modules/pty (configure.ac): Update.
31458
31459 2010-03-21  Bruno Haible  <bruno@clisp.org>
31460
31461         Tests for openpty: Make stricter.
31462         * tests/test-openpty.c (main): Add test of canonical processing and
31463         erase.
31464         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31465
31466         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31467         * lib/openpty.c (openpty): New replacement function.
31468         * lib/pty.in.h: Include <termios.h>.
31469         (openpty): Update declaration. Add comments.
31470         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31471         is not declared, arrange to provide the replacement. Check for _getpty
31472         and posix_openpt.
31473         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31474         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31475         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31476         * modules/pty-tests (test_pty_c___LDADD): New variable.
31477         * doc/glibc-functions/openpty.texi: More supported platforms.
31478
31479 2010-03-21  Bruno Haible  <bruno@clisp.org>
31480
31481         setenv: Tweaks.
31482         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31483         the test program.
31484         * doc/posix-functions/setenv.texi: Update platforms list.
31485
31486 2010-03-21  Bruno Haible  <bruno@clisp.org>
31487
31488         New module 'unlockpt'.
31489         * lib/unlockpt.c: New file, from glibc with modifications.
31490         * m4/unlockpt.m4: New file.
31491         * modules/unlockpt: New file.
31492         * lib/stdlib.in.h (unlockpt): New declaration.
31493         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31494         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31495         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31496         HAVE_UNLOCKPT.
31497         * doc/posix-functions/unlockpt.texi: Mention the new module.
31498         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31499         * config/srclist.txt: Add unlockpt.c (commented).
31500
31501 2010-03-21  Jim Meyering  <meyering@redhat.com>
31502
31503         maint.mk: prohibit inclusion of "intprops.h" without use
31504         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31505
31506 2010-03-21  Bruno Haible  <bruno@clisp.org>
31507
31508         New module 'grantpt'.
31509         * lib/grantpt.c: New file, from glibc with modifications.
31510         * m4/grantpt.m4: New file.
31511         * modules/grantpt: New file.
31512         * lib/stdlib.in.h (grantpt): New declaration.
31513         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31514         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31515         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31516         HAVE_GRANTPT.
31517         * doc/posix-functions/grantpt.texi: Mention the new module.
31518         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31519         * config/srclist.txt: Add grantpt.c (commented).
31520
31521 2010-03-21  Bruno Haible  <bruno@clisp.org>
31522
31523         New module 'pt_chown'.
31524         * lib/pt_chown.c: New file, from glibc with modifications.
31525         * lib/pty-private.h: New file, from glibc with modifications.
31526         * modules/pt_chown: New file.
31527         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31528
31529 2010-03-21  Bruno Haible  <bruno@clisp.org>
31530
31531         Tests for module 'ptsname'.
31532         * modules/ptsname-tests: New file.
31533         * tests/test-ptsname.c: New file.
31534
31535         New module 'ptsname'.
31536         * lib/ptsname.c: New file, from glibc with modifications.
31537         * m4/ptsname.m4: New file.
31538         * modules/ptsname: New file.
31539         * lib/stdlib.in.h (ptsname): New declaration.
31540         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31541         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31542         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31543         HAVE_PTSNAME.
31544         * doc/posix-functions/ptsname.texi: Mention the new module.
31545         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31546         * config/srclist.txt: Add ptsname.c (commented).
31547
31548 2010-03-21  Bruno Haible  <bruno@clisp.org>
31549
31550         Tests for module 'ttyname_r'.
31551         * modules/ttyname_r-tests: New file.
31552         * tests/test-ttyname_r.c: New file.
31553
31554         New module 'ttyname_r'.
31555         * lib/ttyname_r.c: New file.
31556         * m4/ttyname_r.m4: New file.
31557         * modules/ttyname_r: New file.
31558         * lib/unistd.in.h (ttyname_r): New declaration.
31559         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31560         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31561         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31562         HAVE_TTYNAME_R.
31563         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31564         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31565
31566 2010-03-20  Bruno Haible  <bruno@clisp.org>
31567
31568         signal: Undefine macro definitions in C++ mode.
31569         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31570         sigfillset): Undefine macro definitions from the system header in C++
31571         mode.
31572         Reported by John W. Eaton <jwe@gnu.org>.
31573
31574 2010-03-20  Bruno Haible  <bruno@clisp.org>
31575
31576         Ensure no #include statements inside extern "C" { ... }.
31577         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31578         contain #include statements.
31579         * lib/time.in.h: Likewise.
31580
31581 2010-03-20  Bruno Haible  <bruno@clisp.org>
31582
31583         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31584         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31585         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31586         Reported by John W. Eaton <jwe@gnu.org>.
31587
31588 2010-03-20  Bruno Haible  <bruno@clisp.org>
31589
31590         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31591         Reported by Jim Meyering.
31592
31593 2010-03-20  Bruno Haible  <bruno@clisp.org>
31594
31595         pipe: Set errno upon failure.
31596         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31597         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31598         errno value in error message.
31599
31600 2010-03-20  Bruno Haible  <bruno@clisp.org>
31601             Jim Meyering  <meyering@redhat.com>
31602
31603         lchown: Avoid "unused variable" warning.
31604         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31605
31606 2010-03-20  Bruno Haible  <bruno@clisp.org>
31607
31608         Work around unlink() bug on MacOS X 10.5.6.
31609         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31610         attempting to unlink a parent directory.
31611         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31612         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31613         activate for the replacement function.
31614         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31615
31616 2010-03-20  Bruno Haible  <bruno@clisp.org>
31617
31618         Fix link errors on Solaris 8.
31619         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31620         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31621
31622 2010-03-19  Jim Meyering  <meyering@redhat.com>
31623
31624         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31625         The _LIBC implementation of build_range_exp correctly honors the
31626         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31627         However, the non-_LIBC implementation would ignore that syntax-bit
31628         flag and return REG_ERANGE unconditionally.
31629         This change makes it honor that flag.
31630         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31631         Make two pointer parameters "const".
31632         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31633         (parse_bracket_exp): Update caller.
31634
31635         regex.m4: correct the reversed range endpoint ([b-a]) test
31636         * m4/regex.m4: When requiring that [b-a] evoke failure,
31637         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31638         test pass once again for x86-based systems.
31639
31640 2010-03-19  Bruno Haible  <bruno@clisp.org>
31641
31642         scandir: Fix link error on Solaris 8.
31643         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31644         macros.
31645
31646 2010-03-19  Bruno Haible  <bruno@clisp.org>
31647
31648         getusershell: Fix documentation.
31649         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31650         module.
31651         * doc/glibc-functions/setusershell.texi: Likewise.
31652
31653         getusershell: Provide declaration, missing on Solaris 9.
31654         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31655         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31656         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31657         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31659         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31660         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31661         HAVE_GETUSERSHELL.
31662         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31663
31664 2010-03-19  Bruno Haible  <bruno@clisp.org>
31665
31666         wctype: Provide iswblank function.
31667         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31668         exists and is fine.
31669         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31670         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31671         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31672         * doc/posix-functions/iswblank.texi: Update.
31673
31674 2010-03-19  Bruno Haible  <bruno@clisp.org>
31675
31676         Tests of module 'pty' in C++ mode.
31677         * modules/pty-tests: New file.
31678         * tests/test-pty-c++.cc: New file.
31679         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31680
31681 2010-03-19  Eric Blake  <eblake@redhat.com>
31682
31683         logb: fix documentation
31684         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31685         1.5 declaration bug.
31686
31687         forkpty, openpty: prefer glibc's const-safe prototype
31688         * lib/forkpty.c (rpl_forkpty): New file.
31689         * lib/openpty.c (rpl_openpty): Likewise.
31690         * modules/forkpty (Files): Distribute it.
31691         * modules/openpty (Files): Likewise.
31692         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31693         check...
31694         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31695         replacement for for non-const BSD signature.
31696         * modules/pty (Makefile.am): Substitute witnesses.
31697         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31698         * tests/test-forkpty.c: Update signature check.
31699         * tests/test-openpty.c: Likewise.
31700         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31701         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31702
31703         forkpty, openpty: split functions into new modules
31704         * modules/pty (Makefile.am): Substitute new witnesses.
31705         (Libraries): Move library detection...
31706         * modules/forkpty: ...into new module.
31707         * modules/openpty: Another new module.
31708         * modules/pty-tests: Rename and split...
31709         * modules/forkpty-tests: ...to this...
31710         * modules/openpty-tests: ...and this.
31711         * tests/test-pty.c: Rename and split...
31712         * tests/test-forkpty.c: ...to this...
31713         * tests/test-openpty.c: ...and this.
31714         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31715         (gl_PTY): Split library searching...
31716         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31717         (gl_FORKPTY, gl_OPENPTY): New macros.
31718         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31719         * NEWS: Mention the split.
31720         * MODULES.html.sh (Misc): Document the modules.
31721         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31722         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31723
31724         pty: improve replacement header
31725         * lib/pty.in.h: New file.
31726         * modules/pty (Files): Ship it.
31727         (Makefile.am): Always build replacement.
31728         * m4/pty.m4: Rename...
31729         * m4/pty_h.m4: ...to this.
31730         (gl_PTY): Modernize setting of witness macros; update check of
31731         forkpty to take proper advantage of cache.
31732         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31733
31734         getopt: avoid compiler warning
31735         * lib/getopt.c (attribute_hidden): Remove unused macro.
31736
31737 2010-03-18  Bruno Haible  <bruno@clisp.org>
31738
31739         Fix link errors on Solaris 8.
31740         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31741         * modules/search-tests (test_search_c___LDADD): Likewise.
31742         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31743         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31744         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31745         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31746         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31747         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31748         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31749
31750 2010-03-18  Bruno Haible  <bruno@clisp.org>
31751
31752         Fix bug introduced on 2010-03-14.
31753         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31754         (gl_SPAWN_H): Require it.
31755         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31756         Reported by Simon Josefsson.
31757
31758 2010-03-18  Bruno Haible  <bruno@clisp.org>
31759
31760         Fix typo introduced on 2009-12-31.
31761         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31762         posix_spawn_file_actions_adddup2.
31763
31764 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31765         and Eric Blake  <eblake@redhat.com>
31766
31767         test-vc-list-files-git: make more robust
31768         * tests/test-vc-list-files-git.sh: Unset problematic environment
31769         variables.  Chain commands together.
31770
31771 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31772
31773         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31774         `AC_CHECK_DECL' invocation.
31775
31776 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31777
31778         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31779         appears before executable statements. Suggested by Petr Sumbera
31780         <Petr.Sumbera@Sun.COM>.
31781
31782 2010-03-14  Bruno Haible  <bruno@clisp.org>
31783
31784         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31785         portability problems. Instead use a simpler test.
31786         (main): Check that invalid arguments are rejected only on Linux.
31787
31788 2010-03-14  Bruno Haible  <bruno@clisp.org>
31789
31790         Fix bug introduced on 2009-12-31.
31791         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31792         gl_PREREQ_SYS_H_WINSOCK2 always.
31793         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31794         SYS_SOCKET_H variable.
31795         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31796         Update comments.
31797         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31798         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31799         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31800         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31801         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31802
31803 2010-03-14  Bruno Haible  <bruno@clisp.org>
31804
31805         Fix values returned by sinl, cosl.
31806         * lib/trigl.h: Add specification comments.
31807         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31808         that combines the values from the precomputed table with the values of
31809         the Chebyshev polynomials.
31810
31811 2010-03-14  Bruno Haible  <bruno@clisp.org>
31812
31813         Fix compilation error when modules 'posix_spawn[p]' are not used.
31814         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31815         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31816
31817 2010-03-14  Bruno Haible  <bruno@clisp.org>
31818
31819         Fix compilation error on mingw when module 'time_r' is not used.
31820         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31821         is 1.
31822         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31823         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31824         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31825         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31826
31827 2010-03-14  Bruno Haible  <bruno@clisp.org>
31828
31829         Fix compilation error with Sun C.
31830         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31831         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31832         instead of GCC specific ULONG_LONG_MAX.
31833         * lib/xstrtoll.c: Likewise.
31834         * lib/xstrtoull.c: Likewise.
31835
31836 2010-03-13  Bruno Haible  <bruno@clisp.org>
31837
31838         Allow the user to disable C++ code and tests.
31839         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31840         (gl_PROG_ANSI_CXX): Require it.
31841
31842 2010-03-13  Bruno Haible  <bruno@clisp.org>
31843
31844         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31845         cases.
31846
31847 2010-03-13  Bruno Haible  <bruno@clisp.org>
31848
31849         Test that gnulib does not break the standard C++ headers.
31850         * tests/test-locale-c++2.cc: New file.
31851         * modules/locale-tests (Files): Add it.
31852         (Makefile.am): Compile it for test-locale-c++.
31853         * tests/test-math-c++2.cc: New file.
31854         * modules/math-tests (Files): Add it.
31855         (Makefile.am): Compile it for test-math-c++.
31856         * tests/test-signal-c++2.cc: New file.
31857         * modules/signal-tests (Files): Add it.
31858         (Makefile.am): Compile it for test-signal-c++.
31859         * tests/test-stdio-c++2.cc: New file.
31860         * modules/stdio-tests (Files): Add it.
31861         (Makefile.am): Compile it for test-stdio-c++.
31862         * tests/test-stdlib-c++2.cc: New file.
31863         * modules/stdlib-tests (Files): Add it.
31864         (Makefile.am): Compile it for test-stdlib-c++.
31865         * tests/test-string-c++2.cc: New file.
31866         * modules/string-tests (Files): Add it.
31867         (Makefile.am): Compile it for test-string-c++.
31868         * tests/test-time-c++2.cc: New file.
31869         * modules/time-tests (Files): Add it.
31870         (Makefile.am): Compile it for test-time-c++.
31871         Reported by John W. Eaton <jwe@gnu.org>.
31872
31873 2010-03-13  Bruno Haible  <bruno@clisp.org>
31874
31875         * gnulib-tool (func_usage): Clarify which options are available for
31876         --create-testdir and --create-megatestdir.
31877
31878 2010-03-13  Bruno Haible  <bruno@clisp.org>
31879
31880         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31881         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31882         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31883         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31884         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31885         when appropriate.
31886         Reported by Jim Meyering.
31887
31888 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31889
31890         * gnulib-tool (func_import): Explain origin of code.
31891
31892 2010-03-12  Bruno Haible  <bruno@clisp.org>
31893
31894         Fix problem with automake's definition of CXXLINK.
31895         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31896         Reported by Simon Josefsson and Ludovic Courtès.
31897
31898 2010-03-12  Bruno Haible  <bruno@clisp.org>
31899
31900         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31901         stable releases.
31902
31903 2010-03-11  Bruno Haible  <bruno@clisp.org>
31904
31905         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31906         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31907         whether the system provides one variant or multiple variants of the
31908         function.
31909         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31910         C++ compilers.
31911         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31912         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31913         Reported by Jim Meyering.
31914
31915 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31916
31917         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31918
31919 2010-03-08  Bruno Haible  <bruno@clisp.org>
31920
31921         gnulib-tool: Add support for --libtool in --create-testdir.
31922         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31923         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31924
31925 2010-03-08  Eric Blake  <eblake@redhat.com>
31926
31927         gnulib-tool.texi: mention possibility of git submodule
31928         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31929         submodules.
31930         * doc/.gitignore: Ignore another generated file.
31931
31932 2010-03-08  Karl Berry  <karl@gnu.org>
31933
31934         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31935         of committing gnulib files while skipping others.
31936
31937 2010-03-07  Bruno Haible  <bruno@clisp.org>
31938
31939         Tests of module 'wctype' in C++ mode.
31940         * tests/test-wctype-c++.cc: New file.
31941         * modules/wctype-tests (Files): Add it and tests/signature.h.
31942         (Depends-on): Add ansi-c++-opt.
31943         (Makefile.am): Arrange to compile and run test-wctype-c++.
31944
31945         Tests of module 'wchar' in C++ mode.
31946         * tests/test-wchar-c++.cc: New file.
31947         * modules/wchar-tests (Files): Add it and tests/signature.h.
31948         (Depends-on): Add ansi-c++-opt.
31949         (Makefile.am): Arrange to compile and run test-wchar-c++.
31950         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31951         gl_MODULE_INDICATOR.
31952
31953         Tests of module 'unistd' in C++ mode.
31954         * tests/test-unistd-c++.cc: New file.
31955         * modules/unistd-tests (Files): Add it and tests/signature.h.
31956         (Depends-on): Add ansi-c++-opt.
31957         (Makefile.am): Arrange to compile and run test-unistd-c++.
31958         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31959         gl_MODULE_INDICATOR.
31960
31961         Tests of module 'time' in C++ mode.
31962         * tests/test-time-c++.cc: New file.
31963         * modules/time-tests (Files): Add it and tests/signature.h.
31964         (Depends-on): Add ansi-c++-opt.
31965         (Makefile.am): Arrange to compile and run test-time-c++.
31966         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31967
31968         Tests of module 'sys_time' in C++ mode.
31969         * tests/test-sys_time-c++.cc: New file.
31970         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31971         (Depends-on): Add ansi-c++-opt.
31972         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31973         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31974         gl_MODULE_INDICATOR.
31975
31976         Tests of module 'sys_stat' in C++ mode.
31977         * tests/test-sys_stat-c++.cc: New file.
31978         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31979         (Depends-on): Add ansi-c++-opt.
31980         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31981         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31982         gl_MODULE_INDICATOR.
31983
31984         Tests of module 'sys_socket' in C++ mode.
31985         * tests/test-sys_socket-c++.cc: New file.
31986         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31987         (Depends-on): Add ansi-c++-opt.
31988         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31989         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31990         gl_MODULE_INDICATOR.
31991
31992         Tests of module 'sys_select' in C++ mode.
31993         * tests/test-sys_select-c++.cc: New file.
31994         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31995         (Depends-on): Add ansi-c++-opt.
31996         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31997         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31998         gl_MODULE_INDICATOR.
31999
32000         Tests of module 'sys_ioctl' in C++ mode.
32001         * tests/test-sys_ioctl-c++.cc: New file.
32002         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32003         (Depends-on): Add ansi-c++-opt.
32004         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32005         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32006         gl_MODULE_INDICATOR.
32007
32008         Tests of module 'string' in C++ mode.
32009         * tests/test-string-c++.cc: New file.
32010         * modules/string-tests (Files): Add it and tests/signature.h.
32011         (Depends-on): Add ansi-c++-opt.
32012         (Makefile.am): Arrange to compile and run test-string-c++.
32013         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32014         gl_MODULE_INDICATOR.
32015
32016         Tests of module 'stdlib' in C++ mode.
32017         * tests/test-stdlib-c++.cc: New file.
32018         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32019         (Depends-on): Add ansi-c++-opt.
32020         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32021         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32022         gl_MODULE_INDICATOR.
32023
32024         Tests of module 'stdio' in C++ mode.
32025         * tests/test-stdio-c++.cc: New file.
32026         * modules/stdio-tests (Files): Add it and tests/signature.h.
32027         (Depends-on): Add ansi-c++-opt.
32028         (Makefile.am): Arrange to compile and run test-stdio-c++.
32029         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32030         gl_MODULE_INDICATOR.
32031
32032         Tests of module 'spawn' in C++ mode.
32033         * tests/test-spawn-c++.cc: New file.
32034         * modules/spawn-tests (Files): Add it and tests/signature.h.
32035         (Depends-on): Add ansi-c++-opt.
32036         (Makefile.am): Arrange to compile and run test-spawn-c++.
32037         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32038         gl_MODULE_INDICATOR.
32039
32040         Tests of module 'signal' in C++ mode.
32041         * tests/test-signal-c++.cc: New file.
32042         * modules/signal-tests (Files): Add it and tests/signature.h.
32043         (Depends-on): Add ansi-c++-opt.
32044         (Makefile.am): Arrange to compile and run test-signal-c++.
32045         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32046         gl_MODULE_INDICATOR.
32047
32048         Tests of module 'search' in C++ mode.
32049         * tests/test-search-c++.cc: New file.
32050         * modules/search-tests (Files): Add it and tests/signature.h.
32051         (Depends-on): Add ansi-c++-opt.
32052         (Makefile.am): Arrange to compile and run test-search-c++.
32053         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32054         gl_MODULE_INDICATOR.
32055
32056         Tests of module 'math' in C++ mode.
32057         * tests/test-math-c++.cc: New file.
32058         * modules/math-tests (Files): Add it and tests/signature.h.
32059         (Depends-on): Add ansi-c++-opt.
32060         (Makefile.am): Arrange to compile and run test-math-c++.
32061         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32062
32063         Tests of module 'locale' in C++ mode.
32064         * tests/test-locale-c++.cc: New file.
32065         * modules/locale-tests (Files): Add it and tests/signature.h.
32066         (Depends-on): Add ansi-c++-opt.
32067         (Makefile.am): Arrange to compile and run test-locale-c++.
32068         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32069         gl_MODULE_INDICATOR.
32070
32071         Tests of module 'langinfo' in C++ mode.
32072         * tests/test-langinfo-c++.cc: New file.
32073         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32074         (Depends-on): Add ansi-c++-opt.
32075         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32076         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32077         gl_MODULE_INDICATOR.
32078
32079         Tests of module 'iconv-h' in C++ mode.
32080         * tests/test-iconv-h-c++.cc: New file.
32081         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32082         (Depends-on): Add ansi-c++-opt.
32083         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32084
32085         Tests of module 'glob' in C++ mode.
32086         * tests/test-glob-c++.cc: New file.
32087         * modules/glob-tests (Files): Add it.
32088         (Depends-on): Add ansi-c++-opt.
32089         (Makefile.am): Arrange to compile and run test-glob-c++.
32090
32091         Tests of module 'fcntl-h' in C++ mode.
32092         * tests/test-fcntl-h-c++.cc: New file.
32093         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32094         (Depends-on): Add ansi-c++-opt.
32095         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32096         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32097         gl_MODULE_INDICATOR.
32098
32099         Tests of module 'dirent' in C++ mode.
32100         * tests/test-dirent-c++.cc: New file.
32101         * modules/dirent-tests (Files): Add it and tests/signature.h.
32102         (Depends-on): Add ansi-c++-opt.
32103         (Makefile.am): Arrange to compile and run test-dirent-c++.
32104         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32105         gl_MODULE_INDICATOR.
32106
32107         New module 'ansi-c++-opt'.
32108         * modules/ansi-c++-opt: New file.
32109         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32110
32111         Document C++ namespace mode.
32112         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32113
32114         wctype: Avoid #define replacements in C++ mode.
32115         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32116         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32117         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32118         In C++, define a namespaced alias symbol.
32119         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32120         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32121         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32122         rule.
32123
32124         wchar: Avoid #define replacements in C++ mode.
32125         * lib/wchar.in.h: Include c++defs.h.
32126         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32127         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32128         symbol.
32129         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32130         * modules/wchar (Depends-on): Add c++defs.
32131         (Makefile.am): Update wchar.h rule.
32132
32133         unistd: Avoid #define replacements in C++ mode.
32134         * lib/unistd.in.h: Include c++defs.h.
32135         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32136         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32137         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32138         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32139         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32140         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32141         symbol.
32142         (environ): Update.
32143         * modules/unistd (Depends-on): Add c++defs.
32144         (Makefile.am): Update unistd.h rule.
32145
32146         time: Avoid #define replacements in C++ mode.
32147         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32148         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32149         define a namespaced alias symbol.
32150         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32151         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32152         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32153         * modules/time (Depends-on): Add c++defs, warn-on-use.
32154         (Makefile.am): Update time.h rule.
32155         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32156         * modules/nanosleep (configure.ac): Likewise.
32157         * modules/strptime (configure.ac): Likewise.
32158         * modules/timegm (configure.ac): Likewise.
32159
32160         sys_time: Avoid #define replacements in C++ mode.
32161         * lib/sys_time.in.h: Include c++defs.h.
32162         (gettimeofday): In C++, define a namespaced alias symbol.
32163         * modules/sys_time (Depends-on): Add c++defs.
32164         (Makefile.am): Update sys/time.h rule.
32165
32166         sys_stat: Avoid #define replacements in C++ mode.
32167         * lib/sys_stat.in.h: Include c++defs.h.
32168         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32169         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32170         namespaced alias symbol.
32171         In C++, define a namespaced alias symbol.
32172         * modules/sys_stat (Depends-on): Add c++defs.
32173         (Makefile.am): Update sys/stat.h rule.
32174
32175         sys_socket: Avoid #define replacements in C++ mode.
32176         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32177         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32178         definitions also when the system has a <sys/socket.h>.
32179         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32180         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32181         In C++, define a namespaced alias symbol.
32182         * modules/sys_socket (Depends-on): Add c++defs.
32183         (Makefile.am): Update sys/socket.h rule.
32184
32185         sys_select: Avoid #define replacements in C++ mode.
32186         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32187         definitions also when the system has a <sys/select.h>.
32188         (select): In C++, define a namespaced alias symbol.
32189         * modules/sys_select (Depends-on): Add c++defs.
32190         (Makefile.am): Update sys/select.h rule.
32191
32192         sys_ioctl: Avoid #define replacements in C++ mode.
32193         * lib/sys_ioctl.in.h: Include c++defs.h.
32194         (ioctl): In C++, define a namespaced alias symbol.
32195         * modules/sys_ioctl (Depends-on): Add c++defs.
32196         (Makefile.am): Update sys/ioctl.h rule.
32197
32198         string: Avoid #define replacements in C++ mode.
32199         * lib/string.in.h: Include c++defs.h.
32200         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32201         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32202         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32203         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32204         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32205         * modules/string (Depends-on): Add c++defs.
32206         (Makefile.am): Update string.h rule.
32207
32208         stdlib: Avoid #define replacements in C++ mode.
32209         * lib/stdlib.in.h: Include c++defs.h.
32210         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32211         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32212         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32213         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32214         symbol.
32215         * modules/stdlib (Depends-on): Add c++defs.
32216         (Makefile.am): Update stdlib.h rule.
32217
32218         stdio: Avoid #define replacements in C++ mode.
32219         * lib/stdio.in.h: Include c++defs.h.
32220         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32221         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32222         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32223         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32224         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32225         namespaced alias symbol.
32226         * modules/stdio (Depends-on): Add c++defs.
32227         (Makefile.am): Update stdio.h rule.
32228
32229         spawn: Avoid #define replacements in C++ mode.
32230         * lib/spawn.in.h: Include c++defs.h.
32231         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32232         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32233         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32234         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32235         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32236         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32237         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32238         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32239         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32240         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32241         In C++, define a namespaced alias symbol.
32242         * modules/spawn (Depends-on): Add c++defs.
32243         (Makefile.am): Update spawn.h rule.
32244
32245         signal: Avoid #define replacements in C++ mode.
32246         * lib/signal.in.h: Include c++defs.h.
32247         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32248         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32249         namespaced alias symbol.
32250         * modules/signal (Depends-on): Add c++defs.
32251         (Makefile.am): Update signal.h rule.
32252
32253         search: Avoid #define replacements in C++ mode.
32254         * lib/search.in.h: Include c++defs.h.
32255         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32256         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32257         symbol.
32258         * modules/search (Depends-on): Add c++defs.
32259         (Makefile.am): Update search.h rule.
32260
32261         math: Avoid #define replacements in C++ mode.
32262         * lib/math.in.h: Include c++defs.h.
32263         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32264         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32265         trunc, truncl): In C++, define a namespaced alias symbol.
32266         * modules/math (Depends-on): Add c++defs.
32267         (Makefile.am): Update math.h rule.
32268
32269         locale: Avoid #define replacements in C++ mode.
32270         * lib/locale.in.h: Include c++defs.h.
32271         (duplocale): In C++, define a namespaced alias symbol.
32272         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32273         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32274         * modules/locale (Depends-on): Add c++defs.
32275         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32276
32277         langinfo: Avoid #define replacements in C++ mode.
32278         * lib/langinfo.in.h: Include c++defs.h.
32279         (nl_langinfo): In C++, define a namespaced alias symbol.
32280         * modules/langinfo (Depends-on): Add c++defs.
32281         (Makefile.am): Update langinfo.h rule.
32282
32283         iconv-h: Avoid #define replacements in C++ mode.
32284         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32285         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32286         symbol.
32287         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32288         whenever iconv is present.
32289         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32290         (Makefile.am): Update iconv.h rule.
32291
32292         glob: Avoid #define replacements in C++ mode.
32293         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32294         (_gl_glob_errfunc_fn): New type.
32295         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32296         symbol.
32297         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32298         (Makefile.am): Update glob.h rule.
32299
32300         fcntl-h: Avoid #define replacements in C++ mode.
32301         * lib/fcntl.in.h: Include c++defs.h.
32302         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32303         * modules/fcntl-h (Depends-on): Add c++defs.
32304         (Makefile.am): Update fcntl.h rule.
32305
32306         dirent: Avoid #define replacements in C++ mode.
32307         * lib/dirent.in.h: Include c++defs.h.
32308         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32309         namespaced alias symbol.
32310         (dirfd): Update declaration.
32311         * modules/dirent (Depends-on): Add c++defs.
32312         (Makefile.am): Update dirent.h rule.
32313
32314         ctype: Make it usable in C++ code.
32315         * lib/ctype.in.h: Include c++defs.h.
32316         (isblank): Declare as extern "C".
32317         * modules/ctype (Depends-on): Add c++defs.
32318         (Makefile.am): Update ctype.h rule.
32319
32320         New module 'c++defs'.
32321         * modules/c++defs: New file.
32322         * build-aux/c++defs.h: New file.
32323         Reported by John W. Eaton <jwe@gnu.org>.
32324
32325 2010-03-07  Bruno Haible  <bruno@clisp.org>
32326
32327         logb: Provide missing declaration for Cygwin.
32328         * lib/math.in.h (logb): New declaration.
32329         * m4/logb.m4: New file.
32330         * modules/logb (Files): Add m4/logb.m4.
32331         (Depends-on): Add math.
32332         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32333         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32335         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32336         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32337
32338 2010-03-07  Bruno Haible  <bruno@clisp.org>
32339
32340         Fix test-cond link error.
32341         * tests/test-cond.c: Include <stdio.h>.
32342
32343 2010-03-07  Bruno Haible  <bruno@clisp.org>
32344
32345         Fix test-dirent-safer link error.
32346         * modules/dirent-safer-tests (Makefile.am): Define
32347         test_dirent_safer_LDADD.
32348
32349 2010-03-07  Bruno Haible  <bruno@clisp.org>
32350
32351         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32352         among default module list.
32353
32354 2010-03-07  Bruno Haible  <bruno@clisp.org>
32355
32356         Fix link error on platforms with GNU libiconv.
32357         * modules/unistr/u8-strcoll-tests (Makefile): Define
32358         test_u8_strcoll_LDADD.
32359         * modules/unistr/u16-strcoll-tests (Makefile): Define
32360         test_u16_strcoll_LDADD.
32361         * modules/unistr/u32-strcoll-tests (Makefile): Define
32362         test_u32_strcoll_LDADD.
32363
32364 2010-03-07  Bruno Haible  <bruno@clisp.org>
32365
32366         Use POSIX declarations for socket functions.
32367         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32368         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32369         rpl_sendto): Change declaration to match POSIX.
32370         * lib/connect.c (rpl_connect): Likewise.
32371         * lib/accept.c (rpl_accept): Likewise.
32372         * lib/bind.c (rpl_bind): Likewise.
32373         * lib/getpeername.c (rpl_getpeername): Likewise.
32374         * lib/getsockname.c (rpl_getsockname): Likewise.
32375         * lib/recv.c (rpl_recv): Likewise.
32376         * lib/send.c (rpl_send): Likewise.
32377         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32378         * lib/sendto.c (rpl_sendto): Likewise.
32379
32380 2010-03-06  Bruno Haible  <bruno@clisp.org>
32381
32382         Clarify access, euidaccess, faccessat.
32383         * doc/posix-functions/faccessat.texi: Mention security problem under
32384         "Other problems", not "Portability problems".
32385         * doc/posix-functions/access.texi: Likewise. Mention a related security
32386         problem.
32387         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32388         * lib/euidaccess.c: Add comments about platforms.
32389         * lib/unistd.in.h (access, euidaccess): Add warnings.
32390
32391 2010-03-07  Bruno Haible  <bruno@clisp.org>
32392
32393         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32394         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32395         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32396         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32397         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32398         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32399         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32400         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32401         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32402         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32403         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32404         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32405         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32406         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32407         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32408         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32409         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32410         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32411         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32412         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32413         Likewise.
32414         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32415         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32416         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32417         Likewise.
32418         * tests/test-spawn.c (main): Make it work when
32419         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32420
32421 2010-03-07  Bruno Haible  <bruno@clisp.org>
32422
32423         Fix incorrect Makefile.am generation in German locale.
32424         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32425         Execute sed command with character range in C locale.
32426
32427 2010-03-06  Bruno Haible  <bruno@clisp.org>
32428
32429         Tests for module 'iconv-h'.
32430         * modules/iconv-h-tests: New file.
32431         * tests/test-iconv-h.c: New file.
32432
32433         New module 'iconv-h'.
32434         * modules/iconv-h: New file.
32435         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32436         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32437         (configure.ac): Remove gl_ICONV_H.
32438         (Makefile.am): Remove rule for iconv.h.
32439
32440 2010-03-06  Bruno Haible  <bruno@clisp.org>
32441
32442         More consistent naming of *.m4 files.
32443         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32444         * modules/wctype (Files): Update.
32445
32446         More consistent naming of *.m4 files.
32447         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32448         * modules/wchar (Files): Update.
32449
32450 2010-03-06  Jim Meyering  <meyering@redhat.com>
32451
32452         euidaccess: relax license to LGPLv2+
32453         * modules/euidaccess (License): Relax to LGPLv2+.
32454
32455 2010-03-06  Bruno Haible  <bruno@clisp.org>
32456
32457         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32458         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32459         (Makefile.am): Augment lib_SOURCES instead.
32460
32461 2010-03-04  Jim Meyering  <meyering@redhat.com>
32462
32463         utime: remove obsolete module
32464         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32465         unnecessary for years, and has been marked as obsolete for 10 months.
32466         * modules/utime: Remove file.
32467         * lib/utime.c: Remove file.
32468         * m4/utime.m4: Remove file.
32469         * m4/utimes-null.m4: Remove file.
32470         * doc/posix-functions/utime.texi (utime): Remove reference to
32471         the module.  Move the sole "fixed by gnulib" item into the
32472         "problems not fixed by Gnulib" list.
32473         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32474
32475 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32476
32477         * modules/exit (License): Relax license to LGPLv2+.
32478         (Status): Mark as obsolete.
32479         * NEWS: Mention deprecated 'exit' module.
32480         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32481         of now obsolete 'exit'.
32482
32483 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32484
32485         fts-lgpl: remove unused module
32486         * modules/fts-lgpl: Remove.
32487         * MODULES.html.sh (func_all_modules): Adjust.
32488         * check-module (find_included_lib_files): Adjust.
32489         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32490
32491 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32492
32493         copy-acl: enhance Solaris ACL error handling
32494         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32495         * lib/set-mode-acl.c (qset_acl): Likewise.
32496
32497 2010-03-02  Bruno Haible  <bruno@clisp.org>
32498
32499         spawn: Don't override the system defined values on FreeBSD 8.
32500         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32501         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32502         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32503         if HAVE_POSIX_SPAWN is 1.
32504         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32505
32506 2010-03-01  Bruno Haible  <bruno@clisp.org>
32507
32508         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32509         regarding Automake.
32510
32511 2010-02-25  Bruno Haible  <bruno@clisp.org>
32512
32513         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32514         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32515         setting, not afterwards.
32516         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32517
32518 2010-02-24  Eric Blake  <eblake@redhat.com>
32519
32520         bootstrap, git-version-gen: use timestamp
32521         * build-aux/git-version-gen (scriptversion): Force UTC.
32522         * build-aux/bootstrap (scriptversion): New variable.
32523
32524         bootstrap: allow older git
32525         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32526         older than 1.6.4.  Requested by the libvirt project.
32527
32528 2010-02-23  Eric Blake  <eblake@redhat.com>
32529
32530         warn-on-use: work with old autoconf
32531         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32532         AS_VAR semantics of autoconf 2.60.
32533         Reported by Bruno Haible.
32534
32535         bootstrap: improve some comments
32536         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32537         clarification comments.
32538
32539         gettimeofday: provide correct function
32540         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32541         when replacement is declared, otherwise provide gettimeofday.
32542         Reported by Michael Goffioul.
32543
32544 2010-02-23  Jim Meyering  <meyering@redhat.com>
32545
32546         lib-ignore: relax license to "unlimited", not LGPLv2+
32547         * modules/lib-ignore (License): Relax to "unlimited".
32548
32549 2010-02-23  Jim Meyering  <meyering@redhat.com>
32550
32551         lib-ignore: relax license to LGPLv2+
32552         * modules/lib-ignore (License): Relax to LGPLv2+.
32553
32554 2010-02-22  Eric Blake  <eblake@redhat.com>
32555
32556         lseek: avoid bash 3.2 broken pipe bug
32557         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32558         warning from bash 3.2.
32559         Reported by Ben Pfaff, with analysis from Bruno Haible.
32560
32561         bootstrap: support non-FSF copyright holder
32562         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32563         bootstrap.conf override of COPYRIGHT_HOLDER.
32564         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32565
32566         bootstrap: interoperate with gettext 0.14.1
32567         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32568
32569         bootstrap: allow for alternate submodule location
32570         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32571         hardcoding submodule location.
32572         (gnulib_mk): Allow direct use of Makefile.am.
32573
32574         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32575         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32576         rather than reconfiguring where the submodule points.
32577
32578         gettimeofday: restore support for platforms that lack function
32579         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32580         replacement if function is missing.
32581         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32582         * modules/sys_time (Makefile.am): Substitute it.
32583         * lib/sys_time.in.h (gettimeofday): Check it.
32584         Reported by Michael Goffioul.
32585
32586 2010-02-21  Bruno Haible  <bruno@clisp.org>
32587
32588         * lib/stdio.in.h (obstack_printf): Fix typo.
32589
32590 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32591
32592         vc-list-files: use bzr ls's -R option
32593         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32594         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32595
32596 2010-02-21  Jim Meyering  <meyering@redhat.com>
32597
32598         init.sh: fix EXEEXT shims to work also for names like test-prog
32599         * tests/init.sh: Re-exec a better shell, when needed.
32600         If the current shell lacks support for posix $(...), an init.sh-using
32601         test will now try to find a shell that supports that.  If EXEEXT is
32602         nonempty, we also require support for hyphen-in-alias-name and shell
32603         substitutions like ${var#glob}.  Failure to find such a shell results
32604         in a skipped test.
32605
32606 2010-02-21  Bruno Haible  <bruno@clisp.org>
32607
32608         Really work around around "broken pipe" error message from bash 3.2.
32609         * gnulib-tool (func_reset_sigpipe): Remove function.
32610         (echo): In bash 3.2, define to a function that uses printf.
32611         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32612
32613 2010-02-20  Bruno Haible  <bruno@clisp.org>
32614
32615         Restore support for automake 1.9.6 with autoconf 2.61.
32616         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32617         Reported by James Youngman <jay@gnu.org>.
32618
32619 2010-02-20  Bruno Haible  <bruno@clisp.org>
32620
32621         Improve *printf warning condition.
32622         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32623         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32624         and the function is overridden due to SIGPIPE emulation.
32625
32626 2010-02-20  Bruno Haible  <bruno@clisp.org>
32627
32628         * lib/stdio.in.h: Tweak comments.
32629
32630 2010-02-19  Bruno Haible  <bruno@clisp.org>
32631
32632         Make it easier to find modules. New gnulib-tool option '--find'.
32633         * gnulib-tool: New option --find.
32634         (func_usage): Document it.
32635         (func_sanitize_modulelist): New function, extracted from
32636         func_all_modules.
32637         (func_all_modules): Invoke it.
32638         * doc/gnulib-tool.texi (Which modules?): New node.
32639
32640 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32641
32642         * lib/sys_select.in.h: Provide select replacement even if
32643         sys/select.h exists on a system, for Interix.
32644
32645 2010-02-18  Jim Meyering  <meyering@redhat.com>
32646
32647         init.sh: don't use $(...) just yet
32648         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32649         to accommodate e.g., Solaris' /bin/sh.
32650
32651 2010-02-17  Bruno Haible  <bruno@clisp.org>
32652
32653         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32654         Reported by Ludovic Courtès <ludo@gnu.org>.
32655
32656 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32657
32658         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32659         linking with -lintl.
32660
32661 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32662
32663         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32664         if not provided by the system's netdb.h.  Reported by
32665         ludo@gnu.org (Ludovic Courtès).
32666
32667 2010-02-15  Jim Meyering  <meyering@redhat.com>
32668
32669         init.sh: improve portability and efficiency
32670         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32671         "dummy" in a for loop.
32672         Use '!', not '^' to select the complement of a character set used
32673         in a "case" statement.
32674         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32675         Suggestions from Eric Blake.
32676
32677         init.sh: automatically accommodate programs with the .exe suffix
32678         Automatically arrange for an invocation of "prog" to execute the
32679         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32680         may use the simpler "prog", yet still work when built on a system
32681         that requires specifying the added suffix.
32682         Do this by constructing a function named "prog" that invokes
32683         "prog.exe" for each .exe file in selected directories.
32684         * tests/init.sh (find_exe_basenames_): New function.
32685         (create_exe_shim_functions_): New function.
32686         (path_prepend_): Use it.
32687
32688         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32689         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32690         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32691
32692 2010-02-14  Jim Meyering  <meyering@redhat.com>
32693
32694         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32695         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32696         (sc_prohibit_hash_pjw_without_use): New rule.
32697
32698         maint.mk: allow the default upload destination dir to be overridden
32699         * top/maint.mk (upload_dest_dir_): Define with a default that
32700         preserves the status quo.
32701         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32702         Reported by Peter Simons.
32703
32704         maint.mk: prohibit inclusion of "hash.h" without_use
32705         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32706
32707 2010-02-10  Jim Meyering  <meyering@redhat.com>
32708
32709         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32710         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32711
32712 2010-02-09  Eric Blake  <ebb9@byu.net>
32713         and Bruno Haible  <bruno@clisp.org>
32714
32715         obstack-printf-posix: ensure declaration
32716         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32717         extracted from gl_FUNC_OBSTACK_PRINTF.
32718         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32719         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32720         Likewise.
32721         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32722         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32723         0.
32724
32725 2010-02-08  Bruno Haible  <bruno@clisp.org>
32726
32727         gnulib-tool: Fix typo in 2010-02-07 commit.
32728         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32729         Reported by Eric Blake.
32730
32731 2010-02-07  Bruno Haible  <bruno@clisp.org>
32732
32733         gnulib-tool: Fix up caching patches.
32734         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32735         option --no-cache. Use associative arrays when supported by the shell.
32736         (sed_comments): New variable.
32737         (modcache): Renamed from do_cache.
32738         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32739         abbreviate unnecessarily.
32740         (have_associative): New variable.
32741         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32742         way also for ksh and zsh.
32743         (func_init_sed_convert_to_cache_statements): New function, extracted
32744         from func_cache_lookup_module. Add support for associative arrays.
32745         Don't set the c_MODULE_cached variable here. Ignore all lines before
32746         the first field header. Remove only the final newline, not all trailing
32747         newlines. Support empty fields correctly. Limit the use of 'eval' to
32748         assignments.
32749         (func_get_description, func_get_status, func_get_notice,
32750         func_get_applicability, func_get_filelist, func_get_dependencies,
32751         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32752         func_get_automake_snippet, func_get_include_directive,
32753         func_get_link_directive, func_get_license, func_get_maintainer):
32754         Update documentation. List the unoptimized code first. Add support for
32755         associative arrays. Limit the use of 'eval' to assignments.
32756         (func_get_applicability): Undo stylistic pessimisations.
32757         (func_get_automake_snippet, func_get_include_directive): Reduce code
32758         duplication.
32759         (func_modules_transitive_closure, func_modules_add_dummy,
32760         func_modules_notice, func_modules_to_filelist, func_add_file,
32761         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32762         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32763         func_create_testdir, func_create_megatestdir): Update documentation.
32764
32765 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32766
32767         * gnulib-tool (func_cache_lookup_module): Store the module name
32768         belonging to the cache variable; error out if two different
32769         module names map to the same cache variable name.
32770
32771 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32772
32773         gnulib-tool: Make caching optional.
32774         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32775         Update matching short versions of --no-changelog.
32776         (func_usage): Update.
32777         (sed_extract_cache_prog): Renamed from ...
32778         (sed_extract_prog): ... this; revert to old extraction script.
32779         (func_get_description, func_get_status)
32780         (func_get_notice, func_get_applicability, func_get_filelist)
32781         (func_get_dependencies, func_get_autoconf_early_snippet)
32782         (func_get_autoconf_snippet, func_get_automake_snippet)
32783         (func_get_include_directive, func_get_link_directive)
32784         (func_get_license, func_get_maintainer): If $do_cache is false,
32785         use old, non-caching extraction scripts.
32786         Suggestion by Bruno Haible.
32787
32788 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32789
32790         gnulib-tool: cache module metainformation.
32791         * gnulib-tool (sed_extract_prog): Match newline before each
32792         header, and rewrite header to a shell variable suffix.
32793         (func_cache_var, func_cache_lookup_module): New functions,
32794         to turn a module name into a cache variable prefix, and to
32795         look up and cache module metainformation.
32796         (func_get_description, func_get_status)
32797         (func_get_notice, func_get_applicability, func_get_filelist)
32798         (func_get_dependencies, func_get_autoconf_early_snippet)
32799         (func_get_autoconf_snippet, func_get_automake_snippet)
32800         (func_get_include_directive, func_get_link_directive)
32801         (func_get_license, func_get_maintainer): Use
32802         func_cache_lookup_module.
32803
32804 2010-02-07  Bruno Haible  <bruno@clisp.org>
32805
32806         fnctl: Fix missing dependency.
32807         * modules/fcntl (Depends-on): Add getdtablesize.
32808         Reported by John W. Eaton <jwe@gnu.org>.
32809
32810 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32811
32812         Argp: fix recognition of short alias options.
32813
32814         * lib/argp-parse.c (convert_options): Fix improper use of
32815         `|' between character values.
32816         * tests/test-argp.c (group1_option): New alias option
32817         --read (-r).
32818         (group1_parser): Special handling for 'r'.
32819         (test15): New test case.
32820         (test_fun): Add test15.
32821         * tests/test-argp-2.sh: Update expected --help and --usage
32822         outputs.
32823
32824 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32825
32826         * tests/test-argp.c: Fix indentation.
32827
32828 2010-02-04  Eric Blake  <ebb9@byu.net>
32829
32830         gettimeofday: expose type of second argument
32831         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32832         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32833         * tests/test-gettimeofday.c: Use it to silence warning.
32834         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32835         the issue.
32836
32837 2010-02-03  Jim Meyering  <meyering@redhat.com>
32838
32839         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32840         * lib/regcomp.c (TYPE_SIGNED): Define.
32841         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32842
32843         regcomp.c: avoid a new -Wshadow warning
32844         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32845
32846 2010-02-01  Jim Meyering  <meyering@redhat.com>
32847
32848         removing useless parentheses in cpp #define directives
32849         For motivation, see commit c0221df4, "define STREQ(a,b)
32850         consistently, removing useless parentheses"
32851         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32852         * lib/mountlist.c (MNT_IGNORE): Likewise.
32853         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32854
32855 2010-02-01  Eric Blake  <ebb9@byu.net>
32856
32857         sys_time: use link-warning
32858         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32859         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32860         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32861         * modules/sys_time (Depends-on): Add warn-on-use.
32862         (Makefile.am): Always build replacement.
32863         (configure.ac): Update substitutions.
32864         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32865         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32866         bother with SYS_TIME_H.
32867         * modules/gettimeofday (configure.ac): Declare indicator.
32868         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32869         in use.
32870
32871         closein-tests: silence compiler warning
32872         * tests/test-closein.c (main): Ignore fread result.
32873         * modules/closein-tests (Depends-on): Add ignore-value.
32874
32875         tests: silence warning about system return
32876         * tests/test-areadlink-with-size.c (main): Ignore system result.
32877         * tests/test-areadlink.c (main): Likewise.
32878         * tests/test-areadlinkat-with-size.c (main): Likewise.
32879         * tests/test-areadlinkat.c (main): Likewise.
32880         * tests/test-canonicalize-lgpl.c (main): Likewise.
32881         * tests/test-canonicalize.c (main): Likewise.
32882         * tests/test-chown.c (main): Likewise.
32883         * tests/test-fchownat.c (main): Likewise.
32884         * tests/test-fdutimensat.c (main): Likewise.
32885         * tests/test-fstatat.c (main): Likewise.
32886         * tests/test-futimens.c (main): Likewise.
32887         * tests/test-lchown.c (main): Likewise.
32888         * tests/test-link.c (main): Likewise.
32889         * tests/test-linkat.c (main): Likewise.
32890         * tests/test-lstat.c (main): Likewise.
32891         * tests/test-mkdir.c (main): Likewise.
32892         * tests/test-mkdirat.c (main): Likewise.
32893         * tests/test-mkfifo.c (main): Likewise.
32894         * tests/test-mkfifoat.c (main): Likewise.
32895         * tests/test-mknod.c (main): Likewise.
32896         * tests/test-readlink.c (main): Likewise.
32897         * tests/test-remove.c (main): Likewise.
32898         * tests/test-rename.c (main): Likewise.
32899         * tests/test-renameat.c (main): Likewise.
32900         * tests/test-rmdir.c (main): Likewise.
32901         * tests/test-symlink.c (main): Likewise.
32902         * tests/test-symlinkat.c (main): Likewise.
32903         * tests/test-unlink.c (main): Likewise.
32904         * tests/test-unlinkat.c (main): Likewise.
32905         * tests/test-utimens.c (main): Likewise.
32906         * tests/test-utimensat.c (main): Likewise.
32907         * modules/areadlink-tests (Depends-on): Add ignore-value.
32908         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32909         * modules/areadlinkat-tests (Depends-on): Likewise.
32910         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32911         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32912         * modules/canonicalize-tests (Depends-on): Likewise.
32913         * modules/chown-tests (Depends-on): Likewise.
32914         * modules/fdutimensat-tests (Depends-on): Likewise.
32915         * modules/futimens-tests (Depends-on): Likewise.
32916         * modules/lchown-tests (Depends-on): Likewise.
32917         * modules/link-tests (Depends-on): Likewise.
32918         * modules/linkat-tests (Depends-on): Likewise.
32919         * modules/lstat-tests (Depends-on): Likewise.
32920         * modules/mkdir-tests (Depends-on): Likewise.
32921         * modules/mkfifo-tests (Depends-on): Likewise.
32922         * modules/mkfifoat-tests (Depends-on): Likewise.
32923         * modules/mknod-tests (Depends-on): Likewise.
32924         * modules/openat-tests (Depends-on): Likewise.
32925         * modules/readlink-tests (Depends-on): Likewise.
32926         * modules/remove-tests (Depends-on): Likewise.
32927         * modules/rename-tests (Depends-on): Likewise.
32928         * modules/renameat-tests (Depends-on): Likewise.
32929         * modules/rmdir-tests (Depends-on): Likewise.
32930         * modules/symlink-tests (Depends-on): Likewise.
32931         * modules/symlinkat-tests (Depends-on): Likewise.
32932         * modules/unlink-tests (Depends-on): Likewise.
32933         * modules/utimens-tests (Depends-on): Likewise.
32934         * modules/utimensat-tests (Depends-on): Likewise.
32935
32936 2010-01-31  Bruno Haible  <bruno@clisp.org>
32937
32938         Perform the same test for many <math.h> functions.
32939         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32940         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32941         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32942         of gl_MATHFUNC.
32943         * modules/acos (configure.ac): Likewise.
32944         * modules/asin (configure.ac): Likewise.
32945         * modules/atan (configure.ac): Likewise.
32946         * modules/atan2 (configure.ac): Likewise.
32947         * modules/cbrt (configure.ac): Likewise.
32948         * modules/copysign (configure.ac): Likewise.
32949         * modules/cos (configure.ac): Likewise.
32950         * modules/cosh (configure.ac): Likewise.
32951         * modules/erf (configure.ac): Likewise.
32952         * modules/erfc (configure.ac): Likewise.
32953         * modules/exp (configure.ac): Likewise.
32954         * modules/fmod (configure.ac): Likewise.
32955         * modules/hypot (configure.ac): Likewise.
32956         * modules/j0 (configure.ac): Likewise.
32957         * modules/j1 (configure.ac): Likewise.
32958         * modules/jn (configure.ac): Likewise.
32959         * modules/lgamma (configure.ac): Likewise.
32960         * modules/log (configure.ac): Likewise.
32961         * modules/log10 (configure.ac): Likewise.
32962         * modules/log1p (configure.ac): Likewise.
32963         * modules/pow (configure.ac): Likewise.
32964         * modules/remainder (configure.ac): Likewise.
32965         * modules/sin (configure.ac): Likewise.
32966         * modules/sinh (configure.ac): Likewise.
32967         * modules/tan (configure.ac): Likewise.
32968         * modules/tanh (configure.ac): Likewise.
32969         * modules/y0 (configure.ac): Likewise.
32970         * modules/y1 (configure.ac): Likewise.
32971         * modules/yn (configure.ac): Likewise.
32972         Suggested by Paolo Bonzini.
32973
32974 2010-01-31  Bruno Haible  <bruno@clisp.org>
32975
32976         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32977
32978 2010-01-31  Bruno Haible  <bruno@clisp.org>
32979
32980         Work around getdelim() bug on FreeBSD 8.0.
32981         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32982         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32983         not work.
32984         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32985         is 1.
32986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32987         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32988         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32989         a non-zero size.
32990         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32991
32992 2010-01-31  Bruno Haible  <bruno@clisp.org>
32993
32994         Work around getline() bug on FreeBSD 8.0.
32995         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32996         and a non-zero size.
32997         * tests/test-getline.c (main): Likewise.
32998         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32999         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33000
33001 2010-01-28  Eric Blake  <ebb9@byu.net>
33002
33003         regex: fix build failure
33004         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33005         platforms.
33006
33007 2010-01-28  Jim Meyering  <meyering@redhat.com>
33008
33009         regex: do not ignore memory allocation failure
33010         * lib/regex_internal.c (create_cd_newstate): Detect
33011         re_node_set_init_copy failure.   Extracted from glibc commit
33012         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33013
33014         regex: sync more white-space changes from libc
33015         * lib/regex_internal.c: White-space only changes.
33016         * lib/regexec.c: Likewise.
33017
33018         regex: add many uses of __attribute_warn_unused_result__
33019         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33020         * lib/regexec.c: Likewise.
33021         Extracted from a messy glibc commit.
33022
33023         regcomp.c: spelling and merge-artifact from glibc
33024         * lib/regcomp.c: Merge remainder of glibc's
33025         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33026
33027         regcomp.c: sync white-space changes from glibc
33028         * lib/regcomp.c: Merge to accommodate white space
33029         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33030
33031         regcomp.c: do not ignore internal return values
33032         * lib/regcomp.c: Do not ignore internal return values.
33033         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33034         but without its white-space changes and spelling fixes.
33035
33036         regex_internal.h: define __attribute_warn_unused_result__
33037         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33038
33039         maint: add a syntax-check rule to check for vulnerable Makefile.in
33040         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33041
33042 2010-01-27  Jim Meyering  <meyering@redhat.com>
33043
33044         ncftpput-ftp: clean up spaces
33045         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33046         Remove trailing blanks.
33047
33048 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33049
33050         * build-aux/git-version-gen: Fix copyright statement.
33051         * build-aux/gnupload: Likewise.
33052         * tests/test-arcfour.c: Likewise.
33053         * tests/test-arctwo.c: Likewise.
33054         * tests/test-count-one-bits.c: Likewise.
33055         * tests/test-crc.c: Likewise.
33056         * tests/test-des.c: Likewise.
33057         * tests/test-gc-arcfour.c: Likewise.
33058         * tests/test-gc-arctwo.c: Likewise.
33059         * tests/test-gc-des.c: Likewise.
33060         * tests/test-gc-hmac-md5.c: Likewise.
33061         * tests/test-gc-hmac-sha1.c: Likewise.
33062         * tests/test-gc-md2.c: Likewise.
33063         * tests/test-gc-md4.c: Likewise.
33064         * tests/test-gc-md5.c: Likewise.
33065         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33066         * tests/test-gc-rijndael.c: Likewise.
33067         * tests/test-gc-sha1.c: Likewise.
33068         * tests/test-gc.c: Likewise.
33069         * tests/test-gethostname.c: Likewise.
33070         * tests/test-gettimeofday.c: Likewise.
33071         * tests/test-hash.c: Likewise.
33072         * tests/test-hmac-md5.c: Likewise.
33073         * tests/test-hmac-sha1.c: Likewise.
33074         * tests/test-md2.c: Likewise.
33075         * tests/test-md4.c: Likewise.
33076         * tests/test-md5.c: Likewise.
33077         * tests/test-memchr.c: Likewise.
33078         * tests/test-memchr2.c: Likewise.
33079         * tests/test-memcmp.c: Likewise.
33080         * tests/test-memmem.c: Likewise.
33081         * tests/test-memrchr.c: Likewise.
33082         * tests/test-rawmemchr.c: Likewise.
33083         * tests/test-read-file.c: Likewise.
33084         * tests/test-rijndael.c: Likewise.
33085         * tests/test-sockets.c: Likewise.
33086         * tests/test-strchrnul.c: Likewise.
33087         * tests/test-strstr.c: Likewise.
33088         * tests/test-strtod.c: Likewise.
33089         * build-aux/ncftpput-ftp: Likewise.
33090
33091 2010-01-26  Eric Blake  <ebb9@byu.net>
33092
33093         ignore-value: update recommended header name
33094         * modules/ignore-value (Include): Only use <> for headers that
33095         exist in glibc.
33096
33097 2010-01-26  Jim Meyering  <meyering@redhat.com>
33098
33099         test-userspec.c: avoid compiler warnings
33100         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33101         and "initialization discards qualifiers..." warnings.
33102         Put the first "uid" in its own scope, and make char* members "const".
33103
33104 2010-01-25  Bruno Haible  <bruno@clisp.org>
33105
33106         gnulib-tool: Make warning diagnostics consistent.
33107         * gnulib-tool (func_warning): New function.
33108         Use it everywhere where gnulib-tool produces output to stderr and it is
33109         not a fatal error.
33110
33111 2010-01-25  Bruno Haible  <bruno@clisp.org>
33112
33113         Fix test dependencies.
33114         * modules/xstrtol-tests (Depends-on): Add inttypes.
33115         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33116
33117 2010-01-25 Pádraig Brady <P@draigBrady.com>
33118
33119         syntax-check: detect incorrect boolean macro values in config.h
33120         * modules/maintainer-makefile (configure.ac): Parameterize the location
33121         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33122         The logic is from Eric Blake and the location indicated by Jim Meyering.
33123         Note the more natural CONFIG_HEADER name is prohibited by automake
33124         for backwards compatibility reasons.
33125         * top/maint.mk (sc_Wundef_boolean): New rule.
33126
33127 2010-01-25  Jim Meyering  <meyering@redhat.com>
33128
33129         bootstrap: detect MacOS 10.6's shasum, too
33130         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33131         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33132
33133 2010-01-23  Jim Meyering  <meyering@redhat.com>
33134
33135         xstrtoll: new module
33136         * modules/xstrtoll: New file.
33137         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33138         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33139         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33140         ./configure fails if you use this module and lack "long long".
33141         * modules/xstrtoll-tests: New module.
33142         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33143         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33144         new init.sh-based test framework.
33145
33146 2010-01-24  Bruno Haible  <bruno@clisp.org>
33147
33148         Tests for module 'yn'.
33149         * modules/yn-tests: New file.
33150         * tests/test-yn.c: New file.
33151
33152         Tests for module 'y1'.
33153         * modules/y1-tests: New file.
33154         * tests/test-y1.c: New file.
33155
33156         Tests for module 'y0'.
33157         * modules/y0-tests: New file.
33158         * tests/test-y0.c: New file.
33159
33160         Tests for module 'tanh'.
33161         * modules/tanh-tests: New file.
33162         * tests/test-tanh.c: New file.
33163
33164         Tests for module 'tan'.
33165         * modules/tan-tests: New file.
33166         * tests/test-tan.c: New file.
33167
33168         Tests for module 'sqrt'.
33169         * modules/sqrt-tests: New file.
33170         * tests/test-sqrt.c: New file.
33171
33172         Tests for module 'sinh'.
33173         * modules/sinh-tests: New file.
33174         * tests/test-sinh.c: New file.
33175
33176         Tests for module 'sin'.
33177         * modules/sin-tests: New file.
33178         * tests/test-sin.c: New file.
33179
33180         Tests for module 'rint'.
33181         * modules/rint-tests: New file.
33182         * tests/test-rint.c: New file.
33183
33184         Tests for module 'remainder'.
33185         * modules/remainder-tests: New file.
33186         * tests/test-remainder.c: New file.
33187
33188         Tests for module 'pow'.
33189         * modules/pow-tests: New file.
33190         * tests/test-pow.c: New file.
33191
33192         Tests for module 'nextafter'.
33193         * modules/nextafter-tests: New file.
33194         * tests/test-nextafter.c: New file.
33195
33196         Tests for module 'modf'.
33197         * modules/modf-tests: New file.
33198         * tests/test-modf.c: New file.
33199
33200         Tests for module 'logb'.
33201         * modules/logb-tests: New file.
33202         * tests/test-logb.c: New file.
33203
33204         Tests for module 'log1p'.
33205         * modules/log1p-tests: New file.
33206         * tests/test-log1p.c: New file.
33207
33208         Tests for module 'log10'.
33209         * modules/log10-tests: New file.
33210         * tests/test-log10.c: New file.
33211
33212         Tests for module 'log'.
33213         * modules/log-tests: New file.
33214         * tests/test-log.c: New file.
33215
33216         Tests for module 'lgamma'.
33217         * modules/lgamma-tests: New file.
33218         * tests/test-lgamma.c: New file.
33219
33220         Tests for module 'ldexp'.
33221         * modules/ldexp-tests: New file.
33222         * tests/test-ldexp.c: New file.
33223
33224         Tests for module 'jn'.
33225         * modules/jn-tests: New file.
33226         * tests/test-jn.c: New file.
33227
33228         Tests for module 'j1'.
33229         * modules/j1-tests: New file.
33230         * tests/test-j1.c: New file.
33231
33232         Tests for module 'j0'.
33233         * modules/j0-tests: New file.
33234         * tests/test-j0.c: New file.
33235
33236         Tests for module 'hypot'.
33237         * modules/hypot-tests: New file.
33238         * tests/test-hypot.c: New file.
33239
33240         Tests for module 'fmod'.
33241         * modules/fmod-tests: New file.
33242         * tests/test-fmod.c: New file.
33243
33244         Tests for module 'fabs'.
33245         * modules/fabs-tests: New file.
33246         * tests/test-fabs.c: New file.
33247
33248         Tests for module 'exp'.
33249         * modules/exp-tests: New file.
33250         * tests/test-exp.c: New file.
33251
33252         Tests for module 'erfc'.
33253         * modules/erfc-tests: New file.
33254         * tests/test-erfc.c: New file.
33255
33256         Tests for module 'erf'.
33257         * modules/erf-tests: New file.
33258         * tests/test-erf.c: New file.
33259
33260         Tests for module 'cosh'.
33261         * modules/cosh-tests: New file.
33262         * tests/test-cosh.c: New file.
33263
33264         Tests for module 'cos'.
33265         * modules/cos-tests: New file.
33266         * tests/test-cos.c: New file.
33267
33268         Tests for module 'copysign'.
33269         * modules/copysign-tests: New file.
33270         * tests/test-copysign.c: New file.
33271
33272         Tests for module 'cbrt'.
33273         * modules/cbrt-tests: New file.
33274         * tests/test-cbrt.c: New file.
33275
33276         Tests for module 'atan2'.
33277         * modules/atan2-tests: New file.
33278         * tests/test-atan2.c: New file.
33279
33280         Tests for module 'atan'.
33281         * modules/atan-tests: New file.
33282         * tests/test-atan.c: New file.
33283
33284         Tests for module 'asin'.
33285         * modules/asin-tests: New file.
33286         * tests/test-asin.c: New file.
33287
33288         Tests for module 'acos'.
33289         * modules/acos-tests: New file.
33290         * tests/test-acos.c: New file.
33291
33292 2010-01-24  Bruno Haible  <bruno@clisp.org>
33293
33294         Fix tests for common <math.h> functions.
33295         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33296         code snippet that references the function pointer, rather than merely
33297         calling the function. Substitute the FUNC_LIBM variable.
33298         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33299         * modules/acos (configure.ac): Likewise.
33300         * modules/asin (configure.ac): Likewise.
33301         * modules/atan (configure.ac): Likewise.
33302         * modules/atan2 (configure.ac): Likewise.
33303         * modules/cbrt (configure.ac): Likewise.
33304         * modules/copysign (configure.ac): Likewise.
33305         * modules/cos (configure.ac): Likewise.
33306         * modules/cosh (configure.ac): Likewise.
33307         * modules/erf (configure.ac): Likewise.
33308         * modules/erfc (configure.ac): Likewise.
33309         * modules/exp (configure.ac): Likewise.
33310         * modules/fabs (configure.ac): Likewise.
33311         * modules/fmod (configure.ac): Likewise.
33312         * modules/hypot (configure.ac): Likewise.
33313         * modules/j0 (configure.ac): Likewise.
33314         * modules/j1 (configure.ac): Likewise.
33315         * modules/jn (configure.ac): Likewise.
33316         * modules/ldexp (configure.ac): Likewise.
33317         * modules/lgamma (configure.ac): Likewise.
33318         * modules/log (configure.ac): Likewise.
33319         * modules/log10 (configure.ac): Likewise.
33320         * modules/log1p (configure.ac): Likewise.
33321         * modules/logb (configure.ac): Likewise.
33322         * modules/modf (configure.ac): Likewise.
33323         * modules/nextafter (configure.ac): Likewise.
33324         * modules/pow (configure.ac): Likewise.
33325         * modules/remainder (configure.ac): Likewise.
33326         * modules/rint (configure.ac): Likewise.
33327         * modules/sin (configure.ac): Likewise.
33328         * modules/sinh (configure.ac): Likewise.
33329         * modules/tan (configure.ac): Likewise.
33330         * modules/tanh (configure.ac): Likewise.
33331         * modules/y0 (configure.ac): Likewise.
33332         * modules/y1 (configure.ac): Likewise.
33333         * modules/yn (configure.ac): Likewise.
33334
33335 2010-01-24  Bruno Haible  <bruno@clisp.org>
33336
33337         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33338         * tests/test-acosl.c (x): New variable.
33339         (main): Store argument in x and fetch it from x.
33340         * tests/test-asinl.c (x): New variable.
33341         (main): Store argument in x and fetch it from x.
33342         * tests/test-atanl.c (x): New variable.
33343         (main): Store argument in x and fetch it from x.
33344         * tests/test-cosl.c (x): New variable.
33345         (main): Store argument in x and fetch it from x.
33346         * tests/test-expl.c (x): New variable.
33347         (main): Store argument in x and fetch it from x.
33348         * tests/test-logl.c (x): New variable.
33349         (main): Store argument in x and fetch it from x.
33350         * tests/test-sinl.c (x): New variable.
33351         (main): Store argument in x and fetch it from x.
33352         * tests/test-sqrtl.c (x): New variable.
33353         (main): Store argument in x and fetch it from x.
33354         * tests/test-tanl.c (x): New variable.
33355         (main): Store argument in x and fetch it from x.
33356
33357 2010-01-24  Bruno Haible  <bruno@clisp.org>
33358
33359         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33360         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33361         assignments to the initial TESTS_ENVIRONMENT.
33362         * doc/gnulib.texi (Unit test modules): Document it.
33363         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33364         TESTS_ENVIRONMENT.
33365         * modules/btowc-tests (Makefile.am): Likewise.
33366         * modules/c-stack-tests (Makefile.am): Likewise.
33367         * modules/c-strcase-tests (Makefile.am): Likewise.
33368         * modules/copy-file-tests (Makefile.am): Likewise.
33369         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33370         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33371         * modules/mbrtowc-tests (Makefile.am): Likewise.
33372         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33373         * modules/mbscasestr-tests (Makefile.am): Likewise.
33374         * modules/mbschr-tests (Makefile.am): Likewise.
33375         * modules/mbscspn-tests (Makefile.am): Likewise.
33376         * modules/mbsinit-tests (Makefile.am): Likewise.
33377         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33378         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33379         * modules/mbspbrk-tests (Makefile.am): Likewise.
33380         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33381         * modules/mbsrchr-tests (Makefile.am): Likewise.
33382         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33383         * modules/mbsspn-tests (Makefile.am): Likewise.
33384         * modules/mbsstr-tests (Makefile.am): Likewise.
33385         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33386         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33387         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33388         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33389         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33390         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33391         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33392         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33393         * modules/wcrtomb-tests (Makefile.am): Likewise.
33394         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33395         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33396         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33397         assignments from TESTS_ENVIRONMENT.
33398         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33399         augmentation.
33400         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33401         * modules/atexit-tests (Makefile.am): Likewise.
33402         * modules/binary-io-tests (Makefile.am): Likewise.
33403         * modules/closein-tests (Makefile.am): Likewise.
33404         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33405         * modules/exclude-tests (Makefile.am): Likewise.
33406         * modules/fflush-tests (Makefile.am): Likewise.
33407         * modules/fpending-tests (Makefile.am): Likewise.
33408         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33409         * modules/freadahead-tests (Makefile.am): Likewise.
33410         * modules/freadptr-tests (Makefile.am): Likewise.
33411         * modules/freadseek-tests (Makefile.am): Likewise.
33412         * modules/fseek-tests (Makefile.am): Likewise.
33413         * modules/fseeko-tests (Makefile.am): Likewise.
33414         * modules/ftell-tests (Makefile.am): Likewise.
33415         * modules/ftello-tests (Makefile.am): Likewise.
33416         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33417         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33418         * modules/lseek-tests (Makefile.am): Likewise.
33419         * modules/parse-duration-tests (Makefile.am): Likewise.
33420         * modules/perror-tests (Makefile.am): Likewise.
33421         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33422         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33423         * modules/pipe-tests (Makefile.am): Likewise.
33424         * modules/pread-tests (Makefile.am): Likewise.
33425         * modules/printf-posix-tests (Makefile.am): Likewise.
33426         * modules/select-tests (Makefile.am): Likewise.
33427         * modules/sigpipe-tests (Makefile.am): Likewise.
33428         * modules/tsearch-tests (Makefile.am): Likewise.
33429         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33430         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33431         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33432         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33433         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33434         * modules/version-etc-tests (Makefile.am): Likewise.
33435         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33436         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33437         * modules/xalloc-die-tests (Makefile.am): Likewise.
33438         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33439         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33440         * modules/xstrtol-tests (Makefile.am): Likewise.
33441         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33442         * modules/yesno-tests (Makefile.am): Likewise.
33443         Suggested by Jim Meyering.
33444
33445 2010-01-24  Bruno Haible  <bruno@clisp.org>
33446
33447         More documentation.
33448         * doc/gnulib.texi (Writing modules): New chapter.
33449         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33450         the new chapter.
33451
33452 2010-01-24  Jim Meyering  <meyering@redhat.com>
33453
33454         maint.mk: do not prepend "./" after filtering
33455         * top/maint.mk (_prepend_srcdir_prefix): New variable
33456         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33457         "./" when $(srcdir) is ".".
33458
33459         define STREQ(a,b) consistently, removing useless parentheses
33460         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33461         since the only risk is that "a" or "b" contains an unparenthesized
33462         comma, but if either did that, STREQ would have 3 or more arguments.
33463         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33464         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33465         * lib/hash-triple.c (STREQ): Likewise.
33466         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33467         * lib/getugroups.c (STREQ): Likewise.
33468
33469 2010-01-23  Jim Meyering  <meyering@redhat.com>
33470
33471         maint.mk: fix syntax-check in a non-srcdir build directory
33472         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33473         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33474
33475 2010-01-22  Jim Meyering  <meyering@redhat.com>
33476
33477         userspec: add unit tests
33478         * tests/test-userspec.c: New file.
33479         * modules/userspec-tests: Likewise.
33480
33481 2010-01-21  Jim Meyering  <meyering@redhat.com>
33482
33483         maint.mk: handle source file names containing "." robustly
33484         * top/maint.mk (_dot_escaped_srcdir): Define.
33485         (VC_LIST): Use it in LHS of sed substitution.
33486
33487 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33488
33489         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33490         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33491         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33492         from a non-srcdir build.
33493
33494 2010-01-20  Eric Blake  <ebb9@byu.net>
33495
33496         warn-on-use: use instead of link-warning
33497         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33498         * modules/unistd (Depends-on, Makefile.am): Likewise.
33499         * modules/arpa_inet (Depends-on): Replace link-warning with
33500         warn-on-use.
33501         (Makefile.am): Update rules accordingly.
33502         * modules/ctype (Depends-on, Makefile.am): Likewise.
33503         * modules/dirent (Depends-on, Makefile.am): Likewise.
33504         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33505         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33506         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33507         * modules/locale (Depends-on, Makefile.am): Likewise.
33508         * modules/math (Depends-on, Makefile.am): Likewise.
33509         * modules/search (Depends-on, Makefile.am): Likewise.
33510         * modules/signal (Depends-on, Makefile.am): Likewise.
33511         * modules/spawn (Depends-on, Makefile.am): Likewise.
33512         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33513         * modules/string (Depends-on, Makefile.am): Likewise.
33514         * modules/strings (Depends-on, Makefile.am): Likewise.
33515         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33516         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33517         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33518         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33519         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33520         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33521         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33522         * modules/wchar (Depends-on, Makefile.am): Likewise.
33523         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33524         should be poisoned.
33525         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33526         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33527         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33528         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33529         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33530         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33531         * m4/math_h.m4 (gl_MATH_H): Likewise.
33532         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33533         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33534         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33535         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33536         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33537         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33538         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33539         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33540         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33541         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33542         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33543         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33544         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33545         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33546         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33547         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33548         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33549         GL_LINK_WARNING.
33550         * lib/ctype.in.h: Likewise.
33551         * lib/dirent.in.h: Likewise.
33552         * lib/fcntl.in.h: Likewise.
33553         * lib/inttypes.in.h: Likewise.
33554         * lib/langinfo.in.h: Likewise.
33555         * lib/locale.in.h: Likewise.
33556         * lib/math.in.h: Likewise.
33557         * lib/search.in.h: Likewise.
33558         * lib/signal.in.h: Likewise.
33559         * lib/spawn.in.h: Likewise.
33560         * lib/stdio.in.h: Likewise.
33561         * lib/stdlib.in.h: Likewise.
33562         * lib/string.in.h: Likewise.
33563         * lib/strings.in.h: Likewise.
33564         * lib/sys_file.in.h: Likewise.
33565         * lib/sys_ioctl.in.h: Likewise.
33566         * lib/sys_select.in.h: Likewise.
33567         * lib/sys_socket.in.h: Likewise.
33568         * lib/sys_stat.in.h: Likewise.
33569         * lib/sys_times.in.h: Likewise.
33570         * lib/sys_utsname.in.h: Likewise.
33571         * lib/unistd.in.h: Likewise.
33572         * lib/wchar.in.h: Likewise.
33573
33574 2010-01-20  Bruno Haible  <bruno@clisp.org>
33575
33576         Avoid duplicate -lm.
33577         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33578         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33580         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33581         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33582         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33583         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33584         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33585         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33586         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33587         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33588         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33589         Reported by Paolo Bonzini.
33590
33591 2010-01-19  Bruno Haible  <bruno@clisp.org>
33592
33593         langinfo, nl_langinfo: Relicense under LGPLv2+.
33594         * modules/langinfo (License): Change to LGPLv2+.
33595         * modules/nl_langinfo (License): Likewise.
33596         Patch by David Lutterkort <lutter@redhat.com>.
33597
33598 2010-01-19  Bruno Haible  <bruno@clisp.org>
33599
33600         Avoid compilation error with cc on OSF/1 5.1.
33601         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33602         statement, not before.
33603         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33604
33605 2010-01-18  Bruno Haible  <bruno@clisp.org>
33606
33607         Avoid a link error due to the __printf__ symbol.
33608         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33609         and 2.6.x.
33610         (__format__, __printf__): Remove definitions.
33611         * lib/argp-fmtstream.h: Likewise.
33612         * lib/argp.h: Likewise.
33613         * lib/error.h: Likewise.
33614         * lib/vasnprintf.h: Likewise.
33615         * lib/xprintf.h: Likewise.
33616         * lib/xvasprintf.h: Likewise.
33617         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33618
33619 2010-01-18  Bruno Haible  <bruno@clisp.org>
33620
33621         Tests for module 'tanl'.
33622         * modules/tanl-tests: New file.
33623         * tests/test-tanl.c: New file.
33624
33625         Tests for module 'sqrtl'.
33626         * modules/sqrtl-tests: New file.
33627         * tests/test-sqrtl.c: New file.
33628
33629         Tests for module 'sinl'.
33630         * modules/sinl-tests: New file.
33631         * tests/test-sinl.c: New file.
33632
33633         Tests for module 'logl'.
33634         * modules/logl-tests: New file.
33635         * tests/test-logl.c: New file.
33636
33637         Tests for module 'expl'.
33638         * modules/expl-tests: New file.
33639         * tests/test-expl.c: New file.
33640
33641         Tests for module 'cosl'.
33642         * modules/cosl-tests: New file.
33643         * tests/test-cosl.c: New file.
33644
33645         Tests for module 'atanl'.
33646         * modules/atanl-tests: New file.
33647         * tests/test-atanl.c: New file.
33648
33649         Tests for module 'asinl'.
33650         * modules/asinl-tests: New file.
33651         * tests/test-asinl.c: New file.
33652
33653         Tests for module 'acosl'.
33654         * modules/acosl-tests: New file.
33655         * tests/test-acosl.c: New file.
33656
33657         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33658         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33659         tanl): Use the standard gnulib idiom.
33660         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33661         * lib/sinl.c: Likewise.
33662         * lib/tanl.c: Don't include trigl.c.
33663         (kernel_tanl): Make static.
33664         * lib/sincosl.c: Include trigl.h first.
33665         * lib/trigl.c: Likewise.
33666         * m4/acosl.m4: New file.
33667         * m4/asinl.m4: New file.
33668         * m4/atanl.m4: New file.
33669         * m4/cosl.m4: New file.
33670         * m4/expl.m4: New file.
33671         * m4/logl.m4: New file.
33672         * m4/sinl.m4: New file.
33673         * m4/sqrtl.m4: New file.
33674         * m4/tanl.m4: New file.
33675         * m4/mathl.m4: Remove file.
33676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33677         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33678         Don't initialize GNULIB_MATHL.
33679         * modules/acosl: New file.
33680         * modules/asinl: New file.
33681         * modules/atanl: New file.
33682         * modules/cosl: New file.
33683         * modules/expl: New file.
33684         * modules/logl: New file.
33685         * modules/sinl: New file.
33686         * modules/sqrtl: New file.
33687         * modules/tanl: New file.
33688         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33689         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33690         substitute GNULIB_MATHL.
33691         * modules/mathl: Rewritten.
33692         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33693         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33694         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33695         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33696         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33697         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33698         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33699         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33700         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33701
33702 2010-01-18  Bruno Haible  <bruno@clisp.org>
33703
33704         sqrt: Make gl_FUNC_SQRT requirable.
33705         * m4/sqrt.m4: New file.
33706         * modules/sqrt (Files): Add it.
33707         (configure.ac): Invoke gl_FUNC_SQRT.
33708
33709 2010-01-18  Bruno Haible  <bruno@clisp.org>
33710
33711         New modules for common <math.h> functions.
33712         * m4/mathfunc.m4: New file.
33713         * modules/acos: New file.
33714         * modules/asin: New file.
33715         * modules/atan: New file.
33716         * modules/atan2: New file.
33717         * modules/cbrt: New file.
33718         * modules/copysign: New file.
33719         * modules/cos: New file.
33720         * modules/cosh: New file.
33721         * modules/erf: New file.
33722         * modules/erfc: New file.
33723         * modules/exp: New file.
33724         * modules/fabs: New file.
33725         * modules/fmod: New file.
33726         * modules/hypot: New file.
33727         * modules/j0: New file.
33728         * modules/j1: New file.
33729         * modules/jn: New file.
33730         * modules/ldexp: New file.
33731         * modules/lgamma: New file.
33732         * modules/log: New file.
33733         * modules/log10: New file.
33734         * modules/log1p: New file.
33735         * modules/logb: New file.
33736         * modules/modf: New file.
33737         * modules/nextafter: New file.
33738         * modules/pow: New file.
33739         * modules/remainder: New file.
33740         * modules/rint: New file.
33741         * modules/sin: New file.
33742         * modules/sinh: New file.
33743         * modules/sqrt: New file.
33744         * modules/tan: New file.
33745         * modules/tanh: New file.
33746         * modules/y0: New file.
33747         * modules/y1: New file.
33748         * modules/yn: New file.
33749         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33750         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33751         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33752         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33753         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33754         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33755         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33756         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33757         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33758         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33759         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33760         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33761         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33762         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33763         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33764         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33765         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33766         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33767         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33768         * doc/posix-functions/log.texi: Mention the 'log' module.
33769         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33770         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33771         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33772         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33773         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33774         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33775         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33776         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33777         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33778         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33779         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33780         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33781         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33782         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33783         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33784         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33785
33786 2010-01-18  Jim Meyering  <meyering@redhat.com>
33787
33788         ignore-value: relax license to LGPLv2+
33789         * modules/ignore-value (License): Relax to LGPLv2+.
33790
33791         getdate: don't leak when TZ contains two or more '"'s
33792         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33793         double quote in TZ after the first one.
33794
33795         readtokens: do not leak internal token_lengths buffer
33796         * lib/readtokens.c (readtokens): Free the local, lengths,
33797         when the supplied "token_lengths" parameter is NULL.
33798
33799 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33800
33801         Fix a couple of missing LIBTHREAD link failures on AIX.
33802         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33803         $(LIBTHREAD).
33804         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33805
33806         Link test-poll against INET_PTON_LIB.
33807         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33808         for inet_pton on Solaris 10.
33809
33810 2010-01-17  Bruno Haible  <bruno@clisp.org>
33811
33812         unistdio/*-sprintf: Fix typo in module description.
33813         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33814         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33815         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33816         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33817         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33818         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33819         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33820         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33821
33822 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33823
33824         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33825         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33826         variables in shell case patterns, for AIX and HP-UX ksh.
33827
33828         Split large sed scripts, for HP-UX sed.
33829         * modules/stdio: Split sed scripts around 50 sed commands,
33830         to avoid HP-UX limit of 99 commands, in the near future.
33831         * modules/string: Likewise.
33832         * modules/unistd: Likewise.
33833
33834         gnulib-tool: avoid writing in the current directory.
33835         * gnulib-tool (func_emit_lib_Makefile_am)
33836         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33837         not in the current directory, so concurrent gnulib-tool
33838         instances do not interfere.
33839
33840 2010-01-16  Jim Meyering  <meyering@redhat.com>
33841
33842         doc: update users.txt
33843         * users.txt: Add grep.
33844         (diffutils, gzip): Update URLs.
33845
33846 2010-01-12  Bruno Haible  <bruno@clisp.org>
33847
33848         posix_spawn: Avoid test failure on Cygwin.
33849         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33850         characters.
33851         Reported by Simon Josefsson.
33852
33853 2010-01-12  Bruno Haible  <bruno@clisp.org>
33854
33855         * tests/test-cond.c (main): When skipping the test, show the reason.
33856
33857 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33858
33859         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33860
33861 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33862
33863         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33864         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33865
33866 2010-01-12  Eric Blake  <ebb9@byu.net>
33867
33868         build: guarantee AS_VAR_IF
33869         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33870         (gl_AS_VAR_IF): Move...
33871         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33872         Reported by Simon Josefsson.
33873
33874 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33875
33876         * lib/stdio.in.h: Fix typo.
33877
33878 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33879
33880         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33881         libgpg-error.
33882
33883 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33884
33885         * tests/test-xalloc-die.sh: Use $EXEEXT.
33886
33887 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33888             Bruno Haible  <bruno@clisp.org>
33889
33890         getlogin, getlogin_r: Avoid test failure.
33891         * tests/test-getlogin.c: Include <stdio.h>.
33892         (main): Skip the test when the function fails because stdin is not a
33893         tty.
33894         * tests/test-getlogin_r.c: Include <stdio.h>.
33895         (main): Skip the test when the function fails because stdin is not a
33896         tty.
33897
33898 2010-01-11  Eric Blake  <ebb9@byu.net>
33899
33900         tests: avoid more large file warnings
33901         * tests/test-fflush.c: Avoid warning about ftell use.
33902         * tests/test-fseek.c: Avoid warning about fseek use.
33903
33904 2010-01-10  Bruno Haible  <bruno@clisp.org>
33905
33906         nproc: Work better on Linux when /proc and /sys are not mounted.
33907         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33908         as lower bound when, on glibc/Linux systems,
33909         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33910         Suggested by Pádraig Brady <P@draigbrady.com>.
33911         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33912
33913         nproc: Refactor.
33914         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33915         extracted from num_processors.
33916         (num_processors): Call it.
33917
33918 2010-01-11  Jim Meyering  <meyering@redhat.com>
33919
33920         utimecmp: avoid new warning from upcoming gcc-4.5.0
33921         * lib/utimecmp.c (BILLION): Define using #define rather than an
33922         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33923
33924 2010-01-11  Eric Blake  <ebb9@byu.net>
33925
33926         math: add portability warnings for classification macros
33927         * modules/math (Depends-on): Add warn-on-use.
33928         (Makefile.am): Provide new substitutions.
33929         * m4/math_h.m4 (gl_MATH_H): Require inline.
33930         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33931         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33932         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33933         implement warnings.
33934
33935         unistd: warn on use of environ without module
33936         * modules/unistd (Depends-on): Add warn-on-use.
33937         (Makefile.am): Provide new substitutions.
33938         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33939         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33940
33941         stdio: warn on suspicious uses
33942         * modules/stdio (Depends-on): Add warn-on-use.
33943         (Makefile.am): Provide new substitutions.
33944         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33945         fseeko.
33946         * lib/stdio.in.h (gets): Always warn on use.
33947         (fseek, ftell): Adjust when warnings are issued, and honor
33948         _GL_NO_LARGE_FILES as a way to silence the warning.
33949         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33950         any warning about large file offsets.
33951         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33952         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33953         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33954         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33955         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33956         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33957         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33958         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33959
33960         warn-on-use: new module
33961         * modules/warn-on-use: New file.
33962         * build-aux/warn-on-use.h: Likewise.
33963         * m4/warn-on-use.m4: Likewise.
33964         * MODULES.html.sh (Support for building): Mention it.
33965
33966 2010-01-10  Bruno Haible  <bruno@clisp.org>
33967
33968         Tests for module 'unistr/u32-strdup'.
33969         * modules/unistr/u32-strdup-tests: New file.
33970         * tests/unistr/test-u32-strdup.c: New file.
33971
33972         Tests for module 'unistr/u16-strdup'.
33973         * modules/unistr/u16-strdup-tests: New file.
33974         * tests/unistr/test-u16-strdup.c: New file.
33975
33976         Tests for module 'unistr/u8-strdup'.
33977         * modules/unistr/u8-strdup-tests: New file.
33978         * tests/unistr/test-u8-strdup.c: New file.
33979         * tests/unistr/test-strdup.h: New file.
33980
33981         Tests for module 'unistr/u32-strncmp'.
33982         * modules/unistr/u32-strncmp-tests: New file.
33983         * tests/unistr/test-u32-strncmp.c: New file.
33984
33985         Tests for module 'unistr/u16-strncmp'.
33986         * modules/unistr/u16-strncmp-tests: New file.
33987         * tests/unistr/test-u16-strncmp.c: New file.
33988
33989         Tests for module 'unistr/u8-strncmp'.
33990         * modules/unistr/u8-strncmp-tests: New file.
33991         * tests/unistr/test-u8-strncmp.c: New file.
33992         * tests/unistr/test-strncmp.h: New file.
33993
33994         Tests for module 'unistr/u32-strcoll'.
33995         * modules/unistr/u32-strcoll-tests: New file.
33996         * tests/unistr/test-u32-strcoll.c: New file.
33997
33998         Tests for module 'unistr/u16-strcoll'.
33999         * modules/unistr/u16-strcoll-tests: New file.
34000         * tests/unistr/test-u16-strcoll.c: New file.
34001
34002         Tests for module 'unistr/u8-strcoll'.
34003         * modules/unistr/u8-strcoll-tests: New file.
34004         * tests/unistr/test-u8-strcoll.c: New file.
34005
34006         Tests for module 'unistr/u32-strcmp'.
34007         * modules/unistr/u32-strcmp-tests: New file.
34008         * tests/unistr/test-u32-strcmp.c: New file.
34009         * tests/unistr/test-u32-strcmp.h: New file.
34010
34011         Tests for module 'unistr/u16-strcmp'.
34012         * modules/unistr/u16-strcmp-tests: New file.
34013         * tests/unistr/test-u16-strcmp.c: New file.
34014         * tests/unistr/test-u16-strcmp.h: New file.
34015
34016         Tests for module 'unistr/u8-strcmp'.
34017         * modules/unistr/u8-strcmp-tests: New file.
34018         * tests/unistr/test-u8-strcmp.c: New file.
34019         * tests/unistr/test-u8-strcmp.h: New file.
34020         * tests/unistr/test-strcmp.h: New file.
34021
34022         Tests for module 'unistr/u32-strncat'.
34023         * modules/unistr/u32-strncat-tests: New file.
34024         * tests/unistr/test-u32-strncat.c: New file.
34025
34026         Tests for module 'unistr/u16-strncat'.
34027         * modules/unistr/u16-strncat-tests: New file.
34028         * tests/unistr/test-u16-strncat.c: New file.
34029
34030         Tests for module 'unistr/u8-strncat'.
34031         * modules/unistr/u8-strncat-tests: New file.
34032         * tests/unistr/test-u8-strncat.c: New file.
34033         * tests/unistr/test-strncat.h: New file.
34034
34035         Tests for module 'unistr/u32-strcat'.
34036         * modules/unistr/u32-strcat-tests: New file.
34037         * tests/unistr/test-u32-strcat.c: New file.
34038
34039         Tests for module 'unistr/u16-strcat'.
34040         * modules/unistr/u16-strcat-tests: New file.
34041         * tests/unistr/test-u16-strcat.c: New file.
34042
34043         Tests for module 'unistr/u8-strcat'.
34044         * modules/unistr/u8-strcat-tests: New file.
34045         * tests/unistr/test-u8-strcat.c: New file.
34046         * tests/unistr/test-strcat.h: New file.
34047
34048         Tests for module 'unistr/u32-stpncpy'.
34049         * modules/unistr/u32-stpncpy-tests: New file.
34050         * tests/unistr/test-u32-stpncpy.c: New file.
34051
34052         Tests for module 'unistr/u16-stpncpy'.
34053         * modules/unistr/u16-stpncpy-tests: New file.
34054         * tests/unistr/test-u16-stpncpy.c: New file.
34055
34056         Tests for module 'unistr/u8-stpncpy'.
34057         * modules/unistr/u8-stpncpy-tests: New file.
34058         * tests/unistr/test-u8-stpncpy.c: New file.
34059         * tests/unistr/test-stpncpy.h: New file.
34060
34061         Tests for module 'unistr/u32-strncpy'.
34062         * modules/unistr/u32-strncpy-tests: New file.
34063         * tests/unistr/test-u32-strncpy.c: New file.
34064
34065         Tests for module 'unistr/u16-strncpy'.
34066         * modules/unistr/u16-strncpy-tests: New file.
34067         * tests/unistr/test-u16-strncpy.c: New file.
34068
34069         Tests for module 'unistr/u8-strncpy'.
34070         * modules/unistr/u8-strncpy-tests: New file.
34071         * tests/unistr/test-u8-strncpy.c: New file.
34072         * tests/unistr/test-strncpy.h: New file.
34073
34074         Tests for module 'unistr/u32-stpcpy'.
34075         * modules/unistr/u32-stpcpy-tests: New file.
34076         * tests/unistr/test-u32-stpcpy.c: New file.
34077
34078         Tests for module 'unistr/u16-stpcpy'.
34079         * modules/unistr/u16-stpcpy-tests: New file.
34080         * tests/unistr/test-u16-stpcpy.c: New file.
34081
34082         Tests for module 'unistr/u8-stpcpy'.
34083         * modules/unistr/u8-stpcpy-tests: New file.
34084         * tests/unistr/test-u8-stpcpy.c: New file.
34085         * tests/unistr/test-stpcpy.h: New file.
34086
34087         Tests for module 'unistr/u32-strcpy'.
34088         * modules/unistr/u32-strcpy-tests: New file.
34089         * tests/unistr/test-u32-strcpy.c: New file.
34090
34091         Tests for module 'unistr/u16-strcpy'.
34092         * modules/unistr/u16-strcpy-tests: New file.
34093         * tests/unistr/test-u16-strcpy.c: New file.
34094
34095         Tests for module 'unistr/u8-strcpy'.
34096         * modules/unistr/u8-strcpy-tests: New file.
34097         * tests/unistr/test-u8-strcpy.c: New file.
34098         * tests/unistr/test-strcpy.h: New file.
34099
34100         Tests for module 'unistr/u32-strnlen'.
34101         * modules/unistr/u32-strnlen-tests: New file.
34102         * tests/unistr/test-u32-strnlen.c: New file.
34103
34104         Tests for module 'unistr/u16-strnlen'.
34105         * modules/unistr/u16-strnlen-tests: New file.
34106         * tests/unistr/test-u16-strnlen.c: New file.
34107
34108         Tests for module 'unistr/u8-strnlen'.
34109         * modules/unistr/u8-strnlen-tests: New file.
34110         * tests/unistr/test-u8-strnlen.c: New file.
34111         * tests/unistr/test-strnlen.h: New file.
34112
34113         Tests for module 'unistr/u32-strlen'.
34114         * modules/unistr/u32-strlen-tests: New file.
34115         * tests/unistr/test-u32-strlen.c: New file.
34116
34117         Tests for module 'unistr/u16-strlen'.
34118         * modules/unistr/u16-strlen-tests: New file.
34119         * tests/unistr/test-u16-strlen.c: New file.
34120
34121         Tests for module 'unistr/u8-strlen'.
34122         * modules/unistr/u8-strlen-tests: New file.
34123         * tests/unistr/test-u8-strlen.c: New file.
34124
34125         Tests for module 'unistr/u32-prev'.
34126         * modules/unistr/u32-prev-tests: New file.
34127         * tests/unistr/test-u32-prev.c: New file.
34128
34129         Tests for module 'unistr/u16-prev'.
34130         * modules/unistr/u16-prev-tests: New file.
34131         * tests/unistr/test-u16-prev.c: New file.
34132
34133         Tests for module 'unistr/u8-prev'.
34134         * modules/unistr/u8-prev-tests: New file.
34135         * tests/unistr/test-u8-prev.c: New file.
34136
34137         Tests for module 'unistr/u32-next'.
34138         * modules/unistr/u32-next-tests: New file.
34139         * tests/unistr/test-u32-next.c: New file.
34140
34141         Tests for module 'unistr/u16-next'.
34142         * modules/unistr/u16-next-tests: New file.
34143         * tests/unistr/test-u16-next.c: New file.
34144
34145         Tests for module 'unistr/u8-next'.
34146         * modules/unistr/u8-next-tests: New file.
34147         * tests/unistr/test-u8-next.c: New file.
34148
34149         Tests for module 'unistr/u32-strmbtouc'.
34150         * modules/unistr/u32-strmbtouc-tests: New file.
34151         * tests/unistr/test-u32-strmbtouc.c: New file.
34152
34153         Tests for module 'unistr/u16-strmbtouc'.
34154         * modules/unistr/u16-strmbtouc-tests: New file.
34155         * tests/unistr/test-u16-strmbtouc.c: New file.
34156
34157         Tests for module 'unistr/u8-strmbtouc'.
34158         * modules/unistr/u8-strmbtouc-tests: New file.
34159         * tests/unistr/test-u8-strmbtouc.c: New file.
34160
34161         Tests for module 'unistr/u32-strmblen'.
34162         * modules/unistr/u32-strmblen-tests: New file.
34163         * tests/unistr/test-u32-strmblen.c: New file.
34164
34165         Tests for module 'unistr/u16-strmblen'.
34166         * modules/unistr/u16-strmblen-tests: New file.
34167         * tests/unistr/test-u16-strmblen.c: New file.
34168
34169         Tests for module 'unistr/u8-strmblen'.
34170         * modules/unistr/u8-strmblen-tests: New file.
34171         * tests/unistr/test-u8-strmblen.c: New file.
34172
34173         Tests for module 'unistr/u32-cpy-alloc'.
34174         * modules/unistr/u32-cpy-alloc-tests: New file.
34175         * tests/unistr/test-u32-cpy-alloc.c: New file.
34176
34177         Tests for module 'unistr/u16-cpy-alloc'.
34178         * modules/unistr/u16-cpy-alloc-tests: New file.
34179         * tests/unistr/test-u16-cpy-alloc.c: New file.
34180
34181         Tests for module 'unistr/u8-cpy-alloc'.
34182         * modules/unistr/u8-cpy-alloc-tests: New file.
34183         * tests/unistr/test-u8-cpy-alloc.c: New file.
34184         * tests/unistr/test-cpy-alloc.h: New file.
34185
34186         Tests for module 'unistr/u32-mbsnlen'.
34187         * modules/unistr/u32-mbsnlen-tests: New file.
34188         * tests/unistr/test-u32-mbsnlen.c: New file.
34189
34190         Tests for module 'unistr/u16-mbsnlen'.
34191         * modules/unistr/u16-mbsnlen-tests: New file.
34192         * tests/unistr/test-u16-mbsnlen.c: New file.
34193
34194         Tests for module 'unistr/u8-mbsnlen'.
34195         * modules/unistr/u8-mbsnlen-tests: New file.
34196         * tests/unistr/test-u8-mbsnlen.c: New file.
34197
34198         Tests for module 'unistr/u32-chr'.
34199         * modules/unistr/u32-chr-tests: New file.
34200         * tests/unistr/test-u32-chr.c: New file.
34201
34202         Tests for module 'unistr/u16-chr'.
34203         * modules/unistr/u16-chr-tests: New file.
34204         * tests/unistr/test-u16-chr.c: New file.
34205
34206         Tests for module 'unistr/u8-chr'.
34207         * modules/unistr/u8-chr-tests: New file.
34208         * tests/unistr/test-u8-chr.c: New file.
34209         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34210
34211         Tests for module 'unistr/u32-cmp2'.
34212         * modules/unistr/u32-cmp2-tests: New file.
34213         * tests/unistr/test-u32-cmp2.c: New file.
34214
34215         Tests for module 'unistr/u16-cmp2'.
34216         * modules/unistr/u16-cmp2-tests: New file.
34217         * tests/unistr/test-u16-cmp2.c: New file.
34218
34219         Tests for module 'unistr/u8-cmp2'.
34220         * modules/unistr/u8-cmp2-tests: New file.
34221         * tests/unistr/test-u8-cmp2.c: New file.
34222         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34223
34224         Tests for module 'unistr/u32-cmp'.
34225         * modules/unistr/u32-cmp-tests: New file.
34226         * tests/unistr/test-u32-cmp.c: New file.
34227
34228         Tests for module 'unistr/u16-cmp'.
34229         * modules/unistr/u16-cmp-tests: New file.
34230         * tests/unistr/test-u16-cmp.c: New file.
34231
34232         Tests for module 'unistr/u8-cmp'.
34233         * modules/unistr/u8-cmp-tests: New file.
34234         * tests/unistr/test-u8-cmp.c: New file.
34235         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34236
34237         Tests for module 'unistr/u32-set'.
34238         * modules/unistr/u32-set-tests: New file.
34239         * tests/unistr/test-u32-set.c: New file.
34240
34241         Tests for module 'unistr/u16-set'.
34242         * modules/unistr/u16-set-tests: New file.
34243         * tests/unistr/test-u16-set.c: New file.
34244
34245         Tests for module 'unistr/u8-set'.
34246         * modules/unistr/u8-set-tests: New file.
34247         * tests/unistr/test-u8-set.c: New file.
34248         * tests/unistr/test-set.h: New file.
34249
34250         Tests for module 'unistr/u32-move'.
34251         * modules/unistr/u32-move-tests: New file.
34252         * tests/unistr/test-u32-move.c: New file.
34253
34254         Tests for module 'unistr/u16-move'.
34255         * modules/unistr/u16-move-tests: New file.
34256         * tests/unistr/test-u16-move.c: New file.
34257
34258         Tests for module 'unistr/u8-move'.
34259         * modules/unistr/u8-move-tests: New file.
34260         * tests/unistr/test-u8-move.c: New file.
34261         * tests/unistr/test-move.h: New file.
34262
34263         Tests for module 'unistr/u32-cpy'.
34264         * modules/unistr/u32-cpy-tests: New file.
34265         * tests/unistr/test-u32-cpy.c: New file.
34266
34267         Tests for module 'unistr/u16-cpy'.
34268         * modules/unistr/u16-cpy-tests: New file.
34269         * tests/unistr/test-u16-cpy.c: New file.
34270
34271         Tests for module 'unistr/u8-cpy'.
34272         * modules/unistr/u8-cpy-tests: New file.
34273         * tests/unistr/test-u8-cpy.c: New file.
34274         * tests/unistr/test-cpy.h: New file.
34275
34276 2010-01-09  Bruno Haible  <bruno@clisp.org>
34277
34278         Tests for module 'unistr/u32-uctomb'.
34279         * modules/unistr/u32-uctomb-tests: New file.
34280         * tests/unistr/test-u32-uctomb.c: New file.
34281
34282         Tests for module 'unistr/u16-uctomb'.
34283         * modules/unistr/u16-uctomb-tests: New file.
34284         * tests/unistr/test-u16-uctomb.c: New file.
34285
34286         Tests for module 'unistr/u8-uctomb'.
34287         * modules/unistr/u8-uctomb-tests: New file.
34288         * tests/unistr/test-u8-uctomb.c: New file.
34289
34290         Tests for module 'unistr/u32-mbtoucr'.
34291         * modules/unistr/u32-mbtoucr-tests: New file.
34292         * tests/unistr/test-u32-mbtoucr.c: New file.
34293
34294         Tests for module 'unistr/u16-mbtoucr'.
34295         * modules/unistr/u16-mbtoucr-tests: New file.
34296         * tests/unistr/test-u16-mbtoucr.c: New file.
34297
34298         Tests for module 'unistr/u8-mbtoucr'.
34299         * modules/unistr/u8-mbtoucr-tests: New file.
34300         * tests/unistr/test-u8-mbtoucr.c: New file.
34301
34302         Tests for module 'unistr/u32-mbtouc'.
34303         * modules/unistr/u32-mbtouc-tests: New file.
34304         * tests/unistr/test-u32-mbtouc.c: New file.
34305
34306         Tests for module 'unistr/u16-mbtouc'.
34307         * modules/unistr/u16-mbtouc-tests: New file.
34308         * tests/unistr/test-u16-mbtouc.c: New file.
34309
34310         Tests for module 'unistr/u8-mbtouc'.
34311         * modules/unistr/u8-mbtouc-tests: New file.
34312         * tests/unistr/test-u8-mbtouc.c: New file.
34313
34314         Tests for module 'unistr/u32-mbtouc-unsafe'.
34315         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34316         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34317         * tests/unistr/test-u32-mbtouc.h: New file.
34318
34319         Tests for module 'unistr/u16-mbtouc-unsafe'.
34320         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34321         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34322         * tests/unistr/test-u16-mbtouc.h: New file.
34323
34324         Tests for module 'unistr/u8-mbtouc-unsafe'.
34325         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34326         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34327         * tests/unistr/test-u8-mbtouc.h: New file.
34328
34329         Tests for module 'unistr/u32-mblen'.
34330         * modules/unistr/u32-mblen-tests: New file.
34331         * tests/unistr/test-u32-mblen.c: New file.
34332
34333         Tests for module 'unistr/u16-mblen'.
34334         * modules/unistr/u16-mblen-tests: New file.
34335         * tests/unistr/test-u16-mblen.c: New file.
34336
34337         Tests for module 'unistr/u8-mblen'.
34338         * modules/unistr/u8-mblen-tests: New file.
34339         * tests/unistr/test-u8-mblen.c: New file.
34340
34341         Tests for module 'unistr/u32-to-u16'.
34342         * modules/unistr/u32-to-u16-tests: New file.
34343         * tests/unistr/test-u32-to-u16.c: New file.
34344
34345         Tests for module 'unistr/u32-to-u8'.
34346         * modules/unistr/u32-to-u8-tests: New file.
34347         * tests/unistr/test-u32-to-u8.c: New file.
34348
34349         Tests for module 'unistr/u16-to-u32'.
34350         * modules/unistr/u16-to-u32-tests: New file.
34351         * tests/unistr/test-u16-to-u32.c: New file.
34352
34353         Tests for module 'unistr/u16-to-u8'.
34354         * modules/unistr/u16-to-u8-tests: New file.
34355         * tests/unistr/test-u16-to-u8.c: New file.
34356
34357         Tests for module 'unistr/u8-to-u32'.
34358         * modules/unistr/u8-to-u32-tests: New file.
34359         * tests/unistr/test-u8-to-u32.c: New file.
34360
34361         Tests for module 'unistr/u8-to-u16'.
34362         * modules/unistr/u8-to-u16-tests: New file.
34363         * tests/unistr/test-u8-to-u16.c: New file.
34364
34365         Tests for module 'unistr/u32-check'.
34366         * modules/unistr/u32-check-tests: New file.
34367         * tests/unistr/test-u32-check.c: New file.
34368
34369         Tests for module 'unistr/u16-check'.
34370         * modules/unistr/u16-check-tests: New file.
34371         * tests/unistr/test-u16-check.c: New file.
34372
34373         Tests for module 'unistr/u8-check'.
34374         * modules/unistr/u8-check-tests: New file.
34375         * tests/unistr/test-u8-check.c: New file.
34376
34377         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34378         (category_equals): New function.
34379         (main): Add more tests.
34380         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34381
34382         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34383
34384 2010-01-10  Bruno Haible  <bruno@clisp.org>
34385
34386         unistr/u*-strcoll: Try harder to distinguish different strings.
34387         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34388         compare s1 and s2 to see if they are different.
34389
34390 2010-01-10  Bruno Haible  <bruno@clisp.org>
34391
34392         unistr/u*-stpncpy: Fix the return value.
34393         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34394         description of the return value consistent with stpncpy in glibc.
34395         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34396         written non-NUL unit.
34397
34398 2010-01-10  Bruno Haible  <bruno@clisp.org>
34399
34400         unistr/u*-next: Add missing dependencies.
34401         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34402         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34403         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34404
34405 2010-01-10  Bruno Haible  <bruno@clisp.org>
34406
34407         unistr/u8-mbsnlen: Fix return value for incomplete character.
34408         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34409         u8_mblen.
34410         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34411         Remove unistr/u8-mblen.
34412         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34413         u16_mblen.
34414         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34415         Remove unistr/u16-mblen.
34416
34417 2010-01-10  Bruno Haible  <bruno@clisp.org>
34418
34419         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34420         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34421         Reported by Brian Gough <bjg@gnu.org> and
34422         Chris Clayton <chris2553@googlemail.com> via
34423         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34424
34425 2010-01-09  Bruno Haible  <bruno@clisp.org>
34426
34427         unistr/u16-to-u32: Reject invalid input.
34428         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34429         u16_mbtouc.
34430         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34431         Remove unistr/u16-mbtouc.
34432
34433         unistr/u16-to-u8: Reject invalid input.
34434         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34435         u16_mbtouc.
34436         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34437         Remove unistr/u16-mbtouc.
34438
34439         unistr/u8-to-u32: Reject invalid input.
34440         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34441         u8_mbtouc.
34442         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34443         Remove unistr/u8-mbtouc.
34444
34445         unistr/u8-to-u16: Reject invalid input.
34446         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34447         u8_mbtouc.
34448         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34449         Remove unistr/u8-mbtouc.
34450
34451 2010-01-09  Bruno Haible  <bruno@clisp.org>
34452
34453         Tests for module 'getlogin'.
34454         * modules/getlogin-tests: New file.
34455         * tests/test-getlogin.c: New file.
34456
34457         New module 'getlogin'.
34458         * lib/unistd.in.h (getlogin): New declaration.
34459         * lib/getlogin.c: New file.
34460         * m4/getlogin.m4: New file.
34461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34462         HAVE_GETLOGIN.
34463         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34464         HAVE_GETLOGIN.
34465         * modules/getlogin: New file.
34466         * doc/posix-functions/getlogin.texi: Mention the new module.
34467         Reported by John W. Eaton <jwe@gnu.org>.
34468
34469 2010-01-09  Bruno Haible  <bruno@clisp.org>
34470
34471         getlogin_r: Support for native Windows.
34472         * lib/getlogin_r.c: Include <windows.h>
34473         (getlogin_r): Implement for native Windows.
34474         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34475         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34476         via John W. Eaton <jwe@gnu.org>.
34477
34478 2010-01-09  Bruno Haible  <bruno@clisp.org>
34479
34480         getlogin_r: Small fixes.
34481         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34482         succeeds.
34483         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34484         before testing whether getlogin_r is declared. No need to set
34485         HAVE_DECL_GETLOGIN_R to 1.
34486         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34487
34488 2010-01-09  Bruno Haible  <bruno@clisp.org>
34489
34490         * lib/unistd.in.h (getlogin_r): Add comment.
34491
34492 2010-01-09  Bruno Haible  <bruno@clisp.org>
34493
34494         Tests for module 'getlogin_r'.
34495         * modules/getlogin_r-tests: New file.
34496         * tests/test-getlogin_r.c: New file.
34497
34498 2010-01-09  Jim Meyering  <meyering@redhat.com>
34499
34500         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34501         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34502         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34503
34504 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34505
34506         * lib/dup2.c (rpl_dup2): Improve comment.
34507
34508 2010-01-08  Eric Blake  <ebb9@byu.net>
34509
34510         maint.mk: allow packages to add makefile @@ exceptions
34511         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34512         (sc_makefile_check): Rename...
34513         (sc_makefile_at_at_check): ...to this, and use hook.
34514
34515         dup2: work around mingw bug
34516         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34517         Reported by Simon Josefsson.
34518
34519 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34520
34521         glob: Fix C++ compilation.
34522         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34523         C++.
34524
34525 2010-01-07  Bruno Haible  <bruno@clisp.org>
34526
34527         Fix indentation of wctype.in.h, broken since 2007-01-06.
34528         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34529
34530 2010-01-07  Bruno Haible  <bruno@clisp.org>
34531
34532         mbslen: Avoid collision with system function.
34533         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34534         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34535         * m4/mbslen.m4: New file.
34536         * modules/mbslen (Files): Add it.
34537         (configure.ac): Invoke gl_MBSLEN.
34538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34539         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34540         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34541         via Ian Beckwith <ianb@erislabs.net>.
34542
34543 2010-01-07  Bruno Haible  <bruno@clisp.org>
34544
34545         dirent: Document the last fix.
34546         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34547
34548 2010-01-07  Bruno Haible  <bruno@clisp.org>
34549
34550         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34551         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34552         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34553         va_list are defined.
34554         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34555         Reported by Eric Blake.
34556
34557 2010-01-07  Bruno Haible  <bruno@clisp.org>
34558
34559         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34560         * modules/xlist (Depends-on): Add 'list',
34561         * modules/xoset (Depends-on): Add 'oset'.
34562         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34563
34564 2010-01-07  Bruno Haible  <bruno@clisp.org>
34565
34566         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34567         * doc/posix-functions/strncasecmp.texi: Likewise.
34568
34569 2010-01-07  Bruno Haible  <bruno@clisp.org>
34570
34571         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34572
34573 2010-01-07  John W. Eaton  <jwe@octave.org>
34574
34575         wctype: allow C++ use
34576         * lib/wctype.in.h: Add extern "C" block for C++.
34577
34578 2010-01-06  Eric Blake  <ebb9@byu.net>
34579
34580         maint.mk: detect incorrect GFDL usage
34581         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34582
34583 2010-01-06  Jim Meyering  <meyering@redhat.com>
34584         and Eric Blake  <ebb9@byu.net>
34585
34586         maint.mk: ignore multi-line copyright in NEWS
34587         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34588
34589 2010-01-06  Eric Blake  <ebb9@byu.net>
34590
34591         select: add missing dependency
34592         * modules/select-tests (Depends-on): Move sockets dependency...
34593         * modules/select (Depends-on): ...here.
34594         Reported by Ian Beckwith.
34595
34596         doc: regenerate INSTALL
34597         * doc/INSTALL: Reflect recent autoconf update.
34598         * doc/INSTALL.ISO: Likewise.
34599         * doc/INSTALL.UTF-8: Likewise.
34600
34601         pread: fix compilation on glibc
34602         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34603         Reported by Ralf Wildenhues.
34604
34605         dirent: fix test failure
34606         * lib/dirent.in.h (includes): Guarantee ino_t.
34607         Reported by Ralf Wildenhues.
34608
34609 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34610
34611         linkat, renameat: avoid bad free
34612         * lib/at-func2.c (at_func2): Fix typo.
34613         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34614
34615 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34616
34617         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34618         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34619         to avoid failure of symlink test later.
34620
34621 2010-01-06  Eric Blake  <ebb9@byu.net>
34622
34623         stdio, unistd: guarantee ssize_t
34624         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34625         2008 are exposed when needed.
34626         * lib/stdio.in.h (includes): Likewise.
34627         Reported by Ralf Wildenhues.
34628
34629 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34630
34631         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34632         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34633         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34634
34635 2010-01-06  Jim Meyering  <meyering@redhat.com>
34636
34637         readtokens: this module *does* require xalloc.h
34638         It uses only functions that were omitted by the old syntax-check rule.
34639         * lib/readtokens.c: Include "xalloc.h" once again.
34640         * modules/readtokens (Depends-on): Add xalloc.
34641         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34642
34643 2010-01-05  Eric Blake  <ebb9@byu.net>
34644
34645         maint: support 'make announcement' from a VPATH build
34646         * top/maint.mk (announcement): Look for correct NEWS file.
34647
34648 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34649
34650         utimens (fdutimens): ignore a negative FD, per contract
34651         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34652         when we have a valid file descriptor.  Otherwise, using a brand
34653         new glibc (with just-patched futimens that now fails with EBADF)
34654         would cause this function to fail with ENOSYS.
34655         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34656         See also http://bugzilla.redhat.com/552320.
34657
34658 2010-01-05  Eric Blake  <ebb9@byu.net>
34659
34660         strcase: document what it provides
34661         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34662         gnulib module.
34663         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34664         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34665
34666 2010-01-05  Jim Meyering  <meyering@redhat.com>
34667
34668         maint: remove useless inclusions of "xalloc.h"
34669         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34670         * lib/readtokens.c: Likewise.
34671         * lib/same.c: Likewise.
34672         * modules/getloadavg (Depends-on): Remove xalloc.
34673         * modules/readtokens: Likewise.
34674         * modules/same: Likewise.
34675
34676         maint.mk: include 4 more function names in alloca.h-checking regexp
34677         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34678         regexp.  Before, we would give a false-positive (saying alloca.h
34679         is included unnecessarily) when the only uses involved omitted symbols.
34680
34681         xalloc.h: use consistent formatting
34682         * lib/xalloc.h: Move declarations to start in the first column.
34683
34684 2010-01-05  Eric Blake  <ebb9@byu.net>
34685
34686         mkdir: avoid xalloc
34687         * lib/mkdir.c (includes): Drop unused header.
34688         Reported by John W. Eaton.
34689
34690 2010-01-04  Jim Meyering  <meyering@redhat.com>
34691
34692         nl_langinfo: avoid configure-time syntax error
34693         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34694         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34695         the empty string.  Don't let that provoke a shell syntax error.
34696
34697         regcomp, regexec, fnmatch: avoid array bounds read error
34698         * lib/regcomp.c (build_equiv_class): From glibc:
34699         Use only the low 24 bits of a findidx return value as an index
34700         into the weights array.  Patch by Ulrich Drepper:
34701         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34702         * lib/regexec.c (check_node_accept_bytes): Likewise.
34703         * lib/fnmatch_loop.c (FCT): Likewise.
34704
34705         regcomp: skip collseq lookup when there are no rules
34706         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34707         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34708
34709         regcomp: recognize ill-formed { } expressions
34710         * lib/regcomp.c (parse_dup_op): From glibc:
34711         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34712
34713         regcomp: fix typo in comment
34714         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34715         s/satisfy/satisfies/.
34716
34717         regcomp: sync from glibc: remove dead store
34718         * lib/regcomp.c (duplicate_node_closure): Remove useless
34719         search_duplicated_node call and dead store.
34720
34721         regcomp: sync from glibc; always use nl_langinfo
34722         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34723         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34724         * modules/regex (Depends-on): Add nl_langinfo.
34725
34726 2010-01-04  Eric Blake  <ebb9@byu.net>
34727
34728         fdopendir: fix configure test
34729         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34730
34731 2010-01-01  Bruno Haible  <bruno@clisp.org>
34732
34733         wchar: Remove unused configure check.
34734         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34735
34736 2010-01-01  Eric Blake  <ebb9@byu.net>
34737
34738         headers: make check of system header explicit
34739         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34740         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34741         ourselves.
34742         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34743         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34745         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34746         internals.
34747         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34748         missing.
34749         Suggested by Bruno Haible.
34750
34751 2010-01-01  Jim Meyering  <meyering@redhat.com>
34752
34753         ChangeLog: tweak to eliminate unnecessary copyright line
34754         * ChangeLog: Remove a copyright line that was mistakenly updated
34755         by today's update-copyright run.  Reported by Eric Blake.
34756
34757         test-update-copyright: don't let envvar setting cause test failure
34758         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34759
34760 2010-01-01  Bruno Haible  <bruno@clisp.org>
34761
34762         localename: Avoid gcc warning.
34763         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34764         function if it is not used.
34765
34766 2010-01-01  Jim Meyering  <meyering@redhat.com>
34767
34768         update nearly all FSF copyright year lists to include 2010
34769         Use the same procedure as for 2009, outlined in
34770         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34771
34772         version-etc: set COPYRIGHT_YEAR to 2010
34773         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34774
34775 2009-12-31  Eric Blake  <ebb9@byu.net>
34776
34777         doc: correct availability of cygwin 1.5.x getopt
34778         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34779         variables.
34780         * doc/posix-functions/opterr.texi (opterr): Likewise.
34781         * doc/posix-functions/optind.texi (optind): Likewise.
34782         * doc/posix-functions/optopt.texi (optopt): Likewise.
34783         * doc/posix-functions/tzname.texi (tzname): Likewise.
34784
34785         openat: update maintainer
34786         * modules/openat (Maintainer): Add myself.
34787
34788         utimens: avoid shadowing warning
34789         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34790         buffers into one, to avoid shadowing, as well as avoiding a
34791         redundant stat.
34792         Reported by Jim Meyering.
34793
34794         test-dup2: avoid compiler warning
34795         * tests/test-dup2.c (is_inheritable): Only define if used.
34796
34797 2010-01-01  Bruno Haible  <bruno@clisp.org>
34798
34799         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34800         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34801         defined, use wctomb instead of wcrtomb.
34802
34803 2010-01-01  Bruno Haible  <bruno@clisp.org>
34804
34805         iconv: Reject native Solaris iconv.
34806         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34807         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34808
34809 2009-12-31  Bruno Haible  <bruno@clisp.org>
34810
34811         * tests/test-signal.c (main): Remove test of 'SIG'.
34812
34813 2009-12-31  Bruno Haible  <bruno@clisp.org>
34814
34815         spawn: Fix incomplete fix.
34816         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34817         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34818         warnings for GNULIB_POSIXCHECK again.
34819         Reported by Eric Blake.
34820
34821 2009-12-31  Bruno Haible  <bruno@clisp.org>
34822
34823         Avoid namespace pollution on glibc systems.
34824         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34825         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34826         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34827         glibc systems.
34828
34829 2009-12-31  Bruno Haible  <bruno@clisp.org>
34830
34831         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34832         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34833         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34834         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34835         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34836         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34837         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34838
34839 2009-12-31  Bruno Haible  <bruno@clisp.org>
34840
34841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34842         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34843         afterwards.
34844
34845 2009-12-31  Bruno Haible  <bruno@clisp.org>
34846
34847         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34848         SYS_UTSNAME_H.
34849
34850 2009-12-31  Bruno Haible  <bruno@clisp.org>
34851
34852         spawn: Fix misapplied patch.
34853         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34854         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34855         warnings for GNULIB_POSIXCHECK.
34856
34857 2009-12-31  Bruno Haible  <bruno@clisp.org>
34858
34859         times: Update after sys_times changed.
34860         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34861         * modules/times (Files): Add it.
34862         (configure.ac): Invoke gl_FUNC_TIMES.
34863
34864 2009-12-31  Bruno Haible  <bruno@clisp.org>
34865
34866         Use AC_C_INLINE where necessary.
34867         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34868         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34869         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34870         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34871         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34872         * m4/mbiter.m4 (gl_MBITER): Likewise.
34873         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34874         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34875         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34876         * modules/u64 (configure.ac): Likewise.
34877
34878 2009-12-31  Bruno Haible  <bruno@clisp.org>
34879
34880         Use AC_C_INLINE instead of module 'inline' where possible.
34881         * modules/inline (Description): Clarify purpose.
34882         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34883         * modules/count-one-bits (Depends-on): Remove inline.
34884         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34885         * modules/openat (Depends-on): Remove inline.
34886         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34887         instead of depending on module 'inline'.
34888         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34889         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34890         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34891         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34892         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34893         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34894         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34895         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34896         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34897         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34898         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34899         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34900         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34901         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34902         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34903         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34904         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34905         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34906         Likewise.
34907         * modules/unictype/property-ascii-hex-digit (Depends-on,
34908         configure.ac): Likewise.
34909         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34910         configure.ac): Likewise.
34911         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34912         configure.ac): Likewise.
34913         * modules/unictype/property-bidi-block-separator (Depends-on,
34914         configure.ac): Likewise.
34915         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34916         configure.ac): Likewise.
34917         * modules/unictype/property-bidi-common-separator (Depends-on,
34918         configure.ac): Likewise.
34919         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34920         Likewise.
34921         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34922         configure.ac): Likewise.
34923         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34924         configure.ac): Likewise.
34925         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34926         configure.ac): Likewise.
34927         * modules/unictype/property-bidi-european-digit (Depends-on,
34928         configure.ac): Likewise.
34929         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34930         configure.ac): Likewise.
34931         * modules/unictype/property-bidi-left-to-right (Depends-on,
34932         configure.ac): Likewise.
34933         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34934         configure.ac): Likewise.
34935         * modules/unictype/property-bidi-other-neutral (Depends-on,
34936         configure.ac): Likewise.
34937         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34938         Likewise.
34939         * modules/unictype/property-bidi-segment-separator (Depends-on,
34940         configure.ac): Likewise.
34941         * modules/unictype/property-bidi-whitespace (Depends-on,
34942         configure.ac): Likewise.
34943         * modules/unictype/property-combining (Depends-on, configure.ac):
34944         Likewise.
34945         * modules/unictype/property-composite (Depends-on, configure.ac):
34946         Likewise.
34947         * modules/unictype/property-currency-symbol (Depends-on,
34948         configure.ac): Likewise.
34949         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34950         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34951         Likewise.
34952         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34953         configure.ac): Likewise.
34954         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34955         Likewise.
34956         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34957         Likewise.
34958         * modules/unictype/property-extender (Depends-on, configure.ac):
34959         Likewise.
34960         * modules/unictype/property-format-control (Depends-on, configure.ac):
34961         Likewise.
34962         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34963         Likewise.
34964         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34965         Likewise.
34966         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34967         Likewise.
34968         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34969         Likewise.
34970         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34971         Likewise.
34972         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34973         Likewise.
34974         * modules/unictype/property-id-start (Depends-on, configure.ac):
34975         Likewise.
34976         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34977         Likewise.
34978         * modules/unictype/property-ids-binary-operator (Depends-on,
34979         configure.ac): Likewise.
34980         * modules/unictype/property-ids-trinary-operator (Depends-on,
34981         configure.ac): Likewise.
34982         * modules/unictype/property-ignorable-control (Depends-on,
34983         configure.ac): Likewise.
34984         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34985         Likewise.
34986         * modules/unictype/property-join-control (Depends-on, configure.ac):
34987         Likewise.
34988         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34989         Likewise.
34990         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34991         Likewise.
34992         * modules/unictype/property-logical-order-exception (Depends-on,
34993         configure.ac): Likewise.
34994         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34995         Likewise.
34996         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34997         * modules/unictype/property-non-break (Depends-on, configure.ac):
34998         Likewise.
34999         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35000         Likewise.
35001         * modules/unictype/property-numeric (Depends-on, configure.ac):
35002         Likewise.
35003         * modules/unictype/property-other-alphabetic (Depends-on,
35004         configure.ac): Likewise.
35005         * modules/unictype/property-other-default-ignorable-code-point
35006         (Depends-on, configure.ac): Likewise.
35007         * modules/unictype/property-other-grapheme-extend (Depends-on,
35008         configure.ac): Likewise.
35009         * modules/unictype/property-other-id-continue (Depends-on,
35010         configure.ac): Likewise.
35011         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35012         Likewise.
35013         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35014         Likewise.
35015         * modules/unictype/property-other-math (Depends-on, configure.ac):
35016         Likewise.
35017         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35018         Likewise.
35019         * modules/unictype/property-paired-punctuation (Depends-on,
35020         configure.ac): Likewise.
35021         * modules/unictype/property-paragraph-separator (Depends-on,
35022         configure.ac): Likewise.
35023         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35024         Likewise.
35025         * modules/unictype/property-pattern-white-space (Depends-on,
35026         configure.ac): Likewise.
35027         * modules/unictype/property-private-use (Depends-on, configure.ac):
35028         Likewise.
35029         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35030         Likewise.
35031         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35032         Likewise.
35033         * modules/unictype/property-radical (Depends-on, configure.ac):
35034         Likewise.
35035         * modules/unictype/property-sentence-terminal (Depends-on,
35036         configure.ac): Likewise.
35037         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35038         Likewise.
35039         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35040         * modules/unictype/property-terminal-punctuation (Depends-on,
35041         configure.ac): Likewise.
35042         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35043         Likewise.
35044         * modules/unictype/property-unassigned-code-value (Depends-on,
35045         configure.ac): Likewise.
35046         * modules/unictype/property-unified-ideograph (Depends-on,
35047         configure.ac): Likewise.
35048         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35049         Likewise.
35050         * modules/unictype/property-variation-selector (Depends-on,
35051         configure.ac): Likewise.
35052         * modules/unictype/property-white-space (Depends-on, configure.ac):
35053         Likewise.
35054         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35055         Likewise.
35056         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35057         Likewise.
35058         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35059         Likewise.
35060         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35061         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35062         Likewise.
35063
35064 2009-12-31  Bruno Haible  <bruno@clisp.org>
35065
35066         Remove unnecessary AC_C_INLINE invocation.
35067         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35068         since 2009-08-21.
35069
35070 2009-12-31  Jim Meyering  <meyering@redhat.com>
35071
35072         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35073         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35074         With this change, we can all remove the gpg_key_ID = ... definition
35075         from our respective cfg.mk files.
35076
35077         maint.mk: create announcement template in ~/, not in /tmp
35078         * top/maint.mk (emit_upload_commands): Adjust.
35079         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35080         Remove temporary file, .ci-msg.
35081
35082 2009-12-31  Eric Blake  <ebb9@byu.net>
35083
35084         link-warning: always build headers with link warnings
35085         * modules/arpa_inet (Makefile.am): Always build replacement
35086         header.
35087         * modules/ctype (Makefile.am): Likewise.
35088         * modules/dirent (Makefile.am): Likewise.
35089         * modules/inttypes (Makefile.am): Likewise.
35090         * modules/langinfo (Makefile.am): Likewise.
35091         * modules/locale (Makefile.am): Likewise.
35092         * modules/spawn (Makefile.am): Likewise.
35093         * modules/sys_file (Makefile.am): Likewise.
35094         * modules/sys_ioctl (Makefile.am): Likewise.
35095         * modules/sys_select (Makefile.am): Likewise.
35096         * modules/sys_socket (Makefile.am): Likewise.
35097         * modules/sys_times (Makefile.am): Likewise.
35098         * modules/sys_utsname (Makefile.am): Likewise.
35099         * modules/sys_wait (Makefile.am): Likewise.
35100         * modules/wchar (Makefile.am): Likewise.
35101         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35102         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35103         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35104         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35105         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35106         Likewise.
35107         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35108         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35109         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35110         Likewise.
35111         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35112         Likewise.
35113         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35114         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35115         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35116         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35117         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35118         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35119         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35120         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35121         (gl_WCHAR_H_DEFAULTS): Likewise.
35122
35123 2009-12-31  Eric Blake  <ebb9@byu.net>
35124
35125         signal, spawn: use link warnings
35126         * lib/signal.in.h (sigset_t): Make unconditional.
35127         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35128         (sigpending, sigprocmask, sigaction): Add link warnings.
35129         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35130         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35131         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35132         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35133         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35134         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35135         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35136         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35137         (posix_spawn_file_actions_destroy)
35138         (posix_spawn_file_actions_addopen)
35139         (posix_spawn_file_actions_addclose)
35140         (posix_spawn_file_actions_adddup2): Likewise.
35141         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35142         * tests/test-signal.c (main): Enhance test.
35143
35144         spawn: improve wrapper support
35145         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35146         (gl_SPAWN_H_DEFAULTS): New defaults.
35147         * modules/spawn (Makefile.am): Substitute them.
35148         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35149         Only declare if missing or broken.
35150
35151         sys_times, sys_utsname: use include_next
35152         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35153         header.
35154         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35155         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35156         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35157         * modules/sys_times (Depends-on): Add include_next.
35158         (Makefile.am): Substitute additional values.
35159         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35160         * lib/sys_times.in.h (includes): Include native header, if
35161         available.
35162         * lib/sys_utsname.in.h (includes): Likewise.
35163         * tests/test-sys_times.c (main): Enhance test.
35164
35165         fdutimensat: revert prior patch
35166         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35167         utimens.h.
35168         Reported by Bruno Haible.
35169
35170 2009-12-30  Eric Blake  <ebb9@byu.net>
35171
35172         sys_wait: drop link-warning dependency
35173         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35174         link-warning efforts.
35175         * lib/sys_wait.in.h: Likewise.
35176
35177         fdutimensat: remove bogus dependency
35178         * modules/fdutimensat (Depends-on): Drop inline.
35179
35180         unistd: fix typo
35181         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35182
35183 2009-12-30  Bruno Haible  <bruno@clisp.org>
35184
35185         Fix compilation error with Solaris cc.
35186         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35187         * lib/unicase/u16-is-invariant.c: Likewise.
35188         * lib/unicase/u32-is-invariant.c: Likewise.
35189         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35190
35191 2009-12-30  Bruno Haible  <bruno@clisp.org>
35192
35193         Fix test crash.
35194         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35195         locales.
35196         Reported by Simon Josefsson <simon@josefsson.org>.
35197
35198 2009-12-30  Bruno Haible  <bruno@clisp.org>
35199
35200         Fix compilation error on most platforms.
35201         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35202         Reported by Simon Josefsson <simon@josefsson.org>
35203         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35204
35205 2009-12-30  Eric Blake  <ebb9@byu.net>
35206
35207         futimens, utimensat: work around ntfs-3g bug
35208         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35209         a ctime bug is present, and expand workaround to cover ntfs-3g.
35210         * lib/utimens.c (fdutimens, lutimens): Likewise.
35211         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35212         (validate_timespec): Adjust return value.
35213         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35214         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35215         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35216
35217 2009-12-29  Eric Blake  <ebb9@byu.net>
35218
35219         link-warning: make usage consistent
35220         * modules/ctype (Depends-on): Add link-warning.
35221         (Makefile.am): Update rules accordingly.
35222         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35223         * modules/locale (Depends-on, Makefile.am): Likewise.
35224         * modules/sys_file (Makefile.am): Likewise.
35225         * modules/getopt-posix (Makefile.am): Delete unused link warning
35226         efforts.
35227         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35228         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35229         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35230         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35231
35232         stdio: remove unused variables
35233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35234         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35235         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35236
35237         tests: test more substitute headers
35238         * modules/ctype-tests: New file.
35239         * modules/dirent-tests: Likewise.
35240         * modules/spawn-tests: Likewise.
35241         * modules/sys_file-tests: Likewise.
35242         * modules/sys_ioctl-tests: Likewise.
35243         * modules/sys_wait-tests: Likewise.
35244         * tests/test-ctype.c: Likewise.
35245         * tests/test-dirent.c: Likewise.
35246         * tests/test-spawn.c: Likewise.
35247         * tests/test-sys_file.c: Likewise.
35248         * tests/test-sys_ioctl.c: Likewise.
35249         * tests/test-sys_wait.c: Likewise.
35250         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35251         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35252         whether or not flock is in use.
35253
35254         tests: remove License section from module
35255         * modules/arpa_inet-tests: Remove unneeded section.
35256         * modules/byteswap-tests: Likewise.
35257         * modules/ceilf-tests: Likewise.
35258         * modules/ceill-tests: Likewise.
35259         * modules/crypto/des-tests: Likewise.
35260         * modules/crypto/gc-arcfour-tests: Likewise.
35261         * modules/crypto/gc-arctwo-tests: Likewise.
35262         * modules/crypto/gc-des-tests: Likewise.
35263         * modules/crypto/gc-hmac-md5-tests: Likewise.
35264         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35265         * modules/crypto/gc-md2-tests: Likewise.
35266         * modules/crypto/gc-md4-tests: Likewise.
35267         * modules/crypto/gc-md5-tests: Likewise.
35268         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35269         * modules/crypto/gc-rijndael-tests: Likewise.
35270         * modules/crypto/gc-sha1-tests: Likewise.
35271         * modules/crypto/gc-tests: Likewise.
35272         * modules/crypto/md2-tests: Likewise.
35273         * modules/crypto/md4-tests: Likewise.
35274         * modules/fcntl-h-tests: Likewise.
35275         * modules/floorf-tests: Likewise.
35276         * modules/floorl-tests: Likewise.
35277         * modules/frexp-nolibm-tests: Likewise.
35278         * modules/frexp-tests: Likewise.
35279         * modules/frexpl-nolibm-tests: Likewise.
35280         * modules/frexpl-tests: Likewise.
35281         * modules/getaddrinfo-tests: Likewise.
35282         * modules/inttypes-tests: Likewise.
35283         * modules/isfinite-tests: Likewise.
35284         * modules/isinf-tests: Likewise.
35285         * modules/ldexpl-tests: Likewise.
35286         * modules/locale-tests: Likewise.
35287         * modules/math-tests: Likewise.
35288         * modules/netdb-tests: Likewise.
35289         * modules/netinet_in-tests: Likewise.
35290         * modules/printf-frexp-tests: Likewise.
35291         * modules/printf-frexpl-tests: Likewise.
35292         * modules/priv-set-tests: Likewise.
35293         * modules/random_r-tests: Likewise.
35294         * modules/round-tests: Likewise.
35295         * modules/roundf-tests: Likewise.
35296         * modules/roundl-tests: Likewise.
35297         * modules/search-tests: Likewise.
35298         * modules/select-tests: Likewise.
35299         * modules/signal-tests: Likewise.
35300         * modules/stdbool-tests: Likewise.
35301         * modules/stddef-tests: Likewise.
35302         * modules/stdint-tests: Likewise.
35303         * modules/stdio-tests: Likewise.
35304         * modules/stdlib-tests: Likewise.
35305         * modules/string-tests: Likewise.
35306         * modules/strings-tests: Likewise.
35307         * modules/sys_select-tests: Likewise.
35308         * modules/sys_socket-tests: Likewise.
35309         * modules/sys_stat-tests: Likewise.
35310         * modules/sys_time-tests: Likewise.
35311         * modules/sys_utsname-tests: Likewise.
35312         * modules/sysexits-tests: Likewise.
35313         * modules/time-tests: Likewise.
35314         * modules/trunc-tests: Likewise.
35315         * modules/truncf-tests: Likewise.
35316         * modules/truncl-tests: Likewise.
35317         * modules/tsearch-tests: Likewise.
35318         * modules/unistd-tests: Likewise.
35319         * modules/wchar-tests: Likewise.
35320         * modules/wctype-tests: Likewise.
35321
35322         tests: fix license on several tests
35323         * tests/test-des.c: Update to GPLv3+.
35324         * tests/test-flock.c: Likewise.
35325         * tests/test-fsync.c: Likewise.
35326         * tests/test-futimens.h: Likewise.
35327         * tests/test-gc-arcfour.c: Likewise.
35328         * tests/test-gc-arctwo.c: Likewise.
35329         * tests/test-gc-des.c: Likewise.
35330         * tests/test-gc-hmac-md5.c: Likewise.
35331         * tests/test-gc-hmac-sha1.c: Likewise.
35332         * tests/test-gc-md2.c: Likewise.
35333         * tests/test-gc-md4.c: Likewise.
35334         * tests/test-gc-md5.c: Likewise.
35335         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35336         * tests/test-gc-rijndael.c: Likewise.
35337         * tests/test-gc-sha1.c: Likewise.
35338         * tests/test-gc.c: Likewise.
35339         * tests/test-getcwd.c: Likewise.
35340         * tests/test-link.c: Likewise.
35341         * tests/test-link.h: Likewise.
35342         * tests/test-lutimens.h: Likewise.
35343         * tests/test-md2.c: Likewise.
35344         * tests/test-md4.c: Likewise.
35345         * tests/test-mkdir.h: Likewise.
35346         * tests/test-rename.c: Likewise.
35347         * tests/test-rename.h: Likewise.
35348         * tests/test-safe-alloc.c: Likewise.
35349         * tests/test-utimens-common.h: Likewise.
35350         * tests/test-utimens.h: Likewise.
35351
35352         maint: sync license texts
35353         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35354         * doc/gpl-3.0.texi: Revert copyright year update.
35355         * doc/lgpl-3.0.texi: Likewise.
35356
35357 2009-12-29  Jim Meyering  <meyering@redhat.com>
35358
35359         update nearly all FSF copyright year lists to include 2009
35360         The files named by the following are exempted:
35361             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35362               test -f "$dst" && { echo "$dst"; continue; }
35363               test -d "$dst" || continue
35364               echo "$dst"/$(basename "$src")
35365             done > exempt
35366             git ls-files tests/unictype >> exempt
35367         In the remaining files, convert to all-interval notation if
35368         - there is already at least one year interval like 2000-2003
35369         - the file is maintained by me
35370         - the file is in lib/uni*/, where that style already prevails
35371         Otherwise, use update-copyright's default.
35372
35373 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35374         and Eric Blake  <ebb9@byu.net>
35375
35376         tests: don't require debug system() to pass
35377         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35378         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35379         * tests/test-unlink.h (test_unlink_func): Likewise.
35380         * tests/test-fstatat.c (main): ...into callers.
35381         * tests/test-lstat.c (main): Likewise.
35382         * tests/test-rmdir.c (main): Likewise.
35383         * tests/test-unlink.c (main): Likewise.
35384         * tests/test-unlinkat.c (main): Likewise.
35385         * tests/test-areadlink-with-size.c (main): Don't require a
35386         debug-only system call to pass, aiding cross-testing to mingw.
35387         * tests/test-areadlink.c (main): Likewise.
35388         * tests/test-areadlinkat-with-size.c (main): Likewise.
35389         * tests/test-areadlinkat.c (main): Likewise.
35390         * tests/test-canonicalize-lgpl.c (main): Likewise.
35391         * tests/test-canonicalize.c (main): Likewise.
35392         * tests/test-chown.c (main): Likewise.
35393         * tests/test-fchownat.c (main): Likewise.
35394         * tests/test-lchown.c (main): Likewise.
35395         * tests/test-fdutimensat.c (main): Likewise.
35396         * tests/test-futimens.c (main): Likewise.
35397         * tests/test-link.c (main): Likewise.
35398         * tests/test-linkat.c (main): Likewise.
35399         * tests/test-mkdir.c (main): Likewise.
35400         * tests/test-mkdirat.c (main): Likewise.
35401         * tests/test-mkfifo.c (main): Likewise.
35402         * tests/test-mkfifoat.c (main): Likewise.
35403         * tests/test-mknod.c (main): Likewise.
35404         * tests/test-readlink.c (main): Likewise.
35405         * tests/test-remove.c (main): Likewise.
35406         * tests/test-rename.c (main): Likewise.
35407         * tests/test-renameat.c (main): Likewise.
35408         * tests/test-symlink.c (main): Likewise.
35409         * tests/test-symlinkat.c (main): Likewise.
35410         * tests/test-utimens.c (main): Likewise.
35411         * tests/test-utimensat.c (main): Likewise.
35412
35413 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35414
35415         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35416         on $(UNUSED_PARAMETER_H) to avoid build failure.
35417
35418 2009-12-28  Jim Meyering  <meyering@redhat.com>
35419
35420         update-copyright: you may specify a max. line length other than 72
35421         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35422
35423         maint: use consistent FSF copyright line syntax
35424         * lib/posixtm.c: Add missing comma in FSF copyright line.
35425         * lib/posixtm.h: Likewise.
35426         * lib/getugroups.c: Add missing ", Inc.".
35427
35428         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35429         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35430         FSF copyright line.  Remove trailing blanks.
35431
35432 2009-12-28  Eric Blake  <ebb9@byu.net>
35433
35434         test-dup2: reduce dependencies
35435         * modules/cloexec (Configure.ac): Set witness.
35436         * modules/dup2-tests (Depends-on): Drop cloexec.
35437         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35438         not present.
35439         Suggested by Bruno Haible.
35440
35441 2009-12-26  Bruno Haible  <bruno@clisp.org>
35442
35443         Remove an unneeded dependency.
35444         * modules/fseterr (Depends-on): Remove dup2.
35445
35446 2009-12-26  Eric Blake  <ebb9@byu.net>
35447
35448         tests: use macros.h in more places
35449         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35450         (ASSERT_STREAM): Provide default of stderr.
35451         * tests/test-dirent-safer.c: Include macros.h, using alternate
35452         stream for assertions.
35453         * tests/test-dup-safer.c: Likewise.
35454         * tests/test-freopen-safer.c: Likewise.
35455         * tests/test-getopt.c: Likewise.
35456         * tests/test-openat-safer.c: Likewise.
35457         * tests/test-pipe.c: Likewise.
35458         * tests/test-popen-safer.c: Likewise.
35459         * modules/dirent-safer-tests (Files): Include macros.h.
35460         * modules/unistd-safer-tests (Files): Likewise.
35461         * modules/freopen-safer-tests (Files): Likewise.
35462         * modules/getopt-posix-tests (Files): Likewise.
35463         * modules/openat-safer-tests (Files): Likewise.
35464         * modules/pipe-tests (Files): Likewise.
35465
35466 2009-12-26  Bruno Haible  <bruno@clisp.org>
35467
35468         javacomp: Portability fix.
35469         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35470         that it also works on Solaris.
35471
35472 2009-12-26  Bruno Haible  <bruno@clisp.org>
35473
35474         localename: Fix storage allocation of gl_locale_name_thread's result.
35475         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35476         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35477         all platforms that have 'uselocale'.
35478         (gl_locale_name_thread_unsafe): New function, extracted from
35479         gl_locale_name_thread.
35480         (gl_locale_name_thread): Call struniq on all platforms that have
35481         'uselocale'.
35482         * tests/test-localename.c (test_locale_name_thread): Check that the
35483         resulting strings are permanently allocated.
35484         * modules/localename-tests (Depends-on): Add strdup.
35485
35486 2009-12-26  Bruno Haible  <bruno@clisp.org>
35487
35488         * tests/test-localename.c (categories): Fill in the strings.
35489
35490 2009-12-26  Jim Meyering  <meyering@redhat.com>
35491
35492         isdir: complete the removal of m4/isdir.m4
35493         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35494
35495         isdir: clean up, since at least grep still uses it
35496         * lib/isdir.c: Include "isdir.h".
35497         (S_ISDIR): Remove now-unneeded definition.
35498         * modules/isdir (Files): Add lib/isdir.h.
35499         * lib/isdir.h: New file, with declaration.
35500         * m4/isdir.m4: Remove file -- unneeded.
35501
35502 2009-12-25  Bruno Haible  <bruno@clisp.org>
35503
35504         selinux-h: Make generated .h files standalone.
35505         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35506         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35507         * lib/se-selinux.in.h: Likewise.
35508         * modules/selinux-h (Depends-on): Add unused-parameter.
35509         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35510         selinux/selinux.h and selinux/context.h.
35511         Suggested by Eric Blake.
35512
35513 2009-12-25  Bruno Haible  <bruno@clisp.org>
35514
35515         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35516         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35517         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35518         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35519         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35520
35521 2009-12-24  Bruno Haible  <bruno@clisp.org>
35522
35523         openat: Fix warning.
35524         * lib/openat-proc.c: Include <unistd.h>.
35525
35526 2009-12-24  Bruno Haible  <bruno@clisp.org>
35527
35528         New module 'unused-parameter'.
35529         * build-aux/unused-parameter.h: New file, extracted from earlier
35530         gnulib-common.m4.
35531         * modules/unused-parameter: New file.
35532         * lib/unistr.h: Include unused-parameter.h.
35533         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35534         _GL_UNUSED.
35535         * modules/unistr/base (Depends-on): Add unused-parameter.
35536
35537 2009-12-24  Bruno Haible  <bruno@clisp.org>
35538
35539         Add missing dependencies to 'extensions' module.
35540         * m4/extensions.m4: Add comment.
35541         * modules/accept4 (Depends-on): Add extensions.
35542         * modules/dup3 (Depends-on): Likewise.
35543         * modules/fcntl (Depends-on): Likewise.
35544         * modules/futimens (Depends-on): Likewise.
35545         * modules/mknod (Depends-on): Likewise.
35546         * modules/pipe2 (Depends-on): Likewise.
35547         * modules/stat-time (Depends-on): Likewise.
35548         * modules/strcasestr-simple (Depends-on): Likewise.
35549         * modules/strsignal (Depends-on): Likewise.
35550         * modules/utimensat (Depends-on): Likewise.
35551         * modules/localcharset (Depends-on): Likewise. Needed because of
35552         gl_FCNTL_O_FLAGS.
35553         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35554         AC_TYPE_MBSTATE_T.
35555         * modules/wcsnrtombs (Depends-on): Likewise.
35556         * modules/wcsrtombs (Depends-on): Likewise.
35557
35558 2009-12-24  Bruno Haible  <bruno@clisp.org>
35559
35560         binary-io: Avoid gcc warning due to SET_BINARY.
35561         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35562         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35563
35564 2009-12-24  Bruno Haible  <bruno@clisp.org>
35565
35566         Avoid future namespace pollution on glibc systems.
35567         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35568         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35569         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35570         glibc systems.
35571
35572 2009-12-24  Bruno Haible  <bruno@clisp.org>
35573
35574         Refactor common macros used in tests.
35575         * tests/macros.h: New file.
35576         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35577         and/or <stdlib.h>, if appropriate.
35578         (ASSERT, SIZEOF): Remove macros.
35579         * tests/test-areadlink-with-size.c: Likewise.
35580         * tests/test-areadlinkat.c: Likewise.
35581         * tests/test-areadlinkat-with-size.c: Likewise.
35582         * tests/test-argmatch.c: Likewise.
35583         * tests/test-argv-iter.c: Likewise.
35584         * tests/test-array-mergesort.c: Likewise.
35585         * tests/test-array_list.c: Likewise.
35586         * tests/test-array_oset.c: Likewise.
35587         * tests/test-avltree_list.c: Likewise.
35588         * tests/test-avltree_oset.c: Likewise.
35589         * tests/test-avltreehash_list.c: Likewise.
35590         * tests/test-base64.c: Likewise.
35591         * tests/test-binary-io.c: Likewise.
35592         * tests/test-bitrotate.c: Likewise.
35593         * tests/test-btowc.c: Likewise.
35594         * tests/test-byteswap.c: Likewise.
35595         * tests/test-c-ctype.c: Likewise.
35596         * tests/test-c-stack.c: Likewise.
35597         * tests/test-c-strcasecmp.c: Likewise.
35598         * tests/test-c-strcasestr.c: Likewise.
35599         * tests/test-c-strncasecmp.c: Likewise.
35600         * tests/test-c-strstr.c: Likewise.
35601         * tests/test-canonicalize-lgpl.c: Likewise.
35602         * tests/test-canonicalize.c: Likewise.
35603         * tests/test-carray_list.c: Likewise.
35604         * tests/test-ceilf1.c: Likewise.
35605         * tests/test-ceilf2.c: Likewise.
35606         * tests/test-ceill.c: Likewise.
35607         * tests/test-chown.c: Likewise.
35608         * tests/test-cloexec.c: Likewise.
35609         * tests/test-copy-acl.c: Likewise.
35610         * tests/test-copy-file.c: Likewise.
35611         * tests/test-count-one-bits.c: Likewise.
35612         * tests/test-dprintf-posix.c: Likewise.
35613         * tests/test-dup2.c: Likewise.
35614         * tests/test-dup3.c: Likewise.
35615         * tests/test-duplocale.c: Likewise.
35616         * tests/test-fbufmode.c: Likewise.
35617         * tests/test-fchdir.c: Likewise.
35618         * tests/test-fchownat.c: Likewise.
35619         * tests/test-fcntl-safer.c: Likewise.
35620         * tests/test-fcntl.c: Likewise.
35621         * tests/test-fdopendir.c: Likewise.
35622         * tests/test-fdutimensat.c: Likewise.
35623         * tests/test-fflush2.c: Likewise.
35624         * tests/test-file-has-acl.c: Likewise.
35625         * tests/test-filevercmp.c: Likewise.
35626         * tests/test-flock.c: Likewise.
35627         * tests/test-floorf1.c: Likewise.
35628         * tests/test-floorf2.c: Likewise.
35629         * tests/test-floorl.c: Likewise.
35630         * tests/test-fnmatch.c: Likewise.
35631         * tests/test-fopen.h: Likewise.
35632         * tests/test-fpending.c: Likewise.
35633         * tests/test-fprintf-posix.c: Likewise.
35634         * tests/test-fpurge.c: Likewise.
35635         * tests/test-freadable.c: Likewise.
35636         * tests/test-freadahead.c: Likewise.
35637         * tests/test-freading.c: Likewise.
35638         * tests/test-freadptr.c: Likewise.
35639         * tests/test-freadptr2.c: Likewise.
35640         * tests/test-freadseek.c: Likewise.
35641         * tests/test-freopen.c: Likewise.
35642         * tests/test-frexp.c: Likewise.
35643         * tests/test-frexpl.c: Likewise.
35644         * tests/test-fseek.c: Likewise.
35645         * tests/test-fseeko.c: Likewise.
35646         * tests/test-fstatat.c: Likewise.
35647         * tests/test-fstrcmp.c: Likewise.
35648         * tests/test-fsync.c: Likewise.
35649         * tests/test-ftell.c: Likewise.
35650         * tests/test-ftello.c: Likewise.
35651         * tests/test-func.c: Likewise.
35652         * tests/test-futimens.c: Likewise.
35653         * tests/test-fwritable.c: Likewise.
35654         * tests/test-fwriting.c: Likewise.
35655         * tests/test-getcwd.c: Likewise.
35656         * tests/test-getdate.c: Likewise.
35657         * tests/test-getdelim.c: Likewise.
35658         * tests/test-getdtablesize.c: Likewise.
35659         * tests/test-getgroups.c: Likewise.
35660         * tests/test-getline.c: Likewise.
35661         * tests/test-getndelim2.c: Likewise.
35662         * tests/test-glob.c: Likewise.
35663         * tests/test-hash.c: Likewise.
35664         * tests/test-i-ring.c: Likewise.
35665         * tests/test-iconv-utf.c: Likewise.
35666         * tests/test-iconv.c: Likewise.
35667         * tests/test-idpriv-drop.c: Likewise.
35668         * tests/test-idpriv-droptemp.c: Likewise.
35669         * tests/test-inet_ntop.c: Likewise.
35670         * tests/test-inet_pton.c: Likewise.
35671         * tests/test-isblank.c: Likewise.
35672         * tests/test-isfinite.c: Likewise.
35673         * tests/test-isinf.c: Likewise.
35674         * tests/test-isnan.c: Likewise.
35675         * tests/test-isnand.h: Likewise.
35676         * tests/test-isnanf.h: Likewise.
35677         * tests/test-isnanl.h: Likewise.
35678         * tests/test-lchown.c: Likewise.
35679         * tests/test-ldexpl.c: Likewise.
35680         * tests/test-link.c: Likewise.
35681         * tests/test-linkat.c: Likewise.
35682         * tests/test-linked_list.c: Likewise.
35683         * tests/test-linkedhash_list.c: Likewise.
35684         * tests/test-localename.c: Likewise.
35685         * tests/test-lseek.c: Likewise.
35686         * tests/test-lstat.c: Likewise.
35687         * tests/test-mbmemcasecmp.c: Likewise.
35688         * tests/test-mbmemcasecoll.c: Likewise.
35689         * tests/test-mbrtowc.c: Likewise.
35690         * tests/test-mbscasecmp.c: Likewise.
35691         * tests/test-mbscasestr1.c: Likewise.
35692         * tests/test-mbscasestr2.c: Likewise.
35693         * tests/test-mbscasestr3.c: Likewise.
35694         * tests/test-mbscasestr4.c: Likewise.
35695         * tests/test-mbschr.c: Likewise.
35696         * tests/test-mbscspn.c: Likewise.
35697         * tests/test-mbsinit.c: Likewise.
35698         * tests/test-mbsncasecmp.c: Likewise.
35699         * tests/test-mbsnrtowcs.c: Likewise.
35700         * tests/test-mbspbrk.c: Likewise.
35701         * tests/test-mbspcasecmp.c: Likewise.
35702         * tests/test-mbsrchr.c: Likewise.
35703         * tests/test-mbsrtowcs.c: Likewise.
35704         * tests/test-mbsspn.c: Likewise.
35705         * tests/test-mbsstr1.c: Likewise.
35706         * tests/test-mbsstr2.c: Likewise.
35707         * tests/test-mbsstr3.c: Likewise.
35708         * tests/test-memchr.c: Likewise.
35709         * tests/test-memchr2.c: Likewise.
35710         * tests/test-memcmp.c: Likewise.
35711         * tests/test-memmem.c: Likewise.
35712         * tests/test-memrchr.c: Likewise.
35713         * tests/test-mkdir.c: Likewise.
35714         * tests/test-mkdirat.c: Likewise.
35715         * tests/test-mkfifo.c: Likewise.
35716         * tests/test-mkfifoat.c: Likewise.
35717         * tests/test-mknod.c: Likewise.
35718         * tests/test-nanosleep.c: Likewise.
35719         * tests/test-nl_langinfo.c: Likewise.
35720         * tests/test-obstack-printf.c: Likewise.
35721         * tests/test-open.c: Likewise.
35722         * tests/test-openat.c: Likewise.
35723         * tests/test-pipe-filter-gi1.c: Likewise.
35724         * tests/test-pipe-filter-gi2-main.c: Likewise.
35725         * tests/test-pipe-filter-ii1.c: Likewise.
35726         * tests/test-pipe-filter-ii2-main.c: Likewise.
35727         * tests/test-pipe2.c: Likewise.
35728         * tests/test-popen.h: Likewise.
35729         * tests/test-posixtm.c: Likewise.
35730         * tests/test-pread.c: Likewise.
35731         * tests/test-printf-frexp.c: Likewise.
35732         * tests/test-printf-frexpl.c: Likewise.
35733         * tests/test-printf-posix.c: Likewise.
35734         * tests/test-priv-set.c: Likewise.
35735         * tests/test-quotearg.c: Likewise.
35736         * tests/test-random_r.c: Likewise.
35737         * tests/test-rawmemchr.c: Likewise.
35738         * tests/test-rbtree_list.c: Likewise.
35739         * tests/test-rbtree_oset.c: Likewise.
35740         * tests/test-rbtreehash_list.c: Likewise.
35741         * tests/test-readlink.c: Likewise.
35742         * tests/test-remove.c: Likewise.
35743         * tests/test-rename.c: Likewise.
35744         * tests/test-renameat.c: Likewise.
35745         * tests/test-rmdir.c: Likewise.
35746         * tests/test-round1.c: Likewise.
35747         * tests/test-roundf1.c: Likewise.
35748         * tests/test-roundl.c: Likewise.
35749         * tests/test-safe-alloc.c: Likewise.
35750         * tests/test-sameacls.c: Likewise.
35751         * tests/test-set-mode-acl.c: Likewise.
35752         * tests/test-setenv.c: Likewise.
35753         * tests/test-sigaction.c: Likewise.
35754         * tests/test-signbit.c: Likewise.
35755         * tests/test-sleep.c: Likewise.
35756         * tests/test-snprintf-posix.c: Likewise.
35757         * tests/test-snprintf.c: Likewise.
35758         * tests/test-sprintf-posix.c: Likewise.
35759         * tests/test-stat-time.c: Likewise.
35760         * tests/test-stat.c: Likewise.
35761         * tests/test-strcasestr.c: Likewise.
35762         * tests/test-strchrnul.c: Likewise.
35763         * tests/test-strerror.c: Likewise.
35764         * tests/test-striconv.c: Likewise.
35765         * tests/test-striconveh.c: Likewise.
35766         * tests/test-striconveha.c: Likewise.
35767         * tests/test-strsignal.c: Likewise.
35768         * tests/test-strstr.c: Likewise.
35769         * tests/test-strtod.c: Likewise.
35770         * tests/test-strverscmp.c: Likewise.
35771         * tests/test-symlink.c: Likewise.
35772         * tests/test-symlinkat.c: Likewise.
35773         * tests/test-trunc1.c: Likewise.
35774         * tests/test-trunc2.c: Likewise.
35775         * tests/test-truncf1.c: Likewise.
35776         * tests/test-truncf2.c: Likewise.
35777         * tests/test-truncl.c: Likewise.
35778         * tests/test-uname.c: Likewise.
35779         * tests/test-unlink.c: Likewise.
35780         * tests/test-unlinkat.c: Likewise.
35781         * tests/test-unsetenv.c: Likewise.
35782         * tests/test-usleep.c: Likewise.
35783         * tests/test-utimens.c: Likewise.
35784         * tests/test-utimensat.c: Likewise.
35785         * tests/test-vasnprintf-posix.c: Likewise.
35786         * tests/test-vasnprintf-posix2.c: Likewise.
35787         * tests/test-vasnprintf.c: Likewise.
35788         * tests/test-vasprintf-posix.c: Likewise.
35789         * tests/test-vasprintf.c: Likewise.
35790         * tests/test-vdprintf-posix.c: Likewise.
35791         * tests/test-vfprintf-posix.c: Likewise.
35792         * tests/test-vprintf-posix.c: Likewise.
35793         * tests/test-vsnprintf-posix.c: Likewise.
35794         * tests/test-vsnprintf.c: Likewise.
35795         * tests/test-vsprintf-posix.c: Likewise.
35796         * tests/test-wcrtomb.c: Likewise.
35797         * tests/test-wcsnrtombs.c: Likewise.
35798         * tests/test-wcsrtombs.c: Likewise.
35799         * tests/test-wctype.c: Likewise.
35800         * tests/test-wcwidth.c: Likewise.
35801         * tests/test-xfprintf-posix.c: Likewise.
35802         * tests/test-xmemdup0.c: Likewise.
35803         * tests/test-xprintf-posix.c: Likewise.
35804         * tests/test-xvasprintf.c: Likewise.
35805         * tests/unicase/test-locale-language.c: Likewise.
35806         * tests/unicase/test-mapping-part1.h: Likewise.
35807         * tests/unicase/test-predicate-part1.h: Likewise.
35808         * tests/unicase/test-u8-casecmp.c: Likewise.
35809         * tests/unicase/test-u8-casecoll.c: Likewise.
35810         * tests/unicase/test-u8-casefold.c: Likewise.
35811         * tests/unicase/test-u8-is-cased.c: Likewise.
35812         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35813         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35814         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35815         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35816         * tests/unicase/test-u8-tolower.c: Likewise.
35817         * tests/unicase/test-u8-totitle.c: Likewise.
35818         * tests/unicase/test-u8-toupper.c: Likewise.
35819         * tests/unicase/test-u16-casecmp.c: Likewise.
35820         * tests/unicase/test-u16-casecoll.c: Likewise.
35821         * tests/unicase/test-u16-casefold.c: Likewise.
35822         * tests/unicase/test-u16-is-cased.c: Likewise.
35823         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35824         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35825         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35826         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35827         * tests/unicase/test-u16-tolower.c: Likewise.
35828         * tests/unicase/test-u16-totitle.c: Likewise.
35829         * tests/unicase/test-u16-toupper.c: Likewise.
35830         * tests/unicase/test-u32-casecmp.c: Likewise.
35831         * tests/unicase/test-u32-casecoll.c: Likewise.
35832         * tests/unicase/test-u32-casefold.c: Likewise.
35833         * tests/unicase/test-u32-is-cased.c: Likewise.
35834         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35835         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35836         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35837         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35838         * tests/unicase/test-u32-tolower.c: Likewise.
35839         * tests/unicase/test-u32-totitle.c: Likewise.
35840         * tests/unicase/test-u32-toupper.c: Likewise.
35841         * tests/unicase/test-ulc-casecmp.c: Likewise.
35842         * tests/unicase/test-ulc-casecoll.c: Likewise.
35843         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35844         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35845         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35846         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35847         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35848         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35849         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35850         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35851         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35852         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35853         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35854         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35855         * tests/unictype/test-bidi_byname.c: Likewise.
35856         * tests/unictype/test-bidi_name.c: Likewise.
35857         * tests/unictype/test-bidi_of.c: Likewise.
35858         * tests/unictype/test-bidi_test.c: Likewise.
35859         * tests/unictype/test-block_list.c: Likewise.
35860         * tests/unictype/test-block_of.c: Likewise.
35861         * tests/unictype/test-block_test.c: Likewise.
35862         * tests/unictype/test-categ_and.c: Likewise.
35863         * tests/unictype/test-categ_and_not.c: Likewise.
35864         * tests/unictype/test-categ_byname.c: Likewise.
35865         * tests/unictype/test-categ_name.c: Likewise.
35866         * tests/unictype/test-categ_none.c: Likewise.
35867         * tests/unictype/test-categ_of.c: Likewise.
35868         * tests/unictype/test-categ_or.c: Likewise.
35869         * tests/unictype/test-categ_test_withtable.c: Likewise.
35870         * tests/unictype/test-combining.c: Likewise.
35871         * tests/unictype/test-decdigit.c: Likewise.
35872         * tests/unictype/test-digit.c: Likewise.
35873         * tests/unictype/test-mirror.c: Likewise.
35874         * tests/unictype/test-numeric.c: Likewise.
35875         * tests/unictype/test-pr_byname.c: Likewise.
35876         * tests/unictype/test-pr_test.c: Likewise.
35877         * tests/unictype/test-predicate-part1.h: Likewise.
35878         * tests/unictype/test-scripts.c: Likewise.
35879         * tests/unictype/test-sy_c_ident.c: Likewise.
35880         * tests/unictype/test-sy_java_ident.c: Likewise.
35881         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35882         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35883         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35884         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35885         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35886         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35887         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35888         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35889         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35890         * tests/uninorm/test-compat-decomposition.c: Likewise.
35891         * tests/uninorm/test-composition.c: Likewise.
35892         * tests/uninorm/test-decomposing-form.c: Likewise.
35893         * tests/uninorm/test-decomposition.c: Likewise.
35894         * tests/uninorm/test-u8-nfc.c: Likewise.
35895         * tests/uninorm/test-u8-nfd.c: Likewise.
35896         * tests/uninorm/test-u8-nfkc.c: Likewise.
35897         * tests/uninorm/test-u8-nfkd.c: Likewise.
35898         * tests/uninorm/test-u8-normcmp.c: Likewise.
35899         * tests/uninorm/test-u8-normcoll.c: Likewise.
35900         * tests/uninorm/test-u16-nfc.c: Likewise.
35901         * tests/uninorm/test-u16-nfd.c: Likewise.
35902         * tests/uninorm/test-u16-nfkc.c: Likewise.
35903         * tests/uninorm/test-u16-nfkd.c: Likewise.
35904         * tests/uninorm/test-u16-normcmp.c: Likewise.
35905         * tests/uninorm/test-u16-normcoll.c: Likewise.
35906         * tests/uninorm/test-u32-nfc.c: Likewise.
35907         * tests/uninorm/test-u32-nfd.c: Likewise.
35908         * tests/uninorm/test-u32-nfkc.c: Likewise.
35909         * tests/uninorm/test-u32-nfkd.c: Likewise.
35910         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35911         * tests/uninorm/test-u32-normcmp.c: Likewise.
35912         * tests/uninorm/test-u32-normcoll.c: Likewise.
35913         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35914         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35915         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35916         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35917         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35918         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35919         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35920         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35921         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35922         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35923         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35924         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35925         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35926         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35927         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35928         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35929         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35930         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35931         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35932         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35933         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35934         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35935         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35936         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35937         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35938         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35939         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35940         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35941         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35942         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35943         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35944         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35945         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35946         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35947         * tests/uniwidth/test-u8-width.c: Likewise.
35948         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35949         * tests/uniwidth/test-u16-width.c: Likewise.
35950         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35951         * tests/uniwidth/test-u32-width.c: Likewise.
35952         * tests/uniwidth/test-uc_width.c: Likewise.
35953         * tests/uniwidth/test-uc_width2.c: Likewise.
35954         * modules/acl-tests (Files): Add tests/macros.h.
35955         * modules/areadlink-tests (Files): Likewise.
35956         * modules/areadlink-with-size-tests (Files): Likewise.
35957         * modules/areadlinkat-tests (Files): Likewise.
35958         * modules/areadlinkat-with-size-tests (Files): Likewise.
35959         * modules/argmatch-tests (Files): Likewise.
35960         * modules/argv-iter-tests (Files): Likewise.
35961         * modules/array-list-tests (Files): Likewise.
35962         * modules/array-mergesort-tests (Files): Likewise.
35963         * modules/array-oset-tests (Files): Likewise.
35964         * modules/avltree-list-tests (Files): Likewise.
35965         * modules/avltree-oset-tests (Files): Likewise.
35966         * modules/avltreehash-list-tests (Files): Likewise.
35967         * modules/base64-tests (Files): Likewise.
35968         * modules/binary-io-tests (Files): Likewise.
35969         * modules/bitrotate-tests (Files): Likewise.
35970         * modules/btowc-tests (Files): Likewise.
35971         * modules/byteswap-tests (Files): Likewise.
35972         * modules/c-ctype-tests (Files): Likewise.
35973         * modules/c-stack-tests (Files): Likewise.
35974         * modules/c-strcase-tests (Files): Likewise.
35975         * modules/c-strcasestr-tests (Files): Likewise.
35976         * modules/c-strstr-tests (Files): Likewise.
35977         * modules/canonicalize-lgpl-tests (Files): Likewise.
35978         * modules/canonicalize-tests (Files): Likewise.
35979         * modules/carray-list-tests (Files): Likewise.
35980         * modules/ceilf-tests (Files): Likewise.
35981         * modules/ceill-tests (Files): Likewise.
35982         * modules/chown-tests (Files): Likewise.
35983         * modules/cloexec-tests (Files): Likewise.
35984         * modules/copy-file-tests (Files): Likewise.
35985         * modules/count-one-bits-tests (Files): Likewise.
35986         * modules/dprintf-posix-tests (Files): Likewise.
35987         * modules/dup2-tests (Files): Likewise.
35988         * modules/dup3-tests (Files): Likewise.
35989         * modules/duplocale-tests (Files): Likewise.
35990         * modules/fbufmode-tests (Files): Likewise.
35991         * modules/fchdir-tests (Files): Likewise.
35992         * modules/fcntl-safer-tests (Files): Likewise.
35993         * modules/fcntl-tests (Files): Likewise.
35994         * modules/fdopendir-tests (Files): Likewise.
35995         * modules/fdutimensat-tests (Files): Likewise.
35996         * modules/fflush-tests (Files): Likewise.
35997         * modules/filevercmp-tests (Files): Likewise.
35998         * modules/flock-tests (Files): Likewise.
35999         * modules/floorf-tests (Files): Likewise.
36000         * modules/floorl-tests (Files): Likewise.
36001         * modules/fnmatch-tests (Files): Likewise.
36002         * modules/fopen-safer-tests (Files): Likewise.
36003         * modules/fopen-tests (Files): Likewise.
36004         * modules/fpending-tests (Files): Likewise.
36005         * modules/fprintf-posix-tests (Files): Likewise.
36006         * modules/fpurge-tests (Files): Likewise.
36007         * modules/freadable-tests (Files): Likewise.
36008         * modules/freadahead-tests (Files): Likewise.
36009         * modules/freading-tests (Files): Likewise.
36010         * modules/freadptr-tests (Files): Likewise.
36011         * modules/freadseek-tests (Files): Likewise.
36012         * modules/freopen-tests (Files): Likewise.
36013         * modules/frexp-nolibm-tests (Files): Likewise.
36014         * modules/frexp-tests (Files): Likewise.
36015         * modules/frexpl-nolibm-tests (Files): Likewise.
36016         * modules/frexpl-tests (Files): Likewise.
36017         * modules/fseek-tests (Files): Likewise.
36018         * modules/fseeko-tests (Files): Likewise.
36019         * modules/fstrcmp-tests (Files): Likewise.
36020         * modules/fsync-tests (Files): Likewise.
36021         * modules/ftell-tests (Files): Likewise.
36022         * modules/ftello-tests (Files): Likewise.
36023         * modules/func-tests (Files): Likewise.
36024         * modules/futimens-tests (Files): Likewise.
36025         * modules/fwritable-tests (Files): Likewise.
36026         * modules/fwriting-tests (Files): Likewise.
36027         * modules/getcwd-tests (Files): Likewise.
36028         * modules/getdate-tests (Files): Likewise.
36029         * modules/getdelim-tests (Files): Likewise.
36030         * modules/getdtablesize-tests (Files): Likewise.
36031         * modules/getgroups-tests (Files): Likewise.
36032         * modules/getline-tests (Files): Likewise.
36033         * modules/getndelim2-tests (Files): Likewise.
36034         * modules/glob-tests (Files): Likewise.
36035         * modules/hash-tests (Files): Likewise.
36036         * modules/i-ring-tests (Files): Likewise.
36037         * modules/iconv-tests (Files): Likewise.
36038         * modules/iconv_open-utf-tests (Files): Likewise.
36039         * modules/idpriv-drop-tests (Files): Likewise.
36040         * modules/idpriv-droptemp-tests (Files): Likewise.
36041         * modules/inet_ntop-tests (Files): Likewise.
36042         * modules/inet_pton-tests (Files): Likewise.
36043         * modules/isblank-tests (Files): Likewise.
36044         * modules/isfinite-tests (Files): Likewise.
36045         * modules/isinf-tests (Files): Likewise.
36046         * modules/isnan-tests (Files): Likewise.
36047         * modules/isnand-nolibm-tests (Files): Likewise.
36048         * modules/isnand-tests (Files): Likewise.
36049         * modules/isnanf-nolibm-tests (Files): Likewise.
36050         * modules/isnanf-tests (Files): Likewise.
36051         * modules/isnanl-nolibm-tests (Files): Likewise.
36052         * modules/isnanl-tests (Files): Likewise.
36053         * modules/lchown-tests (Files): Likewise.
36054         * modules/ldexpl-tests (Files): Likewise.
36055         * modules/link-tests (Files): Likewise.
36056         * modules/linkat-tests (Files): Likewise.
36057         * modules/linked-list-tests (Files): Likewise.
36058         * modules/linkedhash-list-tests (Files): Likewise.
36059         * modules/localename-tests (Files): Likewise.
36060         * modules/lseek-tests (Files): Likewise.
36061         * modules/lstat-tests (Files): Likewise.
36062         * modules/mbmemcasecmp-tests (Files): Likewise.
36063         * modules/mbmemcasecoll-tests (Files): Likewise.
36064         * modules/mbrtowc-tests (Files): Likewise.
36065         * modules/mbscasecmp-tests (Files): Likewise.
36066         * modules/mbscasestr-tests (Files): Likewise.
36067         * modules/mbschr-tests (Files): Likewise.
36068         * modules/mbscspn-tests (Files): Likewise.
36069         * modules/mbsinit-tests (Files): Likewise.
36070         * modules/mbsncasecmp-tests (Files): Likewise.
36071         * modules/mbsnrtowcs-tests (Files): Likewise.
36072         * modules/mbspbrk-tests (Files): Likewise.
36073         * modules/mbspcasecmp-tests (Files): Likewise.
36074         * modules/mbsrchr-tests (Files): Likewise.
36075         * modules/mbsrtowcs-tests (Files): Likewise.
36076         * modules/mbsspn-tests (Files): Likewise.
36077         * modules/mbsstr-tests (Files): Likewise.
36078         * modules/memchr-tests (Files): Likewise.
36079         * modules/memchr2-tests (Files): Likewise.
36080         * modules/memcmp-tests (Files): Likewise.
36081         * modules/memmem-tests (Files): Likewise.
36082         * modules/memrchr-tests (Files): Likewise.
36083         * modules/mkdir-tests (Files): Likewise.
36084         * modules/mkfifo-tests (Files): Likewise.
36085         * modules/mkfifoat-tests (Files): Likewise.
36086         * modules/mknod-tests (Files): Likewise.
36087         * modules/nanosleep-tests (Files): Likewise.
36088         * modules/nl_langinfo-tests (Files): Likewise.
36089         * modules/obstack-printf-tests (Files): Likewise.
36090         * modules/open-tests (Files): Likewise.
36091         * modules/openat-tests (Files): Likewise.
36092         * modules/pipe-filter-gi-tests (Files): Likewise.
36093         * modules/pipe-filter-ii-tests (Files): Likewise.
36094         * modules/pipe2-tests (Files): Likewise.
36095         * modules/popen-safer-tests (Files): Likewise.
36096         * modules/popen-tests (Files): Likewise.
36097         * modules/posixtm-tests (Files): Likewise.
36098         * modules/pread-tests (Files): Likewise.
36099         * modules/printf-frexp-tests (Files): Likewise.
36100         * modules/printf-frexpl-tests (Files): Likewise.
36101         * modules/printf-posix-tests (Files): Likewise.
36102         * modules/priv-set-tests (Files): Likewise.
36103         * modules/quotearg-tests (Files): Likewise.
36104         * modules/random_r-tests (Files): Likewise.
36105         * modules/rawmemchr-tests (Files): Likewise.
36106         * modules/rbtree-list-tests (Files): Likewise.
36107         * modules/rbtree-oset-tests (Files): Likewise.
36108         * modules/rbtreehash-list-tests (Files): Likewise.
36109         * modules/readlink-tests (Files): Likewise.
36110         * modules/remove-tests (Files): Likewise.
36111         * modules/rename-tests (Files): Likewise.
36112         * modules/renameat-tests (Files): Likewise.
36113         * modules/rmdir-tests (Files): Likewise.
36114         * modules/round-tests (Files): Likewise.
36115         * modules/roundf-tests (Files): Likewise.
36116         * modules/roundl-tests (Files): Likewise.
36117         * modules/safe-alloc-tests (Files): Likewise.
36118         * modules/setenv-tests (Files): Likewise.
36119         * modules/sigaction-tests (Files): Likewise.
36120         * modules/signbit-tests (Files): Likewise.
36121         * modules/sleep-tests (Files): Likewise.
36122         * modules/snprintf-posix-tests (Files): Likewise.
36123         * modules/snprintf-tests (Files): Likewise.
36124         * modules/sprintf-posix-tests (Files): Likewise.
36125         * modules/stat-tests (Files): Likewise.
36126         * modules/stat-time-tests (Files): Likewise.
36127         * modules/strcasestr-tests (Files): Likewise.
36128         * modules/strchrnul-tests (Files): Likewise.
36129         * modules/strerror-tests (Files): Likewise.
36130         * modules/striconv-tests (Files): Likewise.
36131         * modules/striconveh-tests (Files): Likewise.
36132         * modules/striconveha-tests (Files): Likewise.
36133         * modules/strsignal-tests (Files): Likewise.
36134         * modules/strstr-tests (Files): Likewise.
36135         * modules/strtod-tests (Files): Likewise.
36136         * modules/strverscmp-tests (Files): Likewise.
36137         * modules/symlink-tests (Files): Likewise.
36138         * modules/symlinkat-tests (Files): Likewise.
36139         * modules/trunc-tests (Files): Likewise.
36140         * modules/truncf-tests (Files): Likewise.
36141         * modules/truncl-tests (Files): Likewise.
36142         * modules/uname-tests (Files): Likewise.
36143         * modules/unicase/cased-tests (Files): Likewise.
36144         * modules/unicase/ignorable-tests (Files): Likewise.
36145         * modules/unicase/locale-language-tests (Files): Likewise.
36146         * modules/unicase/tolower-tests (Files): Likewise.
36147         * modules/unicase/totitle-tests (Files): Likewise.
36148         * modules/unicase/toupper-tests (Files): Likewise.
36149         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36150         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36151         * modules/unicase/u8-casefold-tests (Files): Likewise.
36152         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36153         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36154         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36155         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36156         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36157         * modules/unicase/u8-tolower-tests (Files): Likewise.
36158         * modules/unicase/u8-totitle-tests (Files): Likewise.
36159         * modules/unicase/u8-toupper-tests (Files): Likewise.
36160         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36161         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36162         * modules/unicase/u16-casefold-tests (Files): Likewise.
36163         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36164         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36165         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36166         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36167         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36168         * modules/unicase/u16-tolower-tests (Files): Likewise.
36169         * modules/unicase/u16-totitle-tests (Files): Likewise.
36170         * modules/unicase/u16-toupper-tests (Files): Likewise.
36171         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36172         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36173         * modules/unicase/u32-casefold-tests (Files): Likewise.
36174         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36175         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36176         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36177         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36178         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36179         * modules/unicase/u32-tolower-tests (Files): Likewise.
36180         * modules/unicase/u32-totitle-tests (Files): Likewise.
36181         * modules/unicase/u32-toupper-tests (Files): Likewise.
36182         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36183         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36184         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36185         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36186         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36187         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36188         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36189         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36190         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36191         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36192         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36193         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36194         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36195         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36196         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36197         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36198         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36199         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36200         * modules/unictype/block-list-tests (Files): Likewise.
36201         * modules/unictype/block-of-tests (Files): Likewise.
36202         * modules/unictype/block-test-tests (Files): Likewise.
36203         * modules/unictype/category-C-tests (Files): Likewise.
36204         * modules/unictype/category-Cc-tests (Files): Likewise.
36205         * modules/unictype/category-Cf-tests (Files): Likewise.
36206         * modules/unictype/category-Cn-tests (Files): Likewise.
36207         * modules/unictype/category-Co-tests (Files): Likewise.
36208         * modules/unictype/category-Cs-tests (Files): Likewise.
36209         * modules/unictype/category-L-tests (Files): Likewise.
36210         * modules/unictype/category-Ll-tests (Files): Likewise.
36211         * modules/unictype/category-Lm-tests (Files): Likewise.
36212         * modules/unictype/category-Lo-tests (Files): Likewise.
36213         * modules/unictype/category-Lt-tests (Files): Likewise.
36214         * modules/unictype/category-Lu-tests (Files): Likewise.
36215         * modules/unictype/category-M-tests (Files): Likewise.
36216         * modules/unictype/category-Mc-tests (Files): Likewise.
36217         * modules/unictype/category-Me-tests (Files): Likewise.
36218         * modules/unictype/category-Mn-tests (Files): Likewise.
36219         * modules/unictype/category-N-tests (Files): Likewise.
36220         * modules/unictype/category-Nd-tests (Files): Likewise.
36221         * modules/unictype/category-Nl-tests (Files): Likewise.
36222         * modules/unictype/category-No-tests (Files): Likewise.
36223         * modules/unictype/category-P-tests (Files): Likewise.
36224         * modules/unictype/category-Pc-tests (Files): Likewise.
36225         * modules/unictype/category-Pd-tests (Files): Likewise.
36226         * modules/unictype/category-Pe-tests (Files): Likewise.
36227         * modules/unictype/category-Pf-tests (Files): Likewise.
36228         * modules/unictype/category-Pi-tests (Files): Likewise.
36229         * modules/unictype/category-Po-tests (Files): Likewise.
36230         * modules/unictype/category-Ps-tests (Files): Likewise.
36231         * modules/unictype/category-S-tests (Files): Likewise.
36232         * modules/unictype/category-Sc-tests (Files): Likewise.
36233         * modules/unictype/category-Sk-tests (Files): Likewise.
36234         * modules/unictype/category-Sm-tests (Files): Likewise.
36235         * modules/unictype/category-So-tests (Files): Likewise.
36236         * modules/unictype/category-Z-tests (Files): Likewise.
36237         * modules/unictype/category-Zl-tests (Files): Likewise.
36238         * modules/unictype/category-Zp-tests (Files): Likewise.
36239         * modules/unictype/category-Zs-tests (Files): Likewise.
36240         * modules/unictype/category-and-not-tests (Files): Likewise.
36241         * modules/unictype/category-and-tests (Files): Likewise.
36242         * modules/unictype/category-byname-tests (Files): Likewise.
36243         * modules/unictype/category-name-tests (Files): Likewise.
36244         * modules/unictype/category-none-tests (Files): Likewise.
36245         * modules/unictype/category-of-tests (Files): Likewise.
36246         * modules/unictype/category-or-tests (Files): Likewise.
36247         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36248         * modules/unictype/combining-class-tests (Files): Likewise.
36249         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36250         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36251         * modules/unictype/ctype-blank-tests (Files): Likewise.
36252         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36253         * modules/unictype/ctype-digit-tests (Files): Likewise.
36254         * modules/unictype/ctype-graph-tests (Files): Likewise.
36255         * modules/unictype/ctype-lower-tests (Files): Likewise.
36256         * modules/unictype/ctype-print-tests (Files): Likewise.
36257         * modules/unictype/ctype-punct-tests (Files): Likewise.
36258         * modules/unictype/ctype-space-tests (Files): Likewise.
36259         * modules/unictype/ctype-upper-tests (Files): Likewise.
36260         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36261         * modules/unictype/decimal-digit-tests (Files): Likewise.
36262         * modules/unictype/digit-tests (Files): Likewise.
36263         * modules/unictype/mirror-tests (Files): Likewise.
36264         * modules/unictype/numeric-tests (Files): Likewise.
36265         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36266         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36267         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36268         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36269         Likewise.
36270         * modules/unictype/property-bidi-block-separator-tests (Files):
36271         Likewise.
36272         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36273         Likewise.
36274         * modules/unictype/property-bidi-common-separator-tests (Files):
36275         Likewise.
36276         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36277         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36278         Likewise.
36279         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36280         Likewise.
36281         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36282         Likewise.
36283         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36284         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36285         Likewise.
36286         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36287         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36288         Likewise.
36289         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36290         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36291         * modules/unictype/property-bidi-segment-separator-tests (Files):
36292         Likewise.
36293         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36294         * modules/unictype/property-byname-tests (Files): Likewise.
36295         * modules/unictype/property-combining-tests (Files): Likewise.
36296         * modules/unictype/property-composite-tests (Files): Likewise.
36297         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36298         * modules/unictype/property-dash-tests (Files): Likewise.
36299         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36300         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36301         Likewise.
36302         * modules/unictype/property-deprecated-tests (Files): Likewise.
36303         * modules/unictype/property-diacritic-tests (Files): Likewise.
36304         * modules/unictype/property-extender-tests (Files): Likewise.
36305         * modules/unictype/property-format-control-tests (Files): Likewise.
36306         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36307         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36308         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36309         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36310         * modules/unictype/property-hyphen-tests (Files): Likewise.
36311         * modules/unictype/property-id-continue-tests (Files): Likewise.
36312         * modules/unictype/property-id-start-tests (Files): Likewise.
36313         * modules/unictype/property-ideographic-tests (Files): Likewise.
36314         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36315         * modules/unictype/property-ids-trinary-operator-tests (Files):
36316         Likewise.
36317         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36318         * modules/unictype/property-iso-control-tests (Files): Likewise.
36319         * modules/unictype/property-join-control-tests (Files): Likewise.
36320         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36321         * modules/unictype/property-line-separator-tests (Files): Likewise.
36322         * modules/unictype/property-logical-order-exception-tests (Files):
36323         Likewise.
36324         * modules/unictype/property-lowercase-tests (Files): Likewise.
36325         * modules/unictype/property-math-tests (Files): Likewise.
36326         * modules/unictype/property-non-break-tests (Files): Likewise.
36327         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36328         * modules/unictype/property-numeric-tests (Files): Likewise.
36329         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36330         * modules/unictype/property-other-default-ignorable-code-point-tests
36331         (Files): Likewise.
36332         * modules/unictype/property-other-grapheme-extend-tests (Files):
36333         Likewise.
36334         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36335         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36336         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36337         * modules/unictype/property-other-math-tests (Files): Likewise.
36338         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36339         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36340         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36341         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36342         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36343         * modules/unictype/property-private-use-tests (Files): Likewise.
36344         * modules/unictype/property-punctuation-tests (Files): Likewise.
36345         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36346         * modules/unictype/property-radical-tests (Files): Likewise.
36347         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36348         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36349         * modules/unictype/property-space-tests (Files): Likewise.
36350         * modules/unictype/property-terminal-punctuation-tests (Files):
36351         Likewise.
36352         * modules/unictype/property-test-tests (Files): Likewise.
36353         * modules/unictype/property-titlecase-tests (Files): Likewise.
36354         * modules/unictype/property-unassigned-code-value-tests (Files):
36355         Likewise.
36356         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36357         * modules/unictype/property-uppercase-tests (Files): Likewise.
36358         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36359         * modules/unictype/property-white-space-tests (Files): Likewise.
36360         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36361         * modules/unictype/property-xid-start-tests (Files): Likewise.
36362         * modules/unictype/property-zero-width-tests (Files): Likewise.
36363         * modules/unictype/scripts-tests (Files): Likewise.
36364         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36365         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36366         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36367         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36368         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36369         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36370         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36371         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36372         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36373         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36374         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36375         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36376         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36377         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36378         * modules/uninorm/composition-tests (Files): Likewise.
36379         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36380         * modules/uninorm/decomposition-tests (Files): Likewise.
36381         * modules/uninorm/filter-tests (Files): Likewise.
36382         * modules/uninorm/nfc-tests (Files): Likewise.
36383         * modules/uninorm/nfd-tests (Files): Likewise.
36384         * modules/uninorm/nfkc-tests (Files): Likewise.
36385         * modules/uninorm/nfkd-tests (Files): Likewise.
36386         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36387         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36388         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36389         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36390         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36391         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36392         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36393         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36394         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36395         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36396         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36397         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36398         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36399         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36400         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36401         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36402         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36403         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36404         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36405         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36406         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36407         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36408         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36409         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36410         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36411         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36412         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36413         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36414         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36415         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36416         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36417         * modules/uniwidth/u8-width-tests (Files): Likewise.
36418         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36419         * modules/uniwidth/u16-width-tests (Files): Likewise.
36420         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36421         * modules/uniwidth/u32-width-tests (Files): Likewise.
36422         * modules/uniwidth/width-tests (Files): Likewise.
36423         * modules/unlink-tests (Files): Likewise.
36424         * modules/unsetenv-tests (Files): Likewise.
36425         * modules/usleep-tests (Files): Likewise.
36426         * modules/utimens-tests (Files): Likewise.
36427         * modules/utimensat-tests (Files): Likewise.
36428         * modules/vasnprintf-posix-tests (Files): Likewise.
36429         * modules/vasnprintf-tests (Files): Likewise.
36430         * modules/vasprintf-posix-tests (Files): Likewise.
36431         * modules/vasprintf-tests (Files): Likewise.
36432         * modules/vdprintf-posix-tests (Files): Likewise.
36433         * modules/vfprintf-posix-tests (Files): Likewise.
36434         * modules/vprintf-posix-tests (Files): Likewise.
36435         * modules/vsnprintf-posix-tests (Files): Likewise.
36436         * modules/vsnprintf-tests (Files): Likewise.
36437         * modules/vsprintf-posix-tests (Files): Likewise.
36438         * modules/wcrtomb-tests (Files): Likewise.
36439         * modules/wcsnrtombs-tests (Files): Likewise.
36440         * modules/wcsrtombs-tests (Files): Likewise.
36441         * modules/wctype-tests (Files): Likewise.
36442         * modules/wcwidth-tests (Files): Likewise.
36443         * modules/xmemdup0-tests (Files): Likewise.
36444         * modules/xprintf-posix-tests (Files): Likewise.
36445         * modules/xvasprintf-tests (Files): Likewise.
36446
36447 2009-12-24  Eric Blake  <ebb9@byu.net>
36448
36449         test-nanosleep: fix typo
36450         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36451         patch.
36452         Reported by Bruno Haible.
36453
36454 2009-12-24  Bruno Haible  <bruno@clisp.org>
36455
36456         Reduce namespace pollution on glibc systems.
36457         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36458         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36459         systems.
36460         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36461         <getopt.h> on glibc systems.
36462         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36463         systems.
36464         * lib/fcntl.c: Include <unistd.h> here instead.
36465
36466 2009-12-24  Bruno Haible  <bruno@clisp.org>
36467
36468         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36469
36470 2009-12-24  Eric Blake  <ebb9@byu.net>
36471
36472         tests: add signature checks
36473         * tests/signature.h (SIGNATURE_CHECK): New file.
36474         * modules/atexit-tests (Files): Use it.
36475         * modules/btowc-tests (Files): Likewise.
36476         * modules/canonicalize-lgpl-tests (Files): Likewise.
36477         * modules/ceilf-tests (Files): Likewise.
36478         * modules/ceill-tests (Files): Likewise.
36479         * modules/chown-tests (Files): Likewise.
36480         * modules/dprintf-posix-tests (Files): Likewise.
36481         * modules/dup2-tests (Files): Likewise.
36482         * modules/dup3-tests (Files): Likewise.
36483         * modules/duplocale-tests (Files): Likewise.
36484         * modules/fchdir-tests (Files): Likewise.
36485         * modules/fcntl-tests (Files): Likewise.
36486         * modules/fdopendir-tests (Files): Likewise.
36487         * modules/fflush-tests (Files): Likewise.
36488         * modules/flock-tests (Files): Likewise.
36489         * modules/floorf-tests (Files): Likewise.
36490         * modules/floorl-tests (Files): Likewise.
36491         * modules/fnmatch-tests (Files): Likewise.
36492         * modules/fopen-tests (Files): Likewise.
36493         * modules/fprintf-posix-tests (Files): Likewise.
36494         * modules/freopen-tests (Files): Likewise.
36495         * modules/frexp-nolibm-tests (Files): Likewise.
36496         * modules/frexp-tests (Files): Likewise.
36497         * modules/frexpl-nolibm-tests (Files): Likewise.
36498         * modules/frexpl-tests (Files): Likewise.
36499         * modules/fseek-tests (Files): Likewise.
36500         * modules/fseeko-tests (Files): Likewise.
36501         * modules/fsync-tests (Files): Likewise.
36502         * modules/ftell-tests (Files): Likewise.
36503         * modules/ftello-tests (Files): Likewise.
36504         * modules/futimens-tests (Files): Likewise.
36505         * modules/getaddrinfo-tests (Files): Likewise.
36506         * modules/getcwd-tests (Files): Likewise.
36507         * modules/getdelim-tests (Files): Likewise.
36508         * modules/getdtablesize-tests (Files): Likewise.
36509         * modules/getgroups-tests (Files): Likewise.
36510         * modules/gethostname-tests (Files): Likewise.
36511         * modules/getline-tests (Files): Likewise.
36512         * modules/getopt-posix-tests (Files): Likewise.
36513         * modules/gettimeofday-tests (Files): Likewise.
36514         * modules/glob-tests (Files): Likewise.
36515         * modules/iconv-tests (Files): Likewise.
36516         * modules/inet_ntop-tests (Files): Likewise.
36517         * modules/inet_pton-tests (Files): Likewise.
36518         * modules/isblank-tests (Files): Likewise.
36519         * modules/lchown-tests (Files): Likewise.
36520         * modules/ldexpl-tests (Files): Likewise.
36521         * modules/link-tests (Files): Likewise.
36522         * modules/linkat-tests (Files): Likewise.
36523         * modules/lseek-tests (Files): Likewise.
36524         * modules/lstat-tests (Files): Likewise.
36525         * modules/mbrtowc-tests (Files): Likewise.
36526         * modules/mbsinit-tests (Files): Likewise.
36527         * modules/mbsnrtowcs-tests (Files): Likewise.
36528         * modules/mbsrtowcs-tests (Files): Likewise.
36529         * modules/memchr-tests (Files): Likewise.
36530         * modules/memcmp-tests (Files): Likewise.
36531         * modules/memmem-tests (Files): Likewise.
36532         * modules/memrchr-tests (Files): Likewise.
36533         * modules/mkdir-tests (Files): Likewise.
36534         * modules/mkfifo-tests (Files): Likewise.
36535         * modules/mkfifoat-tests (Files): Likewise.
36536         * modules/mknod-tests (Files): Likewise.
36537         * modules/nanosleep-tests (Files): Likewise.
36538         * modules/nl_langinfo-tests (Files): Likewise.
36539         * modules/obstack-printf-tests (Files): Likewise.
36540         * modules/open-tests (Files): Likewise.
36541         * modules/openat-tests (Files): Likewise.
36542         * modules/perror-tests (Files): Likewise.
36543         * modules/pipe2-tests (Files): Likewise.
36544         * modules/poll-tests (Files): Likewise.
36545         * modules/popen-tests (Files): Likewise.
36546         * modules/posix_spawn-tests (Files): Likewise.
36547         * modules/posix_spawnp-tests (Files): Likewise.
36548         * modules/pread-tests (Files): Likewise.
36549         * modules/printf-posix-tests (Files): Likewise.
36550         * modules/pty-tests (Files): Likewise.
36551         * modules/random_r-tests (Files): Likewise.
36552         * modules/rawmemchr-tests (Files): Likewise.
36553         * modules/readlink-tests (Files): Likewise.
36554         * modules/remove-tests (Files): Likewise.
36555         * modules/rename-tests (Files): Likewise.
36556         * modules/renameat-tests (Files): Likewise.
36557         * modules/rmdir-tests (Files): Likewise.
36558         * modules/round-tests (Files): Likewise.
36559         * modules/roundf-tests (Files): Likewise.
36560         * modules/roundl-tests (Files): Likewise.
36561         * modules/select-tests (Files): Likewise.
36562         * modules/setenv-tests (Files): Likewise.
36563         * modules/sigaction-tests (Files): Likewise.
36564         * modules/sleep-tests (Files): Likewise.
36565         * modules/snprintf-posix-tests (Files): Likewise.
36566         * modules/snprintf-tests (Files): Likewise.
36567         * modules/sprintf-posix-tests (Files): Likewise.
36568         * modules/stat-tests (Files): Likewise.
36569         * modules/strcasestr-tests (Files): Likewise.
36570         * modules/strchrnul-tests (Files): Likewise.
36571         * modules/strerror-tests (Files): Likewise.
36572         * modules/strsignal-tests (Files): Likewise.
36573         * modules/strstr-tests (Files): Likewise.
36574         * modules/strtod-tests (Files): Likewise.
36575         * modules/strverscmp-tests (Files): Likewise.
36576         * modules/symlink-tests (Files): Likewise.
36577         * modules/symlinkat-tests (Files): Likewise.
36578         * modules/times-tests (Files): Likewise.
36579         * modules/trunc-tests (Files): Likewise.
36580         * modules/truncf-tests (Files): Likewise.
36581         * modules/truncl-tests (Files): Likewise.
36582         * modules/tsearch-tests (Files): Likewise.
36583         * modules/uname-tests (Files): Likewise.
36584         * modules/unlink-tests (Files): Likewise.
36585         * modules/unsetenv-tests (Files): Likewise.
36586         * modules/usleep-tests (Files): Likewise.
36587         * modules/utimensat-tests (Files): Likewise.
36588         * modules/vasprintf-tests (Files): Likewise.
36589         * modules/vdprintf-posix-tests (Files): Likewise.
36590         * modules/vfprintf-posix-tests (Files): Likewise.
36591         * modules/vprintf-posix-tests (Files): Likewise.
36592         * modules/vsnprintf-posix-tests (Files): Likewise.
36593         * modules/vsnprintf-tests (Files): Likewise.
36594         * modules/vsprintf-posix-tests (Files): Likewise.
36595         * modules/wcrtomb-tests (Files): Likewise.
36596         * modules/wcsnrtombs-tests (Files): Likewise.
36597         * modules/wcsrtombs-tests (Files): Likewise.
36598         * modules/wcwidth-tests (Files): Likewise.
36599         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36600         * tests/test-isinf.c (isinf): Likewise.
36601         * tests/test-isnan.c (isnan): Likewise.
36602         * tests/test-signbit.c (signbit): Likewise.
36603         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36604         declaration, either as macro or with correct signature.
36605         (select): Ensure function under test is declared with correct
36606         signature in correct header.
36607         * tests/test-atexit.c (atexit): Likewise.
36608         * tests/test-btowc.c (btowc): Likewise.
36609         * tests/test-canonicalize-lgpl.c (realpath)
36610         (canonicalize_file_name): Likewise.
36611         * tests/test-ceilf1.c (ceilf): Likewise.
36612         * tests/test-ceill.c (ceill): Likewise.
36613         * tests/test-chown.c (chown): Likewise.
36614         * tests/test-dprintf-posix.c (dprintf): Likewise.
36615         * tests/test-dup2.c (dup2): Likewise.
36616         * tests/test-dup3.c (dup3): Likewise.
36617         * tests/test-duplocale.c (duplocale): Likewise.
36618         * tests/test-fchdir.c (fchdir): Likewise.
36619         * tests/test-fchownat.c (fchownat): Likewise.
36620         * tests/test-fcntl.c (fcntl): Likewise.
36621         * tests/test-fdopendir.c (fdopendir): Likewise.
36622         * tests/test-fflush.c (fflush): Likewise.
36623         * tests/test-flock.c (flock): Likewise.
36624         * tests/test-floorf1.c (floorf): Likewise.
36625         * tests/test-floorl.c (floorl): Likewise.
36626         * tests/test-fnmatch.c (fnmatch): Likewise.
36627         * tests/test-fopen.c (fopen): Likewise.
36628         * tests/test-fprintf-posix.c (fprintf): Likewise.
36629         * tests/test-freopen.c (freopen): Likewise.
36630         * tests/test-frexp.c (frexp): Likewise.
36631         * tests/test-frexpl.c (frexpl): Likewise.
36632         * tests/test-fseek.c (fseek): Likewise.
36633         * tests/test-fseeko.c (fseeko): Likewise.
36634         * tests/test-fstatat.c (fstatat): Likewise.
36635         * tests/test-fsync.c (fsync): Likewise.
36636         * tests/test-ftell.c (ftell): Likewise.
36637         * tests/test-ftello.c (ftello): Likewise.
36638         * tests/test-futimens.c (futimens): Likewise.
36639         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36640         (gai_strerror): Likewise.
36641         * tests/test-getcwd.c (getcwd): Likewise.
36642         * tests/test-getdelim.c (getdelim): Likewise.
36643         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36644         * tests/test-getgroups.c (getgroups): Likewise.
36645         * tests/test-gethostname.c (gethostname): Likewise.
36646         * tests/test-getline.c (getline): Likewise.
36647         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36648         Likewise.
36649         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36650         * tests/test-glob.c (glob, globfree): Likewise.
36651         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36652         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36653         * tests/test-inet_pton.c (inet_pton): Likewise.
36654         * tests/test-isblank.c (isblank): Likewise.
36655         * tests/test-lchown.c (lchown): Likewise.
36656         * tests/test-ldexpl.c (ldexpl): Likewise.
36657         * tests/test-link.c (link): Likewise.
36658         * tests/test-linkat.c (linkat): Likewise.
36659         * tests/test-lseek.c (lseek): Likewise.
36660         * tests/test-lstat.c (lstat): Likewise.
36661         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36662         * tests/test-mbsinit.c (mbsinit): Likewise.
36663         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36664         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36665         * tests/test-memchr.c (memchr): Likewise.
36666         * tests/test-memcmp.c (memcmp): Likewise.
36667         * tests/test-memmem.c (memmem): Likewise.
36668         * tests/test-memrchr.c (memrchr): Likewise.
36669         * tests/test-mkdir.c (mkdir): Likewise.
36670         * tests/test-mkdirat.c (mkdirat): Likewise.
36671         * tests/test-mkfifo.c (mkfifo): Likewise.
36672         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36673         * tests/test-mknod.c (mknod): Likewise.
36674         * tests/test-nanosleep.c (nanosleep): Likewise.
36675         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36676         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36677         Likewise.
36678         * tests/test-open.c (open): Likewise.
36679         * tests/test-openat.c (openat): Likewise.
36680         * tests/test-perror.c (perror): Likewise.
36681         * tests/test-pipe2.c (pipe2): Likewise.
36682         * tests/test-poll.c (poll): Likewise.
36683         * tests/test-popen.c (popen, pclose): Likewise.
36684         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36685         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36686         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36687         (posix_spawn_file_actions_destroy)
36688         (posix_spawn_file_actions_addclose)
36689         (posix_spawn_file_actions_addopen)
36690         (posix_spawn_file_actions_adddup2): Likewise.
36691         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36692         * tests/test-pread.c (pread): Likewise.
36693         * tests/test-printf-posix.c (printf): Likewise.
36694         * tests/test-pty.c (openpty, forkpty): Likewise.
36695         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36696         (random_r): Likewise.
36697         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36698         * tests/test-readlink.c (readlink): Likewise.
36699         * tests/test-remove.c (remove): Likewise.
36700         * tests/test-rename.c (rename): Likewise.
36701         * tests/test-renameat.c (renameat): Likewise.
36702         * tests/test-rmdir.c (rmdir): Likewise.
36703         * tests/test-round1.c (round): Likewise.
36704         * tests/test-roundf1.c (roundf): Likewise.
36705         * tests/test-roundl.c (roundl): Likewise.
36706         * tests/test-setenv.c (setenv): Likewise.
36707         * tests/test-sigaction.c (sigaction): Likewise.
36708         * tests/test-sleep.c (sleep): Likewise.
36709         * tests/test-snprintf.c (snprintf): Likewise.
36710         * tests/test-sprintf-posix.c (sprintf): Likewise.
36711         * tests/test-stat.c (stat): Likewise.
36712         * tests/test-stpncpy.c (stpncpy): Likewise.
36713         * tests/test-strcasestr.c (strcasestr): Likewise.
36714         * tests/test-strchrnul.c (strchrnul): Likewise.
36715         * tests/test-strerror.c (strerror): Likewise.
36716         * tests/test-strsignal.c (strsignal): Likewise.
36717         * tests/test-strstr.c (strstr): Likewise.
36718         * tests/test-strtod.c (strtod): Likewise.
36719         * tests/test-strverscmp.c (strverscmp): Likewise.
36720         * tests/test-symlink.c (symlink): Likewise.
36721         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36722         * tests/test-times.c (times): Likewise.
36723         * tests/test-trunc1.c (trunc): Likewise.
36724         * tests/test-truncf1.c (truncf): Likewise.
36725         * tests/test-truncl.c (truncl): Likewise.
36726         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36727         Likewise.
36728         * tests/test-uname.c (uname): Likewise.
36729         * tests/test-unlink.c (unlink): Likewise.
36730         * tests/test-unlinkat.c (unlinkat): Likewise.
36731         * tests/test-unsetenv.c (unsetenv): Likewise.
36732         * tests/test-usleep.c (usleep): Likewise.
36733         * tests/test-utimensat.c (utimensat): Likewise.
36734         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36735         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36736         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36737         * tests/test-vprintf-posix.c (vprintf): Likewise.
36738         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36739         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36740         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36741         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36742         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36743         * tests/test-wcwidth.c (wcwidth): Likewise.
36744
36745         build: pull in conditional headers during GNULIB_POSIXCHECK
36746         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36747         definitions from any conditionally-included headers.
36748         * lib/stdlib.in.h (includes): Likewise.
36749         * lib/unistd.in.h (includes): Likewise.
36750
36751 2009-12-24  Bruno Haible  <bruno@clisp.org>
36752
36753         * tests/test-argv-iter.c: Include header file being tested immediately
36754         after config.h.
36755         * tests/test-base64.c: Likewise.
36756         * tests/test-flock.c: Likewise.
36757         * tests/test-fsync.c: Likewise.
36758         * tests/test-getdate.c: Likewise.
36759         * tests/test-getndelim2.c: Likewise.
36760         * tests/test-isfinite.c: Likewise.
36761         * tests/test-isinf.c: Likewise.
36762         * tests/test-strerror.c: Likewise.
36763         * tests/test-strsignal.c: Likewise.
36764
36765 2009-12-23  Eric Blake  <ebb9@byu.net>
36766
36767         unistd: work around cygwin bug
36768         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36769         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36770         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36771
36772 2009-12-23  Bruno Haible  <bruno@clisp.org>
36773
36774         localename: More tests.
36775         * tests/test-localename.c (SIZEOF): New macro.
36776         (categories): New variable.
36777         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36778         test_locale_name_default): Add test w.r.t. thread locale.
36779         (test_locale_name_thread): New function.
36780         (main): Invoke it.
36781
36782         localename: Make aware of thread locale.
36783         * lib/localename.h (gl_locale_name_thread): New declaration.
36784         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36785         behaviour with respect to thread locale.
36786         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36787         <langinfo.h>, glthread/lock.h.
36788         (SIZE_BITS): New macro.
36789         (string_hash): New function.
36790         (struct hash_node): New type.
36791         (HASH_TABLE_SIZE): New macro.
36792         (struniq_hash_table, struniq_lock): New variables.
36793         (struniq): New function.
36794         (gl_locale_name_thread): New function.
36795         (gl_locale_name): Invoke it.
36796         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36797         * modules/localename (Depends-on): Add lock.
36798         Reported by Mike Gran <spk121@yahoo.com>.
36799
36800 2009-12-23  Eric Blake  <ebb9@byu.net>
36801
36802         va-args: new module
36803         * modules/va-args: New file.
36804         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36805         * MODULES.html.sh (Core language properties): Mention it.
36806
36807         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36808         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36809         named alias for __attribute__((__unused__)).
36810         * lib/chown.c: Update client.
36811         * lib/fchmodat.c: Likewise.
36812         * lib/fts.c: Likewise.
36813         * lib/getdate.y: Likewise.
36814         * lib/getgroups.c: Likewise.
36815         * lib/getopt.c: Likewise.
36816         * lib/getugroups.c: Likewise.
36817         * lib/mkdir.c: Likewise.
36818         * lib/mkfifo.c: Likewise.
36819         * lib/mkfifoat.c: Likewise.
36820         * lib/mknod.c: Likewise.
36821         * lib/mknodat.c: Likewise.
36822         * lib/readlink.c: Likewise.
36823         * lib/se-context.in.h: Likewise.
36824         * lib/se-selinux.in.h: Likewise.
36825         * lib/sockets.c: Likewise.
36826         * lib/symlink.c: Likewise.
36827         * lib/symlinkat.c: Likewise.
36828         * lib/unicodeio.c: Likewise.
36829         * lib/unistr.h: Likewise.
36830         * tests/test-areadlink.c: Likewise.
36831         * tests/test-areadlinkat.c: Likewise.
36832         * tests/test-filenamecat.c: Likewise.
36833         * tests/test-fseeko.c: Likewise.
36834         * tests/test-ftello.c: Likewise.
36835         * tests/test-getdate.c: Likewise.
36836         * tests/test-getgroups.c: Likewise.
36837         * tests/test-gethostname.c: Likewise.
36838         * tests/test-quotearg.c: Likewise.
36839         * tests/test-version-etc.c: Likewise.
36840         * tests/test-xalloc-die.c: Likewise.
36841         * tests/test-xfprintf-posix.c: Likewise.
36842         * tests/test-xprintf-posix.c: Likewise.
36843         * tests/test-xvasprintf.c: Likewise.
36844
36845         tests: avoid compiler warnings
36846         * tests/test-fcntl.c (main): Delete unused parameters.
36847         * tests/test-freopen-safer.c (main): Likewise.
36848         * tests/test-xalloc-die.c (main): Mark unused parameters.
36849         * tests/test-fseeko.c (main): Likewise.
36850         * tests/test-ftello.c (main): Likewise.
36851         * tests/test-nanosleep.c (main): Avoid declaration warning.
36852         * tests/test-sleep.c (main): Likewise.
36853         * tests/test-unsetenv.c (main): Silence warning about string
36854         literal.
36855         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36856
36857 2009-12-23  Bruno Haible  <bruno@clisp.org>
36858
36859         * tests/test-localename.c (test_locale_name): New function, extracted
36860         from main. Also test mixed situations.
36861         (test_locale_name_posix, test_locale_name_environ,
36862         test_locale_name_default): New functions.
36863         (main): Invoke them all.
36864         * modules/localename-tests (configure.ac): Test for newlocale.
36865
36866 2009-12-23  Bruno Haible  <bruno@clisp.org>
36867
36868         unistd: Ensure getcwd gets declared before being overridden.
36869         * lib/unistd.in.h: Conditionally include <io.h>.
36870
36871 2009-12-22  Bruno Haible  <bruno@clisp.org>
36872
36873         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36874         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36875         (gl_WCHAR_H): Invoke it.
36876         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36877         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36878         Reported by Karl Berry <karl@freefriends.org>.
36879
36880 2009-12-22  Eric Blake  <ebb9@byu.net>
36881
36882         math, unistd: avoid redundant includes
36883         * lib/math.in.h (isnan): No need to re-include <math.h>.
36884         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36885
36886         getsubopt: work around cygwin bug
36887         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36888         avoid conflicting with system getsubopt.
36889         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36890         bug.
36891
36892         getopt: synchronize from glibc
36893         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36894         parameter order.  Adjust all callers.
36895         (_getopt_internal_r, main): Adjust quoting in error messages.
36896         Drop considerations for outdated POSIX 1003.2 error message.
36897         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36898         callers.
36899         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36900
36901         test-getopt: test stderr behavior
36902         * modules/getopt-posix-tests (Depends-on): Add dup2.
36903         * tests/test-getopt.c (ASSERT): Avoid stderr.
36904         (main): Move stderr to a temporary file.
36905         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36906         Instead, add parameter to inform caller if output occurred.
36907         (test_getopt): Adjust all existing tests to expect silence, and
36908         add new tests of leading ":".
36909         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36910         glibc shortcomings with leading "-:" or "+:" in optstring.
36911         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36912         Likewise.
36913         * doc/posix-functions/getopt.texi (getopt): Likewise.
36914
36915         test-getopt: enhance test
36916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36917         supports optind=0.
36918         * tests/test-getopt.c (OPTIND_MIN): Move...
36919         * tests/test-getopt.h (OPTIND_MIN): ...here.
36920         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36921         Require that optind=0 works, since modern BSD supports it in
36922         addition to optreset, and since coreutils expects it.
36923         (test_getopt_long_only): New test.
36924         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36925         glibc shortcomings with 'W;', and enforcement of optind=0.
36926         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36927         Likewise.
36928
36929 2009-12-21  Bruno Haible  <bruno@clisp.org>
36930
36931         localename: Improvements for MacOS X and Cygwin.
36932         * lib/localename.h (gl_locale_name_environ): New declaration.
36933         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36934         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36935         (gl_locale_name_posix): Invoke it.
36936         (gl_locale_name_default): Add comments. Use Windows native API also on
36937         Cygwin.
36938
36939 2009-12-21  Bruno Haible  <bruno@clisp.org>
36940
36941         Update list of Win32 locale ids.
36942         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36943         (LANG_SAMI): Renamed from LANG_SAAMI.
36944         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36945         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36946         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36947         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36948         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36949         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36950         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36951         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36952         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36953         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36954         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36955         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36956         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36957         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36958         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36959         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36960         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36961         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36962         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36963         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36964         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36965         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36966         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36967         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36968         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36969         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36970         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36971         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36972         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36973         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36974         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36975         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36976         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36977         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36978         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36979         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36980         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36981         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36982         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36983         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36984         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36985         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36986         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36987         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36988         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36989         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36990         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36991         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36992         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36993         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36994         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36995         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36996         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36997         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36998         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36999         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37000         Add more languages and countries for Sami, Sorbian. Add more countries
37001         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37002         for Pashto. Change country for Syriac, Tswana.
37003
37004 2009-12-21  Eric Blake  <ebb9@byu.net>
37005
37006         test-utimens: avoid spurious failure
37007         * tests/test-chown.h (nap): Factor...
37008         * tests/nap.h: ...into new file.
37009         * tests/test-lchown.h (nap): Avoid duplication.
37010         * tests/test-utimens-common.h (nap): Use shared implementation,
37011         necessary on file systems with 1-second resolution.
37012         * modules/chown-tests (Files): Include new file.
37013         * modules/fdutimensat-tests (Files): Likewise.
37014         * modules/futimens-tests (Files): Likewise.
37015         * modules/lchown-tests (Files): Likewise.
37016         * modules/openat-tests (Files): Likewise.
37017         * modules/utimens-tests (Files): Likewise.
37018         * modules/utimensat-tests (Files): Likewise.
37019
37020 2009-12-19  Eric Blake  <ebb9@byu.net>
37021
37022         futimens, utimensat: work around Linux bug
37023         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37024         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37025         * lib/utimensat.c (rpl_utimensat): Work around it.
37026         * lib/futimens.c (rpl_futimens): Adjust comment.
37027
37028         utimens: work around Linux ctime bug
37029         * lib/utimens.c (detect_ctime_bug): New helper function.
37030         (update_timespec): Differentiate between workaround needed for
37031         this bug vs. what is needed for systems that lack utimensat.
37032         (fdutimens, lutimens): Work around bug.
37033
37034         utimens: check for ctime update
37035         * tests/test-utimens-common.h (check_ctime): Define.
37036         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37037         * tests/test-futimens.h (test_futimens): Likewise.
37038         * tests/test-lutimens.h (test_lutimens): Likewise.
37039         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37040         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37041
37042 2009-12-19  Bruno Haible  <bruno@clisp.org>
37043
37044         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37045         * tests/test-dprintf-posix2.sh: New file.
37046         * tests/test-dprintf-posix2.c: New file.
37047         * modules/dprintf-posix-tests (Files): Add them.
37048         (configure.ac): Check for getrlimit and setrlimit.
37049         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37050
37051 2009-12-19  Bruno Haible  <bruno@clisp.org>
37052
37053         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37054         * tests/test-fprintf-posix3.sh: New file.
37055         * tests/test-fprintf-posix3.c: New file.
37056         * modules/fprintf-posix-tests (Files): Add them.
37057         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37058
37059 2009-12-19  Eric Blake  <ebb9@byu.net>
37060
37061         dirfd: fix prototype
37062         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37063         * lib/dirfd.c (dirfd): Likewise.
37064
37065         canonicalize: reduce memory usage
37066         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37067         allocation to size.
37068         Reported by Solar Designer <solar@openwall.com>.
37069
37070 2009-12-19  Bruno Haible  <bruno@clisp.org>
37071
37072         New module attribute 'Applicability'.
37073         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37074         * gnulib-tool: New option --extract-applicability.
37075         (func_usage): Document it.
37076         (sed_extract_prog): Recognize it.
37077         (func_get_applicability): New function.
37078         (func_import): Generalize handling of 'link-warning' module.
37079         * modules/link-warning (Applicability): New section.
37080         * modules/arg-nonnull (Applicability): New section.
37081         Repoted by Simon Josefsson <simon@josefsson.org>.
37082
37083 2009-12-19  Bruno Haible  <bruno@clisp.org>
37084
37085         fflush: tweak
37086         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37087         * lib/fseeko.c (rpl_fseeko): Likewise.
37088
37089 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37090
37091         * lib/gl_list.h: Fix typo in comment.
37092
37093 2009-12-16  Eric Blake  <ebb9@byu.net>
37094
37095         fcntl: use to simplify other modules
37096         * modules/cloexec (Depends-on): Add fcntl.
37097         * modules/fchdir (Depends-on): Likewise.
37098         * modules/fd-safer-flag (Depends-on): Likewise.
37099         * modules/unistd-safer (Depends-on): Likewise.
37100         * modules/dup3 (configure.ac): Set module indicator.
37101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37102         missing.
37103         * lib/fchdir.c (_gl_register_dup): Fix comment.
37104         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37105         * lib/dup-safer.c (dup_safer): Likewise.
37106         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37107         * lib/dup3.c (dup3): Likewise.
37108         * tests/test-fchdir.c (main): Enhance test.
37109         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37110
37111         fcntl: port portions of fcntl to mingw
37112         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37113         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37114         replacement for mingw.
37115         * modules/fcntl (Description): Update.
37116         (Depends-on): Add dup2.
37117         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37118         * modules/fcntl-h (Makefile.am): Substitute it.
37119         * lib/fcntl.in.h (fcntl): Update declaration.
37120         (F_DUPFD, F_GETFD): New macros, when needed.
37121         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37122         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37123         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37124         we now guarantee.
37125
37126         fcntl: work around cygwin bug in F_DUPFD
37127         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37128         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37129         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37130         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37131         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37132
37133         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37134         * modules/fcntl (Files): List new files.
37135         (configure.ac): Run a test.
37136         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37137         * lib/fcntl.c (rpl_fcntl): Likewise.
37138         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37139         (gl_FCNTL_H): Always replace fcntl.h.
37140         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37141         * lib/fcntl.in.h (fcntl): Declare replacement.
37142         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37143         needed, plus a witness.
37144         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37145         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37146         * tests/test-fcntl.c: New file.
37147         * modules/fcntl-tests: Likewise.
37148
37149         binary-io: avoid potential compilation warning
37150         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37151         directives.
37152
37153         fflush: avoid compilation error on NetBSD
37154         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37155         between off_t and fpos_t, since the latter is sometimes a struct.
37156         * lib/fseeko.c (rpl_fseeko): Likewise.
37157         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37158
37159 2009-12-15  Eric Blake  <ebb9@byu.net>
37160
37161         fcntl-h, stdio, sys_ioctl: fix declarations
37162         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37163         function must not take arguments.
37164         * lib/sys_ioctl.in.h (ioctl): Likewise.
37165         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37166         (open): Add a link warning.
37167
37168 2009-12-15  Jim Meyering  <meyering@redhat.com>
37169
37170         areadlink, areadlink-with-size: relax license to LGPLv2+
37171         * modules/areadlink (License): Relax to LGPLv2+.
37172         * modules/areadlink-with-size (License): Likewise.
37173
37174 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37175             Bruno Haible  <bruno@clisp.org>
37176
37177         *printf: Fix memory leak.
37178         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37179         * lib/vfprintf.c (vfprintf): Likewise.
37180         * lib/dprintf.c (dprintf): Likewise.
37181         * lib/vdprintf.c (vdprintf): Likewise.
37182
37183 2009-12-14  Eric Blake  <ebb9@byu.net>
37184
37185         accept4: adjust module dependencies
37186         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37187
37188         utimens: one more try at avoiding compiler warning
37189         * lib/utimens.c (lutimens): Lower scope of result.
37190
37191 2009-12-13  Bruno Haible  <bruno@clisp.org>
37192
37193         Move the malloc checking from module 'list' to new module 'xlist'.
37194         * modules/xlist: New file.
37195         * lib/gl_xlist.h: New file.
37196         * lib/gl_xlist.c: New file.
37197         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37198         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37199         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37200         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37201         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37202         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37203         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37204         gl_sortedlist_nx_add): New declarations.
37205         (struct gl_list_implementation): Rename and change methods accordingly.
37206         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37207         (gl_list_nx_create): Renamed from gl_list_create.
37208         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37209         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37210         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37211         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37212         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37213         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37214         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37215         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37216         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37217         gl_list_create_empty.
37218         (gl_list_nx_create): Renamed from gl_list_create.
37219         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37220         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37221         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37222         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37223         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37224         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37225         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37226         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37227         * lib/gl_array_list.c: Don't include xalloc.h.
37228         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37229         NULL upon out-of-memory.
37230         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37231         out-of-memory.
37232         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37233         Change return type to 'int'.
37234         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37235         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37236         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37237         upon out-of-memory.
37238         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37239         upon out-of-memory.
37240         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37241         upon out-of-memory.
37242         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37243         upon out-of-memory.
37244         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37245         out-of-memory.
37246         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37247         Update.
37248         (gl_array_list_implementation): Update.
37249         * lib/gl_carray_list.c: Don't include xalloc.h.
37250         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37251         Return NULL upon out-of-memory.
37252         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37253         out-of-memory.
37254         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37255         Change return type to 'int'.
37256         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37257         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37258         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37259         upon out-of-memory.
37260         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37261         upon out-of-memory.
37262         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37263         out-of-memory.
37264         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37265         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37266         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37267         Update.
37268         (gl_carray_list_implementation): Update.
37269         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37270         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37271         gl_linked_create_empty. Return NULL upon out-of-memory.
37272         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37273         out-of-memory.
37274         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37275         Change return type to 'int'. Return -1 upon out-of-memory.
37276         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37277         out-of-memory.
37278         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37279         upon out-of-memory.
37280         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37281         upon out-of-memory.
37282         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37283         NULL upon out-of-memory.
37284         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37285         upon out-of-memory.
37286         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37287         out-of-memory.
37288         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37289         Update.
37290         * lib/gl_linked_list.c: Don't include xalloc.h.
37291         (gl_linked_list_implementation): Update.
37292         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37293         (add_to_bucket): Change return type to 'int'.
37294         (gl_linkedhash_list_implementation): Update.
37295         * lib/gl_anytree_list1.h (free_subtree): New function.
37296         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37297         gl_tree_create_empty. Return NULL upon out-of-memory.
37298         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37299         Change return type to 'int'. Return -1 upon out-of-memory.
37300         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37301         out-of-memory.
37302         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37303         (gl_tree_remove_node): New function, moved here from
37304         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37305         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37306         Update.
37307         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37308         malloc, not xmalloc. Return NULL upon out-of-memory.
37309         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37310         out-of-memory.
37311         (gl_tree_remove_node_from_tree): New function, extracted from
37312         gl_tree_remove_node.
37313         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37314         upon out-of-memory.
37315         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37316         out-of-memory.
37317         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37318         upon out-of-memory.
37319         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37320         upon out-of-memory.
37321         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37322         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37323         not xmalloc. Return NULL upon out-of-memory.
37324         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37325         out-of-memory.
37326         (gl_tree_remove_node_from_tree): New function, extracted from
37327         gl_tree_remove_node.
37328         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37329         upon out-of-memory.
37330         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37331         out-of-memory.
37332         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37333         upon out-of-memory.
37334         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37335         upon out-of-memory.
37336         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37337         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37338         gl_anytree_list1.h before gl_anyavltree_list2.h.
37339         (gl_avltree_list_implementation): Update.
37340         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37341         gl_anytree_list1.h before gl_anyavltree_list2.h.
37342         (gl_rbtree_list_implementation): Update.
37343         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37344         Change return type to 'int'. Return -1 upon out-of-memory. Use
37345         __builtin_expect.
37346         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37347         (gl_avltreehash_list_implementation): Update.
37348         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37349         (gl_rbtreehash_list_implementation): Update.
37350         * modules/array-list (Depends-on): Remove xalloc.
37351         * modules/carray-list (Depends-on): Likewise.
37352         * modules/linked-list (Depends-on): Likewise.
37353         * modules/linkedhash-list (Depends-on): Likewise.
37354         * modules/avltree-list (Depends-on): Likewise.
37355         * modules/rbtree-list (Depends-on): Likewise.
37356         * modules/avltreehash-list (Depends-on): Likewise.
37357         * modules/rbtreehash-list (Depends-on): Likewise.
37358
37359         * modules/xsublist: New file.
37360         * lib/gl_xsublist.h: New file.
37361         * lib/gl_xsublist.c: New file.
37362         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37363         (gl_sublist_nx_create): New declaration.
37364         * lib/gl_sublist.c: Don't include xalloc.h.
37365         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37366         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37367         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37368         Change return type to 'int'. Return -1 upon out-of-memory.
37369         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37370         upon out-of-memory.
37371         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37372         NULL upon out-of-memory.
37373         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37374         upon out-of-memory.
37375         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37376         NULL upon out-of-memory.
37377         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37378         NULL upon out-of-memory.
37379         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37380         upon out-of-memory.
37381         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37382         (gl_sublist_list_implementation): Update.
37383         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37384         upon out-of-memory.
37385         * modules/sublist (Depends-on): Remove xalloc.
37386
37387         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37388         * tests/test-carray_list.c: Likewise.
37389         * tests/test-linked_list.c: Likewise.
37390         * tests/test-linkedhash_list.c: Likewise.
37391         * tests/test-avltree_list.c: Likewise.
37392         * tests/test-rbtree_list.c: Likewise.
37393         * tests/test-avltreehash_list.c: Likewise.
37394         * tests/test-rbtreehash_list.c: Likewise.
37395         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37396         * modules/carray-list-tests (Makefile.am): Likewise.
37397         * modules/linked-list-tests (Makefile.am): Likewise.
37398         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37399         * modules/avltree-list-tests (Makefile.am): Likewise.
37400         * modules/rbtree-list-tests (Makefile.am): Likewise.
37401         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37402         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37403
37404         * NEWS: Mention the changes.
37405
37406         * lib/clean-temp.c: Include gl_xlist.h.
37407         * modules/clean-temp (Depends-on): Add xlist.
37408
37409         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37410         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37411
37412         * tests/test-array_oset.c: Include gl_xlist.h.
37413         * modules/array-oset-tests (Depends-on): Add xlist.
37414
37415         Reported by José E. Marchesi <jemarch@gnu.org>.
37416
37417 2009-12-13  Bruno Haible  <bruno@clisp.org>
37418
37419         Move the malloc checking from module 'oset' to new module 'xoset'.
37420         * modules/xoset: New file.
37421         * lib/gl_xoset.h: New file.
37422         * lib/gl_xoset.c: New file.
37423         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37424         declarations.
37425         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37426         (struct gl_oset_implementation): Rename and change methods accordingly.
37427         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37428         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37429         'int'. Mark as __warn_unused_result__.
37430         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37431         gl_oset_create_empty.
37432         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37433         'int'.
37434         * lib/gl_array_oset.c: Don't include xalloc.h.
37435         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37436         malloc, not xmalloc.
37437         (grow): Change return type to 'int'. Don't call xalloc_die.
37438         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37439         to 'int'.
37440         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37441         'int'.
37442         (gl_array_oset_implementation): Update.
37443         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37444         gl_tree_create_empty.
37445         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37446         'int'.
37447         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37448         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37449         xmalloc.
37450         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37451         not xmalloc.
37452         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37453         xmalloc.
37454         (gl_avltree_oset_implementation): Update.
37455         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37456         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37457         xmalloc.
37458         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37459         not xmalloc.
37460         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37461         xmalloc.
37462         (gl_rbtree_oset_implementation): Update.
37463         * modules/array-oset (Depends-on): Remove xalloc.
37464         * modules/avltree-oset (Depends-on): Likewise.
37465         * modules/rbtree-oset (Depends-on): Likewise.
37466         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37467         * tests/test-avltree_oset.c: Likewise.
37468         * tests/test-rbtree_oset.c: Likewise.
37469         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37470         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37471         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37472         * NEWS: Mention the change.
37473
37474 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37475
37476         maint.mk: allow a project to override release-prep commands
37477         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37478         commands into a new rule.
37479         (release-prep): New rule.
37480         (release-prep-hook): New overridable variable.
37481
37482 2009-12-13  Bruno Haible  <bruno@clisp.org>
37483
37484         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37485
37486 2009-12-13  Jim Meyering  <meyering@redhat.com>
37487
37488         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37489         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37490
37491 2009-12-12  Bruno Haible  <bruno@clisp.org>
37492
37493         duplocale: Tweak.
37494         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37495
37496 2009-12-12  Karl Berry  <karl@gnu.org>
37497
37498         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37499
37500 2009-12-12  Bruno Haible  <bruno@clisp.org>
37501
37502         * m4/po.m4: Undo incorrect untabification.
37503
37504 2009-12-12  Bruno Haible  <bruno@clisp.org>
37505
37506         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37507         * modules/c-strtod (Depends-on): Add locale.
37508         * modules/c-strtold (Depends-on): Likewise.
37509
37510 2009-12-12  Bruno Haible  <bruno@clisp.org>
37511
37512         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37513
37514 2009-12-11  Eric Blake  <ebb9@byu.net>
37515
37516         setenv: relax requirement in light of POSIX ruling
37517         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37518         not NULL.
37519         * tests/test-setenv.c (main): Relax test.
37520         * tests/test-unsetenv.c (main): Likewise.
37521         * doc/posix-functions/setenv.texi (setenv): Document this.
37522         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37523
37524 2009-12-11  Bruno Haible  <bruno@clisp.org>
37525
37526         New module 'fd-safer-flag'.
37527         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37528         * lib/dup-safer.c (dup_safer_flag): Remove function.
37529         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37530         * lib/fd-safer.c (fd_safer_flag): Remove function.
37531         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37532         * modules/cloexec (configure.ac): Drop indicator macro.
37533         * modules/fd-safer-flag: New file.
37534         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37535         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37536         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37537
37538 2009-12-11  Bruno Haible  <bruno@clisp.org>
37539
37540         Tests for module 'nl_langinfo'.
37541         * modules/nl_langinfo-tests: New file.
37542         * tests/test-nl_langinfo.sh: New file.
37543         * tests/test-nl_langinfo.c: New file.
37544
37545         New module 'nl_langinfo'.
37546         * lib/nl_langinfo.c: New file.
37547         * m4/nl_langinfo.m4: New file.
37548         * modules/nl_langinfo: New file.
37549         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37550
37551 2009-12-11  Bruno Haible  <bruno@clisp.org>
37552
37553         Tests for module 'langinfo'.
37554         * modules/langinfo-tests: New file.
37555         * tests/test-langinfo.c: New file.
37556
37557         New module 'langinfo'.
37558         * lib/langinfo.in.h: New file.
37559         * m4/langinfo_h.m4: New file.
37560         * modules/langinfo: New file.
37561         * doc/posix-headers/langinfo.texi: Mention the new module.
37562
37563 2009-12-11  Bruno Haible  <bruno@clisp.org>
37564
37565         * lib/config.charset: Untabify.
37566
37567 2009-12-11  Bruno Haible  <bruno@clisp.org>
37568
37569         * modules/unistd-safer (configure.ac): Drop indicator macro.
37570
37571 2009-12-11  Bruno Haible  <bruno@clisp.org>
37572
37573         Move pipe2-safer code to its own file.
37574         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37575         * lib/pipe-safer.c (pipe2_safer): Remove function.
37576         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37577         (Makefile.am): Add it to lib_SOURCES.
37578
37579 2009-12-10  Bruno Haible  <bruno@clisp.org>
37580
37581         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37582
37583 2009-12-10  Bruno Haible  <bruno@clisp.org>
37584
37585         Declare which arguments expect non-NULL values, for GCC and clang.
37586         * build-aux/arg-nonnull.h: New file.
37587         * modules/arg-nonnull: New file.
37588         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37589         (inet_ntop, inet_pton): Use it.
37590         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37591         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37592         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37593         (open, openat): Use it.
37594         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37595         (fnmatch): Use it.
37596         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37597         (getopt, getopt_long, getopt_long_only): Use it.
37598         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37599         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37600         Use it.
37601         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37602         (iconv_open): Use it.
37603         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37604         (strtoimax, strtoumax): Use it.
37605         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37606         (duplocale): Use it.
37607         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37608         (frexp, frexpl): Use it.
37609         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37610         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37611         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37612         (tsearch, tfind, tdelete, twalk): Use it.
37613         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37614         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37615         sigpending): Use it.
37616         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37617         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37618         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37619         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37620         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37621         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37622         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37623         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37624         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37625         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37626         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37627         Use it.
37628         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37629         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37630         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37631         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37632         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37633         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37634         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37635         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37636         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37637         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37638         strtoull, unsetenv): Use it.
37639         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37640         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37641         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37642         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37643         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37644         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37645         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37646         (strcasecmp, strncasecmp): Use it.
37647         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37648         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37649         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37650         rpl_setsockopt): Use it.
37651         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37652         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37653         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37654         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37655         (gettimeofday): Use it.
37656         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37657         (times): Use it.
37658         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37659         (uname): Use it.
37660         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37661         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37662         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37663         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37664         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37665         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37666         unlinkat, write): Use it.
37667         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37668         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37669         * lib/argv-iter.h: Include arg-nonnull.h.
37670         (_ATTRIBUTE_NONNULL_): Remove macro.
37671         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37672         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37673         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37674         optimization.
37675         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37676         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37677         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37678         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37679         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37680         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37681         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37682         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37683         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37684         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37685         * modules/dirent (Depends-on): Add arg-nonnull.
37686         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37687         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37688         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37689         * modules/fnmatch (Depends-on): Add arg-nonnull.
37690         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37691         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37692         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37693         * modules/glob (Depends-on): Add arg-nonnull.
37694         (Makefile.am): Insert arg-nonnull.h into glob.h.
37695         * modules/iconv_open (Depends-on): Add arg-nonnull.
37696         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37697         * modules/inttypes (Depends-on): Add arg-nonnull.
37698         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37699         * modules/locale (Depends-on): Add arg-nonnull.
37700         (Makefile.am): Insert arg-nonnull.h into locale.h.
37701         * modules/math (Depends-on): Add arg-nonnull.
37702         (Makefile.am): Insert arg-nonnull.h into math.h.
37703         * modules/netdb (Depends-on): Add arg-nonnull.
37704         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37705         * modules/search (Depends-on): Add arg-nonnull.
37706         (Makefile.am): Insert arg-nonnull.h into search.h.
37707         * modules/signal (Depends-on): Add arg-nonnull.
37708         (Makefile.am): Insert arg-nonnull.h into signal.h.
37709         * modules/spawn (Depends-on): Add arg-nonnull.
37710         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37711         * modules/stdio (Depends-on): Add arg-nonnull.
37712         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37713         * modules/stdlib (Depends-on): Add arg-nonnull.
37714         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37715         * modules/string (Depends-on): Add arg-nonnull.
37716         (Makefile.am): Insert arg-nonnull.h into string.h.
37717         * modules/strings (Depends-on): Add arg-nonnull.
37718         (Makefile.am): Insert arg-nonnull.h into strings.h.
37719         * modules/sys_socket (Depends-on): Add arg-nonnull.
37720         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37721         * modules/sys_stat (Depends-on): Add arg-nonnull.
37722         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37723         * modules/sys_time (Depends-on): Add arg-nonnull.
37724         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37725         * modules/sys_times (Depends-on): Add arg-nonnull.
37726         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37727         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37728         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37729         * modules/time (Depends-on): Add arg-nonnull.
37730         (Makefile.am): Insert arg-nonnull.h into time.h.
37731         * modules/unistd (Depends-on): Add arg-nonnull.
37732         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37733         * modules/wchar (Depends-on): Add arg-nonnull.
37734         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37735         * modules/argv-iter (Depends-on): Add arg-nonnull.
37736         * tests/test-canonicalize.c (null_ptr): New function.
37737         (main): Use it.
37738         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37739         (main): Use it.
37740         * tests/test-memmem.c (null_ptr): New function.
37741         (main): Use it.
37742         Reported by Jim Meyering.
37743
37744 2009-12-10  Bruno Haible  <bruno@clisp.org>
37745
37746         Use spaces for indentation, not tabs.
37747         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37748         * m4/*.m4: Untabify.
37749         * build-aux/*.h: Untabify.
37750         * tests/**/*.[hc]: Untabify.
37751         * README: New section "Indent with spaces, not TABs", based on
37752         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37753         * NEWS: Mention the change.
37754
37755 2009-12-10  Bruno Haible  <bruno@clisp.org>
37756
37757         pty test: Fix link error.
37758         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37759         test_pty_LDADD.
37760
37761 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37762
37763         * modules/pty: New file.
37764         * modules/pty-tests: New file.
37765         * m4/pty.m4: New file.
37766         * tests/test-pty.c: New file.
37767         * doc/glibc-headers/pty.texi: Modified.
37768         * doc/glibc-functions/forkpty.texi: Modified.
37769         * doc/glibc-functions/openpty.texi: Modified.
37770
37771 2009-12-10  Bruno Haible  <bruno@clisp.org>
37772
37773         Avoid syntax error in C++ mode.
37774         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37775
37776 2009-12-10  Bruno Haible  <bruno@clisp.org>
37777
37778         Use sed with option -e.
37779         * gnulib-tool (func_version, func_emit_copyright_notice,
37780         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37781         option -e to sed.
37782         * modules/link-warning (Makefile.am): Likewise.
37783
37784 2009-12-10  Jim Meyering  <meyering@redhat.com>
37785
37786         mgetgroups: do not write bytes beyond end of malloc'd buffer
37787         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37788         username, we call getgroups with a one-element-shorter buffer,
37789         but still told it the length was original, max_n_groups.
37790
37791 2009-12-09  Eric Blake  <ebb9@byu.net>
37792
37793         cloexec: relax license
37794         * modules/cloexec (Maintainer): Add myself.
37795         (License): Use LGPL, not GPL.
37796
37797         link-warning: optimize generation
37798         * modules/link-warning (Makefile.am): Reduce process usage.
37799
37800 2009-12-09  Bruno Haible  <bruno@clisp.org>
37801
37802         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37803         workaround was added on 2009-11-17.
37804
37805 2009-12-09  Jim Meyering  <meyering@redhat.com>
37806             Bruno Haible  <bruno@clisp.org>
37807
37808         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37809         * modules/link-warning (Makefile.am): Make the comment-removing sed
37810         command more robust in the face of bootstrap-prepended comment lines.
37811
37812 2009-12-09  Bruno Haible  <bruno@clisp.org>
37813
37814         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37815         most one group.
37816
37817 2009-12-09  Simon Josefsson <simon@josefsson.org>
37818             Bruno Haible  <bruno@clisp.org>
37819
37820         * build-aux/link-warning.h: Add copyright notice.
37821         * modules/link-warning (Makefile.am): Generate link-warning.h from
37822         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37823         * NEWS: Mention change in link-warning module.
37824         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37825         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37826         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37827         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37828         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37829         * modules/math (Makefile.am): Add dependency to math.h.
37830         * modules/search (Makefile.am): Add dependency to search.h.
37831         * modules/signal (Makefile.am): Add dependency to signal.h.
37832         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37833         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37834         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37835         * modules/string (Makefile.am): Add dependency to string.h.
37836         * modules/strings (Makefile.am): Add dependency to strings.h.
37837         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37838         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37839         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37840         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37841         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37842         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37843         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37844         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37845         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37846
37847 2009-12-09  Bruno Haible  <bruno@clisp.org>
37848
37849         fchdir: Optimize away rpl_fstat when possible.
37850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37851         REPLACE_OPEN_DIRECTORY.
37852         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37853
37854 2009-12-09  Bruno Haible  <bruno@clisp.org>
37855
37856         * lib/fchdir.c: Update comment.
37857
37858 2009-12-09  Bruno Haible  <bruno@clisp.org>
37859
37860         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37861
37862 2009-12-08  Eric Blake  <ebb9@byu.net>
37863
37864         fchdir: avoid memory leak on re-registration.
37865         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37866
37867 2009-12-08  Jim Meyering  <meyering@redhat.com>
37868
37869         init.sh: avoid Solaris 10 /bin/sh portability problem
37870         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37871         sourced script:
37872           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37873           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37874           bar
37875         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37876         and two tests used that idiom.
37877         * tests/init.sh: Update suggested usage comments.
37878         (path_prepend_): New function, to be used in place
37879         of the --src-path=DIR option.
37880         (setup_): Move PATH-prepending code into path_prepend_.
37881         * tests/test-pread.sh: Adapt to new usage.
37882         * tests/test-xalloc-die.sh: Likewise.
37883
37884 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37885
37886         * doc/gnulib.texi (Glibc pty.h): Add.
37887         * doc/glibc-functions/forkpty.texi: Add.
37888         * doc/glibc-functions/openpty.texi: Add.
37889         Suggested by Bruno Haible.
37890
37891 2009-12-08  Eric Blake  <ebb9@byu.net>
37892
37893         fchdir: fix logic bugs
37894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37895         * tests/test-fchdir.c (main): Enhance test.
37896         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37897         is in use.
37898
37899         dup2: fix logic bugs
37900         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37901         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37902         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37903         exists.
37904         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37905
37906 2009-12-07  Eric Blake  <ebb9@byu.net>
37907
37908         unlink: fix m4 detection
37909         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37910
37911         unistd-safer: add unit test
37912         * modules/unistd-safer-tests: New file.
37913         * tests/test-dup-safer.c: Likewise.
37914         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37915         * tests/test-dup2.c (setmode): Likewise.
37916         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37917
37918         cloexec: preserve text vs. binary across dup_cloexec
37919         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37920         mode.
37921         * modules/dup2-tests (Depends-on): Add binary-io.
37922         * modules/cloexec-tests (Depends-on): Likewise.
37923         * tests/test-dup2.c (setmode, is_mode): New helpers.
37924         (main): Add tests that translation mode is preserved.
37925         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37926         Reported by Bruno Haible.
37927
37928         mgetgroups: reduce duplicate listings
37929         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37930         resulting array.
37931         * tests/test-chown.h (test_chown): Simplify client.
37932         * tests/test-lchown.h (test_lchown): Likewise.
37933
37934 2009-12-06  Bruno Haible  <bruno@clisp.org>
37935
37936         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37937         value.
37938
37939 2009-12-06  Bruno Haible  <bruno@clisp.org>
37940
37941         * lib/progname.c: Include stdio.h, stdlib.h.
37942         (set_program_name): Reject a NULL argument.
37943
37944 2009-12-05  Eric Blake  <ebb9@byu.net>
37945
37946         pipe2-safer: new module
37947         * modules/pipe2-safer: New file.
37948         * lib/unistd-safer.h (pipe2_safer): New prototype.
37949         * lib/unistd--.h (pipe2): New wrapper.
37950         * lib/pipe-safer.c (pipe2_safer): New function.
37951         * modules/pipe (Depends-on): Add pipe2-safer.
37952         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37953
37954         stdlib-safer: preserve cloexec flag for mkostemp[s]
37955         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37956         fd_safer_flag.
37957
37958         unistd-safer: allow preservation of cloexec status via flag
37959         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37960         prototypes.
37961         * lib/dup-safer.c (dup_safer_flag): New function.
37962         * lib/fd-safer.c (fd_safer_flag): Likewise.
37963         * modules/cloexec (configure.ac): Set witness.
37964
37965         test-dup2: enhance test
37966         * modules/dup2-tests (Depends-on): Add cloexec.
37967         * tests/test-dup2.c (main): Enhance test.
37968
37969         cloexec: add dup_cloexec
37970         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37971         header and comments.
37972         * lib/cloexec.c (set_cloexec_flag): Add comments.
37973         (dup_cloexec): New function, with mingw implementation borrowed
37974         from...
37975         * lib/w32spawn.h (dup_noinherit): ...here.
37976         * modules/execute (Depends-on): Add cloexec.
37977         * modules/pipe (Depends-on): Likewise.
37978         * modules/cloexec (Depends-on): Add dup2.
37979         * modules/cloexec-tests (Files): New file.
37980         * tests/test-cloexec.c: Likewise.
37981
37982         test-xalloc-die: fix test for mingw
37983         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37984         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37985         directory and .exe suffix off argv[0] output.
37986
37987         test-fseeko: fix test for mingw
37988         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37989         than undefining fseek, so test will pass on mingw.
37990
37991 2009-12-05  Bruno Haible  <bruno@clisp.org>
37992
37993         * lib/progname.h (set_program_name): Clarify specification.
37994         * lib/progname.c (set_program_name): Likewise.
37995         Reported by Jim Meyering.
37996
37997 2009-12-05  Jim Meyering  <meyering@redhat.com>
37998
37999         maint.mk: backslash-escape parens in default regexp
38000         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38001         backslash-escape the literal parentheses.
38002
38003         maint.mk: news-date-check: use grep -E
38004         * top/maint.mk (today): Define a Make variable, not a...
38005         (news-date-check): ...shell variable.
38006         (news-date-regexp): Use the Make variable.
38007         Use grep's -E option.  Change the failing diagnostic to mention
38008         the variable, $(news-date-regexp).
38009
38010 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38011
38012         maintainer-makefile: allow customization of NEWS entry format
38013         * top/maint.mk (news-date-regexp): New overridable variable.
38014         (news-date-check): Use it.
38015
38016 2009-12-04  Eric Blake  <ebb9@byu.net>
38017
38018         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38019         * lib/mgetgroups.h (xgetgroups): New prototype.
38020         * lib/mgetgroups.c (xgetgroups): New wrapper.
38021         (mgetgroups): Handle ENOSYS.
38022         * modules/mgetgroups (Depends-on): Add realloc.
38023         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38024
38025         mgetgroups: avoid argument promotion issues with -1
38026         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38027         for invalid gid_t.
38028         * tests/test-chown.h (getegid, test_chown): Likewise.
38029         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38030
38031 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38032
38033         exclude: Fix header file problems.
38034         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38035
38036 2009-12-01  Jim Meyering  <meyering@redhat.com>
38037
38038         fts: fts_open: do not let an empty string cause immediate failure
38039         This is required in support of GNU rm, for which the command
38040         "rm A '' B" must process and remove both A and B, in spite of
38041         the empty string argument.
38042         * lib/fts.c (fts_open): Do not let the presence of an empty string
38043         cause fts_open to fail immediately.  Most fts-using tools must be
38044         able to process all arguments, in order, and can be expected to
38045         diagnose such arguments themselves.
38046
38047 2009-11-30  Eric Blake  <ebb9@byu.net>
38048
38049         utimens: fix compilation error
38050         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38051         Declare variable at right scope.
38052
38053 2009-11-29  Jim Meyering  <meyering@redhat.com>
38054
38055         bootstrap: handle perl-5.11's changed --version output
38056         * build-aux/bootstrap (get_version): Handle perl separately,
38057         since perl-5.11's --version output is different.
38058
38059 2009-11-28  Jim Meyering  <meyering@redhat.com>
38060
38061         userspec: depend on the inttostr module, too
38062         * modules/userspec (Depends-on): Add inttostr.
38063
38064         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38065         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38066         number of MAXUID when it evaluates to (uid_t) -1.
38067         Likewise for group ID.  Reported by Matt McCutchen in
38068         <http://savannah.gnu.org/bugs/?28113>
38069
38070         userspec: reformat to use spaces, not TABs
38071         * lib/userspec.c: Expand TABs to spaces.
38072         Add Emacs' "indent-tabs-mode: nil" hint.
38073
38074 2009-11-27  Eric Blake  <ebb9@byu.net>
38075
38076         getopt-gnu: flush out another BSD bug
38077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38078         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38079         flush out BSD bug.
38080         * tests/test-getopt.h (test_getopt): End lists with NULL.
38081         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38082         (test_getopt_long_posix): Enhance test.
38083         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38084         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38085         getopt-gnu.
38086         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38087         Likewise.
38088
38089 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38090
38091         * modules/idpriv-droptemp-tests (Notice): Fix text.
38092
38093 2009-11-27  Jim Meyering  <meyering@redhat.com>
38094
38095         test-xalloc-die: avoid spurious failure due to libtool argv difference
38096         In a libtool-enabled project, this test would fail due to a difference
38097         in the emitted program name, e.g.,
38098         -test-xalloc-die: memory exhausted
38099         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38100         Use program to avoid that.
38101         * modules/xalloc-die-tests (Depends-on): Add progname.
38102         * tests/test-xalloc-die.c: Include progname.h".
38103         (program_name): Remove decl.
38104         (main): Call set_program_name.
38105         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38106
38107 2009-11-26  Richard Jones  <rjones@redhat.com>
38108
38109         w32sock: leave win32 error in place.
38110         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38111
38112 2009-11-26  Eric Blake  <ebb9@byu.net>
38113
38114         init.sh: suggest to use skip_ and fail_ functions in comments
38115         * tests/init.sh: Add a sentence.
38116
38117 2009-11-25  Bruno Haible  <bruno@clisp.org>
38118
38119         init.sh: add documentation in comments
38120         * tests/init.sh: Add some developer and user documentation.
38121
38122 2009-11-26  Jim Meyering  <meyering@redhat.com>
38123
38124         init.sh: accommodate even those who specify bogus srcdir manually
38125         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38126         configure-time tests to be sanitized, so that there is no need to
38127         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38128         (with no double quotes) suffices.  However, since tests may be
38129         invoked manually, and since you may explicitly set srcdir to the
38130         name of a directory containing spaces, do quote its uses here.
38131         * tests/test-pread.sh: Likewise.
38132         Suggested by Bruno Haible.
38133
38134         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38135         * tests/test-pread.sh: Write no data into the pipe, because
38136         test-pread actually reads none.  This avoids a diagnostic,
38137         "bash: echo: write error: Broken pipe", that arises in the unusual
38138         event something is ignoring SIGPIPE, and might be interpreted
38139         as some sort of failure.  Reported by Bruno Haible.
38140
38141 2009-11-25  Jim Meyering  <meyering@redhat.com>
38142
38143         test-pread: cover failure with ESPIPE and EINVAL
38144         * tests/test-pread.c (main): Test for failure, too.
38145         * tests/test-pread.sh: Invoke with stdin on a pipe.
38146         Suggested by Eric Blake.
38147
38148         pread: improvement and fix
38149         * modules/pread (Depends-on): Depend on lseek, for portability to
38150         e.g., mingw.  Suggested by Eric Blake.
38151         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38152
38153         unistd.in.h: correct declaration of pread
38154         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38155         Reported by Richard W.M. Jones.
38156
38157         test-pread.sh: distribute the test script
38158         * modules/pread-tests (Files): Include test-pread.sh.
38159
38160         test-pread.sh: clean up
38161         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38162         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38163         That is unnecessary, since it's always ".".
38164         Suggestion from Eric Blake.
38165
38166         test-pread.sh: make executable
38167         * tests/test-pread.sh: Set executable bit.
38168         Reported by Eric Blake.
38169
38170         correct typo in test-pread.sh
38171         * tests/test-pread.sh: Add #! line.
38172
38173         test pread
38174         * tests/test-pread.c: New file.
38175         * tests/test-pread.sh: Likewise.
38176         * modules/pread-tests: Likewise.
38177
38178         pread: new module
38179         * modules/pread: New file.
38180         * lib/unistd.in.h (pread): Define/declare.
38181         * lib/pread.c (pread): New file.
38182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38183         * modules/unistd (Makefile.am): Substitute witnesses.
38184         * doc/posix-functions/pread.texi (pread): Update.
38185         * MODULES.html.sh: Add pread.
38186
38187 2009-11-25  Jim Meyering  <meyering@redhat.com>
38188
38189         tests/init.sh: new file to be used via most *.sh tests
38190         * tests/init.sh: New file.
38191
38192 2009-11-25  Eric Blake  <ebb9@byu.net>
38193
38194         utimens: work around older Linux failure with symlinks
38195         * lib/utimens.c (lutimensat_works_really): New variable.
38196         (fdutimens, lutimens): Use it to manage kernels that support
38197         nanosecond times on files, but not on symlinks.
38198         Reported by OndÅ™ej Vašík.
38199
38200         utimes: fix configure grammar
38201         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38202
38203 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38204
38205         regex: Fix fastmap for multibyte character ranges.
38206         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38207         characters when a multibyte character range is included.
38208
38209 2009-11-22  Andy Wingo  <wingo@pobox.com>
38210
38211         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38212         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38213
38214 2009-11-24  Bruno Haible  <bruno@clisp.org>
38215
38216         doc: Most *_l functions exist in MacOS X 10.5.
38217         * doc/posix-functions/duplocale.texi: Update platforms list.
38218         * doc/posix-functions/freelocale.texi: Likewise.
38219         * doc/posix-functions/newlocale.texi: Likewise.
38220         * doc/posix-functions/uselocale.texi: Likewise.
38221         * doc/posix-functions/isalnum_l.texi: Likewise.
38222         * doc/posix-functions/isalpha_l.texi: Likewise.
38223         * doc/posix-functions/isblank_l.texi: Likewise.
38224         * doc/posix-functions/iscntrl_l.texi: Likewise.
38225         * doc/posix-functions/isdigit_l.texi: Likewise.
38226         * doc/posix-functions/isgraph_l.texi: Likewise.
38227         * doc/posix-functions/islower_l.texi: Likewise.
38228         * doc/posix-functions/isprint_l.texi: Likewise.
38229         * doc/posix-functions/ispunct_l.texi: Likewise.
38230         * doc/posix-functions/isspace_l.texi: Likewise.
38231         * doc/posix-functions/isupper_l.texi: Likewise.
38232         * doc/posix-functions/iswalnum_l.texi: Likewise.
38233         * doc/posix-functions/iswalpha_l.texi: Likewise.
38234         * doc/posix-functions/iswblank_l.texi: Likewise.
38235         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38236         * doc/posix-functions/iswctype_l.texi: Likewise.
38237         * doc/posix-functions/iswdigit_l.texi: Likewise.
38238         * doc/posix-functions/iswgraph_l.texi: Likewise.
38239         * doc/posix-functions/iswlower_l.texi: Likewise.
38240         * doc/posix-functions/iswprint_l.texi: Likewise.
38241         * doc/posix-functions/iswpunct_l.texi: Likewise.
38242         * doc/posix-functions/iswspace_l.texi: Likewise.
38243         * doc/posix-functions/iswupper_l.texi: Likewise.
38244         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38245         * doc/posix-functions/isxdigit_l.texi: Likewise.
38246         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38247         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38248         * doc/posix-functions/strcoll_l.texi: Likewise.
38249         * doc/posix-functions/strfmon_l.texi: Likewise.
38250         * doc/posix-functions/strftime_l.texi: Likewise.
38251         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38252         * doc/posix-functions/strxfrm_l.texi: Likewise.
38253         * doc/posix-functions/tolower_l.texi: Likewise.
38254         * doc/posix-functions/toupper_l.texi: Likewise.
38255         * doc/posix-functions/towctrans_l.texi: Likewise.
38256         * doc/posix-functions/towlower_l.texi: Likewise.
38257         * doc/posix-functions/towupper_l.texi: Likewise.
38258         * doc/posix-functions/wcscoll_l.texi: Likewise.
38259         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38260         * doc/posix-functions/wctrans_l.texi: Likewise.
38261         * doc/posix-functions/wctype_l.texi: Likewise.
38262         * doc/glibc-functions/strptime_l.texi: Likewise.
38263         * doc/glibc-functions/strtod_l.texi: Likewise.
38264         * doc/glibc-functions/strtof_l.texi: Likewise.
38265         * doc/glibc-functions/strtol_l.texi: Likewise.
38266         * doc/glibc-functions/strtold_l.texi: Likewise.
38267         * doc/glibc-functions/strtoll_l.texi: Likewise.
38268         * doc/glibc-functions/strtoul_l.texi: Likewise.
38269         * doc/glibc-functions/strtoull_l.texi: Likewise.
38270         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38271         * doc/glibc-functions/wcstod_l.texi: Likewise.
38272         * doc/glibc-functions/wcstof_l.texi: Likewise.
38273         * doc/glibc-functions/wcstol_l.texi: Likewise.
38274         * doc/glibc-functions/wcstold_l.texi: Likewise.
38275         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38276         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38277         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38278
38279 2009-11-24  Bruno Haible  <bruno@clisp.org>
38280
38281         duplocale: Fix logic bug.
38282         * lib/duplocale.c: Don't include <langinfo.h>.
38283         (_NL_LOCALE_NAME): Remove macro.
38284         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38285         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38286
38287 2009-11-23  Jim Meyering  <meyering@redhat.com>
38288
38289         test-update-copyright: don't hard-code /usr/bin/perl
38290         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38291         perl to print the current year.  Gilles Espinasse reported that
38292         the replaced use of perl was hard-coded as /usr/bin/perl.
38293
38294 2009-11-23  Bruno Haible  <bruno@clisp.org>
38295
38296         duplocale: Add support for glibc 2.3.x.
38297         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38298
38299 2009-11-22  Bruno Haible  <bruno@clisp.org>
38300
38301         vasnprintf: Tiny optimization.
38302         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38303         MacOS X.
38304
38305 2009-11-22  Bruno Haible  <bruno@clisp.org>
38306
38307         Tests for module 'duplocale'.
38308         * modules/duplocale-tests: New file.
38309         * tests/test-duplocale.c: New file.
38310
38311         New module 'duplocale'.
38312         * m4/duplocale.m4: New file.
38313         * lib/locale.in.h (duplocale): New declaration.
38314         * lib/duplocale.c: New file.
38315         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38316         gl_LOCALE_H_DEFAULTS): New macros.
38317         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38318         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38319         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38320         REPLACE_DUPLOCALE.
38321         * modules/duplocale: New file.
38322         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38323
38324 2009-11-22  Bruno Haible  <bruno@clisp.org>
38325
38326         * modules/locale-tests (configure.ac): Test for newlocale function.
38327         * tests/test-locale.c: When the system has extended locale functions,
38328         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38329
38330         locale: Make locale_t available when possible.
38331         * lib/locale.in.h: Include <xlocale.h> when it exists.
38332         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38333         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38334         * modules/locale (Depends-on): Add extensions.
38335         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38336         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38337
38338 2009-11-22  Bruno Haible  <bruno@clisp.org>
38339
38340         Add comments.
38341         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38342         invocation.
38343         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38344         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38345         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38346
38347 2009-11-22  Bruno Haible  <bruno@clisp.org>
38348
38349         error: account for the possibility of freopen (stdout).
38350         * lib/error.c: Include <unistd.h>.
38351         (flush_stdout): New function, extracted from error and error_at_line.
38352         Determine stdout's fd dynamically.
38353         (error, error_at_line): Invoke flush_stdout.
38354         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38355         * modules/error (Depends-on): Add unistd.
38356
38357 2009-11-22  Bruno Haible  <bruno@clisp.org>
38358
38359         diffseq: Add comment.
38360         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38361
38362 2009-11-22  Jim Meyering  <meyering@redhat.com>
38363
38364         c-stack: avoid defining an unused static function
38365         * lib/c-stack.c (find_stack_direction): Do not define this function
38366         when it will not be used.
38367
38368         diffseq: avoid spurious gcc warnings
38369         * lib/diffseq.h (IF_LINT2): Define.
38370         (compareseq): Use it to initialize two members of "part".
38371         This avoids two used-uninitialized warnings.
38372
38373 2009-11-21  Jim Meyering  <meyering@redhat.com>
38374
38375         c-stack: avoid "ignoring return value of `write'" warning
38376         * lib/c-stack.c: Include "ignore-value.h".
38377         (die): Explicitly ignore each write return value.
38378         * modules/c-stack (Depends-on): Add ignore-value.
38379
38380 2009-11-21  Bruno Haible  <bruno@clisp.org>
38381
38382         diffseq: reduce scope of variable 'best'.
38383         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38384         variable, earlier used for two different purposes.
38385
38386 2009-11-21  Jim Meyering  <meyering@redhat.com>
38387
38388         diffseq: remove useless assignment to "best"
38389         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38390         assignment.  At that point "best" is already guaranteed to be zero.
38391
38392 2009-11-20  Eric Blake  <ebb9@byu.net>
38393
38394         build: mention ftp redirector in release announcements
38395         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38396         values that used to come from cfg.mk; mention FTP redirect URL.
38397         * build-aux/announce-gen: Mention the mirror list.
38398         Suggested by Karl Berry.
38399
38400         nanosleep: improve port to mingw
38401         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38403         LIB_NANOSLEEP, but only when needed.
38404         * modules/select (Link): Document LIBSOCKET.
38405         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38406         enough.
38407
38408         nanosleep: work around cygwin bug
38409         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38410         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38411         bug.
38412         (getnow): Delete, not needed.
38413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38414         LIB_CLOCK_GETTIME.
38415         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38416         clock-time, gettime.
38417         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38418         bug.
38419         * modules/nanosleep-tests: New test.
38420         * tests/test-nanosleep.c: New file.
38421
38422         sleep: work around cygwin bug
38423         * lib/sleep.c (rpl_sleep): Work around the bug.
38424         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38425         (gl_PREREQ_SLEEP): Delete unused macro.
38426         * modules/sleep (Depends-on): Add verify.
38427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38428         * modules/unistd (Makefile.am): Substitute witness.
38429         * lib/unistd.in.h (sleep): Update prototype.
38430         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38431         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38432         * modules/sleep-tests (Depends-on): Check for alarm.
38433
38434 2009-11-20  Jim Meyering  <meyering@redhat.com>
38435
38436         maint.mk: improve sc_prohibit_magic_number_exit
38437         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38438         so it does not match uses like System.exit(1).
38439         Add comments showing how to correct all offenders.
38440
38441 2009-11-19  Eric Blake  <ebb9@byu.net>
38442
38443         xalloc-die-tests: add missing library
38444         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38445
38446         test-xvasprintf: silence compiler warnings
38447         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38448         empty string from gcc.
38449
38450 2009-11-19  Jim Meyering  <meyering@redhat.com>
38451
38452         xfreopen: new module, from coreutils
38453         * modules/xfreopen: New module.
38454         * lib/xfreopen.c: New file.
38455         * lib/xfreopen.h: New file.
38456         * MODULES.html.sh (File stream based Input/Output"): Add it.
38457
38458 2009-11-19  Eric Blake  <ebb9@byu.net>
38459
38460         manywarnings: depend on warnings
38461         * modules/manywarnings (Depends-on): Add warnings.
38462
38463         build: avoid compiler warnings
38464         * lib/select.c (rpl_select): Delete unused variable.
38465         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38466
38467 2009-11-18  Eric Blake  <ebb9@byu.net>
38468
38469         tests: avoid false negative with --with-packager
38470         * tests/test-version-etc.sh: Discard packager information.
38471         * tests/test-argp-version-etc-1.sh: Likewise.
38472         Reported by Mike Frysinger.
38473
38474         utimens: fix regression on Solaris
38475         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38476         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38477         can only change fd timestamps via futimesat.  Instead, use an
38478         additional witness macro to avoid BSD bug.
38479         Reported by Jim Meyering.
38480
38481 2009-11-17  Eric Blake  <ebb9@byu.net>
38482
38483         usleep: use it to simplify tests
38484         * modules/stat-time-tests (Depends-on): Add usleep.
38485         (configure.ac): Drop usleep check.
38486         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38487         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38488         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38489         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38490         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38491         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38492         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38493         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38494         Likewise.
38495         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38496         * tests/test-lchown.h (nap): Likewise.
38497         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38498         * tests/test-stat-time.c (nap): Likewise.
38499         * tests/test-utimens-common.h (nap): Update comments.
38500
38501         usleep: new module
38502         * modules/usleep: New file.
38503         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38504         * lib/usleep.c (usleep): Likewise.
38505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38506         * modules/unistd (Makefile.am): Substitute witnesses.
38507         * lib/unistd.in.h (usleep): Add declaration.
38508         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38509         * MODULES.html.sh (Date and time): Likewise.
38510         * modules/usleep-tests (Depends-on): New test.
38511         * tests/test-usleep.c: New file.
38512
38513         chown: work around OpenBSD bug
38514         * lib/chown.c (rpl_chown): Work around the bug.
38515         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38516         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38517         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38518         * modules/chown (Depends-on): Add stdbool.
38519         * modules/lchown (Depends-on): Likewise.
38520         * doc/posix-functions/chown.texi (chown): Document the bug.
38521         * doc/posix-functions/lchown.texi (lchown): Likewise.
38522         * tests/test-lchown.h (test_chown): Relax test.
38523
38524         mkstemp: avoid conflict with C++ keyword template
38525         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38526         * lib/mkostemp.c (mkostemp): Likewise.
38527         * lib/mkostemps.c (mkostemps): Likewise.
38528         * lib/mkstemp.c (mkstemp): Likewise.
38529         * lib/mkstemps.c (mkstemps): Likewise.
38530
38531         xalloc-die-tests: optimize
38532         * tests/test-xalloc-die.sh: Reduce number of processes.
38533
38534 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38535
38536         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38537         patch from ludo@gnu.org (Ludovic Courtès).
38538
38539 2009-11-17  Jim Meyering  <meyering@redhat.com>
38540
38541         version-etc: use proper license string
38542         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38543         * modules/version-etc-fsf: Likewise.
38544
38545 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38546
38547         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38548         printed to stdout.  Deal with EOL differences.
38549
38550 2009-11-17  Eric Blake  <ebb9@byu.net>
38551
38552         unsetenv: work around Solaris bug
38553         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38554         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38555         Reported by Jim Meyering.
38556
38557         vasnprintf: avoid compiler warnings
38558         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38559         variables.
38560         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38561
38562 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38563
38564         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38565         settings since xalloc-die is no longer the self test,
38566         xalloc-die.sh is.
38567
38568 2009-11-17  Jim Meyering  <meyering@redhat.com>
38569
38570         test-xalloc-die.sh: make the code agree with the commit log
38571         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38572         at the end, just in case you happen to have a test-xalloc-die
38573         program in some other PATH directory.
38574
38575         test-xalloc-die.sh: fix a portability bug
38576         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38577         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38578         Otherwise, argv[0] (as often seen in diagnostics) would be too
38579         system-dependent, sometimes with, and sometimes without the leading "./".
38580
38581         version-etc-fsf: relax license to LGPLv3+
38582         * modules/version-etc-fsf (License): Relax license.
38583
38584 2009-11-16  Eric Blake  <ebb9@byu.net>
38585
38586         xalloc-die-tests: avoid printing null pointer
38587         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38588         shell script.
38589         * tests/test-xalloc-die.c (program_name): Declare.
38590         * tests/test-xalloc-die.sh (tmpfiles): New file.
38591
38592         setenv, unsetenv: work around various bugs
38593         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38594         (setenv) [HAVE_SETENV]: Work around bugs.
38595         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38596         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38597         for bugs.
38598         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38599         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38601         * modules/stdlib (Makefile.am): Update substitutions.
38602         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38603         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38604         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38605         * modules/setenv-tests: New test.
38606         * modules/unsetenv-tests: Likewise.
38607         * tests/test-setenv.c: New file.
38608         * tests/test-unsetenv.c: Likewise.
38609
38610 2009-11-16  Jim Meyering  <meyering@redhat.com>
38611
38612         version-etc: relax license to LGPLv3+
38613         * modules/version-etc (License): Relax license.
38614
38615         better AC_REQUIRE expanded-before-required-warning avoidance
38616         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38617         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38618         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38619         which is no longer needed.
38620
38621 2009-11-16  Eric Blake  <ebb9@byu.net>
38622
38623         test-freading: clean up temporary file
38624         * tests/test-freading.c (main): Remove file on success, and use
38625         ASSERT more liberally.
38626         Reported by Jim Meyering.
38627
38628 2009-11-16  Jim Meyering  <meyering@redhat.com>
38629
38630         avoid new AC_REQUIRE expanded-before-required warnings
38631         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38632         merely using it.
38633         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38634         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38635
38636 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38637
38638         * tests/test-xalloc-die.c: New file.
38639         * modules/xalloc-die-tests: New file.
38640         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38641         XFAIL_TESTS so it can be appended by modules.
38642
38643 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38644
38645         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38646         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38647
38648 2009-11-14  Eric Blake  <ebb9@byu.net>
38649
38650         fnmatch: avoid compiler warning
38651         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38652         to silence compiler warning about mismatch signedness in ?:.
38653         Reported by Robert Millan.
38654
38655         intprops: add double-inclusion guard
38656         * lib/intprops.h: Allow idempotent includes.
38657         Suggested by Bruce Korb.
38658
38659         openat: detect Solaris fchownat bug
38660         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38661         penalizing glibc chownat when only lchownat is broken.
38662         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38663         trailing slash bugs.
38664         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38665         * modules/openat-tests (Files): Include more files.
38666         (Depends-on): Add mgetgroups, sleep, stat-time.
38667         (configure.ac): Add additional checks.
38668         (Makefile.am): Build new test.
38669         * tests/test-fchownat.c: New file.
38670
38671         lchown: detect Solaris and FreeBSD bug
38672         * lib/lchown.c (rpl_lchown): Work around bug.
38673         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38675         * modules/unistd (Makefile.am): Populate it.
38676         * lib/unistd.in.h (lchown): Update declaration.
38677         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38678         * modules/lchown-tests: New file.
38679         * tests/test-lchown.h (test_lchown): Likewise.
38680         * tests/test-lchown.c (main): Likewise.
38681
38682         chown: detect Solaris and FreeBSD bug
38683         * lib/chown.c (rpl_chown): Work around bug.
38684         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38685         (gl_PREREQ_CHOWN): Delete.
38686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38687         * modules/unistd (Makefile.am): Populate it.
38688         * lib/unistd.in.h (chown): Update declaration.
38689         * lib/lchown.c (chown): Update client.
38690         * modules/lchown (Depends-on): Add lstat.
38691         * doc/posix-functions/chown.texi (chown): Document the bug.
38692         * doc/posix-functions/getgroups.texi (getgroups): Document
38693         getgroups pitfall.
38694         * modules/chown-tests: New file.
38695         * tests/test-chown.h (test_chown): Likewise.
38696         * tests/test-chown.c (main): Likewise.
38697
38698 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38699
38700         gnulib-tool: correctly detect absence of m4 directories
38701         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38702
38703 2009-11-14  Jim Meyering  <meyering@redhat.com>
38704
38705         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38706         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38707
38708 2009-11-14  John W. Eaton  <jwe@gnu.org>
38709
38710         strftime.h: wrap funtion declaration in extern "C" block
38711         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38712
38713 2009-11-13  Eric Blake  <ebb9@byu.net>
38714
38715         getgroups: avoid compiler warning
38716         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38717
38718         getgroups: work around FreeBSD bug
38719         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38720         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38721         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38722         * tests/test-getgroups.c (main): Fix buffer overrun.
38723
38724         getgroups: avoid compilation failure
38725         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38726         * modules/getgroups (Depends-on): Add stdint.
38727
38728 2009-11-13  Jim Meyering  <meyering@redhat.com>
38729
38730         test-getgroups: avoid compilation failure
38731         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38732
38733 2009-11-13  Eric Blake  <ebb9@byu.net>
38734
38735         mgetgroups: new module, taken from coreutils
38736         * modules/mgetgroups: New file.
38737         * lib/mgetgroups.h: Likewise.
38738         * lib/mgetgroups.c (mgetgroups): Likewise.
38739         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38740         * MODULES.html.sh (Users and groups): Mention it.
38741
38742         getgroups: don't expose GETGROUPS_T to user
38743         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38744         an element at a time if GETGROUPS_T is wrong size.
38745         * lib/getugroups.h (getugroups): Change signature.
38746         * lib/unistd.in.h (getgroups): Likewise.
38747         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38748         signature needs fixing.
38749         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38750         AC_TYPE_GETGROUPS.
38751         * modules/group-member (Depends-on): Add getgroups.
38752         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38753         (group_member): Rely on getgroups replacement.
38754         * lib/getugroups.c (getugroups): Use gid_t.
38755         * tests/test-getgroups.c (main): Likewise.
38756         * NEWS: Mention the signature change.
38757         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38758         problem with signature.
38759         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38760         GETGROUPS_T is still useful for setgroups.
38761
38762         getgroups, getugroups: provide stubs for mingw
38763         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38764         * lib/getugroups.c (getugroups): Likewise.
38765         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38766         function.  Modernize replacement scheme.
38767         (gl_PREREQ_GETGROUPS): Delete.
38768         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38769         * modules/getgroups (configure.ac): Declare witness.
38770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38771         * modules/unistd (Depends-on): Substitute witness.
38772         * lib/unistd.in.h (getgroups): Declare replacement.
38773
38774         getgroups: avoid calling exit
38775         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38776         drop xalloc.
38777         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38778         dependencies.
38779         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38780         exiting, in the rare case of malloc failure.
38781
38782         getgroups: fix logic error
38783         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38784         has more than 20 groups.
38785         * modules/getgroups-tests: New test.
38786         * tests/test-getgroups.c: New file.
38787
38788 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38789
38790         * tests/test-base64.c: Improve.
38791
38792 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38793
38794         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38795         Blake <ebb9@byu.net>.
38796
38797 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38798
38799         * tests/test-xvasprintf.c: Add %s%s related checks.
38800
38801 2009-11-12  Eric Blake  <ebb9@byu.net>
38802
38803         version-etc: match standards.texi style
38804         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38805         and use <> only for URLs.
38806
38807 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38808
38809         fts: do not fail on a submount during traversal
38810         * lib/fts.c (fts_build): Read the stat info again after opening
38811         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38812         Original report at http://bugzilla.redhat.com/501848.
38813
38814 2009-11-12  Jim Meyering  <meyering@redhat.com>
38815
38816         bootstrap: sync from coreutils
38817         * build-aux/bootstrap (bootstrap_epilogue): New function.
38818         Use git_modules_config in one more place.  This make bootstrap's
38819         --gnulib-srcdir option more useful for testing.
38820
38821         bootstrap: generalize autoheader check
38822         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38823         AC_CONFIG_HEADERS.
38824
38825 2009-11-11  Eric Blake  <ebb9@byu.net>
38826
38827         mkfifoat: use new modules for Solaris and BSD bugs
38828         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38829         * lib/mkfifoat.c (mknodat): Split...
38830         * lib/mknodat.c (mknodat): ...into new file.
38831         * modules/mkfifoat (Files): Ship new file.
38832         (Depends-on): Add mkfifo, mknod.
38833         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38834         (Depends-on): Add symlink.
38835         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38836         redundant with test_mkfifo.h.
38837         (do_mkfifoat, do_mknodat): New helpers.
38838
38839         mknod: new module
38840         * modules/mknod: New file.
38841         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38842         * lib/mknod.c (mknod): Likewise.
38843         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38844         defaults.
38845         * modules/sys_stat (Makefile.am): Substitute them.
38846         * lib/sys_stat.in.h (mknod): Declare replacement.
38847         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38848         Document it.
38849         * doc/posix-functions/mknod.texi (mknod): Likewise.
38850         * modules/mknod-tests: New test.
38851         * tests/test-mknod.c: Likewise.
38852
38853         mkfifo: new module
38854         * modules/mkfifo: New file.
38855         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38856         * lib/mkfifo.c (mkfifo): Likewise.
38857         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38858         defaults.
38859         * modules/sys_stat (Makefile.am): Substitute them.
38860         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38861         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38862         Document it.
38863         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38864         * modules/mkfifo-tests: New test.
38865         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38866         from test-mkfifoat.c.
38867         * tests/test-mkfifo.c: New file.
38868
38869         readlink: detect FreeBSD bug
38870         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38871         slash on symlink.
38872         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38873         * tests/test-readlink.h (test_readlink): Enhance test.
38874
38875         symlink: detect FreeBSD bug
38876         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38877         slash on symlink.
38878         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38879         * tests/test-symlink.h (test_symlink): Enhance test.
38880
38881 2009-11-10  Eric Blake  <ebb9@byu.net>
38882
38883         link: detect FreeBSD bug
38884         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38885         symlink.
38886         * doc/posix-functions/link.texi (link): Document the bug.
38887         * tests/test-link.h (test_link): Enhance test.
38888         * tests/test-linkat.c (main): Update caller.
38889
38890         unlink, remove: detect FreeBSD bug
38891         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38892         slash on symlink.
38893         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38894         * doc/posix-functions/remove.texi (remove): Likewise.
38895         * tests/test-unlink.h (test_unlink): Enhance test.
38896         * tests/test-remove.c (main): Likewise.
38897
38898 2009-11-09  Eric Blake  <ebb9@byu.net>
38899
38900         rename: detect FreeBSD bug
38901         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38902         slash on symlink.
38903         * modules/renameat-tests (Depends-on): Add filenamecat.
38904         * tests/test-rename.h (test_rename): Allow one more errno.
38905         * tests/test-renameat.c (main): Likewise.
38906         * doc/posix-functions/rename.texi (rename): Document the bug.
38907
38908         open: detect FreeBSD bug
38909         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38910         symlink.
38911         * doc/posix-functions/open.texi (open): Document the bug.
38912         * doc/posix-functions/utimes.texi (utimes): Likewise.
38913         * tests/test-open.h (test_open): Add parameters, and test symlink
38914         handling.
38915         * tests/test-open.c (main): Adjust caller.
38916         * tests/test-fcntl-safer.c (main): Likewise.
38917         * modules/open-tests (Depends-on): Add stdbool, symlink.
38918         * modules/fcntl-safer-tests (Depends-on): Likewise.
38919         * tests/test-openat.c (main): Add test-open tests.
38920
38921         stat: detect FreeBSD bug
38922         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38923         symlink.
38924         * doc/posix-functions/stat.texi (stat): Document the bug.
38925         * tests/test-stat.h (test_stat_func): Add argument.
38926         * tests/test-stat.c (main): Adjust caller.
38927         * tests/test-fstatat.c (main): Likewise.
38928         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38929         Reported by Jim Meyering.
38930
38931 2009-11-09  James Youngman  <jay@gnu.org>
38932
38933         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38934         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38935
38936 2009-11-08  Jim Meyering  <meyering@redhat.com>
38937
38938         utimens: remove invalid futimesat call
38939         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38940         It used the file descriptor of the target file as the DIR_FD
38941         parameter and NULL as the file name.  That caused failure with
38942         errno == EFAULT on FreeBSD-8.0-rc2
38943
38944 2009-11-07  Eric Blake  <ebb9@byu.net>
38945
38946         fflush, freadseek: use fseeko, not fseek
38947         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38948         (clear_ungetc_buffer): Avoid potential problems on large files.
38949         * lib/freadseek.c (freadseek): Likewise.
38950         * modules/freadseek (Depends-on): Add fseeko.
38951         * modules/fseek (configure.ac): Set a witness.
38952         * tests/test-fflush.c (main): Use fseeko.
38953         * tests/test-fpurge.c (fseek): Disable link warning.
38954         * tests/test-freadable.c (fseek): Likewise.
38955         * tests/test-freading.c (fseek): Likewise.
38956         * tests/test-fseeko.c (fseek): Likewise.
38957         * tests/test-ftell.c (fseek): Likewise.
38958         * tests/test-ftello.c (fseek): Likewise.
38959         * tests/test-fwritable.c (fseek): Likewise.
38960         * tests/test-fwriting.c (fseek): Likewise.
38961
38962 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38963
38964         * modules/memchr (Depends-on): Drop getpagesize dependency.
38965
38966 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38967
38968         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38969         Reported by Ludovic Courtès.
38970         * build-aux/pmccabe2html: Improve example usage.
38971         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38972
38973 2009-11-06  Jim Meyering  <meyering@redhat.com>
38974
38975         do-release-commit-and-tag: New module.
38976         Automate the release-commit and tag process.
38977         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38978         * modules/do-release-commit-and-tag: New file.
38979         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38980
38981 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38982
38983         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38984         because test-select.c uses inet_pton.
38985
38986 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38987
38988         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38989         GETADDRINFO_LIB.  Bump serial number.
38990         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38991         Suggested by Eric Blake <ebb9@byu.net>.
38992
38993 2009-11-05  Eric Blake  <ebb9@byu.net>
38994
38995         strtod: detect darwin bug
38996         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38997         Reported by Leo Davis.
38998
38999         freopen-safer: new module
39000         * modules/freopen-safer: New module.
39001         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39002         * lib/freopen-safer.c (freopen_safer): New file.
39003         * lib/stdio-safer.h (freopen_safer): New declaration.
39004         * lib/stdio--.h (freopen): New override.
39005         * MODULES.html.sh (File stream based Input/Output): Mention it.
39006         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39007         freopen-safer module.
39008         * doc/posix-functions/stderr.texi (stderr): Likewise.
39009         * doc/posix-functions/stdin.texi (stdin): Likewise.
39010         * doc/posix-functions/stdout.texi (stdout): Likewise.
39011         * modules/freopen-safer-tests: New test.
39012         * tests/test-reopen-safer.c: New file.
39013
39014 2009-11-05  Jim Meyering  <meyering@redhat.com>
39015
39016         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39017         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39018
39019 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39020
39021         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39022
39023 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39024
39025         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39026
39027 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39028
39029         Fix link error.
39030         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39031         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39032
39033 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39034
39035         * tests/test-func.c: Also test value of __func__.
39036
39037 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39038
39039         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39040         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39041
39042 2009-11-05  Bruno Haible  <bruno@clisp.org>
39043
39044         Fix link error.
39045         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39046         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39047         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39048
39049 2009-11-05  Bruno Haible  <bruno@clisp.org>
39050
39051         Tests for module 'inet_pton'.
39052         * modules/inet_pton-tests: New file.
39053         * tests/test-inet_pton.c: New file.
39054
39055 2009-11-05  Bruno Haible  <bruno@clisp.org>
39056
39057         Tests for module 'inet_ntop'.
39058         * modules/inet_ntop-tests: New file.
39059         * tests/test-inet_ntop.c: New file.
39060
39061 2009-11-04  Eric Blake  <ebb9@byu.net>
39062
39063         stdlib-safer: wrap all mkstemp variants
39064         * modules/mkostemp (configure.ac): Set witness.
39065         * modules/mkostemps (configure.ac): Likewise.
39066         * modules/mkstemps (configure.ac): Likewise.
39067         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39068         (mkstemps_safer): Wrap more functions.
39069         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39070         wrapping.
39071         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39072         (mkstemps_safer): Implement the wrappers.
39073
39074         mkstemps, mkostemps: new modules
39075         * modules/mkostemps: New module.
39076         * modules/mkstemps: Likewise.
39077         * lib/mkostemps.c (mkostemps): New file.
39078         * lib/mkstemps.c (mkstemps): Likewise.
39079         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39080         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39082         * modules/stdlib (Makefile.am): Substitute them.
39083         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39084         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39085         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39086         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39087         * MODULES.html.sh (File system functions): Mention them.
39088
39089         tempname: resync from glibc
39090         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39091         same values for __GT_FILE as glibc.  Abort even when assertions
39092         are disabled.
39093         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39094         match its value otherwise.  Allow idempotent inclusion.
39095         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39096         * lib/mkostemp.c (mkostemp): Likewise.
39097         * lib/mkstemp.c (mkstemp): Likewise.
39098         * lib/tmpfile.c (tmpfile): Likewise.
39099         * NEWS: Document this.
39100
39101         utimens: fix use of futimens on older Linux
39102         * lib/utimens.c (fdutimens): Use updated, rather than original,
39103         timespec to avoid bug in older Linux kernel.
39104         Reported by Simon Josefsson.
39105
39106 2009-11-04  Bruno Haible  <bruno@clisp.org>
39107
39108         Make num_processors more flexible and consistent.
39109         * lib/nproc.h (enum nproc_query): New type.
39110         (num_processors): Add a 'query' argument.
39111         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39112         (num_processors): Add a 'query' argument. Test the value of the
39113         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39114         mingw, count the number of CPUs available for the current process.
39115         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39116         Check for sched_getaffinity and sched_getaffinity_np.
39117         * modules/nproc (Depends-on): Add c-ctype, extensions.
39118         * NEWS: Mention the change.
39119
39120 2009-11-03  Bruno Haible  <bruno@clisp.org>
39121
39122         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39123
39124 2009-11-03  Jim Meyering  <meyering@redhat.com>
39125
39126         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39127         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39128         if it is defined.
39129
39130 2009-11-02  Eric Blake  <ebb9@byu.net>
39131
39132         mktime, timegm: share common declaration
39133         * lib/mktime-internal.h: New file.
39134         * lib/mktime.c: Use it rather than open-coding a declaration.
39135         * lib/timegm.c: Likewise.
39136         * modules/mktime (Files): Ship it.
39137         * modules/timegm (Files): Likewise.
39138         Suggested by Bruno Haible.
39139
39140         test-update-copyright: update test to match script changes
39141         * tests/test-update-copyright.sh: Avoid hard-coding perl
39142         location.  Don't update *.bak created by earlier runs.
39143
39144 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39145             Simon Josefsson  <simon@josefsson.org>
39146             Bruno Haible  <bruno@clisp.org>
39147
39148         Fix link error on Solaris 8.
39149         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39150         also in libnsl. Define also INET_PTON_LIB.
39151         * modules/inet_pton (Link): New section.
39152
39153 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39154             Bruno Haible  <bruno@clisp.org>
39155
39156         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39157         * modules/inet_ntop (Link): New section.
39158         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39159
39160 2009-11-02  Eric Blake  <ebb9@byu.net>
39161
39162         maint: avoid compiler warnings in m4 macros
39163         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39164         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39165
39166 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39167
39168         * m4/pmccabe2html.m4: Remove file.
39169         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39170         function.  Change maintainer.
39171         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39172         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39173         Courtès).
39174
39175 2009-10-31  Eric Blake  <ebb9@byu.net>
39176
39177         fseeko: fix m4 regression
39178         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39179         regression from 2009-10-27.
39180         Reported by Ralf Wildenhues.
39181
39182 2009-10-31  Jim Meyering  <meyering@redhat.com>
39183
39184         inttostr: aesthetics and improved (compile-time) safety
39185         Define inttype_is_signed rather than inttype_is_unsigned,
39186         since the sole use is via "#if inttype_is_signed".
39187         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39188         inttype_is_unsigned.
39189         * lib/offtostr.c (inttype_is_signed): Likewise.
39190         * lib/uinttostr.c (inttype_is_signed): Likewise.
39191         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39192         * lib/inttostr.c (inttostr): Use verify to cross-check the
39193         inttype_is_signed value and the signedness of the actual type.
39194         * modules/inttostr (Depends-on): Add verify.
39195
39196 2009-10-30  Eric Blake  <ebb9@byu.net>
39197
39198         build: avoid compiler warnings
39199         * lib/fchmodat.c (lchmod): Mark unused variables.
39200         * lib/getopt.c (_getopt_initialize): Likewise.
39201         * lib/mktime.c (__mktime_internal): Provide prototype.
39202         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39203         older gcc that do not understand #pragma GCC diagnostic.
39204         * lib/uinttostr.c (inttype_is_unsigned): Define.
39205         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39206
39207 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39208
39209         stat: fix compilation on AIX
39210         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39211         only see struct stat64.
39212
39213 2009-10-30  Eric Blake  <ebb9@byu.net>
39214
39215         exclude: make more robust
39216         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39217         rather than masking a coding bug.
39218         Suggested by Bruno Haible.
39219
39220 2009-10-30  Jim Meyering  <meyering@redhat.com>
39221
39222         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39223         Rather than putting #!/usr/bin/perl on the first line,
39224         start with a variant of what's recommended by "man perlrun" that
39225         invokes the first "perl" program from your shell's search path.
39226         * build-aux/gitlog-to-changelog: Replace #!... as above.
39227         Add a "Local Variables" perl mode setting.
39228         Prompted by a patch from Ludovic Courtès.
39229         Improved by Eric Blake.
39230         * build-aux/useless-if-before-free: Likewise.
39231         * build-aux/announce-gen: Likewise.
39232         * build-aux/update-copyright: Likewise.
39233
39234 2009-10-29  Eric Blake  <ebb9@byu.net>
39235
39236         filenamecat-lgpl: adjust clients
39237         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39238         filenamecat.
39239         * modules/renameat (Depends-on): Likewise.
39240
39241         filenamecat: split into filenamecat-lgpl
39242         * modules/filenamecat-lgpl: New module.
39243         * modules/filenamecat (Files): Move library-safe files into
39244         filenamecat-lgpl.
39245         (Depends-on): Add filenamecat-lgpl.
39246         (configure.ac): Declare witness.
39247         * lib/filenamecat.h (file_name_concat): Only declare when using
39248         GPL module.
39249         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39250         Move...
39251         * lib/filenamecat-lgpl.c: ...into new file.
39252         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39253         (gl_FILE_NAME_CONCAT): Use it.
39254         * MODULES.html.sh (File system functions): Mention new module.
39255
39256         argp: avoid memory leak
39257         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39258         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39259         base_name, since the latter malloc()s and can call exit().
39260         Leak introduced 2006-07-03.
39261
39262         dirname-lgpl: adjust clients that don't need full dirname
39263         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39264         * modules/filenamecat (Depends-on): Likewise.
39265         * modules/linkat (Depends-on): Likewise.
39266         * modules/mkancesdirs (Depends-on): Likewise.
39267         * modules/mkdir (Depends-on): Likewise.
39268         * modules/openat (Depends-on): Likewise.
39269         * modules/savewd (Depends-on): Likewise.
39270         * modules/rename (Depends-on): Likewise.
39271         (License): Relax license.
39272         * modules/mkdir-tests (Depends-on): Drop progname.
39273         (Makefile.am): Delete unneeded LDADD.
39274         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39275
39276         dirname: split into dirname-lgpl
39277         * modules/dirname-lgpl: New module.
39278         * modules/dirname (Files): Move library-safe files into
39279         dirname-lgpl.
39280         (Depends-on): Add dirname-lgpl.
39281         (configure.ac): Declare witness.
39282         * modules/double-slash-root (License): Relax license.
39283         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39284         module.
39285         * lib/dirname.c (dir_len, mdir_name): Move...
39286         * lib/dirname-lgpl.c: ...into new file.
39287         * lib/basename.c (last_component, base_len): Move...
39288         * lib/basename-lgpl.c: ...into new file.
39289         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39290         (gl_DIRNAME): Use it.
39291         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39292         Mention new module.
39293         * modules/dirname-tests (Depends-on): Add progname.
39294         * tests/test-dirname.c (program_name): Delete.
39295
39296         mkdir: make safe for libraries
39297         * modules/mkdir (Depends-on): Drop xalloc.
39298         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39299         exit.
39300
39301         tests: avoid some compiler warnings
39302         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39303         literals.
39304         * tests/test-memchr.c (main): Avoid type mismatch.
39305         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39306         * tests/test-base64.c (main): Likewise.
39307         * tests/test-getdelim.c (main): Likewise.
39308         * tests/test-gethostname.c (main): Likewise.
39309         * tests/test-getline.c (main): Likewise.
39310         * tests/test-netinet_in.c (main): Likewise.
39311         * tests/test-select.c (open_server_socket, main): Likewise.
39312         * tests/test-select-stdin.c (main): Likewise.
39313         * tests/test-sockets.c (main): Likewise.
39314         * tests/test-strsignal.c (main): Likewise.
39315         * tests/test-sys_select.c (main): Likewise.
39316         * tests/test-sys_socket.c (main): Likewise.
39317         * tests/test-u64.c (main): Likewise.
39318         * tests/test-xfprintf-posix.c (main): Likewise.
39319         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39320
39321         sockets: avoid compiler warning
39322         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39323
39324         maint: detect usage(1) and other suspicious exits
39325         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39326
39327 2009-10-29  Jim Meyering  <meyering@redhat.com>
39328
39329         timespec: long-to-int truncation could make timespec_cmp malfunction
39330         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39331         a multiple of 2^32 nanoseconds as no difference.
39332
39333 2009-10-28  Jim Meyering  <meyering@redhat.com>
39334
39335         fprintftime: wrap macro code argument in "do {...} while(0)"
39336         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39337         cpy macro must be a statement that can be followed by a semicolon.
39338         Now that the else clause contains a comment and is hence longer
39339         than one line, I require curly braces.  That in turn requires
39340         that we wrap this code block in the standard do...while(0).
39341
39342         fprintftime: remove stray semicolon from previous change
39343         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39344
39345         fprintftime: avoid a warning about ignored fwrite return value
39346         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39347         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39348         that is unsafe.
39349         * modules/fprintftime (Depends-on): Add ignore-value.
39350
39351         exclude: avoid an unwarranted warning
39352         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39353
39354 2009-10-27  Eric Blake  <ebb9@byu.net>
39355
39356         fseek: avoid compilation failure when fflush is replaced
39357         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39358         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39359         module is in use.
39360         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39361         module is not in use; since REPLACE_FSEEK worked otherwise.
39362         (GNULIB_FTELLO): Likewise for ftell.
39363         Reported by Ian Beckwith and others.
39364
39365 2009-10-27  Bruno Haible  <bruno@clisp.org>
39366
39367         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39368         Reported by Jim Meyering.
39369
39370 2009-10-27  Jim Meyering  <jim@meyering.net>
39371             Bruno Haible  <bruno@clisp.org>
39372
39373         Avoid warning despite dropping the return value of fwrite.
39374         * lib/unicodeio.c: Include ignore-value.h.
39375         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39376         * modules/unicodeio (Depends-on): Add ignore-value.
39377
39378 2009-10-26  Eric Blake  <ebb9@byu.net>
39379
39380         areadlinkat: fix fallback path
39381         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39382         pointer and zero.
39383
39384 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39385
39386         Use a better IO block size for modern systems
39387         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39388         * lib/md2.c: Likewise.
39389         * lib/md4.c: Likewise.
39390         * lib/md5.c: Likewise.
39391         * lib/sha1.c: Likewise.
39392         * lib/sha256.c: Likewise.
39393         * lib/sha512.c: Likewise.
39394
39395 2009-10-22  Eric Blake  <ebb9@byu.net>
39396
39397         tests: avoid several compiler warnings
39398         * tests/test-getcwd.c (main): Avoid buffer underflow.
39399         * tests/test-getdate.c (main): String literals are not safe with
39400         putenv, so use setenv.  Declare unused argument.
39401         * modules/getdate-tests (Depends-on): Add setenv.
39402         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39403         problems with string literals in char *.
39404         * tests/test-hash.c (main): Avoid shadowing declaration.
39405         (insert_new): Treat string literals as char const *.
39406         * tests/test-getopt.h (test_getopt): Likewise.
39407         (getopt_loop): Alter types to minimize casting elsewhere.
39408         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39409         (test_getopt_long_posix): Likewise.
39410         (do_getopt_long): Add wrapper to minimize casting.
39411         * tests/test-atexit.c (clear_temp_file): Use void.
39412         * tests/test-areadlink-with-size.c (main): Declare unused
39413         arguments.
39414         * tests/test-areadlink.c (main): Likewise.
39415         * tests/test-areadlinkat-with-size.c (main): Likewise.
39416         * tests/test-areadlinkat.c (main): Likewise.
39417         * tests/test-canonicalize-lgpl.c (main): Likewise.
39418         * tests/test-canonicalize.c (main): Likewise.
39419         * tests/test-dirent-safer.c (main): Likewise.
39420         * tests/test-dirname.c (main): Likewise.
39421         * tests/test-dup2.c (main): Likewise.
39422         * tests/test-fchdir.c (main): Likewise.
39423         * tests/test-fcntl-h.c (main): Likewise.
39424         * tests/test-fcntl-safer.c (main): Likewise.
39425         * tests/test-fdopendir.c (main): Likewise.
39426         * tests/test-fdutimensat.c (main): Likewise.
39427         * tests/test-fflush.c (main): Likewise.
39428         * tests/test-filenamecat.c (main): Likewise.
39429         * tests/test-filevercmp.c (main): Likewise.
39430         * tests/test-fopen-safer.c (main): Likewise.
39431         * tests/test-fopen.c (main): Likewise.
39432         * tests/test-fpending.c (main): Likewise.
39433         * tests/test-fpurge.c (main): Likewise.
39434         * tests/test-freading.c (main): Likewise.
39435         * tests/test-fstatat.c (main): Likewise.
39436         * tests/test-fsync.c (main): Likewise.
39437         * tests/test-futimens.c (main): Likewise.
39438         * tests/test-getndelim2.c (main): Likewise.
39439         * tests/test-gettimeofday.c (main): Likewise.
39440         * tests/test-getopt.c (main): Likewise.
39441         * tests/test-i-ring.c (main): Likewise.
39442         * tests/test-inttypes.c (main): Likewise.
39443         * tests/test-link.c (main): Likewise.
39444         * tests/test-lstat.c (main): Likewise.
39445         * tests/test-math.c (main): Likewise.
39446         * tests/test-md5.c (main): Likewise.
39447         * tests/test-memchr2.c (main): Likewise.
39448         * tests/test-memrchr.c (main): Likewise.
39449         * tests/test-mkdir.c (main): Likewise.
39450         * tests/test-mkdirat.c (main): Likewise.
39451         * tests/test-mkfifoat.c (main): Likewise.
39452         * tests/test-open.c (main): Likewise.
39453         * tests/test-openat-safer.c (main): Likewise.
39454         * tests/test-openat.c (main): Likewise.
39455         * tests/test-quotearg.c (main): Likewise.
39456         * tests/test-rawmemchr.c (main): Likewise.
39457         * tests/test-readlink.c (main): Likewise.
39458         * tests/test-remove.c (main): Likewise.
39459         * tests/test-rename.c (main): Likewise.
39460         * tests/test-renameat.c (main): Likewise.
39461         * tests/test-rmdir.c (main): Likewise.
39462         * tests/test-sha1.c (main): Likewise.
39463         * tests/test-signal.c (main): Likewise.
39464         * tests/test-sigaction.c (main): Likewise.
39465         * tests/test-stat.c (main): Likewise.
39466         * tests/test-stat-time.c (main): Likewise.
39467         * tests/test-stddef.c (main): Likewise.
39468         * tests/test-stdint.c (main): Likewise.
39469         * tests/test-stdio.c (main): Likewise.
39470         * tests/test-stdlib.c (main): Likewise.
39471         * tests/test-strchrnul.c (main): Likewise.
39472         * tests/test-strerror.c (main): Likewise.
39473         * tests/test-string.c (main): Likewise.
39474         * tests/test-strtod.c (main): Likewise.
39475         * tests/test-strverscmp.c (main): Likewise.
39476         * tests/test-symlink.c (main): Likewise.
39477         * tests/test-symlinkat.c (main): Likewise.
39478         * tests/test-sys_stat.c (main): Likewise.
39479         * tests/test-sys_time.c (main): Likewise.
39480         * tests/test-time.c (main): Likewise.
39481         * tests/test-unistd.c (main): Likewise.
39482         * tests/test-unlink.c (main): Likewise.
39483         * tests/test-unlinkat.c (main): Likewise.
39484         * tests/test-utimens.c (main): Likewise.
39485         * tests/test-utimensat.c (main): Likewise.
39486         * tests/test-version-etc.c (main): Likewise.
39487         * tests/test-wchar.c (main): Likewise.
39488         * tests/test-wctype.c (main): Likewise.
39489         * tests/test-xprintf-posix.c (main): Likewise.
39490         * tests/test-posixtm.c (main): Likewise.
39491         (STREQ): Delete unused macro.
39492         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39493         shadowed variables.
39494         * tests/test-memchr.c (main): Likewise.
39495
39496 2009-10-21  Eric Blake  <ebb9@byu.net>
39497
39498         areadlinkat: avoid failure on older glibc
39499         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39500         rather than mis-comparing 0 against FUNC_RESULT of char*.
39501
39502 2009-10-21  Bruno Haible  <bruno@clisp.org>
39503
39504         * modules/stpncpy (License): Relicense under LGPLv2+.
39505         Reported by David Lutterkort <lutter@redhat.com>.
39506
39507 2009-10-20  Eric Blake  <ebb9@byu.net>
39508
39509         utimensat: work around Solaris 9 bug
39510         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39511         has trailing slash bugs.
39512         * tests/test-lutimens.h (test_lutimens): Enhance test.
39513         * tests/test-utimens.h (test_utimens): Likewise.
39514         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39515         * doc/posix-functions/utimes.texi (utimes): Likewise.
39516         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39517         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39518         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39519         * doc/posix-functions/futimens.texi (futimens): Likewise.
39520
39521         fdutimensat: new module
39522         * modules/fdutimensat: New file.
39523         * lib/fdutimensat.c (fdutimensat): Likewise.
39524         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39525         * MODULES.html.sh (File system functions): Mention module.
39526         * modules/fdutimensat-tests: New test.
39527         * tests/test-fdutimensat.c: Likewise.
39528
39529         doc: regenerate INSTALL
39530         * doc/INSTALL: Reflect recent autoconf update.
39531         * doc/INSTALL.ISO: Likewise.
39532         * doc/INSTALL.UTF-8: Likewise.
39533
39534 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39535
39536         acl: warn if ACL support is not detected
39537         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39538
39539 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39540
39541         * lib/nproc.h: Add extern "C" block for C++.
39542
39543 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39544             Bruno Haible  <bruno@clisp.org>
39545
39546         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39547         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39548         * doc/posix-functions/isalpha.texi: Likewise.
39549         * doc/posix-functions/isblank.texi: Likewise.
39550         * doc/posix-functions/iscntrl.texi: Likewise.
39551         * doc/posix-functions/isdigit.texi: Likewise.
39552         * doc/posix-functions/isgraph.texi: Likewise.
39553         * doc/posix-functions/islower.texi: Likewise.
39554         * doc/posix-functions/isprint.texi: Likewise.
39555         * doc/posix-functions/ispunct.texi: Likewise.
39556         * doc/posix-functions/isspace.texi: Likewise.
39557         * doc/posix-functions/isupper.texi: Likewise.
39558         * doc/posix-functions/isxdigit.texi: Likewise.
39559
39560 2009-10-18  Bruno Haible  <bruno@clisp.org>
39561
39562         Tests for module 'isblank'.
39563         * modules/isblank-tests: New file.
39564         * tests/test-isblank.c: New file.
39565
39566         New module 'isblank'.
39567         * lib/isblank.c: New file.
39568         * m4/isblank.m4: New file.
39569         * modules/isblank: New file.
39570         * doc/posix-functions/isblank.texi: Mention the new module.
39571
39572 2009-10-18  Bruno Haible  <bruno@clisp.org>
39573
39574         New module 'ctype'.
39575         * lib/ctype.in.h: New file.
39576         * m4/ctype.m4: New file.
39577         * modules/ctype: New file.
39578         * doc/posix-headers/ctype.texi: Mention the new module.
39579
39580 2009-10-18  Jim Meyering  <meyering@redhat.com>
39581
39582         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39583         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39584         right after its initialization, rather than farther down.
39585         Keeping these in close proximity makes it easier to ensure
39586         that each such variable is initialized.  E.g.,
39587
39588             LIB_CLOCK_GETTIME=
39589             AC_SUBST([LIB_CLOCK_GETTIME])
39590
39591         This change also increments these serial numbers.
39592         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39593         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39595
39596 2009-10-18  Bruno Haible  <bruno@clisp.org>
39597
39598         Don't let environment variables perturb build.
39599         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39600         (gl_PREREQ_GETHRXTIME): ... not here.
39601
39602 2009-10-18  Bruno Haible  <bruno@clisp.org>
39603
39604         Avoid symlink attack in localcharset module.
39605         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39606         (O_NOFOLLOW): Define fallback.
39607         (get_charset_aliases): Don't open the file if it is a symbolic link.
39608         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39609         gl_FCNTL_H.
39610         (gl_FCNTL_H): Require it.
39611         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39612         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39613         Reported by Fergal Glynn <fglynn@veracode.com>.
39614
39615 2009-10-18  Bruno Haible  <bruno@clisp.org>
39616
39617         Implement nproc for mingw.
39618         * lib/nproc.c: Include <windows.h>
39619         (num_processors): On native Windows platforms, try GetSystemInfo.
39620
39621 2009-10-18  Bruno Haible  <bruno@clisp.org>
39622
39623         Implement nproc for IRIX.
39624         * lib/nproc.c: Include <sys/sysmp.h>.
39625         (num_processors): On IRIX systems, try sysmp.
39626         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39627
39628 2009-10-18  Bruno Haible  <bruno@clisp.org>
39629
39630         Implement nproc for HP-UX.
39631         * lib/nproc.c: Include <sys/pstat.h>
39632         (num_processors): On HP-UX systems, try pstat_getdynamic.
39633         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39634         pstat_getdynamic.
39635
39636 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39637             Bruno Haible  <bruno@clisp.org>
39638
39639         Implement nproc for NetBSD, OpenBSD.
39640         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39641         (ARRAY_SIZE): New macro.
39642         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39643         * m4/nproc.m4: New file.
39644         * modules/nproc (Files): Add m4/nproc.m4.
39645         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39646         (Makefile.am): Instead, augment lib_SOURCES.
39647
39648 2009-10-18  Bruno Haible  <bruno@clisp.org>
39649
39650         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39651         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39652         sys/param.h.
39653
39654 2009-10-16  Eric Blake  <ebb9@byu.net>
39655
39656         utimensat: new module
39657         * modules/utimensat: New file.
39658         * lib/utimensat.c (utimensat): Likewise.
39659         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39660         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39661         so we can work around Linux bugs.
39662         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39663         * modules/sys_stat (Makefile.am): Substitute them.
39664         * lib/sys_stat.in.h (utimensat): Declare it.
39665         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39666         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39667         * modules/utimensat-tests: New test.
39668         * tests/test-utimensat.c: Likewise.
39669
39670         utimens: let lutimens work on non-symlinks
39671         * lib/utimens.c (lutimens): Fall back to utimens rather than
39672         failing with ENOSYS, when file is not a symlink.
39673         (utimens): Reduce redirection.
39674         * tests/test-lutimens.h (test_lutimens): Update test to cover
39675         non-symlinks.
39676         * tests/test-utimens.h (test_utimens): Update test to cover
39677         symlinks.
39678         * tests/test-utimens.c (main): Update caller.
39679
39680         utimens: cache whether utimensat syscall works
39681         * lib/utimens.c (utimensat_works_really): New cache variable.
39682         (fdutimens, lutimens): Use it to avoid failing syscall.
39683
39684         test-stat-time, test-utimens: improve portability
39685         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39686         ext4 on alpha, and for cygwin.
39687         * tests/test-utimens-common.h: New file.
39688         (nap): Factor delays into single function.
39689         * tests/test-lutimens.h (test_lutimens): Use new header.
39690         * tests/test-futimens.h (test_futimens): Likewise.
39691         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39692         timestamps to occur from same machine, as was done previously for
39693         test_utimens.
39694         * modules/utimens-tests (Files): Ship new file.
39695         * modules/futimens-tests (Files): Likewise.
39696         Reported in part by Jim Meyering.
39697
39698         sys_stat: sort replacement declarations
39699         * lib/sys_stat.in.h: Sort declarations.
39700         * lib/futimens.c (futimens): Fix typo.
39701
39702 2009-10-15  Jim Meyering  <meyering@redhat.com>
39703
39704         don't let environment settings perturb build
39705         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39706         could cause a configure-time and/or build-time malfunction.
39707         Typically, a configure-time function-in-library test is performed
39708         via code like this:
39709
39710           LIB_VAR=
39711           AC_SUBST([LIB_VAR])
39712           prefix_saved_LIBS=$LIBS
39713             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39714                        [test "$ac_cv_search_FUNC" = "none required" ||
39715                         LIB_VAR=$ac_cv_search_FUNC])
39716           LIBS=$prefix_saved_LIBS
39717
39718         However, in each of the files affected by this change, the LIB_VAR=
39719         initialization was omitted.  Thus, when set in the environment, its
39720         value would propagate into generated Makefiles when FUNC is not found
39721         in LIB_NAME.
39722         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39723         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39725
39726 2009-10-14  Eric Blake  <ebb9@byu.net>
39727
39728         fchdir: avoid infinite recursion in mingw
39729         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39730         recursing.
39731
39732         test-stat-time: port to mingw
39733         * tests/test-stat-time.c (force_unlink): Return a value.
39734         (test_ctime) [W32]: Fix compilation error.
39735         (nap): Don't call usleep with too large an argument.  Use
39736         force_unlink.
39737         * doc/pastposix-functions/usleep.texi (usleep): Document the
39738         portability issue.
39739
39740 2009-10-13  Jim Meyering  <meyering@redhat.com>
39741
39742         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39743         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39744         * modules/pipe-filter-ii: Likewise.
39745         * modules/sys_socket-tests: Likewise.
39746         * modules/tsearch-tests: Likewise.
39747         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39748         (check): Depend on it.
39749
39750 2009-10-12  Eric Blake  <ebb9@byu.net>
39751
39752         utimens-tests: port to NFS file systems
39753         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39754         comparisons to avoid spurious failures from timestamp drift
39755         between NFS machines.
39756
39757 2009-10-12  Eric Blake  <ebb9@byu.net>
39758
39759         stat-time-tests: minor cleanups
39760         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39761         * tests/test-stat-time.c (nap): Separate assignment from call.
39762         Suggested by Paolo Bonzini and Bruno Haible.
39763
39764         sys_stat: guarantee struct timespec
39765         * lib/sys_stat.in.h (includes): Always include <time.h>
39766         * modules/sys_stat (Depends-on): Add time.
39767         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39768         mode_t permission values.
39769         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39770         get at subsecond timestamps.
39771
39772 2009-10-10  Eric Blake  <ebb9@byu.net>
39773
39774         futimens: new module
39775         * modules/futimens: New file.
39776         * lib/futimens.c (futimens): Likewise.
39777         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39778         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39779         we can work around Linux bugs.
39780         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39781         * modules/sys_stat (Makefile.am): Substitute them.
39782         * lib/sys_stat.in.h (futimens): Declare it.
39783         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39784         * doc/posix-functions/futimens.texi (futimens): Likewise.
39785         * modules/futimens-tests: New test.
39786         * tests/test-futimens.c: Likewise.
39787
39788         utimens: introduce fdutimens
39789         * lib/utimens.h (fdutimens): New prototype.
39790         * lib/utimens.c (gl_futimens): Move guts...
39791         (fdutimens): ...to new interface.
39792         * tests/test-utimens.c (do_fdutimens): Use it.
39793
39794         utimens: add UTIME_NOW and UTIME_OMIT support
39795         * lib/utimens.c (validate_timespec, update_timespec): New helper
39796         functions.
39797         (gl_futimens, lutimens): Use them.
39798         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39799         stdbool, sys_stat.
39800         (Link): Mention resulting library dependency.
39801         * modules/utimecmp (Link): Likewise.
39802         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39803         (Makefile.am): Pick up library dependency.
39804         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39805         definition.
39806         * tests/test-sys_stat.c: Test the definitions.
39807         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39808         * NEWS: Document library dependency.
39809
39810         utimecmp: support symlink timestamps
39811         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39812         hashing when possible.  Use pathconf when available.
39813         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39814         * modules/utimecmp (Depends-on): Add lstat.
39815
39816         utimens: add lutimens interface
39817         * lib/utimens.c (lutimens): New function.
39818         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39819         * lib/utimens.h (lutimens): Declare new interface.
39820         * tests/test-utimens.c (main): Enhance test.
39821         * tests/test-lutimens.h (test_lutimens): New file.
39822         * modules/utimens-tests (Files): Distribute it.
39823         (Depends-on): Add symlink.
39824         (configure.ac): Check for usleep.
39825
39826         utimens: validate futimens usage
39827         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39828         fewer syscalls on failure later on.  Avoid compiler warning on
39829         mingw.
39830         * modules/utimens (Depends-on): Add dup2.
39831
39832         utimens: add test
39833         * modules/utimens-tests: New test.
39834         * tests/test-utimens.h: New file.
39835         * tests/test-futimens.h: Likewise.
39836         * tests/test-utimens.c: Likewise.
39837
39838         doc: mention timestamp portability issues
39839         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39840         instead.
39841         * doc/posix-functions/utime.texi (utime): Likewise.
39842         * doc/posix-functions/utimes.texi (utimes): Likewise.
39843         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39844         instead.
39845         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39846         module.
39847         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39848         Mention weakness with symlink timestamps.
39849         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39850         to utimensat/futimens instead.
39851         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39852
39853         test-dup2: enhance test
39854         * tests/test-dup2.c (main): Also check AT_FDCWD.
39855
39856         test-stat-time: avoid more spurious failures
39857         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39858         xfs; and avoid race if the two timestamps cross quantization edge.
39859
39860         relocatable: prefer 'file system' over 'filesystem'
39861         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39862         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39863         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39864         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39865         * lib/relocatable.c (compute_curr_prefix): Likewise.
39866
39867 2009-10-10  Jim Meyering  <meyering@redhat.com>
39868
39869         stat-time-tests: check for the usleep function
39870         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39871
39872 2009-10-10  Bruno Haible  <bruno@clisp.org>
39873
39874         * modules/xnanosleep: Put the Link section after the Include section.
39875
39876 2009-10-09  Eric Blake  <ebb9@byu.net>
39877
39878         dup2: work around FreeBSD 6.1 bug
39879         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39880         * doc/posix-functions/dup2.texi (dup2): Document it.
39881         Reported by Nelson H. F. Beebe and Jim Meyering.
39882
39883         test-stat-time: port to buggy NFS clients
39884         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39885         (test_ctime): Also skip test if mtime and ctime are skewed.
39886
39887         maint: prefer 'file system' over 'filesystem'
39888         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39889         * doc/posix-functions/lstat.texi (lstat): Likewise.
39890         * lib/file-has-acl.c (file_has_acl): Likewise.
39891         * lib/fwriteerror.c [TEST]: Likewise.
39892         * tests/test-areadlink.h (test_areadlink): Likewise.
39893         * tests/test-areadlinkat-with-size.c (main): Likewise.
39894         * tests/test-areadlinkat.c (main): Likewise.
39895         * tests/test-canonicalize-lgpl.c (main): Likewise.
39896         * tests/test-canonicalize.c (main): Likewise.
39897         * tests/test-fstatat.c (main): Likewise.
39898         * tests/test-linkat.c (main): Likewise.
39899         * tests/test-lstat.h (test_lstat_func): Likewise.
39900         * tests/test-mkdir.h (test_mkdir): Likewise.
39901         * tests/test-readlink.h (test_readlink): Likewise.
39902         * tests/test-remove.c (main): Likewise.
39903         * tests/test-rename.h (test_rename): Likewise.
39904         * tests/test-renameat.c (main): Likewise.
39905         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39906         * tests/test-symlink.h (test_symlink): Likewise.
39907         * tests/test-symlinkat.c (main): Likewise.
39908         * tests/test-unlink.h (test_unlink_func): Likewise.
39909         * tests/test-unlinkat.c (main): Likewise.
39910
39911         maint: make realtime library usage explicit
39912         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39913         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39914         * modules/settime (Link): Likewise.
39915         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39916
39917         test-stat-time: speed up execution
39918         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39919         warning on mingw.
39920         (nap): New helper function.
39921         (prepare_test): Use it to reduce sleep time.
39922         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39923         execution.
39924         * modules/stat-time-tests (configure.ac): Check for usleep.
39925
39926 2009-10-09  Jim Meyering  <meyering@redhat.com>
39927
39928         selinux-h: always use getfilecon wrappers
39929         * lib/getfilecon.c: New file.
39930         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39931         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39932         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39933         (fgetfilecon): Provide a stub.
39934         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39935         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39936         file unconditionally.
39937         When <selinux/selinux.h> is found, arrange to use wrappers.
39938         * modules/selinux-h (Files): Add getfilecon.c.
39939         (Makefile.am): Substitute include-next-related bits
39940         into the now-always-generated selinux/selinux.h file.
39941         * doc/glibc-functions/lgetfilecon.texi: New file.
39942         * doc/glibc-functions/fgetfilecon.texi: New file.
39943         * doc/glibc-functions/getfilecon.texi: New file.
39944         * doc/glibc-functions/getfilecon-desc.texi: New file.
39945         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39946         which to pull in the new files.
39947         * MODULES.html.sh (Misc): Add selinux-h.
39948
39949 2009-10-08  Jim Meyering  <meyering@redhat.com>
39950
39951         unistd: fix comment typo
39952         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39953
39954 2009-10-08  Eric Blake  <ebb9@byu.net>
39955
39956         areadlink: use SIZE_MAX consistently
39957         * modules/areadlink (Depends-on): Add stdint.
39958         * modules/areadlink-with-size (Depends-on): Likewise.
39959         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39960         gives NULL; drop sys/types, since unistd gives size_t; and add
39961         stdint for SIZE_MAX.
39962         (SIZE_MAX): Rely on headers.
39963         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39964         and add stdint.
39965         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39966         (SIZE_MAX): Likewise.
39967         (INITIAL_BUF_SIZE): Turn into enum.
39968         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39969
39970 2009-10-08  Jim Meyering  <meyering@redhat.com>
39971
39972         areadlinkat: avoid compilation failure
39973         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39974         Fix typo in comment.
39975
39976 2009-10-07  Eric Blake  <ebb9@byu.net>
39977
39978         areadlinkat-with-size: new module
39979         * modules/areadlinkat-with-size: New module.
39980         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39981         * lib/areadlink.h (areadlinkat): Declare it.
39982         * MODULES.html.sh (File system functions): Mention it.
39983         * modules/areadlinkat-with-size-tests: New test.
39984         * tests/test-areadlinkat-with-size.c: New file.
39985
39986         xreadlinkat: new module
39987         * modules/xreadlinkat: New module.
39988         * lib/xreadlinkat.c (xreadlinkat): New file.
39989         * lib/xreadlink.h (xreadlinkat): Declare it.
39990         * MODULES.html.sh (File system functions): Mention it.
39991
39992         areadlinkat: new module
39993         * lib/at-func.c (FUNC_FAIL): New define.
39994         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39995         * modules/areadlinkat: New module.
39996         * lib/linkat.c (areadlinkat): Move...
39997         * lib/areadlinkat.c (areadlinkat): ...to new file.
39998         * lib/areadlink.h (areadlinkat): Declare it.
39999         * modules/linkat (Depends-on): Add areadlinkat.
40000         * MODULES.html.sh (File system functions): Mention it.
40001         * modules/areadlinkat-tests: New test.
40002         * tests/test-areadlinkat.c: New file.
40003
40004         areadlink, areadlink-with-size: add tests
40005         * modules/areadlink-tests: New test.
40006         * modules/areadlink-with-size-tests: Likewise.
40007         * tests/test-areadlink.h: New file.
40008         * tests/test-areadlink.c: Likewise.
40009         * tests/test-areadlink-with-size.c: Likewise.
40010
40011         maint: minor cleanups
40012         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40013         _UNUSED_PARAMETER_ instead.
40014         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40015         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40016         * modules/linkat-tests (Files): Distribute test-link.h.
40017
40018         openat, utimens: whitespace cleanup
40019         * lib/openat.c: Prefer space throughout, rather than mix of 8
40020         spaces vs. tabs.
40021         * lib/at-func.c: Likewise.
40022         * lib/utimens.c: Likewise.
40023
40024         openat: avoid using wrong fd
40025         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40026         working directory chooses same fd.
40027         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40028
40029         mkdir, mkdirat: fix cygwin 1.5.x bug
40030         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40031         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40032         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40033         bug.
40034         (gl_PREREQ_MKDIR): Delete unused macro.
40035         * modules/mkdir (Files): Track file rename.
40036         (configure.ac): Update macro name.
40037         * modules/openat (Depends-on): Add mkdir.
40038         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40039
40040         mkdir, mkdirat: add tests
40041         * modules/mkdir-tests: New test.
40042         * tests/test-mkdir.h: New file.
40043         * tests/test-mkdir.c: Likewise.
40044         * tests/test-mkdirat.c: Likewise.
40045         * modules/openat-tests (Files): Add new files.
40046         (Makefile.am): Run new test.
40047
40048 2009-10-06  Eric Blake  <ebb9@byu.net>
40049
40050         doc: tweak *at function documentation
40051         * doc/posix-functions/faccessat.texi (faccessat): Mention
40052         known issue with replacement.
40053         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40054         * doc/posix-functions/linkat.texi (linkat): Likewise.
40055         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40056         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40057         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40058         * doc/posix-functions/renameat.texi (renameat): Likewise.
40059         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40060
40061         openat: fix GNU/Hurd bug in unlinkat
40062         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40063         broken.
40064         * doc/posix-functions/unlink.texi (unlink): Document this.
40065         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40066
40067         fdopendir: fix GNU/Hurd bug
40068         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40069         allowing non-directory fds.
40070         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40071         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40072         * modules/dirent (Makefile.am): Substitute it.
40073         * lib/dirent.in.h (fdopendir): Declare replacement.
40074         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40075         * tests/test-fdopendir.c (main): Test something other than
40076         /dev/null, since on Hurd that behaves like a directory.
40077
40078         test-symlink: port to GNU/Hurd
40079         * tests/test-symlink.h (test_symlink): Relax expected errno.
40080
40081         doc: tweak more cygwin information
40082         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40083         now compatible with glibc.
40084         * doc/posix-functions/getopt.texi (getopt): Likewise.
40085
40086         getopt-gnu: add another test
40087         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40088         guarantee behavior relied on by m4.
40089         * tests/test-getopt.c (main): Use it.
40090         * modules/getopt-posix-tests (Depends-on): Add setenv.
40091         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40092
40093         getopt: fix compilation on darwin
40094         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40095         include.
40096         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40097         Reported by Ludovic Courtès.
40098
40099 2009-10-06  Bruno Haible  <bruno@clisp.org>
40100
40101         * modules/size_max (Description): Discourage its use.
40102         Reported by Simon Josefsson.
40103
40104 2009-10-06  Jim Meyering  <meyering@redhat.com>
40105
40106         linkat: avoid compilation failure
40107         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40108
40109 2009-10-05  Eric Blake  <ebb9@byu.net>
40110
40111         linkat: support Linux 2.6.17
40112         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40113         linkat on Linux, but allow cache variable override.
40114         * lib/linkat.c (rpl_linkat): Define override.
40115         * modules/linkat (Depends-on): Add symlinkat.
40116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40117         * modules/unistd (Makefile.am): Substitute it.
40118         * lib/unistd.in.h (linkat): Declare replacement.
40119         Reported by Pádraig Brady.
40120
40121         quotearg: port test to systems with C.UTF-8 locale
40122         * tests/test-quotearg.c (struct result_strings): Add another
40123         member, differentiating between C.ASCII and C.UTF-8 handling.
40124         (compare_strings): Add parameter.
40125         (main): Adjust all callers.
40126
40127         getopt: avoid clash with FreeBSD _getopt_internal
40128         * lib/getopt.in.h (_getopt_internal): Override the name.
40129         * lib/getopt_int.h (includes): Pick up any overrides.
40130         Reported by Reuben Thomas.
40131
40132         hash: allow C89 compilation
40133         * lib/hash.c (check_tuning): Move declaration before statement.
40134         Reported by Reuben Thomas.
40135
40136 2009-10-05  Karl Berry  <karl@gnu.org>
40137
40138         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40139
40140 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40141             Bruno Haible  <bruno@clisp.org>
40142
40143         * lib/uname.c (uname): Use a table-driven algorithm to compute
40144         Windows NT versions.
40145
40146 2009-10-04  Bruno Haible  <bruno@clisp.org>
40147
40148         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40149         program_invocation_short_name.
40150         * modules/progname (configure.ac): Test for presence of
40151         program_invocation_short_name.
40152         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40153
40154 2009-10-04  Bruno Haible  <bruno@clisp.org>
40155
40156         * lib/progname.c (set_program_name): Fix comment.
40157         Reported by Jim Meyering.
40158
40159 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40160             Bruno Haible  <bruno@clisp.org>
40161
40162         * lib/uname.c: Include <string.h>.
40163         (uname): Do only one call to GetVersionEx in the common case.
40164
40165 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40166             Bruno Haible  <bruno@clisp.org>
40167
40168         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40169         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40170         (uname): Add support for Windows CE and various non-x86 CPU types.
40171
40172 2009-10-03  Bruno Haible  <bruno@clisp.org>
40173
40174         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40175         invocation to tests/configure.ac.
40176         Reported by Ian Beckwith <ianb@erislabs.net>.
40177
40178 2009-10-02  Eric Blake  <ebb9@byu.net>
40179
40180         fchdir: avoid compiler warning
40181         * lib/fchdir.c (canonicalize_file_name)
40182         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40183
40184         test-open: support mingw errno values
40185         * tests/test-open.h (test_open): Relax test.
40186         * tests/test-fopen.h (test_fopen): Likewise.
40187         * tests/test-openat-safer.c (main): Likewise.
40188
40189         open: fix opening directory on mingw
40190         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40191
40192         test-open: on GNU/Hurd, /dev/null is a directory
40193         * tests/test-fopen.h (main): Rename...
40194         (test_fopen): ...to this.  Use a guaranteed non-directory when
40195         confirming open behavior on trailing slash.
40196         * tests/test-openat-safer.c (main): Likewise.
40197         * tests/test-open.h (main): Likewise....
40198         (test_open): ...to this.
40199         * tests/test-fopen.c (main): Adjust caller.
40200         * tests/test-fopen-safer.c (main): Likewise.
40201         * tests/test-open.c (main): Likewise.
40202         * tests/test-fcntl-safer.c (main): Likewise.
40203         Reported by Samuel Thibault.
40204
40205         rename, fchdir: don't ignore chdir failure
40206         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40207         * lib/rename.c (rpl_rename) [W32]: Likewise.
40208         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40209         an empty destination directory if source cannot be renamed,
40210         although there is still possibility for failure.
40211         * doc/posix-functions/rename.texi (rename): Document the race.
40212         Reported by Jim Meyering.
40213
40214         maint: cleanup whitespace in recent commits
40215         * lib/rename.c (rpl_rename): Remove tabs.
40216         * tests/test-link.h (test_link): Likewise.
40217         * lib/fchdir.c (get_name): Likewise.
40218         Reported by Jim Meyering.
40219
40220 2009-10-02  Ben Pfaff  <blp@gnu.org>
40221
40222         relocatable-prog-wrapper: Add missing dependency on
40223         double-slash-root.
40224         * modules/relocatable-prog-wrapper: Add dependency.
40225         Reported by Ian Beckwith <ianb@erislabs.net>.
40226
40227 2009-10-02  Eric Blake  <ebb9@byu.net>
40228
40229         renameat: fix Solaris bugs
40230         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40231         needed fixing.
40232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40233         * modules/stdio (Makefile.am): Substitute it.
40234         * lib/stdio.in.h (renameat): Declare replacement.
40235         * lib/renameat.c (rpl_renameat): Implement fix.
40236
40237         renameat: new module
40238         * modules/renameat: New file.
40239         * lib/renameat.c (renameat): Likewise.
40240         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40242         * modules/stdio (Makefile.am): Substitute them.
40243         * lib/stdio.in.h (renameat): Declare it.
40244         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40245         * doc/posix-functions/renameat.texi (renameat): Likewise.
40246         * modules/renameat-tests: New test.
40247         * tests/test-renameat.c: Likewise.
40248
40249         rename: fix mingw bugs
40250         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40251         directory overwrite bugs.
40252
40253         rename: fix another cygwin 1.5 bug
40254         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40255         checks.
40256         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40257         unnecessary cygwin workarounds.  Also work around bug with moving
40258         full directory onto an empty one.
40259         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40260
40261         rename-dest-slash: merge into rename module
40262         * modules/rename-dest-slash (Status): Mark obsolete.
40263         (Depends-on): Add rename.
40264         (Files): Let rename do it all.
40265         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40266         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40267         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40268         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40269         * lib/rename.c (rpl_rename): Update comments.
40270
40271         rename: fix cygwin 1.5.x bugs
40272         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40273         * lib/rename.c (rpl_rename): Work around them.
40274         * modules/rename (Depends-on): Add same-inode.
40275
40276         rename: fix Solaris 10 bug
40277         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40278         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40279         was the only bug.
40280
40281         rename: fix Solaris 9 bug
40282         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40283         on non-directory.  Avoid calling exit.
40284         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40285         strdup.
40286         * modules/rename-tests (Depends-on): Drop lstat.
40287         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40288         (gl_PREREQ_RENAME): Delete unused macro.
40289
40290         rename-dest-slash: fix NetBSD bug
40291         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40292         links.
40293         * modules/rename-dest-slash (Depends-on): Add same-inode.
40294
40295         rename-tests: new test, exposes several platform bugs
40296         * modules/rename-tests: New file.
40297         * tests/test-rename.h: Likewise.
40298         * tests/test-rename.c: Likewise.
40299         * doc/posix-functions/rename.texi (rename): Improve documentation,
40300         including bugs that will eventually be fixed in gnulib.
40301
40302 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40303
40304         * lib/uname.c: Include <stdlib.h>
40305         (uname): Assume version info is available.
40306
40307 2009-10-02  Jim Meyering  <meyering@redhat.com>
40308
40309         gnu-web-doc-update: correct --help output
40310         * build-aux/gnu-web-doc-update: Make --help output relevant.
40311
40312         gnu-web-doc-update: add standard options
40313         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40314
40315         gnu-web-doc-update: New module.
40316         Use this script to automatically update the on-line web documentation
40317         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40318         * modules/gnu-web-doc-update: New file, from coreutils.
40319         * build-aux/gnu-web-doc-update: New script.
40320
40321 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40322
40323         link: LoadLibrary is not needed.
40324         * lib/link.c: Use GetModuleHandle.
40325
40326 2009-10-01  Eric Blake  <ebb9@byu.net>
40327
40328         getopt: bump serial number
40329         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40330         change.
40331
40332         tests: tighten link, rmdir, and remove tests
40333         * tests/test-link.h (includes): No need to use <config.h> here.
40334         Clean up if directory hard link was created, otherwise test for
40335         trailing '.'.
40336         * tests/test-linkat.c (main): Simplify.
40337         * tests/test-remove.c (main): Enhance test for trailing '.'.
40338         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40339
40340 2009-10-01  Jim Meyering  <meyering@redhat.com>
40341
40342         maint.mk: requiring "make major" was annoying, for a "minor" release.
40343         What is intended is "stable", to contrast with alpha and beta,
40344         so require "make stable", not "make major".
40345         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40346         (get_tool_versions): Likewise.
40347         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40348
40349 2009-09-30  Ben Pfaff  <blp@gnu.org>
40350
40351         Fix broken build of replacement for Windows tmpfile().
40352         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40353         flags argument added along with the 'mkostemp' module.
40354
40355 2009-09-28  Bruno Haible  <bruno@clisp.org>
40356
40357         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40358         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40359         to 'remove_elt'.
40360         (gl_list_remove): Update.
40361         * lib/gl_list.c (gl_list_remove): Update.
40362         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40363         to 'remove_elt'.
40364         (gl_oset_remove): Update.
40365         * lib/gl_list.c (gl_oset_remove): Update.
40366         Reported by Eric Blake.
40367
40368 2009-09-28  Eric Blake  <ebb9@byu.net>
40369
40370         doc: mention yet more cygwin 1.7 status
40371         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40372         cygwin.
40373         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40374         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40375
40376         argp: fix test failure
40377         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40378         that are not upper-case.  Pass correct range to tolower.
40379
40380 2009-09-27  Jim Meyering  <meyering@redhat.com>
40381
40382         test-yesno: work around sparc-dash here-document infelicity
40383         Without this change, the literal \177 byte in a here document
40384         would make dash 0.5.5.1-3 access uninitialized memory.
40385         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40386         Instead, use a marker, "@", and filter through tr to create the desired
40387         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40388
40389 2009-09-27  Bruno Haible  <bruno@clisp.org>
40390
40391         Disable untested support for new flavours of ACLs on AIX.
40392         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40393         progress.
40394         * lib/set-mode-acl.c (qset_acl): Likewise.
40395
40396 2008-12-07  Bruno Haible  <bruno@clisp.org>
40397
40398         Add support for new flavours of ACLs on AIX. (Untested.)
40399         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40400         (file_has_acl): Add support for newer AIX.
40401         * lib/set-mode-acl.c (qset_acl): Likewise.
40402         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40403         Rainer Tammer <tammer@tammer.net>.
40404
40405 2009-09-26  Eric Blake  <ebb9@byu.net>
40406
40407         argp: fix compilation of getopt
40408         * lib/getopt.in.h (includes): Use different guard than glibc.
40409         Reported by Sergey Poznyakoff.
40410
40411         doc: mention more cygwin 1.7 status
40412         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40413         bug.
40414         * doc/posix-functions/execl.texi (execl): Likewise.
40415         * doc/posix-functions/execle.texi (execle): Likewise.
40416         * doc/posix-functions/execlp.texi (execlp): Likewise.
40417         * doc/posix-functions/execv.texi (execv): Likewise.
40418         * doc/posix-functions/execve.texi (execve): Likewise.
40419         * doc/posix-functions/execvp.texi (execvp): Likewise.
40420         * doc/glibc-functions/canonicalize_file_name.texi
40421         (canonicalize_file_name): Cygwin 1.7 now provides this.
40422         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40423         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40424         on AT_SYMLINK_NOFOLLOW.
40425
40426 2009-09-24  Eric Blake  <ebb9@byu.net>
40427
40428         test-linkat: make test more robust
40429         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40430
40431         getopt: fix inclusion guards for cygwin
40432         * modules/getopt-posix (Depends-on): Add include-next.
40433         (Makefile.am): Substitute more items in replacement header.
40434         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40435         <getopt.h>.
40436         * lib/getopt.in.h (includes): Use split inclusion guard, and
40437         prefer <getopt.h> over include <unistd.h> when one is present.
40438         (option): Also override name of 'struct option'.
40439
40440         same-inode: revert prior change; it is not yet ready
40441         * NEWS: Undo mention of this change.
40442         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40443         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40444         * lib/cycle-check.c (cycle_check): Likewise.
40445         * lib/same.c (same_name): Likewise.
40446         * lib/at-func2.c (at_func2): Likewise.
40447
40448 2009-09-23  Eric Blake  <ebb9@byu.net>
40449
40450         linkat: new module
40451         * modules/linkat: New file.
40452         * lib/at-func2.c (at_func2): Likewise.
40453         * lib/linkat.c (linkat): Likewise.
40454         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40455         * lib/openat-priv.h (at_func2): Add declaration.
40456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40457         * modules/unistd (Makefile.am): Substitute them.
40458         * lib/unistd.in.h (linkat): Declare it.
40459         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40460         * doc/posix-functions/linkat.texi (linkat): Likewise.
40461         * doc/posix-functions/link.texi (link): Tweak wording.
40462         * tests/test-link.c (main): Move guts...
40463         * tests/test-link.h (test_link): ...into new file.
40464         * modules/linkat-tests: New test.
40465         * tests/test-linkat.c: Likewise.
40466         * modules/link-tests (Files): Ship new file.
40467         (Depends-on): Add stdbool.
40468
40469         dirname: add library-safe mdir_name
40470         * lib/dirname.h (mdir_name): New prototype.
40471         * lib/dirname.c (dir_name): Move guts...
40472         (mdir_name): ...to new function that avoids xalloc_die.
40473
40474         fchdir: another mingw fix
40475         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40476         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40477         on mingw (where it has not yet been ported), and make it optional
40478         elsewhere.
40479         (_gl_register_fd): Use it.
40480
40481         same-inode: make SAME_INODE tri-state, to port to mingw
40482         * NEWS: Mention this change.
40483         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40484         st_ino always being 0.
40485         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40486         * lib/cycle-check.c (cycle_check): Likewise.
40487         * lib/same.c (same_name): Likewise.
40488
40489         lstat: avoid mingw compilation error
40490         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40491         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40492         lstat ourselves.
40493         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40494         was adequate.
40495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40496         the checks for lstat.
40497         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40498
40499         link: fix test failure on Solaris 9
40500         * lib/link.c (rpl_link): Don't assume link will catch bogus
40501         trailing slash on source.
40502
40503         test-symlinkat: enhance test
40504         * tests/test-readlink.c (main): Move guts...
40505         * tests/test-readlink.h (test_readlink): ...into new file.
40506         * tests/test-symlink.c (main): Move guts...
40507         * tests/test-symlink.h (test_symlink): ...into new file.
40508         * tests/test-symlinkat.c (main): Use new files for further
40509         coverage.
40510         (do_symlink, do_readlink): New helper functions.
40511         * modules/symlink-tests (Files): Ship new file.
40512         (Depends-on): Add stdbool.
40513         * modules/readlink-tests (Files): Ship new file.
40514         (Depends-on): Add stdbool.
40515         * modules/symlinkat-tests (Files): Use new files.
40516
40517 2009-09-23  Eric Blake  <ebb9@byu.net>
40518
40519         readlink: document portability issue with symlink length
40520         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40521         systems have bogus st_size on symlinks, and mention the
40522         areadlink-with-size module.
40523         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40524         * doc/posix-functions/readlink.texi (readlink): Mention the
40525         areadlink module, and ERANGE failure.
40526         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40527         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40528
40529         readlink: fix Solaris 9 bug with trailing slash
40530         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40531         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40532         * doc/posix-functions/readlink.texi (readlink): Document this.
40533         * modules/readlink-tests: New test.
40534         * tests/test-readlink.c: Likewise.
40535
40536         readlink: fix cygwin 1.5.x bug with return type
40537         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40538         * lib/unistd.in.h (readlink): Use ssize_t.
40539         * lib/readlink.c (readlink): Likewise.
40540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40541         * modules/unistd (Makefile.am): Substitute it.
40542         * lib/unistd.in.h (readlink): Declare replacement.
40543         * doc/posix-functions/readlink.texi (readlink): Document this.
40544
40545         symlink: use throughout gnulib
40546         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40547         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40548         symlink is not used.
40549         * modules/symlinkat (Depends-on): Add symlink.
40550         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40551         * modules/canonicalize-tests (Depends-on): Likewise.
40552         * modules/lstat-tests (Depends-on): Likewise.
40553         * modules/openat-tests (Depends-on): Likewise.
40554         * modules/remove-tests (Depends-on): Likewise.
40555         * modules/rmdir-tests (Depends-on): Likewise.
40556         * modules/unlink-tests (Depends-on): Likewise.
40557         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40558         * tests/test-canonicalize.c (symlink): Likewise.
40559         * tests/test-fstatat.c (symlink): Likewise.
40560         * tests/test-lstat.c (symlink): Likewise.
40561         * tests/test-remove.c (symlink): Likewise.
40562         * tests/test-rmdir.c (symlink): Likewise.
40563         * tests/test-unlink.c (symlink): Likewise.
40564         * tests/test-unlinkat.c (symlink): Likewise.
40565
40566         symlink: new module, for Solaris 9 bug
40567         * modules/symlink: New file.
40568         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40569         * lib/symlink.c: Likewise.
40570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40571         * modules/unistd (Makefile.am): Substitute them.
40572         * lib/unistd.in.h (symlink): Declare replacement.
40573         * MODULES.html.sh (File system functions): Mention it.
40574         * doc/posix-functions/symlink.texi (symlink): Likewise.
40575         * modules/symlink-tests: New test.
40576         * tests/test-symlink.c: Likewise.
40577
40578 2009-09-23  Bruno Haible  <bruno@clisp.org>
40579
40580         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40581         when needed.
40582         Test case: gnulib-tool --import --with-tests atexit inttypes.
40583         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40584
40585 2009-09-23  Bruno Haible  <bruno@clisp.org>
40586
40587         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40588         subcommand, not in a subshell.
40589
40590 2009-09-22  Eric Blake  <ebb9@byu.net>
40591
40592         unistd: sort replacement declarations
40593         * lib/unistd.in.h: Sort declarations.
40594
40595         open, openat: minor optimization
40596         * lib/open.c (open): If open succeeded, len is non-zero.
40597         * lib/openat.c (rpl_openat): Likewise.
40598
40599         link-follow: ensure correct result
40600         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40601         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40602         distinguish between possible failures.
40603
40604 2009-09-21  Eric Blake  <ebb9@byu.net>
40605
40606         fts: avoid compiler warning
40607         * lib/fts.c (dirent_inode_sort_may_be_useful)
40608         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40609
40610 2009-09-19  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/progreloc.c (canonicalize_file_name): New declaration.
40613
40614 2009-09-19  Eric Blake  <ebb9@byu.net>
40615
40616         link: fix quoting
40617         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40618
40619         openat: fix openat bugs on Solaris 9
40620         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40621         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40622         * modules/openat (Depends-on): Add open.
40623         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40624         * modules/fcntl-h (Makefile.am): Substitute it.
40625         * lib/fcntl.in.h (openat): Declare replacement.
40626         * doc/posix-functions/openat.texi (openat): Document this.
40627
40628         openat: move fstatat and unlinkat into correct files
40629         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40630         compiled.
40631         * lib/openat.c (fstatat, unlinkat): Move...
40632         * lib/fstatat.c (fstatat): ...into correct files.
40633         * lib/unlinkat.c (unlinkat): Likewise.
40634
40635         openat: fix unlinkat bugs on Solaris 9
40636         * lib/unlinkat.c (unlinkat): New file.
40637         * modules/openat (Depends-on): Add unlink.
40638         (Files): Distribute it.
40639         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40640         trailing slash behavior is broken.
40641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40642         * modules/unistd (Makefile.am): Substitute it.
40643         * lib/unistd.in.h (unlinkat): Declare replacement.
40644         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40645
40646         openat: fix fstatat bugs on Solaris 9
40647         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40648         stat.
40649         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40650
40651         test-unlinkat: enhance test, to expose Solaris 9 bug
40652         * tests/test-unlink.c (main): Factor guts...
40653         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40654         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40655         * tests/test-rmdir.c (main): Adjust caller.
40656         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40657         (unlinker): New helper function.
40658         (rmdirat): Enhance check.
40659         * modules/rmdir-tests (Depends-on): Add stdbool.
40660         * modules/unlink-tests (Depends-on): Likewise.
40661         (Files): Add test-unlink.h.
40662         * modules/openat-tests (Files): Likewise.
40663         (Depends-on): Add unlinkdir.
40664
40665         test-fstatat: new test, to expose Solaris 9 bugs
40666         * tests/test-stat.c (main): Factor guts...
40667         * tests/test-stat.h (test_stat_func): ...into new file.
40668         * tests/test-lstat.c (main): Factor guts...
40669         * tests/test-lstat.h (test_lstat_func): ...into new file.
40670         * tests/test-fstatat.c: New file.
40671         * modules/stat-tests (Files): Add test-stat.h.
40672         * modules/lstat-tests (Files): Add test-lstat.h.
40673         (Depends-on): Add stdbool.
40674         * modules/openat-tests (Depends-on): Add pathmax.
40675         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40676         (Makefile.am): Run new test.
40677
40678         remove: new module, for mingw and Solaris 9 bugs
40679         * modules/remove: New file.
40680         * lib/remove.c: Likewise.
40681         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40683         * modules/stdio (Makefile.am): Use them.
40684         * lib/stdio.in.h (remove): Declare replacement.
40685         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40686         * doc/posix-functions/remove.texi (remove): Likewise.
40687         * modules/remove-tests: New test.
40688         * tests/test-remove.c: Likewise.
40689
40690         unlink: new module, for Solaris 9 bug
40691         * modules/unlink: New file.
40692         * lib/unlink.c: Likewise.
40693         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40695         * modules/unistd (Makefile.am): Use them.
40696         * lib/unistd.in.h (stat): Declare replacement.
40697         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40698         * doc/posix-functions/unlink.texi (unlink): Likewise.
40699         * modules/unlink-tests: New test.
40700         * tests/test-unlink.c: Likewise.
40701
40702         lstat: fix Solaris 9 bug
40703         * lib/lstat.c (lstat): Also check for trailing slash on
40704         non-symlink, non-directories.  Use stat module to simplify logic.
40705         * doc/posix-functions/lstat.texi (lstat): Document it.
40706         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40707         (configure.ac): Check for symlink.
40708         * tests/test-lstat.c (main): Add more tests.
40709
40710         stat: add as dependency to other modules
40711         * modules/chown (Depends-on): Add stat.
40712         * modules/euidaccess (Depends-on): Likewise.
40713         * modules/fchdir (Depends-on): Likewise.
40714         * modules/isdir (Depends-on): Likewise.
40715         * modules/link (Depends-on): Likewise.
40716         * modules/lstat (Depends-on): Likewise.
40717         * modules/mkdir-p (Depends-on): Likewise.
40718         * modules/modechange (Depends-on): Likewise.
40719         * modules/open (Depends-on): Likewise.
40720         * modules/readlink (Depends-on): Likewise.
40721         * modules/same (Depends-on): Likewise.
40722
40723         stat: fix Solaris 9 bug
40724         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40725         slash.
40726         * lib/stat.c (rpl_stat): Work around it.
40727         * doc/posix-functions/stat.texi (stat): Update documentation.
40728
40729         stat: new module, for mingw bug
40730         * modules/stat: New file.
40731         * lib/stat.c: Likewise.
40732         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40734         * modules/sys_stat (Makefile.am): Use them.
40735         * lib/sys_stat.in.h (stat): Declare replacement.
40736         * lib/openat.c (fstatat): Deal with lstat and stat being function
40737         macros.
40738         * modules/openat (Depends-on): Add inline.
40739         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40740         * doc/posix-functions/stat.texi (stat): Likewise.
40741         * modules/stat-tests: New test.
40742         * tests/test-stat.c: Likewise.
40743
40744 2009-09-19  Jim Meyering  <meyering@redhat.com>
40745
40746         syntax-check: detect unnecessary inclusion of canonicalize.h
40747         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40748
40749 2009-09-19  Eric Blake  <ebb9@byu.net>
40750
40751         canonicalize-lgpl: adjust clients to use correct header
40752         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40753         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40754         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40755         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40756         * lib/progreloc.c (includes): Likewise.
40757
40758 2009-09-19  Jim Meyering  <meyering@redhat.com>
40759
40760         test-posixtm.c: correct a comment
40761         * tests/test-posixtm.c: Correct first-line comment.
40762         Spotted by Eric Blake.
40763
40764 2009-09-16  Jim Meyering  <meyering@redhat.com>
40765
40766         posixtm-tests: make T const-correct; add a test case
40767         * tests/test-posixtm.c (T): Declare const.
40768         Add a test for -(2^31+1).
40769         Remove useless can-succeed-only-in-2002 test.
40770
40771         posixtm-tests: adjust the sole failing test
40772         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40773         expected output matches what mktime now produces.  Cross-checked via
40774         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40775
40776         posixtm: move #ifdef'd tests into a new module
40777         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40778         * tests/test-posixtm.c: ... this new file.
40779         * modules/posixtm-tests: New module.
40780
40781 2009-09-19  Eric Blake  <ebb9@byu.net>
40782
40783         openat: simplify use of at-func.c
40784         * lib/at-func.c (includes): Include prerequisites here, to
40785         simplify requirements on client files.
40786         * lib/openat-priv.h: Add double-inclusion guard.
40787         * lib/faccessat.c (includes): Simplify.
40788         * lib/fchmodat.c (includes): Likewise.
40789         * lib/fchownat.c (includes): Likewise.
40790         * lib/mkdirat.c (includes): Likewise.
40791         * lib/mkfifoat.c (includes): Likewise.
40792         * lib/symlinkat.c (includes): Likewise.
40793
40794         openat: allow return of fd 0
40795         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40796         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40797         unistd-safer.
40798         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40799         <fcntl.h>; this module does not leak fds.
40800         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40801         must be allowed to return 0, leaving openat_safer to add the
40802         safety.
40803         (openat_permissive): Avoid writing to just-opened fd 2 if
40804         restoring the current directory fails.
40805         * lib/openat-die.c (openat_restore_fail): Add comment.
40806         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40807         (save_cwd): Guarantee safe fd, but without use of open_safer.
40808         * tests/test-openat.c: New test.
40809         * modules/openat-tests (Files, Makefile.am): Distribute and build
40810         new file.
40811
40812         relocatable-prog-wrapper: fix build
40813         * modules/relocatable-prog-wrapper (Files): Update name of
40814         canonicalize m4 file, broken on 2009-09-17.
40815         Reported by emad hajjar <aleppos@hotmail.com>.
40816
40817 2009-09-19  Bruno Haible  <bruno@clisp.org>
40818
40819         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40820         * lib/safe-alloc.c: Likewise.
40821         Reported by Ian Beckwith <ianb@erislabs.net>.
40822
40823 2009-09-18  Bruno Haible  <bruno@clisp.org>
40824
40825         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40826         Reported by <erobles@sensacd.com.mx>.
40827
40828 2009-09-17  Eric Blake  <ebb9@byu.net>
40829
40830         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40831         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40832         slashes when checking if last component is missing.
40833         * tests/test-canonicalize.c (main): Test this.
40834
40835         canonicalize, canonicalize-lgpl: honor // if distinct from /
40836         * modules/canonicalize (Files): Add double-slash-root.m4.
40837         * modules/canonicalize-lgpl (Files): Likewise.
40838         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40839         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40840         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40841         fallback definition.
40842         (canonicalize_filename_mode): Use it to protect //.
40843         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40844         (__realpath): Likewise.
40845         * tests/test-canonicalize.c (main): Test this.
40846         * tests/test-canonicalize-lgpl.c (main): Likewise.
40847         * modules/canonicalize-tests (Depends-on): Add same-inode.
40848         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40849
40850         canonicalize-lgpl: fix glibc bug with trailing slash
40851         * m4/canonicalize-lgpl.m4: Move contents...
40852         * m4/canonicalize.m4: ...here.
40853         (gl_CANONICALIZE_LGPL): Factor realpath check...
40854         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40855         glibc 2.3.5 bug, fixed 2005-04-27.
40856         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40857         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40858         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40859         * modules/canonicalize-lgpl (Files): Manage file rename.
40860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40861         * modules/stdlib (Makefile.am): Substitute witness.
40862         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40863         is needed.
40864         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40865         replacement is required.
40866         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40867         * doc/glibc-functions/canonicalize_file_name.texi
40868         (canonicalize_file_name): Document this.
40869         * doc/posix-functions/realpath.texi (realpath): Likewise.
40870
40871         canonicalize-lgpl: reject non-directory with trailing slash
40872         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40873         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40874         catches failures in glibc 2.3.5.
40875         * tests/test-canonicalize.c (main): Likewise.
40876
40877         canonicalize-lgpl: use native realpath if it works
40878         * lib/canonicalize-lgpl.c (realpath): Guard with
40879         FUNC_REALPATH_WORKS.
40880         * lib/stdlib.in.h (realpath): Make declaration optional based on
40881         HAVE_REALPATH.
40882         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40883         native realpath works.
40884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40885         * modules/stdlib (Makefile.am): Substitute witness.
40886
40887         canonicalize, canonicalize-lgpl: use <stdlib.h>
40888         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40889         (Include): Mention <stdlib.h>.
40890         (configure.ac): Mention functions we provide.
40891         * modules/canonicalize (configure.ac): Likewise.
40892         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40893         realpath if canonicalize_file_name is missing.
40894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40895         * modules/stdlib (Makefile.am): Substitute witnesses.
40896         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40897         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40898         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40899         * NEWS: Document this.
40900         * doc/glibc-functions/canonicalize_file_name.texi
40901         (canonicalize_file_name): Likewise.
40902         * doc/posix-functions/realpath.texi (realpath): Likewise.
40903         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40904
40905         test-canonicalize: consolidate into single C program
40906         * tests/test-canonicalize.sh: Delete; move setup into...
40907         * tests/test-canonicalize.c (main): ...the program, making it
40908         easier to run in debugger.  Add some tests.
40909         * modules/canonicalize-tests (Files): Remove unused file.
40910         (Depends-on): Add progname.
40911         (configure.ac, Makefile.am): Simplify.
40912
40913         test-canonicalize-lgpl: consolidate into single C program
40914         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40915         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40916         easier to run in debugger.  Add some tests.
40917         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40918         (configure.ac, Makefile.am): Simplify.
40919
40920         canonicalize: avoid resolvepath
40921         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40922         unnecessary checks.
40923         * lib/canonicalize.c (includes): Simplify.
40924         (canonicalize_file_name): Drop resolvepath implementation.
40925         * modules/canonicalize (Depends-on): Drop filenamecat.
40926
40927         canonicalize: don't lose errno
40928         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40929         over calls to free.
40930
40931         canonicalize: simplify errno handling
40932         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40933         assignment.
40934
40935         canonicalize, canonicalize-lgpl: update module dependencies
40936         * modules/canonicalize (Depends-on): Add extensions, lstat,
40937         pathmax, stdlib.
40938         (Files): Drop pathmax.h.
40939         (configure.ac): Adjust macro name.
40940         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40941         lstat, stdlib, sys_stat.
40942         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40943         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40944         extensions.
40945         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40946         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40947         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40948         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40949         declaration, if available.
40950         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40951         we can rely on the readlink module.
40952         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40953         (includes): Use <unistd.h> unconditionally.
40954
40955 2009-09-17  Eric Blake  <ebb9@byu.net>
40956
40957         maint: make Include sections of modules consistent
40958         * modules/alloca: Use only header name; no need to list #include.
40959         * modules/alloca-opt: Likewise.
40960         * modules/arpa_inet: Likewise.
40961         * modules/canon-host: Likewise.
40962         * modules/configmake: Likewise.
40963         * modules/dirent: Likewise.
40964         * modules/eealloc: Likewise.
40965         * modules/environ: Likewise.
40966         * modules/fchdir: Likewise.
40967         * modules/fcntl: Likewise.
40968         * modules/fcntl-h: Likewise.
40969         * modules/gethrxtime: Likewise.
40970         * modules/gettime: Likewise.
40971         * modules/ignore-value: Likewise.
40972         * modules/inet_ntop: Likewise.
40973         * modules/inet_pton: Likewise.
40974         * modules/inttypes: Likewise.
40975         * modules/isnand-nolibm: Likewise.
40976         * modules/isnanf-nolibm: Likewise.
40977         * modules/mbchar: Likewise.
40978         * modules/mbfile: Likewise.
40979         * modules/mbiter: Likewise.
40980         * modules/mbuiter: Likewise.
40981         * modules/netdb: Likewise.
40982         * modules/netinet_in: Likewise.
40983         * modules/nproc: Likewise.
40984         * modules/pagealign_alloc: Likewise.
40985         * modules/poll: Likewise.
40986         * modules/printf-frexp: Likewise.
40987         * modules/pthread: Likewise.
40988         * modules/putenv: Likewise.
40989         * modules/random_r: Likewise.
40990         * modules/relocatable-prog: Likewise.
40991         * modules/search: Likewise.
40992         * modules/select: Likewise.
40993         * modules/selinux-h: Likewise.
40994         * modules/settime: Likewise.
40995         * modules/signal: Likewise.
40996         * modules/size_max: Likewise.
40997         * modules/socklen: Likewise.
40998         * modules/ssize_t: Likewise.
40999         * modules/stdarg: Likewise.
41000         * modules/stdbool: Likewise.
41001         * modules/stddef: Likewise.
41002         * modules/stdint: Likewise.
41003         * modules/stdio: Likewise.
41004         * modules/stdlib: Likewise.
41005         * modules/string: Likewise.
41006         * modules/strings: Likewise.
41007         * modules/sys_file: Likewise.
41008         * modules/sys_ioctl: Likewise.
41009         * modules/sys_select: Likewise.
41010         * modules/sys_socket: Likewise.
41011         * modules/sys_stat: Likewise.
41012         * modules/sys_time: Likewise.
41013         * modules/sys_times: Likewise.
41014         * modules/sys_utsname: Likewise.
41015         * modules/sys_wait: Likewise.
41016         * modules/sysexits: Likewise.
41017         * modules/time: Likewise.
41018         * modules/times: Likewise.
41019         * modules/tmpfile: Likewise.
41020         * modules/trim: Likewise.
41021         * modules/unistd: Likewise.
41022         * modules/wchar: Likewise.
41023         * modules/wctype: Likewise.
41024
41025 2009-09-17  Bruno Haible  <bruno@clisp.org>
41026
41027         Make getdate.y compile on QNX and NetBSD 5 / i386.
41028         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41029         TIME_T_FITS_IN_LONG_INT.
41030         * lib/getdate.y (long_time_t): New type.
41031         (relative_time): Change type of 'seconds' field to long_time_t.
41032         (get_date): Update types of local variables. Check against overflow
41033         during conversion from long_time_t to time_t.
41034         Reported by Matt Kraai <kraai@ftbfs.org>
41035         and Hasso Tepper <hasso@netbsd.org>.
41036
41037 2009-09-17  Bruno Haible  <bruno@clisp.org>
41038
41039         * modules/COPYING: Update copyright years.
41040         * modules/README: Likeiwse.
41041         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41042         Reported by Ian Beckwith <ianb@erislabs.net>.
41043
41044 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41045
41046         * users.txt: Update references for gnuit package.
41047
41048 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41049
41050         * m4/getdelim.m4: Fix typo in copyright line.
41051
41052 2009-09-17  Bruno Haible  <bruno@clisp.org>
41053
41054         * lib/atoll.c: Use the standard header with GPL copyright.
41055         * lib/argz.in.h: Likewise.
41056         * lib/glob.c: Likewise.
41057         * lib/glob-libc.h: Likewise.
41058         * lib/random_r.c: Likewise.
41059         * lib/siglist.h: Likewise.
41060         * lib/strsignal.c: Likewise.
41061         Reported by Ian Beckwith <ianb@erislabs.net>.
41062
41063 2009-09-17  Eric Blake  <ebb9@byu.net>
41064
41065         rmdir: ensure correct dependency order
41066         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41067
41068 2009-09-17  Bruno Haible  <bruno@clisp.org>
41069
41070         Disable assertion that fails on NetBSD 5 / i386.
41071         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41072         Reported by Sam Steingold <sds@gnu.org>
41073         and Hasso Tepper <hasso@netbsd.org>.
41074
41075 2009-09-16  Eric Blake  <ebb9@byu.net>
41076
41077         unlinkdir: port to mingw
41078         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41079         on which no one can unlink a directory.
41080
41081         stdlib: sort witness names
41082         * modules/stdlib (Makefile.am): Sort replacements.
41083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41084         * lib/stdlib.in.h: Likewise.
41085
41086         parse-duration-tests: avoid link failure
41087         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41088         LIBINTL.
41089         Reported by Tom G. Christensen.
41090
41091         openat-tests: ensure unlinkat behaves like rmdir
41092         * tests/test-rmdir.c (main): Factor guts...
41093         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41094         * modules/rmdir-tests (Files): Ship new file.
41095         * modules/openat-tests: New test.
41096         * tests/test-unlinkat.c: Likewise.
41097
41098         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41099         * modules/rmdir-errno (Status, Notice): Now obsolete.
41100
41101         rmdir: work around cygwin 1.5.x and mingw bugs
41102         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41103         * lib/rmdir.c (rmdir): Work around it.
41104         * modules/rmdir (Status, Notice): No longer obsolete.
41105         (Files): Add dos.m4.
41106         (Depends-on): Add unistd.
41107         (configure.ac): Set witnesses.
41108         (License): Relax to LGPLv2+.
41109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41110         * modules/unistd (Makefile.am): Substitute witnesses.
41111         * lib/unistd.in.h (rmdir): Declare replacement.
41112         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41113         * modules/rmdir-tests: New tests.
41114         * tests/test-rmdir.c: Likewise.
41115
41116 2009-09-15  Eric Blake  <ebb9@byu.net>
41117
41118         fchdir: improve use of replacement functions
41119         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41121         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41122         REPLACE_CLOSEDIR.
41123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41124         * modules/sys_stat (Makefile.am): Substitute correct witness.
41125         * modules/dirent (Makefile.am): Likewise.
41126         * modules/unistd (Makefile.am): Likewise.
41127         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41128         * lib/unistd.in.h (dup): Likewise.
41129         * lib/sys_stat.in.h (fstat): Likewise.
41130
41131         maint: ignore gnulib-tool temp files
41132         * .gitignore: Ignore files created during gnulib-tool --test.
41133
41134 2009-09-13  Jim Meyering  <meyering@redhat.com>
41135
41136         posixtm: don't reject a time that specify "60" as the number of seconds
41137         * lib/posixtm.c (posixtime): The code to reject invalid dates
41138         would also reject a time specified with the .60 suffix.
41139         But POSIX allows that, in order to accommodate leap seconds.
41140         So don't reject it.
41141         (main): Adjust tests accordingly.
41142         * modules/posixtm (Depends-on): Add stpcpy.
41143
41144 2009-09-11  Jim Meyering  <meyering@redhat.com>
41145
41146         announce-gen: include [$release_type] in emitted Subject:
41147         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41148         e.g., [stable] in the emitted Subject: line.
41149
41150 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41151
41152         Remove obsolete macros from several modules.
41153         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41154         obsolete Autoconf macros with their modern counterparts.
41155         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41156         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41157         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41158         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41159         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41160         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41161         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41162         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41163         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41164         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41165         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41166         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41167         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41168         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41169         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41170         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41171         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41172         * m4/time_r.m4 (gl_TIME_R): Likewise.
41173         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41174         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41175         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41176
41177         Fix copyright header in build-aux scripts.
41178         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41179         recommendation.
41180         * build-aux/ncftpput-ftp: Likewise.
41181         * build-aux/update-copyright: Likewise.
41182
41183 2009-09-09  Eric Blake  <ebb9@byu.net>
41184
41185         test-link: allow Linux choice of errno
41186         * tests/test-link.c (main): Relax test for alternate error.
41187
41188         strndup: fix improper m4 caching
41189         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41190         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41191         (gl_PREREQ_STRNDUP): Delete.
41192         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41193         * modules/string (Makefile.am): Substitute it.
41194         * lib/string.in.h (strndup): Modernize prototype.
41195
41196         getcwd: port to mingw
41197         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41198         different from the POSIX assumptions made throughout the getcwd
41199         module; fortunately, the mingw getcwd does not need replacement.
41200         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41201         * modules/getcwd-tests: New test.
41202         * tests/test-getcwd.c: Likewise.
41203
41204         link: fix platform bugs
41205         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41206         * lib/link.c (link): Work around them.  Fix related mingw bug.
41207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41208         * modules/unistd (Makefile.am): Substitute it.
41209         * lib/unistd.in.h (link): Declare replacement.
41210         * doc/posix-functions/link.texi (link): Document this.
41211         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41212
41213         test-link: consolidate into single C program, test more cases
41214         * tests/test-link.sh: Delete.
41215         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41216         at least Cygwin and Solaris.
41217         * modules/link-tests (Files): Remove unused file.
41218         (Depends-on): Add errno, sys_stat.
41219         (Makefile.am): Simplify.
41220
41221 2009-09-08  Bruno Haible  <bruno@clisp.org>
41222
41223         Work around towlower, towupper bug on mingw.
41224         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41225         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41226         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41227         * doc/posix-functions/towupper.texi: Likewise.
41228         Reported by Eric Blake.
41229
41230 2009-09-08  Jim Meyering  <meyering@redhat.com>
41231
41232         build: don't try to run autoheader if we don't use it
41233         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41234         is not used in configure.ac.
41235
41236 2009-09-08  Eric Blake  <ebb9@byu.net>
41237
41238         euidaccess: fix compilation error
41239         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41240
41241         rawmemchr: relax license
41242         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41243         okay.
41244         Reported by Jim Meyering.
41245
41246         mkfifoat: new module
41247         * modules/mkfifoat: New file.
41248         * lib/mkfifoat.c: Likewise.
41249         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41250         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41251         * modules/sys_stat (Makefile.am): Use them.
41252         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41253         * MODULES.html.sh (File system functions): Mention module.
41254         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41255         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41256         * modules/mkfifoat-tests: New test.
41257         * tests/test-mkfifoat.c: Likewise.
41258
41259         strchrnul: relax license
41260         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41261         okay.
41262         Reported by Jim Meyering.
41263
41264 2009-09-08  Eric Blake  <ebb9@byu.net>
41265
41266         fstatat: fix compilation on Solaris
41267         * lib/fstatat.c (includes): Add fcntl.h.
41268         Reported by Pádraig Brady.
41269
41270 2009-09-07  Eric Blake  <ebb9@byu.net>
41271
41272         rename: modernize replacement
41273         * modules/rename (Depends-on): Add stdio.
41274         (configure.ac): Declare witness.
41275         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41276         stdio take care of replacement.
41277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41278         * modules/stdio (Makefile.am): Substitute them.
41279         * lib/stdio.in.h (rename): Declare replacement.
41280         * lib/rename.c (includes): Allow cross-compilation to non-windows
41281         machines.
41282         * doc/posix-functions/rename.texi (rename): Improve
41283         documentation.
41284
41285         stdio: sort witness names
41286         * modules/stdio (Makefile.am): Sort replacements.
41287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41288         * lib/stdio.in.h: Likewise.
41289
41290         getcwd: minor cleanups
41291         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41292         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41293
41294         openat: provide more convenience names
41295         * modules/faccessat (configure.ac): Add C witness.
41296         * lib/unistd.in.h (readlinkat): Fix typo.
41297         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41298         convenience wrappers.
41299         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41300         wrappers in syntax checks.
41301
41302 2009-09-06  Eric Blake  <ebb9@byu.net>
41303
41304         doc: fix comments in recent patches
41305         * lib/faccessat.c: Mention correct function.
41306         * lib/fchmodat.c: Likewise.
41307         * lib/fchownat.c: Likewise.
41308         * lib/symlinkat.c: Likewise.
41309         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41310         constants.
41311
41312         faccessat, symlinkat: continue cleanup of previous patch
41313         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41314         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41315         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41317         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41318         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41319         set.
41320
41321 2009-09-06  Bruno Haible  <bruno@clisp.org>
41322
41323         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41324         (fstatat): Declare if GNULIB_FSTATAT is set.
41325         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41326         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41327         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41328         * modules/fcntl-h (Files): Remove m4/openat.m4.
41329         * modules/sys_stat (Files): Remove m4/openat.m4.
41330         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41331         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41332         * modules/unistd (Files): Remove m4/openat.m4.
41333         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41334         GNULIB_OPENAT.
41335         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41336         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41337         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41338         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41339         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41340         gl_OPENAT_DEFAULTS.
41341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41342         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41343         Don't require gl_OPENAT_DEFAULTS.
41344         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41345         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41346         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41347         (gl_OPENAT_DEFAULTS): Remove macro.
41348
41349 2009-09-06  Bruno Haible  <bruno@clisp.org>
41350
41351         * modules/openat (configure.ac): Remove unneeded witness.
41352
41353 2009-09-06  Bruno Haible  <bruno@clisp.org>
41354
41355         Set errno to ENOSYS when a function is entirely unsupported.
41356         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41357         EOPNOTSUPP.
41358         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41359         * modules/chown (Depends-on): Remove errno.
41360
41361 2009-09-06  Bruno Haible  <bruno@clisp.org>
41362
41363         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41364
41365 2009-09-06  Bruno Haible  <bruno@clisp.org>
41366
41367         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41368
41369 2009-09-06  Ben Pfaff  <blp@gnu.org>
41370             Bruno Haible  <bruno@clisp.org>
41371
41372         Work around a glibc bug in strtok_r.
41373         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41374         Undefine if UNDEFINE_STRTOK_R is set.
41375         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41377         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41378         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41379         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41380         UNDEFINE_STRTOK_R.
41381         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41382
41383 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41384
41385         exclude: minor fix
41386         * lib/exclude.c: Include wctype.h
41387
41388 2009-09-06  Akim Demaille  <demaille@gostai.com>
41389
41390         bootstrap: improve error message
41391         * build-aux/bootstrap (find_tool): Upon failure, report the list
41392         of candidates.
41393         Honor the initial value of the envvar.
41394
41395 2009-09-05  Eric Blake  <ebb9@byu.net>
41396
41397         symlinkat: new module
41398         * modules/symlinkat: New file.
41399         * lib/symlinkat.c: Likewise.
41400         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41402         * modules/unistd (Makefile.am): Use them.
41403         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41404         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41405         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41406         * MODULES.html.sh (File system functions): Mention module.
41407         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41408         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41409         * modules/symlinkat-tests: New test.
41410         * tests/test-symlinkat.c: Likewise.
41411
41412         test-openat-safer: add more checks
41413         * tests/test-openat-safer.c (main): Check more code paths.
41414
41415 2009-09-05  Jim Meyering  <meyering@redhat.com>
41416
41417         syntax-check: detect unnecessary inclusion of openat.h
41418         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41419
41420 2009-09-05  Bruno Haible  <bruno@clisp.org>
41421
41422         Support towlower, towupper.
41423         * doc/posix-functions/towlower.texi: Mention module wctype.
41424         * doc/posix-functions/towupper.texi: Likewise.
41425         * lib/wctype.in.h (towlower, towupper): New functions.
41426         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41427         (ASSERT): New macro.
41428         (e): New variable.
41429         (main): Test also towlower, towupper. Test WEOF argument.
41430         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41431
41432 2009-09-05  Bruno Haible  <bruno@clisp.org>
41433
41434         Fix conversion behaviour when the input is invalid.
41435         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41436         mark occurring in first pass of indirect conversion.
41437         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41438         input.
41439         Found by clang's static analyzer.
41440
41441 2009-09-05  Bruno Haible  <bruno@clisp.org>
41442
41443         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41444         where direct conversion is possible.
41445
41446 2009-09-04  Eric Blake  <ebb9@byu.net>
41447
41448         openat: fail with ENOENT on empty name
41449         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41450         buffer.
41451
41452         link-follow: fix logic bug in prior patch
41453         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41454         reversed sense of yes and no in prior patch.  Avoid confusing
41455         compilation failure with desired semantics.
41456
41457         link-follow: accomodate mingw and cross-compilation
41458         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41459         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41460         cross-compilation results to -1, to make linkat easier to
41461         implement when cross-compiling.  Trivially support mingw.
41462         * modules/link-follow (configure.ac): Call new name.
41463         * NEWS: Mention this.
41464
41465 2009-09-03  Eric Blake  <ebb9@byu.net>
41466
41467         faccessat: compile replacement
41468         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41469         needed.
41470
41471         fts: fix compilation error
41472         * lib/fts.c (includes): Re-add "openat.h", for
41473         openat_needs_fchdir.
41474
41475         faccessat: new module
41476         * modules/faccessat: New file.
41477         * lib/faccessat.c: Likewise.
41478         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41480         * modules/unistd (Makefile.am): Use it.
41481         * lib/unistd.in.h (faccessat): Declare it.
41482         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41483         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41484         * MODULES.html.sh (File system functions): Mention it.
41485         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41486         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41487
41488         euidaccess: prefer POSIX over non-standard implementation
41489         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41490         * lib/euidaccess.c (euidaccess): Use it if available.
41491
41492         openat: make template easier to use
41493         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41494         AT_FUNC_F2 to be undefined.
41495         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41496         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41497         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41498         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41499         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41500         Likewise.
41501         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41502         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41503         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41504         Likewise.
41505
41506         openat: declare in POSIX headers
41507         * NEWS: Mention this.
41508         * modules/openat (configure.ac): Declare witnesses.
41509         (Depends-on): Add fcntl-h, sys_stat, unistd.
41510         (Include): Mention correct headers.
41511         * modules/fcntl-h (Depends-on): Add link-warning.
41512         (Files): Add openat.m4.
41513         (Makefile.am): Substitute witnesses.
41514         * modules/sys_stat (Files, Makefile.am): Likewise.
41515         * modules/unistd (Files, Makefile.am): Likewise.
41516         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41517         (gl_OPENAT_DEFAULTS): New macro.
41518         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41520         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41521         (SYS_STAT_H): Remove unused variable.
41522         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41523         * lib/fcntl--.h (includes): Remove unneeded header.
41524         * lib/openat-safer.c (includes): Likewise.
41525         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41526         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41527         appropriate headers.
41528         (__OPENAT_PREFIX): Delete.
41529         * lib/fcntl.in.h (openat): Provide declaration.
41530         (AT_FDCWD): Fix Solaris bug.
41531         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41532         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41533         * lib/fchmodat.c (includes):  Adjust to find declaration.
41534         * lib/fchownat.c (includes): Likewise.
41535         * lib/mkdirat.c (includes): Likewise.
41536         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41537         still visible.
41538
41539 2009-09-02  Eric Blake  <ebb9@byu.net>
41540
41541         errno: use consistently
41542         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41543         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41544         * lib/canonicalize.c (ELOOP): Likewise.
41545         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41546         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41547         * lib/lchown.c (EOPNOTSUPP): Likewise.
41548         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41549         * lib/savewd.c (ESTALE): Likewise.
41550         * lib/settime.c (ENOSYS): Likewise.
41551         * lib/utimens.c (ENOSYS): Likewise.
41552         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41553         * lib/chdir-safer.c (ELOOP): Likewise.
41554         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41555         * modules/c-stack (Depends-on): Add errno.
41556         * modules/canonicalize (Depends-on): Likewise.
41557         * modules/chdir-safer (Depends-on): Likewise.
41558         * modules/fdopendir (Depends-on): Likewise.
41559         * modules/inet_ntop (Depends-on): Likewise.
41560         * modules/inet_pton (Depends-on): Likewise.
41561         * modules/lchown (Depends-on): Likewise.
41562         * modules/openat (Depends-on): Likewise.
41563         * modules/savewd (Depends-on): Likewise.
41564         * modules/settime (Depends-on): Likewise.
41565         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41566
41567         fts: avoid leaking fds
41568         * modules/fts (Depends-on): Add cloexec.
41569         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41570         flag.
41571
41572         fts: make directory fds more robust
41573         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41574         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41575
41576         backupfile, chdir-long, fts, savedir: make safer
41577         * lib/backupfile.c (includes): Use "dirent--.h", since
41578         numbered_backup can write to stderr during readdir.
41579         * lib/savedir.c (includes): Likewise.
41580         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41581         emulation can write to stderr on failure.
41582         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41583         * lib/getcwd.c: Document why opendir_safer is unused.
41584         * lib/glob.c: Likewise.
41585         * lib/scandir.c: Likewise.
41586         * lib/openat-proc.c: Likewise, for open_safer.
41587         * modules/backupfile (Depends-on): Add dirent-safer.
41588         * modules/savedir (Depends-on): Likewise.
41589         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41590         * modules/chdir-long (Depends-on): Add openat-safer.
41591
41592         openat-safer: new module
41593         * modules/openat-safer: New file.
41594         * lib/openat-safer.c: Likewise.
41595         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41596         * lib/fcntl-safer.h (openat_safer): Declare.
41597         * lib/fcntl--.h (openat): Override.
41598         * MODULES.html.sh (File descriptor based I/O): Mention it.
41599         * lib/openat.h: Add double-inclusion guards.
41600         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41601         "fcntl--.h", so we can implement openat.
41602         * modules/openat-safer-tests: New test.
41603         * tests/test-openat-safer.c: New file.
41604
41605         dirent-safer: new module
41606         * modules/dirent-safer: New file.
41607         * lib/dirent--.h: Likewise.
41608         * lib/dirent-safer.h: Likewise.
41609         * lib/opendir-safer.c: Likewise.
41610         * m4/dirent-safer.m4: Likewise.
41611         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41612         * modules/dirent-safer-tests: New test.
41613         * tests/test-dirent-safer.c: New file.
41614         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41615
41616         fdopendir: optimize on mingw
41617         * lib/unistd.in.h (_gl_directory_name): New prototype.
41618         * lib/fchdir.c (_gl_directory_name): Implement it.
41619         (fchdir): Use it to simplify implementation.
41620         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41621         fchdir, when available, to avoid calling [f]chdir().
41622
41623         fdopendir: split into its own module
41624         * lib/openat.c (fdopendir): Move...
41625         * lib/fdopendir.c: ...into new file.
41626         * modules/fdopendir: New module.
41627         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41628         * modules/openat (Depends-on): Add fdopendir.
41629         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41630         fdopendir here.
41631         * modules/savedir (Depends-on): Only need fdopendir, not full
41632         openat.
41633         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41634         * lib/openat.h (fdopendir): Drop prototype.
41635         * lib/dirent.in.h (fdopendir): Provide prototype.
41636         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41637         * modules/dirent (Makefile.am): Substitute them.
41638         * MODULES.html.sh (File system functions): Mention it.
41639         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41640         * modules/fdopendir-tests: New file.
41641         * tests/test-fdopendir.c: Likewise.
41642
41643         fchdir: use more consistent macro convention
41644         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41645         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41646         REPLACE_FCHDIR, rather than relying on config.h macros.
41647         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41648         inside a single make-time REPLACE_FCHDIR block, rather than using
41649         the config.h FCHDIR_REPLACEMENT.
41650         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41651         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41652         Manage fstat replacement.
41653         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41654         REPLACE_FCHDIR.
41655         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41656         (Makefile.am): Substitute REPLACE_FCHDIR.
41657         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41658         FCHDIR_REPLACEMENT.
41659         * lib/dup-safer.c (dup_safer): Likewise.
41660         * lib/dup2.c (rpl_dup2): Likewise.
41661         * lib/dup3.c (rpl_dup3): Likewise.
41662         * lib/open.c (rpl_open): Likewise.
41663
41664         fchdir: simplify error handling, and support dup3
41665         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41666         stdbool, malloc-posix, realloc-posix.
41667         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41668         (ensure_dirs_slot): Return false on allocation failure.
41669         (rpl_dup2): Delete.
41670         (_gl_register_dup): New function.
41671         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41672         (_gl_register_fd): Close fd on allocation failure.
41673         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41674         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41675         prototype.
41676         (rpl_dup2_fchdir): Delete prototype.
41677         * lib/open.c (open): Update caller.
41678         * lib/dup2.c (dup2): Track fchdir metadata.
41679         * lib/dup3.c (dup3): Likewise.
41680         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41682
41683 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41684
41685         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41686         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41687         don't pass arguments to AC_OUTPUT.
41688
41689 2009-09-02  Bruno Haible  <bruno@clisp.org>
41690
41691         * modules/mkdtemp (License): Relicense under LGPLv2+.
41692         Reported by Paolo Bonzini.
41693
41694 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41695
41696         Replace uses of obsolete autoconf macros in Jim's modules.
41697         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41698         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41699         can evoke a warning from autoconf when run with -Wobsolete
41700         enabled.  They were declared obsolete for good reasons (see
41701         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41702         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41703         should not continue using the deprecated macros.
41704         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41705         obsolete Autoconf macros with modern counterparts.
41706         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41707         * m4/dos.m4 (gl_AC_DOS): Likewise.
41708         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41709         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41710         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41711         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41712         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41713         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41714         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41715         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41716         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41717         Likewise.
41718         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41719         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41720         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41721         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41722         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41723         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41724
41725 2009-09-01  Eric Blake  <ebb9@byu.net>
41726
41727         fchdir: fix off-by-one bug in previous patch
41728         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41729         (_gl_unregister_fd): Delete useless if.
41730
41731 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41732
41733         maint.mk: sort the list of syntax-check rules
41734         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41735         easier to get a sense of progress when the rules are run sequentially
41736         and take a long time.
41737
41738 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41739
41740         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41741         * modules/netinet_in: Likewise.
41742         * modules/sys_file: Likewise.
41743         * modules/sys_ioctl: Likewise.
41744         * modules/sys_select: Likewise.
41745         * modules/sys_socket: Likewise.
41746         * modules/sys_stat: Likewise.
41747         * modules/sys_time: Likewise.
41748         * modules/sys_times: Likewise.
41749         * modules/sys_utsname: Likewise.
41750         * modules/sys_wait: Likewise.
41751
41752 2009-09-01  Jim Meyering  <meyering@redhat.com>
41753
41754         fts: help ensure that return values are not ignored
41755         * lib/fts_.h (__GNUC_PREREQ): Define.
41756         (__attribute_warn_unused_result__): Define.
41757         (fts_children, fts_close, fts_open, fts_read): Declare with
41758         __attribute_warn_unused_result__.
41759
41760         fts: fts_close now fails also when closing a dir file descriptor fails
41761         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41762         and propagate to caller, along with errno.
41763
41764         announce-gen: correct formatting in --help output
41765         * build-aux/announce-gen (usage): Move the one-line description in
41766         --help output "up", to where it belongs, just after Usage:.
41767
41768 2009-08-31  Eric Blake  <ebb9@byu.net>
41769
41770         fchdir: port to mingw
41771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41772         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41773         opened, then use a substitute.
41774         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41775         replacement.
41776         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41777         (_gl_register_fd): No need to check stat if open already filters
41778         all directories.
41779         (fchdir): Fix error condition to match POSIX.
41780         * modules/fchdir (Depends-on): Add sys_stat.
41781         * doc/posix-functions/open.texi (open): Document the limitation.
41782         * modules/fchdir-tests: New file.
41783         * tests/test-fchdir.c: Likewise.
41784
41785         canonicalize: allow cross-testing from cygwin to mingw
41786         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41787         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41788         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41789         Likewise.
41790         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41791         target does not support symlinks.
41792         * tests/test-canonicalize-lgpl.sh: Likewise.
41793
41794         chown: avoid compilation warning on mingw
41795         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41796         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41797         mingw.
41798         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41799         * modules/chown (Depends-on): Add errno.
41800
41801 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41802
41803         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41804         command.
41805
41806 2009-08-31  Jim Meyering  <meyering@redhat.com>
41807
41808         canonicalize: remove useless initialization
41809         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41810         initialization of local, "end".
41811
41812 2009-08-30  Bruno Haible  <bruno@clisp.org>
41813
41814         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41815         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41816         ENOSYS.
41817
41818 2009-08-30  Bruno Haible  <bruno@clisp.org>
41819
41820         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41821         /usr/xpg4/bin/tr when it exists.
41822         * tests/test-pipe-filter-gi1.sh: Likewise.
41823
41824 2009-08-30  Bruno Haible  <bruno@clisp.org>
41825
41826         Work around deficient /usr/bin/id program on Solaris.
41827         * tests/test-file-has-acl.sh (ID): New variable.
41828         * tests/test-set-mode-acl.sh (ID): Likewise.
41829         * tests/test-copy-acl.sh (ID): Likewise.
41830         * tests/test-copy-file.sh (ID): Likewise.
41831
41832 2009-08-30  Bruno Haible  <bruno@clisp.org>
41833
41834         New module 'xstriconveh'.
41835         * lib/xstriconveh.h: New file.
41836         * lib/xstriconveh.c: New file.
41837         * modules/xstriconveh: New file.
41838
41839 2009-08-30  Bruno Haible  <bruno@clisp.org>
41840
41841         Make it easier to use mem_cd_iconveh.
41842         * lib/striconveh.h (iconveh_t): New type.
41843         (iconveh_open, iconveh_close): New declarations.
41844         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41845         with a single 'const iconveh_t *' argument.
41846         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41847         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41848         with a single 'const iconveh_t *' argument.
41849         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41850         * tests/test-striconveh.c (main): Update.
41851         * NEWS: Mention the change.
41852
41853 2009-08-30  Bruno Haible  <bruno@clisp.org>
41854
41855         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41856         problem.
41857
41858 2009-08-30  Bruno Haible  <bruno@clisp.org>
41859
41860         Work around iconv_open problem on Solaris.
41861         * lib/iconv_open-solaris.gperf: New file.
41862         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41863         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41864         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41865         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41866         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41867         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41868
41869 2009-08-29  Jim Meyering  <meyering@redhat.com>
41870
41871         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41872         * top/maint.mk (cvs-check): Remove target; it was just an alias
41873         to the better-named vc-diff-check.
41874         (maintainer-distcheck): Remove rule.  It was used only from
41875         the (alpha/beta/major) target, and all of its commands but one
41876         were coreutils-specific.
41877         (vc-dist): Remove rule.
41878         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41879         Run vc-diff-check, not vc-dist.
41880         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41881
41882 2009-08-27  Bruno Haible  <bruno@clisp.org>
41883
41884         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41885         of 0.
41886
41887 2009-08-27  Bruno Haible  <bruno@clisp.org>
41888
41889         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41890         compilers.
41891         * doc/func.texi: Document the SunPRO C bug.
41892
41893 2009-08-27  Bruno Haible  <bruno@clisp.org>
41894
41895         Fix link error on Solaris.
41896         * tests/test-parse-duration.c (xstrdup): Remove function.
41897
41898 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41899
41900         ignore-value: handle pointer types, too
41901         * lib/ignore-value.h (__attribute__): Remove definition.
41902         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41903         of a more concise and more-often effective "(void) i" statement.
41904         (ignore_ptr): New function to suppress warnings from functions that
41905         return pointers, and to make it explicit that one function doesn't
41906         handle all cases.
41907
41908 2009-08-25  Bruno Haible  <bruno@clisp.org>
41909
41910         dup2: work around a Linux bug.
41911         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41912         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41913         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41914         Reported by Simon Josefsson.
41915
41916 2009-08-25  Jim Meyering  <meyering@redhat.com>
41917
41918         libguestfs uses gnulib
41919         * users.txt: Add libguestfs.
41920
41921 2009-08-24  Eric Blake  <ebb9@byu.net>
41922
41923         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41924         * lib/pipe2.c (includes): Add binary-io.h.
41925         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41926
41927 2009-08-24  Bruno Haible  <bruno@clisp.org>
41928
41929         Tolerate declared but missing accept4 syscall.
41930         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41931         available.
41932         * lib/sys_socket.in.h (accept4): If the function is already present,
41933         override it.
41934         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41935         * modules/accept4 (Makefile.am): Compile accept4.c always.
41936         Reported by Paolo Bonzini and Eric Blake.
41937
41938 2009-08-23  Bruno Haible  <bruno@clisp.org>
41939
41940         New module 'accept4'.
41941         * lib/sys_socket.in.h (accept4): New declaration.
41942         * lib/accept4.c: New file.
41943         * m4/accept4.m4: New file.
41944         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41945         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41946         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41947         HAVE_ACCEPT4.
41948         * modules/accept4: New file.
41949         * doc/glibc-functions/accept4.texi: Mention the new module.
41950
41951 2009-08-24  Jim Meyering  <meyering@redhat.com>
41952
41953         progname: also set global program_invocation_name, when possible
41954         Before this change, a libtool-enabled program that calls glibc's
41955         error function would report the program name as
41956         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41957         * modules/progname (configure.ac): Check for a declaration of
41958         program_invocation_name.
41959         * lib/progname.c:  Include <errno.h>.
41960         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41961         Set program_invocation_name.
41962
41963 2009-08-23  Bruno Haible  <bruno@clisp.org>
41964
41965         * lib/dup3.c: Include <string.h>.
41966
41967 2009-08-23  Bruno Haible  <bruno@clisp.org>
41968
41969         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41970         * lib/pipe2.c (pipe2): Likewise.
41971         Suggested by Eric Blake.
41972
41973 2009-08-23  Bruno Haible  <bruno@clisp.org>
41974
41975         Tolerate declared but missing dup3 syscall.
41976         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41977         * lib/unistd.in.h (dup3): If the function is already present,
41978         override it.
41979         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41980         * modules/dup3 (Makefile.am): Compile dup3.c always.
41981         Reported by Paolo Bonzini.
41982
41983 2009-08-23  Bruno Haible  <bruno@clisp.org>
41984
41985         Tolerate declared but missing pipe2 syscall.
41986         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41987         available.
41988         * lib/unistd.in.h (pipe2): If the function is already present,
41989         override it.
41990         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41991         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41992         Reported by Paolo Bonzini.
41993
41994 2009-08-23  Bruno Haible  <bruno@clisp.org>
41995
41996         * lib/pipe2.c (pipe2): Move #ifs inside function.
41997
41998 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41999
42000         quotearg: document limitations of quote_these_too
42001         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42002         those limitations are created.
42003         * lib/quotearg.h (set_char_quoting): Document that digits and
42004         letters that are special after backslash are not permitted.
42005         (quotearg_char): Cross-reference set_char_quoting documentation.
42006
42007 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42008
42009         quotearg: implement custom_quoting_style
42010         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42011         right_quote fields.
42012         (set_custom_quoting): New public function.
42013         (quotearg_buffer_restyled): Add left_quote and right_quote
42014         arguments, handle them very much like locale quoting, and update
42015         all uses.
42016         (quotearg_n_custom): New public function.
42017         (quotearg_n_custom_mem): New public function.
42018         (quotearg_custom): New public function.
42019         (quotearg_custom_mem): New public function.
42020         * lib/quotearg.h: Prototype and document new public functions.
42021         (enum quoting_style): For escape_quoting_style and
42022         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42023         ignored even though they're otherwise like c_quoting_style.
42024         Add custom_quoting_style member and document with comparison to
42025         clocale_quoting_style.
42026         * tests/test-quotearg.c (custom_quotes): New array.
42027         (custom_results): New array.
42028         (main): Extend to test custom quoting.
42029
42030 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42031
42032         quotearg: fix right quote escaping when it's in quote_these_too
42033         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42034         quote, be sure to prepend only one backslash.
42035         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42036         (main): Test it.
42037
42038 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42039
42040         quotearg-tests: test escaping of embedded locale quotes
42041         * tests/test-quotearg.c (struct result_strings): Add member for
42042         new input.
42043         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42044         (inputs): Add new input.
42045         (results_g): Add expected results.
42046         (flag_results): Likewise.
42047         (locale_results): Likewise.
42048         (compare_strings): Check those.
42049
42050 2009-08-23  Bruno Haible  <bruno@clisp.org>
42051
42052         Tests for module 'dup3'.
42053         * modules/dup3-tests: New file.
42054         * tests/test-dup3.c: New file.
42055
42056         New module 'dup3'.
42057         * lib/unistd.in.h (dup3): New declaration.
42058         * lib/dup3.c: New file.
42059         * m4/dup3.m4: New file.
42060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42061         HAVE_DUP3.
42062         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42063         * modules/dup3: New file.
42064         * doc/glibc-functions/dup3.texi: Mention the new module.
42065
42066 2009-08-23  Bruno Haible  <bruno@clisp.org>
42067
42068         Tweak the dup2 test.
42069         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42070         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42071         the test file is still empty. Fix argument order of lseek.
42072
42073 2009-08-23  Bruno Haible  <bruno@clisp.org>
42074
42075         Avoid test link errors when the modules getopt-gnu, gettext are used.
42076         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42078
42079 2009-08-23  Bruno Haible  <bruno@clisp.org>
42080
42081         Fix getdtablesize() on mingw.
42082         * lib/getdtablesize.c (getdtablesize): Implement differently.
42083         * lib/unistd.in.h (getdtablesize): Improve comment.
42084
42085 2009-08-23  Bruno Haible  <bruno@clisp.org>
42086
42087         New module 'mkostemp'.
42088         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42089         * lib/stdlib.in.h (mksotemp): New declaration.
42090         * lib/mkostemp.c: New file, from glibc with modifications.
42091         * lib/tempname.h (GT_FILE): Remove outdated comment.
42092         (gen_tempname): Add flags argument.
42093         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42094         (__GT_FILE): Map to 1.
42095         (small_open, large_open): Remove macros.
42096         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42097         * lib/mkstemp.c (mkstemp): Update.
42098         * lib/mkdtemp.c (mkdtemp): Likewise.
42099         * m4/mkostemp.m4: New file.
42100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42101         HAVE_MKOSTEMP.
42102         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42103         HAVE_MKOSTEMP.
42104         * modules/mkostemp: New file, based on modules/mkstemp.
42105         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42106         * NEWS: Mention the change.
42107
42108 2009-08-23  Bruno Haible  <bruno@clisp.org>
42109
42110         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42111         Reported by Eric Blake.
42112
42113 2009-08-23  Bruno Haible  <bruno@clisp.org>
42114
42115         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42116         Reported by Eric Blake.
42117
42118 2009-08-23  Bruno Haible  <bruno@clisp.org>
42119
42120         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42121         * modules/pipe2 (Depends-on): Likewise.
42122
42123 2009-08-23  Eric Blake  <ebb9@byu.net>
42124
42125         fcntl-h: add O_TTY_INIT support
42126         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42127         * tests/test-fcntl-h.c (o): Test it.
42128         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42129
42130         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42131         * modules/fcntl: Move <fcntl.h> header replacement...
42132         * modules/fcntl-h: ...to new name, so as not to collide with
42133         like-named function.
42134         * tests/test-fcntl.c: Rename...
42135         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42136         * modules/fcntl-tests: Rename...
42137         * modules/fcntl-h-tests: ...to this.  Update test file name.
42138         * modules/chdir-long (Depends-on): Update clients.
42139         * modules/chdir-safer (Depends-on): Likewise.
42140         * modules/fcntl-safer (Depends-on): Likewise.
42141         * modules/fts (Depends-on): Likewise.
42142         * modules/mkancesdirs (Depends-on): Likewise.
42143         * modules/mkdir-p (Depends-on): Likewise.
42144         * modules/open (Depends-on): Likewise.
42145         * modules/savewd (Depends-on): Likewise.
42146         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42147         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42148
42149 2009-08-22  Bruno Haible  <bruno@clisp.org>
42150
42151         * modules/binary-io (License): Relicense under LGPL.
42152         * modules/pipe2 (License): Likewise.
42153
42154 2009-08-22  Bruno Haible  <bruno@clisp.org>
42155
42156         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42157         return value.
42158         * lib/pipe-filter-gi.c (filter_init): Likewise.
42159         Reported by Eric Blake.
42160
42161 2009-08-22  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42164         * modules/pipe (Depends-on): Add pipe2.
42165
42166 2009-08-22  Bruno Haible  <bruno@clisp.org>
42167
42168         Tests for module 'pipe2'.
42169         * modules/pipe2-tests: New file.
42170         * tests/test-pipe2.c: New file.
42171
42172         New module 'pipe2'.
42173         * lib/unistd.in.h (pipe2): New declaration.
42174         * lib/pipe2.c: New file.
42175         * m4/pipe2.m4: New file.
42176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42177         HAVE_PIPE2.
42178         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42179         * modules/pipe2: New file.
42180         * doc/glibc-functions/pipe2.texi: Mention the new module.
42181
42182 2009-08-22  Bruno Haible  <bruno@clisp.org>
42183
42184         Reference some new glibc functions.
42185         * doc/glibc-functions/accept4.texi: New file.
42186         * doc/glibc-functions/dup3.texi: New file.
42187         * doc/glibc-functions/mkostemp.texi: New file.
42188         * doc/glibc-functions/pipe2.texi: New file.
42189         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42190         (Glibc sys/socket.h): Refer to accept4.
42191         (Glibc unistd.h): Refer to dup3, pipe2.
42192         Reported by Eric Blake.
42193
42194 2009-08-22  Jim Meyering  <meyering@redhat.com>
42195             Bruno Haible  <bruno@clisp.org>
42196
42197         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42198         This makes it so packages using automake-1.11's silent-rules option
42199         can print e.g., a single "GEN    configmake.h" line, rather than
42200         the 30+ statements that perform the job.  If you want to see the
42201         actual commands, you can still run "make V=1".
42202         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42203         so that make output is abbreviated when those variables are defined
42204         appropriately.
42205         * modules/argz: Likewise.
42206         * modules/arpa_inet: Likewise.
42207         * modules/byteswap: Likewise.
42208         * modules/configmake: Likewise.
42209         * modules/dirent: Likewise.
42210         * modules/errno: Likewise.
42211         * modules/fcntl: Likewise.
42212         * modules/float: Likewise.
42213         * modules/fnmatch: Likewise.
42214         * modules/getopt-posix: Likewise.
42215         * modules/glob: Likewise.
42216         * modules/iconv_open: Likewise.
42217         * modules/inttypes: Likewise.
42218         * modules/localcharset: Likewise.
42219         * modules/locale: Likewise.
42220         * modules/math: Likewise.
42221         * modules/netdb: Likewise.
42222         * modules/netinet_in: Likewise.
42223         * modules/poll: Likewise.
42224         * modules/posix_spawnp-tests: Likewise.
42225         * modules/sched: Likewise.
42226         * modules/search: Likewise.
42227         * modules/selinux-h: Likewise.
42228         * modules/signal: Likewise.
42229         * modules/spawn: Likewise.
42230         * modules/stdarg: Likewise.
42231         * modules/stdbool: Likewise.
42232         * modules/stddef: Likewise.
42233         * modules/stdint: Likewise.
42234         * modules/stdio: Likewise.
42235         * modules/stdlib: Likewise.
42236         * modules/string: Likewise.
42237         * modules/strings: Likewise.
42238         * modules/sys_file: Likewise.
42239         * modules/sys_ioctl: Likewise.
42240         * modules/sys_select: Likewise.
42241         * modules/sys_socket: Likewise.
42242         * modules/sys_stat: Likewise.
42243         * modules/sys_time: Likewise.
42244         * modules/sys_times: Likewise.
42245         * modules/sys_utsname: Likewise.
42246         * modules/sys_wait: Likewise.
42247         * modules/sysexits: Likewise.
42248         * modules/time: Likewise.
42249         * modules/unistd: Likewise.
42250         * modules/wchar: Likewise.
42251         * modules/wctype: Likewise.
42252
42253 2009-08-22  Jim Meyering  <meyering@redhat.com>
42254
42255         announce-gen: detect write failure
42256         * build-aux/announce-gen: Add Coda at end.
42257         Remove equivalent-but-more-verbose block at top.
42258
42259 2009-08-19  Akim Demaille  <demaille@gostai.com>
42260
42261         bootstrap: --help to stdout.
42262         * bootstrap (usage): Don't send --help to stderr.
42263         Use a here doc instead of a long string.
42264
42265 2009-08-21  Eric Blake  <ebb9@byu.net>
42266
42267         test-popen-safer: split from test-popen
42268         * tests/test-popen.c (main): Move...
42269         * tests/test-popen.h: ...into new file.
42270         * tests/test-popen-safer2.c: New file.
42271         * modules/popen-tests (Files): Add test-popen.h.
42272         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42273         Suggested by Bruno Haible.
42274
42275         test-fcntl-safer: split from test-open
42276         * tests/test-open.c (main): Move...
42277         * tests/test-open.h: ...into new file.
42278         * tests/test-fcntl-safer.c: New file.
42279         * modules/open-tests (Files): Add test-open.h.
42280         * modules/fcntl-safer-tests: New file.
42281         Suggested by Bruno Haible.
42282
42283         test-fopen-safer: split from test-fopen
42284         * tests/test-fopen.c (main): Move...
42285         * tests/test-fopen.h: ...into new file.
42286         * tests/test-fopen-safer.c: New file.
42287         * modules/fopen-tests (Files): Add test-fopen.h.
42288         * modules/fopen-safer-tests: New file.
42289         Suggested by Bruno Haible.
42290
42291 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42292
42293         popen-safer: test O_CLOEXEC at run-time.
42294         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42295
42296 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42297
42298         fcntl: move more flags to the header
42299         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42300         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42301         * lib/fcntl.in.h: Do both things here.
42302
42303 2009-08-21  Jim Meyering  <meyering@redhat.com>
42304
42305         consistently remove $@-t before redirecting to it
42306         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42307         * modules/alloca-opt: Likewise.
42308         * modules/byteswap: Likewise.
42309         * modules/fnmatch: Likewise.
42310         * modules/getopt-posix: Likewise.
42311         * modules/glob: Likewise.
42312         * modules/poll: Likewise.
42313         * modules/posix_spawnp-tests: Likewise.
42314         * modules/sys_socket: Likewise.
42315         * modules/sysexits: Likewise.
42316
42317 2009-08-21  Eric Blake  <ebb9@byu.net>
42318
42319         popen: simplify access to original popen
42320         * lib/popen.c (rpl_popen): No need to worry about popen being a
42321         macro.
42322         Reported by Bruno Haible.
42323
42324 2009-08-20  Eric Blake  <ebb9@byu.net>
42325
42326         build: avoid some compiler warnings
42327         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42328         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42329         type.
42330         (new_exclude_segment, excluded_file_pattern_p)
42331         (excluded_file_name_p): Reduce scope.
42332         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42333         old-style declaration.
42334
42335 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42336
42337         * tests/test-exclude1.sh: Handle Windows EOL.
42338         * tests/test-exclude2.sh: Likewise.
42339         * tests/test-exclude3.sh: Likewise.
42340         * tests/test-exclude4.sh: Likewise.
42341         * tests/test-exclude5.sh: Likewise.
42342         * tests/test-exclude6.sh: Likewise.
42343         * tests/test-exclude7.sh: Likewise.
42344
42345 2009-08-19  Akim Demaille  <demaille@gostai.com>
42346
42347         bootstrap: find sha1sum when named gsha1sum.
42348         * bootstrap (find_tool): New.
42349         ($SHA1SUM): New.
42350         Use it.
42351
42352 2009-08-20  Jim Meyering  <meyering@redhat.com>
42353
42354         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42355         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42356         expression that converts "." in a file name to "\." in the resulting
42357         regexp.  Start with a dummy statement, so that prior shell variable
42358         definitions are expanded portably.  Reported by Simon Josefsson.
42359
42360 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42361
42362         Fix polling for writeability of a screen buffer.
42363         * lib/poll.c: Distinguish input and screen buffers for the
42364         Win32 implementation.
42365         * lib/select.c: Likewise.
42366
42367 2009-08-19  Eric Blake  <ebb9@byu.net>
42368
42369         popen-safer: prevent popen from clobbering std descriptors
42370         * modules/popen-safer: New file.
42371         * lib/popen-safer.c: Likewise.
42372         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42373         * lib/stdio--.h (popen): Provide override.
42374         * lib/stdio-safer.h (popen_safer): Provide declaration.
42375         * tests/test-popen.c (includes): Partially test this.
42376         * modules/popen-safer-tests: New file, for more tests.
42377         * tests/test-popen-safer.c: Likewise.
42378         * MODULES.html.sh (file stream based Input/Output): Mention it.
42379
42380         tests: test some of the *-safer modules
42381         * modules/fopen-safer (Depends-on): Add fopen.
42382         * modules/fcntl-safer (Depends-on): Add fcntl.
42383         * modules/stdlib-safer (Depends-on): Add stdlib.
42384         (configure.ac): Set indicator.
42385         * modules/unistd-safer (configure.ac): Likewise.
42386         * modules/tmpfile-safer (configure.ac): Likewise.
42387         (Depends-on): Add tmpfile.
42388         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42389         active.
42390         * tests/test-fopen.c (includes): Test safer versions when they are
42391         in use.
42392         * tests/test-open.c (includes): Likewise.
42393
42394         popen: fix cygwin 1.5 bug when stdin closed
42395         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42396         * modules/popen: New file.
42397         * modules/popen-tests: Likewise.
42398         * tests/test-popen.c: Likewise.
42399         * m4/popen.m4: Likewise.
42400         * lib/popen.c: Likewise.
42401         * lib/stdio.in.h (popen): New declaration.
42402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42403         * modules/stdio (Makefile.am): Likewise.
42404         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42405
42406 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42407
42408         maint.mk: give full control over update-copyright exclusions
42409         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42410         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42411         (update-copyright): Don't force inclusion of top-level
42412         ChangeLog.  Don't force exclusion of all COPYING files, but make
42413         them the default exclusion instead.
42414
42415 2009-08-16  Bruno Haible  <bruno@clisp.org>
42416
42417         Fix test failures on Solaris 10.
42418         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42419         tests when Solaris iconv() is used.
42420         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42421         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42422         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42423         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42424         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42425
42426 2009-08-16  Bruno Haible  <bruno@clisp.org>
42427
42428         Fix test failures on Solaris 10.
42429         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42430         'tr' program and pass it as first argument.
42431         * tests/test-pipe-filter-gi1.sh: Likewise.
42432         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42433         program as first argument.
42434         * tests/test-pipe-filter-gi1.c (main): Likewise.
42435
42436 2009-08-16  Eric Blake  <ebb9@byu.net>
42437
42438         fpurge: fix previous commits
42439         * modules/fpurge (Makefile.am): Make replacement conditional,
42440         partially reverting 2007-04-29 change; missed in previous
42441         attempt.
42442         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42443         is missing.
42444
42445 2009-08-16  Bruno Haible  <bruno@clisp.org>
42446
42447         Clarify fpurge's effect on the file position.
42448         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42449         * tests/test-fpurge.c (main): Make a second pass for checking the file
42450         position.
42451
42452 2009-08-16  Bruno Haible  <bruno@clisp.org>
42453
42454         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42455         declaration of fpurge is missing.
42456         * tests/test-fpurge.c (main): Check that the file has not more contents
42457         than expected. Close the file before removing it.
42458
42459 2009-08-15  Eric Blake  <ebb9@byu.net>
42460
42461         fpurge: don't wrap working cygwin implementation
42462         * lib/fpurge.c (fpurge): Fix comment typo.
42463         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42464         1.7 to avoid replacement.
42465         * tests/test-fpurge.c (main): Enhance test.
42466
42467 2009-08-15  Eric Blake  <ebb9@byu.net>
42468         and Jim Meyering  <meyering@redhat.com>
42469
42470         test-update-copyright: skip if perl is insufficient
42471         * tests/test-update-copyright.sh: Failure to run maintainer tool
42472         should not cause testsuite failure on cygwin 1.5.
42473
42474 2009-08-14  Eric Blake  <ebb9@byu.net>
42475
42476         doc: mention more functions added in cygwin 1.7.0
42477         * doc/posix-headers/limits.texi (limits.h): Update for recent
42478         cygwin additions.
42479         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42480         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42481         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42482         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42483         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42484
42485 2009-08-14  Eric Blake  <ebb9@byu.net>
42486
42487         maint.mk: simplify update-copyright rule
42488         * top/maint.mk (update-copyright-local): Delete, and document how
42489         to do it in cfg.mk instead.
42490         (update-copyright-exclude-regexp): Delete, and document how to do
42491         it in .x-update-copyright instead.
42492         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42493         exclude ChangeLog.
42494
42495 2009-08-14  Bruno Haible  <bruno@clisp.org>
42496
42497         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42498
42499 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42500
42501         maint.mk: support update-copyright-env
42502         * top/maint.mk (update-copyright-env): Define place-holder.
42503         (update-copyright): Expand $(update-copyright-env) before
42504         invoking update-copyright.
42505
42506 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42507
42508         update-copyright: implement forced reformatting
42509         * build-aux/update-copyright: Implement and document
42510         UPDATE_COPYRIGHT_FORCE.
42511         * tests/test-update-copyright.sh: Test it.
42512
42513 2009-08-14  Eric Blake  <ebb9@byu.net>
42514         and Bruno Haible  <bruno@clisp.org>
42515
42516         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42517         * tests/test-locale.c: Revert previous patch related to NULL.
42518         * tests/test-stdio.c: Likewise.
42519         * tests/test-stdlib.c: Likewise.
42520         * tests/test-string.c: Likewise.
42521         * tests/test-unistd.c: Likewise.
42522         * modules/time-tests (Depends-on): Add verify.
42523         * modules/wchar-tests (Depends-on): Likewise.
42524         * tests/test-time.c: Test for NULL compliance.
42525         * tests/test-wchar.c: Likewise.
42526         * modules/locale (Depends-on): Add stddef.
42527         * modules/stdio (Depends-on): Likewise.
42528         * modules/stdlib (Depends-on): Likewise.
42529         * modules/string (Depends-on): Likewise.
42530         * modules/time (Depends-on): Likewise.
42531         * modules/unistd (Depends-on): Likewise.
42532         * modules/wchar (Depends-on): Likewise.
42533         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42534         * lib/stdlib.in.h (includes): Likewise.
42535         * lib/string.in.h (includes): Likewise.
42536         * lib/time.in.h (includes): Likewise.
42537         * lib/unistd.in.h (includes): Likewise.
42538         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42539         replaced.
42540         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42541         * m4/stddef_h.m4: New file.
42542         * modules/stddef: Likewise.
42543         * lib/stddef.in.h: Likewise.
42544         * modules/stddef-tests: Likewise.
42545         * tests/test-stddef.c: Likewise.
42546         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42547         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42548         * doc/posix-headers/locale.texi (locale.h): Likewise.
42549         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42550         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42551         * doc/posix-headers/string.texi (string.h): Likewise.
42552         * doc/posix-headers/time.texi (time.h): Likewise.
42553         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42554         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42555
42556 2009-08-14  Eric Blake  <ebb9@byu.net>
42557
42558         doc: improve git diff of texinfo files
42559         * .gitattributes: Add rule for *.texi files, with hint on how to
42560         use it.
42561         Copied from m4, and based on a report by Bruno Haible.
42562
42563 2009-08-14  Bruno Haible  <bruno@clisp.org>
42564
42565         Disable multithread support by default on Cygwin 1.5.x for real.
42566         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42567
42568 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42569
42570         update-copyright: much ado about intervals
42571         * build-aux/update-copyright: Implement and document
42572         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42573         of copyright year intervals.
42574         Also, document UPDATE_COPYRIGHT_YEAR.
42575         * tests/test-update-copyright.sh: Test it.
42576
42577         update-copyright: convert 2-digit to 4-digit years
42578         * build-aux/update-copyright: Implement and document.
42579         * tests/test-update-copyright.sh: Update.
42580
42581 2009-08-14  Jim Meyering  <meyering@redhat.com>
42582
42583         test-exclude: avoid coreutils "make check" failure
42584         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42585         just as in test-argmatch.c.
42586
42587 2009-08-13  Eric Blake  <ebb9@byu.net>
42588
42589         test-dup2: fix bad assumption
42590         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42591         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42592
42593         test-version-etc: fix CRLF portability issue
42594         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42595         recognize \r.
42596         * tests/test-argp-version-etc-1.sh: Likewise.
42597
42598         getopt: update client modules
42599         * modules/argp (Depends-on): Use getopt-gnu.
42600         * modules/git-merge-changelog (Depends-on): Likewise.
42601         * modules/long-options (Depends-on): Likewise.
42602         * modules/xstrtol (Depends-on): Likewise.
42603
42604 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42605
42606         * tests/test-version-etc.sh: Don't fail on different
42607         project/version.  Don't fail on CRLF differences.  Rewrite to use
42608         multiple -e instead of multiple sed forks, suggested by Eric Blake
42609         <ebb9@byu.net>.
42610         * tests/test-argp-version-etc-1.sh: Likewise.
42611
42612 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42613
42614         * tests/test-version-etc.sh: Don't fail on different
42615         project/version.
42616
42617 2009-08-12  Bruno Haible  <bruno@clisp.org>
42618
42619         Tests for modules 'getopt-posix', 'getopt-gnu'.
42620         * modules/getopt-posix-tests: New file.
42621         * tests/test-getopt.c: New file.
42622         * tests/test-getopt.h: New file.
42623         * tests/test-getopt_long.h: New file.
42624
42625         New modules 'getopt-posix', 'getopt-gnu'.
42626         * modules/getopt-gnu: New file, renamed from modules/getopt.
42627         * modules/getopt-posix: New file.
42628         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42629         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42630         (gl_GETOPT): Remove macro.
42631         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42632         Disable the test against BSD systems that declare optreset. Test
42633         against mingw bug. Test against lack of support of optional arguments
42634         on many platforms.
42635         * doc/glibc-headers/getopt.texi: Update module name and list of
42636         relevant platforms.
42637         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42638         'getopt-gnu' and more portability problems.
42639         * NEWS: Mention the changes.
42640
42641 2009-08-12  Bruno Haible  <bruno@clisp.org>
42642
42643         Ensure that optarg etc. get declared by <unistd.h>.
42644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42645         AC_USE_SYSTEM_EXTENSIONS.
42646         * modules/getopt (Depends-on): Add 'extensions'.
42647
42648 2009-08-12  Bruno Haible  <bruno@clisp.org>
42649
42650         Avoid test link errors.
42651         * modules/pipe-filter-ii-tests (Makefile.am): Define
42652         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42653         * modules/pipe-filter-gi-tests (Makefile.am): Define
42654         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42656
42657 2009-08-12  Bruno Haible  <bruno@clisp.org>
42658
42659         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42660         gl_GETOPT_SUBSTITUTE before.
42661         (gl_GETOPT): Use it.
42662         * m4/argp.m4 (gl_ARGP): Update.
42663         Reported by Sergey Poznyakoff.
42664
42665         * m4/getopt.m4: Reorder macros.
42666         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42667         (gl_GETOPT_SUBSTITUTE): Remove macro.
42668
42669 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42670
42671         Minor improvement in gitlog-to-changelog
42672
42673         * build-aux/gitlog-to-changelog: New option `--format' makes
42674         output format string configurable.
42675
42676 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42677
42678         Optimize exclude: use hash tables for non-wildcard patterns.
42679
42680         * lib/exclude.c: Include hash.h and mbuiter.h
42681         (struct exclude_pattern, exclude_segment): New data types.
42682         (struct exclude): Rewrite.
42683         (fnmatch_pattern_has_wildcards): New function.
42684         (new_exclude_segment, free_exclude_segment): New functions.
42685         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42686         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42687         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42688         * modules/exclude: Depend on hash and mbuiter.
42689
42690         * modules/exclude-tests: New file.
42691         * tests/test-exclude.c: New file.
42692         * tests/test-exclude1.sh: New file.
42693         * tests/test-exclude2.sh: New file.
42694         * tests/test-exclude3.sh: New file.
42695         * tests/test-exclude4.sh: New file.
42696         * tests/test-exclude5.sh: New file.
42697         * tests/test-exclude6.sh: New file.
42698         * tests/test-exclude7.sh: New file.
42699
42700 2009-08-12  Bruno Haible  <bruno@clisp.org>
42701
42702         Ensure that getopt() gets declared by <unistd.h>.
42703         * lib/unistd.in.h: Conditionally include getopt.h.
42704         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42705         Set GNULIB_UNISTD_H_GETOPT.
42706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42707         GNULIB_UNISTD_H_GETOPT.
42708         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42709
42710 2009-08-12  Bruno Haible  <bruno@clisp.org>
42711
42712         Clarify logic.
42713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42714         gl_replace_getopt instead of GETOPT_H.
42715
42716 2009-08-12  Bruno Haible  <bruno@clisp.org>
42717
42718         * m4/getopt.m4: Add comments.
42719
42720 2009-08-12  Bruno Haible  <bruno@clisp.org>
42721
42722         Disable multithread support by default on Cygwin 1.5.x.
42723         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42724         set gl_use_threads=no if not specified otherwise.
42725
42726 2009-08-11  Bruno Haible  <bruno@clisp.org>
42727
42728         Avoid compilation error on NetBSD 5.0.
42729         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42730         * tests/test-stdio.c: Likewise.
42731         * tests/test-stdlib.c: Likewise.
42732         * tests/test-string.c: Likewise.
42733         * tests/test-unistd.c: Likewise.
42734         Reported by Greg Troxel <gdt@ir.bbn.com>
42735         at <https://savannah.gnu.org/support/?106973>.
42736
42737 2009-08-11  Bruno Haible  <bruno@clisp.org>
42738
42739         * modules/dup2-tests (Depends-on): Remove close.
42740
42741         Undo 2009-07-19 commit.
42742         * modules/acl-tests (Depends-on): Remove close.
42743         * modules/binary-io-tests (Depends-on): Likewise.
42744         * modules/closein-tests (Depends-on): Likewise.
42745         * modules/flock-tests (Depends-on): Likewise.
42746         * modules/fsync-tests (Depends-on): Likewise.
42747         * modules/lseek-tests (Depends-on): Likewise.
42748         * modules/pipe-tests (Depends-on): Likewise.
42749         * modules/posix_spawn-tests (Depends-on): Likewise.
42750         * modules/posix_spawnp-tests (Depends-on): Likewise.
42751         * modules/stat-time-tests (Depends-on): Likewise.
42752         * modules/yesno-tests (Depends-on): Likewise.
42753
42754 2009-08-10  Bruno Haible  <bruno@clisp.org>
42755
42756         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42757
42758 2009-08-10  Bruno Haible  <bruno@clisp.org>
42759
42760         Fix a gcc warning.
42761         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42762
42763 2009-08-10  Bruno Haible  <bruno@clisp.org>
42764
42765         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42766         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42767         not only the first time.
42768         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42769         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42770         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42771         is 1, not only the the first time.
42772
42773 2009-08-10  Bruno Haible  <bruno@clisp.org>
42774
42775         Make it possible to use module 'gethostname' without module 'close'.
42776         * lib/unistd.in.h (close): Evoke a link error only if
42777         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42779         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42780         * modules/unistd (Makefile.am): Substitute
42781         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42782         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42783         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42784         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42785         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42786         * modules/sys_ioctl (Makefile.am): Substitute
42787         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42788         * modules/socket (configure.ac): On native Windows, set
42789         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42790         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42791         Reported by Sam Steingold <sds@gnu.org>.
42792
42793 2009-08-10  Bruno Haible  <bruno@clisp.org>
42794
42795         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42796         * modules/ioctl (configure.ac): Likewise.
42797
42798 2009-08-10  Bruno Haible  <bruno@clisp.org>
42799
42800         Avoid collision between gnulib wrapper and libintl wrapper.
42801         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42802         already defined in intl/printf.c.
42803         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42804         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42805
42806 2009-08-09  Bruno Haible  <bruno@clisp.org>
42807
42808         Make <sys/select.h> really self-contained, also on Solaris 10.
42809         * lib/sys_select.in.h: Include <string.h>.
42810         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42811         Solaris 10 problem.
42812         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42813         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42814         Reported by Jim Meyering.
42815
42816 2009-08-09  Bruno Haible  <bruno@clisp.org>
42817
42818         Avoid warnings from 'aclocal' that are due to a use of macro name
42819         AM_XGETTEXT_OPTION that is not defined in automake.
42820         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42821         automake.
42822         * modules/error (configure.ac): Likewise.
42823         * modules/propername (configure.ac): Likewise.
42824         * modules/vasprintf (configure.ac): Likewise.
42825         * modules/verror (configure.ac): Likewise.
42826         * modules/xprintf (configure.ac): Likewise.
42827         * modules/xvasprintf (configure.ac): Likewise.
42828
42829 2009-08-08  Bruno Haible  <bruno@clisp.org>
42830
42831         Avoid compilation error in C++ mode.
42832         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42833         Reported by Sam Steingold <sds@gnu.org>.
42834
42835 2009-08-08  Bruno Haible  <bruno@clisp.org>
42836
42837         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42838         for the various Unix platforms.
42839         * doc/posix-headers/limits.texi: Update platforms list regarding
42840         HOST_NAME_MAX.
42841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42842
42843 2009-08-07  Jim Meyering  <meyering@redhat.com>
42844
42845         selinux-at: fix typo in a comment
42846         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42847         Spotted by Paolo Bonzini.
42848
42849         selinux-at: remove redundant m4 code, add documentation
42850         * modules/selinux-at (configure.ac): Remove redundant code.
42851         LIB_SELINUX is already set via the dependent module, selinux-h.
42852         (Include): Add quotes around selinux-at.h.
42853         * lib/selinux-at.h: Add documentation.
42854         Reported by Bruno Haible in
42855         http://marc.info/?l=gnulib-bug&m=124958988300749
42856
42857 2009-08-07  Bruno Haible  <bruno@clisp.org>
42858
42859         Avoid link error on MacOS X 10.3 and 10.4.
42860         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42861         on non-ELF systems.
42862         * lib/argp-pv.c (argp_program_version): Likewise.
42863         Reported by Simon Josefsson.
42864
42865 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42866
42867         * tests/test-version-etc.sh: Use $EXEEXT.
42868
42869 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42870
42871         update-copyright: update documentation to point to maint.mk
42872         * build-aux/update-copyright: Here.
42873
42874 2009-08-06  Jim Meyering  <meyering@redhat.com>
42875
42876         maint.mk: support update-copyright-local
42877         * top/maint.mk (update-copyright-local): Define place-holder.
42878         (update-copyright): Depend on $(update-copyright-local).
42879
42880 2009-08-06  Jim Meyering  <meyering@redhat.com>
42881
42882         selinux-at: new module
42883         Initially written for coreutils, this module will soon be
42884         used by findutils, too.
42885         * MODULES.html.sh [Misc]: Add selinux-at.
42886         * lib/selinux-at.h: New file, from coreutils.
42887         * lib/selinux-at.c: Likewise.
42888         * modules/selinux-at: Likewise.
42889         (License): Change from LGPL to GPL, since it depends
42890         on the GPL'd openat module.
42891
42892         doc: update README
42893         * README: Remove references to cogito.
42894         Remove cvs-repo-updating instructions from 2007.
42895         Don't imply that CVS is better if you have limited disk space.
42896
42897 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42898
42899         update-copyright: support C-style comments
42900         * build-aux/update-copyright: Implement and document.
42901         * tests/test-update-copyright.sh: Test.
42902
42903 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42904
42905         update-copyright: support omitted "(C)"
42906         * build-aux/update-copyright: Implement and document.  Also,
42907         allow variable whitespace before "(C)".
42908         * tests/test-update-copyright.sh: Test.
42909
42910 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42911
42912         update-copyright: don't trip on non-FSF copyright statements
42913         * build-aux/update-copyright: Fix so that the first correctly
42914         formatted FSF copyright statement is recognized no matter what
42915         appears before it.  Update documentation.
42916         * tests/test-update-copyright.sh: Test that.
42917
42918 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42919
42920         update-copyright: clean up code a little
42921         * build-aux/update-copyright: Append "_re" to the name of any
42922         variable holding a regular expression.
42923         Replace "old" and "new" with "stmt" in variable names.
42924         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42925         handled correctly.
42926         Format code more consistently.
42927
42928 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42929
42930         update-copyright-tests: improve portability
42931         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42932         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42933
42934 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42935
42936         update-copyright: support @copyright{} and &copy;
42937         * build-aux/update-copyright: Implement and document.
42938         * tests/test-update-copyright.sh: Test.
42939
42940 2009-08-04  Jim Meyering  <meyering@redhat.com>
42941
42942         update-copyright-tests: correctly test EOL=\r\n handling
42943         * tests/test-update-copyright.sh: Put \r at the end of some lines
42944         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42945
42946         maint.mk: make update-copyright exclusion list more configurable
42947         * top/maint.mk (update-copyright): Default to excluding COPYING,
42948         but allow an override, in case someone does want to update that file.
42949
42950         maint.mk: don't update copyright date in COPYING
42951         * top/maint.mk (update-copyright): Exclude COPYING.
42952
42953         maint.mk: add a copyright-updating rule
42954         * top/maint.mk (update-copyright): New rule.
42955         Derived from coreutils/Makefile.am.
42956
42957         update-copyright: rename some variables
42958         * build-aux/update-copyright: Rename a few variables for clarity.
42959         Tweak syntax.  List Joel E. Denny as coauthor.
42960
42961 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42962
42963         update-copyright: fix bug for 2-digit last year and add tests
42964         * build-aux/update-copyright: Fix bug.
42965         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42966         specified.
42967         * modules/update-copyright-tests: New
42968         * tests/test-update-copyright.sh: New.
42969
42970 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42971
42972         update-copyright: handle leading tabs in line prefix
42973         * build-aux/update-copyright: Count leading tabs as 8 spaces
42974         when computing margin.  This helps with the formatting of
42975         ChangeLogs, for example.
42976         Fix documentation a little.
42977
42978 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42979
42980         update-copyright: support EOL=\r\n
42981         * build-aux/update-copyright: Implement that.
42982
42983 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42984
42985         update-copyright: automatically format copyright statements
42986         * build-aux/update-copyright: Implement that.
42987         Also, be a little more predictable and safer by always failing
42988         when the full copyright format is not perfectly recognized as an
42989         unbroken whole.  Discussed at
42990         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42991         Rewrite documentation.
42992
42993 2009-08-03  Bruno Haible  <bruno@clisp.org>
42994
42995         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42996
42997 2009-08-02  Bruno Haible  <bruno@clisp.org>
42998
42999         Tests for module 'uname'.
43000         * modules/uname-tests: New file.
43001         * tests/test-uname.c: New file.
43002
43003         New module 'uname'.
43004         * lib/uname.c: New file.
43005         * m4/uname.m4: New file.
43006         * modules/uname: New file.
43007         * doc/posix-functions/uname.texi: Mention the new module.
43008
43009 2009-08-02  Bruno Haible  <bruno@clisp.org>
43010
43011         Tests for module 'sys_utsname'.
43012         * modules/sys_utsname-tests: New file.
43013         * tests/test-sys_utsname.c: New file.
43014
43015         New module 'sys_utsname'.
43016         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43017         * m4/sys_utsname_h.m4: New file.
43018         * modules/sys_utsname: New file.
43019         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43020
43021 2009-08-02  Bruno Haible  <bruno@clisp.org>
43022
43023         Implicitly initialize the sockets library.
43024         * lib/gethostname.c: Include sockets.h.
43025         (rpl_gethostname): Invoke gl_sockets_startup.
43026         * lib/socket.c: Include sockets.h.
43027         (rpl_socket): Invoke gl_sockets_startup.
43028         * modules/gethostname (Depends-on): Add sockets.
43029         * modules/socket (Depends-on): Likewise.
43030         * tests/test-poll.c: Don't include sockets.h.
43031         (main): Don't invoke gl_sockets_startup.
43032         * tests/test-select.c: Don't include sockets.h.
43033         (main): Don't invoke gl_sockets_startup.
43034
43035 2009-08-02  Bruno Haible  <bruno@clisp.org>
43036
43037         Allow multiple calls to gl_sockets_startup.
43038         * lib/sockets.c (initialized_sockets_version): New variable.
43039         (gl_sockets_startup): Do nothing if already called for this or a higher
43040         version.
43041         (gl_sockets_cleanup): Reset initialized_sockets_version.
43042
43043 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43044
43045         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43046         different project/version.
43047
43048 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43049             Bruno Haible  <bruno@clisp.org>
43050
43051         Tests for module 'pipe-filter-gi'.
43052         * modules/pipe-filter-gi-tests: New file.
43053         * tests/test-pipe-filter-gi1.sh: New file.
43054         * tests/test-pipe-filter-gi1.c: New file.
43055         * tests/test-pipe-filter-gi2.sh: New file.
43056         * tests/test-pipe-filter-gi2-main.c: New file.
43057         * tests/test-pipe-filter-gi2-child.c: New file.
43058
43059         New module 'pipe-filter-gi'.
43060         * lib/pipe-filter-gi.c: New file.
43061         * modules/pipe-filter-gi: New file.
43062
43063 2009-08-02  Bruno Haible  <bruno@clisp.org>
43064             Paolo Bonzini  <bonzini@gnu.org>
43065
43066         Tests for module 'pipe-filter-ii'.
43067         * modules/pipe-filter-ii-tests: New file.
43068         * tests/test-pipe-filter-ii1.sh: New file.
43069         * tests/test-pipe-filter-ii1.c: New file.
43070         * tests/test-pipe-filter-ii2.sh: New file.
43071         * tests/test-pipe-filter-ii2-main.c: New file.
43072         * tests/test-pipe-filter-ii2-child.c: New file.
43073
43074         New module 'pipe-filter-ii'.
43075         * lib/pipe-filter.h: New file.
43076         * lib/pipe-filter-ii.c: New file.
43077         * lib/pipe-filter-aux.h: New file.
43078         * modules/pipe-filter-ii: New file.
43079
43080 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43081
43082         * lib/gc-libgcrypt.c: Change copyright to FSF.
43083         * lib/gc-gnulib.c: Likewise.
43084
43085 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43086
43087         * lib/gethostname.c: Include limits.h.
43088
43089 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43090             Bruno Haible  <bruno@clisp.org>
43091
43092         Ensure HOST_NAME_MAX as part of the gethostname module.
43093         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43094         define also HOST_NAME_MAX.
43095         * tests/test-gethostname.c: Include <limits.h>.
43096         (main): Check also HOST_NAME_MAX.
43097         * doc/posix-headers/limits.texi: Document the mingw problem.
43098
43099 2009-08-02  Bruno Haible  <bruno@clisp.org>
43100
43101         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43102         Add comments.
43103
43104 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43105
43106         * lib/gethostname.c: Add Windows wrapper.
43107         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43108         * modules/gethostname: Depend on sys_socket & errno, for also
43109         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43110         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43111
43112 2009-07-31  Jim Meyering  <meyering@redhat.com>
43113
43114         getloadavg: fix symbol name in comment
43115         * lib/getloadavg.c: Correct a typo I introduced when adding
43116         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43117         Matt Kraai spotted the problem.
43118
43119 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43120
43121         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43122         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43123         code also if ! defined N_NAME_POINTER.
43124         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43125         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43126         but the n_name member is a 12-byte array.
43127
43128 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43129
43130         update-copyright: generalize comment handling
43131         * build-aux/update-copyright: Handle copyright statements
43132         within more comment styles.
43133         Document usage.
43134         Report any file with an external copyright holder or parse failure.
43135
43136 2009-07-29  Jim Meyering  <meyering@redhat.com>
43137
43138         mktime: correct setting of REPLACE_MKTIME
43139         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43140
43141         update-copyright: new module
43142         * modules/update-copyright: New file.
43143         * build-aux/update-copyright: New file.
43144         * MODULES.html.sh (maint+release support): Add update-copyright.
43145
43146 2009-07-27  Bruno Haible  <bruno@clisp.org>
43147
43148         Fix compilation error when <ctime> is used and mktime is replaced.
43149         * lib/time.in.h (mktime): New declaration.
43150         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43151         REPLACE_MKTIME instead of defining mktime in config.h.
43152         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43153         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43154         Reported by Ross McFarland <rwmcfa1@neces.com>.
43155
43156 2009-07-27  Bruno Haible  <bruno@clisp.org>
43157
43158         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43159         Reported by Matt Kraai <mkraai@beckman.com>.
43160
43161 2009-07-25  Jim Meyering  <meyering@redhat.com>
43162
43163         maint.mk: avoid warnings about missing files
43164         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43165         diagnostic when .prev-version does not exist.
43166         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43167         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43168         nonexistent cfg.mk.
43169         Suggestions from Simon Josefsson.
43170
43171 2009-07-25  Bruno Haible  <bruno@clisp.org>
43172
43173         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43174         defined as macros. Needed on QNX 6.4.1.
43175         Reported by Matt Kraai <mkraai@beckman.com>.
43176
43177 2009-07-23  Jim Meyering  <meyering@redhat.com>
43178
43179         maint.mk: invoke "make dist" with a working value of XZ_OPT
43180         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43181
43182 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43183
43184         Make fseeko.c compile on QNX.
43185         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43186
43187 2009-07-22  Peter Simons  <simons@cryp.to>
43188
43189         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43190         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43191         * lib/md4.h: Likewise.
43192         * lib/md5.h: Likewise.
43193         * lib/sha1.h: Likewise.
43194         * lib/sha256.h: Likewise.
43195         * lib/sha512.h: Likewise.
43196
43197         tests-sha1: don't assign literal string to 'char *' variable
43198         * tests/test-sha1.c (main): Declare locals with "const" to match
43199         attributes of the right hand side.
43200
43201 2009-07-21  Eric Blake  <ebb9@byu.net>
43202
43203         dup2: fix more mingw problems
43204         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43205         fd to itself.
43206         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43207         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43208         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43209         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43210         care of mingw bugs.
43211
43212 2009-07-21  Jim Meyering  <meyering@redhat.com>
43213
43214         vc-list-files: avoid failure when /bin/sh is dash
43215         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43216         On some Debian based systems, /bin/sh is a symlink to dash, and running
43217         this command would omit the "/" following each 'tests' prefix:
43218           dash -x build-aux/vc-list-files -C . tests
43219         That is because bash and dash work differently:
43220           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43221           bash ok
43222           dash odd
43223
43224 2009-07-21  Eric Blake  <ebb9@byu.net>
43225
43226         dup2-tests: test previous patch
43227         * modules/dup2-tests: New file.
43228         * tests/test-dup2.c: Likewise.
43229         * tests/test-open.c (main): Avoid unspecified behavior.
43230         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43231         test.
43232
43233         dup2: work around mingw and cygwin 1.5 bug
43234         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43236         * modules/unistd (Makefile.am): Substitute it.
43237         * lib/unistd.in.h (dup2): Declare the replacement.
43238         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43239         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43240         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43241         * modules/execute (Depends-on): Add dup2.
43242         * modules/fseterr (Depends-on): Likewise.
43243         * modules/pipe (Depends-on): Likewise.
43244         * modules/posix_spawn-internal (Depends-on): Likewise.
43245
43246 2009-07-21  Bruno Haible  <bruno@clisp.org>
43247
43248         * modules/.gitattributes: New file.
43249
43250 2009-07-20  Bruno Haible  <bruno@clisp.org>
43251
43252         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43253         (main): Use it.
43254
43255 2009-07-20  Eric Blake  <ebb9@byu.net>
43256
43257         test-pipe: make a bit more robust.
43258         * tests/test-pipe.c (myerr): Allow error messages regardless of
43259         what we do to stderr.
43260         (test_pipe): Rearrange to avoid deadlock.
43261         (child_main): Try a larger read, to ensure we avoided deadlock.
43262         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43263         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43264         if misused.
43265
43266 2009-07-19  Jim Meyering  <meyering@redhat.com>
43267
43268         fts: avoid false-positive cycle-detection
43269         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43270         for each new command line argument.
43271
43272 2009-07-19  Bruno Haible  <bruno@clisp.org>
43273
43274         Fix build error on mingw with the modules sys_select and unistd.
43275         * modules/acl-tests (Depends-on): Add close.
43276         * modules/binary-io-tests (Depends-on): Likewise.
43277         * modules/closein-tests (Depends-on): Likewise.
43278         * modules/flock-tests (Depends-on): Likewise.
43279         * modules/fsync-tests (Depends-on): Likewise.
43280         * modules/lseek-tests (Depends-on): Likewise.
43281         * modules/pipe-tests (Depends-on): Likewise.
43282         * modules/posix_spawn-tests (Depends-on): Likewise.
43283         * modules/posix_spawnp-tests (Depends-on): Likewise.
43284         * modules/stat-time-tests (Depends-on): Likewise.
43285         * modules/yesno-tests (Depends-on): Likewise.
43286
43287 2009-07-19  Bruno Haible  <bruno@clisp.org>
43288
43289         Unify conditionals.
43290         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43291         macros, not at the compiler macros.
43292         * lib/pipe.c: Likewise.
43293         * lib/execute.c: Likewise.
43294         * lib/spawni.c: Likewise.
43295
43296 2009-07-19  Bruno Haible  <bruno@clisp.org>
43297
43298         Fix handling of closed stdin/stdout/stderr on mingw.
43299         * lib/w32spawn.h: Include unistd.h.
43300         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43301         file descriptor with O_NOINHERIT flag.
43302         (fd_safer_noinherit): New function, based on fd-safer.c.
43303         (dup_safer_noinherit): New function, based on dup-safer.c.
43304         (undup_safer_noinherit): New function.
43305         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43306         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43307         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43308         instead of fd_safer.
43309         * tests/test-pipe.c: Include <windows.h>.
43310         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43311         result.
43312
43313         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43314         from main.
43315         (test_pipe): Pass an extra argument for disambiguation.
43316         (main): Invoke parent_main or child_main.
43317
43318         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43319         consistently.
43320
43321 2009-07-18  Eric Blake  <ebb9@byu.net>
43322
43323         test-pipe: fix mingw build
43324         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43325
43326 2009-07-18  Bruno Haible  <bruno@clisp.org>
43327
43328         * modules/pipe-tests (Makefile.am): Fix typo.
43329
43330 2009-07-18  Eric Blake  <ebb9@byu.net>
43331
43332         error: fix mingw build
43333         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43334         Reported by Bruno Haible.
43335
43336         error: avoid undefined use of stdout
43337         * lib/error.c (error, error_at_line): Check that fd 1 is open
43338         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43339         is handling faults and the close_stdout module wants to report the
43340         detection of closed stdout as an error.
43341
43342 2009-07-17  Eric Blake  <ebb9@byu.net>
43343
43344         pipe: be robust in face of closed fds
43345         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43346         should cause child to misbehave.
43347         * modules/pipe-tests: New module.
43348         * tests/test-pipe.c: New file.
43349         * tests/test-pipe.sh: New file.
43350         Reported by Akim Demaille.
43351
43352 2009-07-14  Bruno Haible  <bruno@clisp.org>
43353
43354         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43355         Reported by anonymous kc.
43356
43357 2009-07-07  Jim Meyering  <meyering@redhat.com>
43358
43359         maint.mk: don't look for translatable strings in *.m4 or *.mk
43360         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43361         when searching for translatable strings.
43362
43363 2009-07-05  Jim Meyering  <meyering@redhat.com>
43364
43365         remove superfluous parentheses in STREQ definition
43366         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43367         * lib/getugroups.c (STREQ): Likewise.
43368         * lib/fnmatch.c (STREQ): Likewise.
43369         Spotted by Bruno Haible.
43370
43371 2009-07-04  Jim Meyering  <meyering@redhat.com>
43372
43373         argv-iter: new module
43374         * MODULES.html.sh: Add argv-iter.
43375         * lib/argv-iter.c, lib/argv-iter.h: New files.
43376         * modules/argv-iter: New file.
43377         * modules/argv-iter-tests: New file.
43378         * tests/test-argv-iter.c: Test it.
43379
43380 2009-07-04  Bruno Haible  <bruno@clisp.org>
43381
43382         Fix assertion.
43383         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43384         contains more exact copies of a given entry than file2, leave the extra
43385         copies unpaired rather than aborting.
43386         Reported by Eric Blake.
43387
43388 2009-07-02  Bruno Haible  <bruno@clisp.org>
43389
43390         Speedup git-merge-changelog for git cherry-pick.
43391         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43392         (entries_mapping_get): New function, extracted from compute_mapping.
43393         (entries_mapping_reverse_get): New function.
43394         (compute_mapping): Add a 'full' argument. Return the result in a
43395         'struct entries_mapping'.
43396         (main): Update. Access the mappings through entries_mapping_get.
43397         Reported by Eric Blake.
43398
43399 2009-07-02  Bruno Haible  <bruno@clisp.org>
43400
43401         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43402         best_i.
43403
43404 2009-07-02  Bruno Haible  <bruno@clisp.org>
43405
43406         Speed up approximate search for matching ChangeLog entries.
43407         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43408         argument. Call fstrcmp_bounded instead of fstrcmp.
43409         (compute_mapping, try_split_merged_entry, main): Update callers.
43410
43411 2009-07-02  Bruno Haible  <bruno@clisp.org>
43412
43413         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43414
43415 2009-06-30  Bruno Haible  <bruno@clisp.org>
43416
43417         Reduce the number of uc_is_cased calls.
43418         * lib/unicase.h (casing_suffix_context_t): Add
43419         'first_char_except_ignorable' field.
43420         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43421         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43422         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43423         Update initializer.
43424         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43425         case-ignorable characters.
43426         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43427         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43428         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43429         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43430         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43431
43432 2009-06-30  Bruno Haible  <bruno@clisp.org>
43433
43434         Tests for module 'unicase/ignorable'.
43435         * modules/unicase/ignorable-tests: New file.
43436         * tests/unicase/test-ignorable.c: New file, generated by
43437         gen-uni-tables.
43438
43439         Tests for module 'unicase/cased'.
43440         * modules/unicase/cased-tests: New file.
43441         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43442         * tests/unicase/test-predicate-part1.h: New file, derived from
43443         tests/unictype/test-predicate-part1.h.
43444         * tests/unicase/test-predicate-part2.h: New file, same as
43445         tests/unictype/test-predicate-part2.h.
43446
43447         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43448         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43449         (output_casing_properties): New function.
43450         (main): Call it.
43451         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43452         * lib/unicase/cased.c: Include unictype/bitmap.h.
43453         (uc_is_cased): Define through a bitmap lookup.
43454         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43455         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43456         (uc_is_case_ignorable): Define through a bitmap lookup.
43457         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43458         lib/unictype/bitmap.h.
43459         (Depends-on): Add inline. Clean up.
43460         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43461         lib/unictype/bitmap.h.
43462         (Depends-on): Add inline. Clean up.
43463         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43464         recognition.
43465         * tests/unicase/test-u16-tolower.c (main): Likewise.
43466         * tests/unicase/test-u32-tolower.c (main): Likewise.
43467
43468 2009-06-30  Bruno Haible  <bruno@clisp.org>
43469
43470         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43471         * lib/unicase/u16-casemap.c: Likewise.
43472         * lib/unicase/u32-casemap.c: Likewise.
43473
43474 2009-06-29  Bruno Haible  <bruno@clisp.org>
43475
43476         Define u32_casefold as a wrapper around u32_ct_casefold.
43477         * lib/unicase/u32-casefold.c: Update.
43478         * modules/unicase/u32-casefold (Depends-on): Add
43479         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43480         unicase/empty-suffix-context. Clean up.
43481
43482         Define u16_casefold as a wrapper around u16_ct_casefold.
43483         * lib/unicase/u16-casefold.c: Update.
43484         * modules/unicase/u16-casefold (Depends-on): Add
43485         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43486         unicase/empty-suffix-context. Clean up.
43487
43488         Define u8_casefold as a wrapper around u8_ct_casefold.
43489         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43490         * lib/unicase/u8-casefold.c: Update.
43491         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43492         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43493
43494         Define u32_totitle as a wrapper around u32_ct_totitle.
43495         * lib/unicase/u32-totitle.c: Update.
43496         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43497         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43498
43499         Define u16_totitle as a wrapper around u16_ct_totitle.
43500         * lib/unicase/u16-totitle.c: Update.
43501         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43502         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43503
43504         Define u8_totitle as a wrapper around u8_ct_totitle.
43505         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43506         functions.
43507         (FUNC): Delegate to U_CT_TOTITLE.
43508         * lib/unicase/u8-totitle.c: Update.
43509         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43510         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43511
43512         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43513         invocation.
43514         * modules/unicase/u32-tolower (Depends-on): Add
43515         unicase/empty-prefix-context, unicase/empty-suffix-context.
43516
43517         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43518         invocation.
43519         * modules/unicase/u16-tolower (Depends-on): Add
43520         unicase/empty-prefix-context, unicase/empty-suffix-context.
43521
43522         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43523         * modules/unicase/u8-tolower (Depends-on): Add
43524         unicase/empty-prefix-context, unicase/empty-suffix-context.
43525
43526         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43527         invocation.
43528         * modules/unicase/u32-toupper (Depends-on): Add
43529         unicase/empty-prefix-context, unicase/empty-suffix-context.
43530
43531         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43532         invocation.
43533         * modules/unicase/u16-toupper (Depends-on): Add
43534         unicase/empty-prefix-context, unicase/empty-suffix-context.
43535
43536         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43537         * modules/unicase/u8-toupper (Depends-on): Add
43538         unicase/empty-prefix-context, unicase/empty-suffix-context.
43539
43540         New module 'unicase/u32-ct-casefold'.
43541         * lib/unicase/u32-ct-casefold.c: New file.
43542         * modules/unicase/u32-ct-casefold: New file.
43543
43544         New module 'unicase/u16-ct-casefold'.
43545         * lib/unicase/u16-ct-casefold.c: New file.
43546         * modules/unicase/u16-ct-casefold: New file.
43547
43548         New module 'unicase/u8-ct-casefold'.
43549         * lib/unicase/u8-ct-casefold.c: New file.
43550         * lib/unicase/u-ct-casefold.h: New file, derived from
43551         lib/unicase/u-casefold.h.
43552         * modules/unicase/u8-ct-casefold: New file.
43553
43554         New module 'unicase/u32-ct-totitle'.
43555         * lib/unicase/u32-ct-totitle.c: New file.
43556         * modules/unicase/u32-ct-totitle: New file.
43557
43558         New module 'unicase/u16-ct-totitle'.
43559         * lib/unicase/u16-ct-totitle.c: New file.
43560         * modules/unicase/u16-ct-totitle: New file.
43561
43562         New module 'unicase/u8-ct-totitle'.
43563         * lib/unicase/u8-ct-totitle.c: New file.
43564         * lib/unicase/u-ct-totitle.h: New file, derived from
43565         lib/unicase/u-totitle.h.
43566         * modules/unicase/u8-ct-totitle: New file.
43567
43568         New module 'unicase/u32-ct-tolower'.
43569         * lib/unicase/u32-ct-tolower.c: New file.
43570         * modules/unicase/u32-ct-tolower: New file.
43571
43572         New module 'unicase/u16-ct-tolower'.
43573         * lib/unicase/u16-ct-tolower.c: New file.
43574         * modules/unicase/u16-ct-tolower: New file.
43575
43576         New module 'unicase/u8-ct-tolower'.
43577         * lib/unicase/u8-ct-tolower.c: New file.
43578         * modules/unicase/u8-ct-tolower: New file.
43579
43580         New module 'unicase/u32-ct-toupper'.
43581         * lib/unicase/u32-ct-toupper.c: New file.
43582         * modules/unicase/u32-ct-toupper: New file.
43583
43584         New module 'unicase/u16-ct-toupper'.
43585         * lib/unicase/u16-ct-toupper.c: New file.
43586         * modules/unicase/u16-ct-toupper: New file.
43587
43588         New module 'unicase/u8-ct-toupper'.
43589         * lib/unicase/u8-ct-toupper.c: New file.
43590         * modules/unicase/u8-ct-toupper: New file.
43591
43592         Add context arguments to u*_casemap functions.
43593         * lib/unicase/unicasemap.h: Include unicase.h.
43594         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43595         suffix_context arguments.
43596         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43597         functions.
43598         (FUNC): Add prefix_context and suffix_context arguments. Use
43599         uc_is_cased and uc_is_case_ignorable.
43600         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43601         * lib/unicase/u16-casemap.c: Likewise.
43602         * lib/unicase/u32-casemap.c: Likewise.
43603         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43604         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43605         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43606         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43607         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43608         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43609
43610         New module 'unicase/u32-suffix-context'.
43611         * lib/unicase/u32-suffix-context.c: New file.
43612         * modules/unicase/u32-suffix-context: New file.
43613
43614         New module 'unicase/u16-suffix-context'.
43615         * lib/unicase/u16-suffix-context.c: New file.
43616         * modules/unicase/u16-suffix-context: New file.
43617
43618         New module 'unicase/u8-suffix-context'.
43619         * lib/unicase/u8-suffix-context.c: New file.
43620         * lib/unicase/u-suffix-context.h: New file.
43621         * modules/unicase/u8-suffix-context: New file.
43622
43623         New module 'unicase/empty-suffix-context'.
43624         * lib/unicase/empty-suffix-context.c: New file.
43625         * modules/unicase/empty-suffix-context: New file.
43626
43627         New module 'unicase/u32-prefix-context'.
43628         * lib/unicase/u32-prefix-context.c: New file.
43629         * modules/unicase/u32-prefix-context: New file.
43630
43631         New module 'unicase/u16-prefix-context'.
43632         * lib/unicase/u16-prefix-context.c: New file.
43633         * modules/unicase/u16-prefix-context: New file.
43634
43635         New module 'unicase/u8-prefix-context'.
43636         * lib/unicase/u8-prefix-context.c: New file.
43637         * lib/unicase/u-prefix-context.h: New file.
43638         * lib/unicase/context.h: New file.
43639         * modules/unicase/u8-prefix-context: New file.
43640
43641         New module 'unicase/empty-prefix-context'.
43642         * lib/unicase/empty-prefix-context.c: New file.
43643         * modules/unicase/empty-prefix-context: New file.
43644
43645         New module 'unicase/ignorable'.
43646         * lib/unicase/ignorable.c: New file.
43647         * modules/unicase/ignorable: New file.
43648
43649         New module 'unicase/cased'.
43650         * lib/unicase/caseprop.h: New file.
43651         * lib/unicase/cased.c: New file.
43652         * modules/unicase/cased: New file.
43653
43654         New functions for case mapping of substrings.
43655         * lib/unicase.h (casing_prefix_context_t): New type.
43656         (unicase_empty_prefix_context): New variable.
43657         (u8_casing_prefix_context, u16_casing_prefix_context,
43658         u32_casing_prefix_context, u8_casing_prefixes_context,
43659         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43660         declarations.
43661         (casing_suffix_context_t): New type.
43662         (unicase_empty_suffix_context): New variable.
43663         (u8_casing_suffix_context, u16_casing_suffix_context,
43664         u32_casing_suffix_context, u8_casing_suffixes_context,
43665         u16_casing_suffixes_context, u32_casing_suffixes_context,
43666         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43667         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43668         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43669         declarations.
43670
43671 2009-06-28  Jim Meyering  <meyering@redhat.com>
43672
43673         boostrap: indent only with spaces
43674         * build-aux/bootstrap: Indent only with spaces, never TABs.
43675
43676         bootstrap: split long lines
43677         * build-aux/bootstrap: Keep line length < 80.
43678
43679         bootstrap: sync from coreutils
43680         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43681         just as autoreconf does.  Verify a list of prerequisite
43682         package-name,version-number pairs if defined in bootstrap.conf.
43683         Refer to README-prereq, if prerequisites are not satisfied.
43684
43685 2009-06-27  Eric Blake  <ebb9@byu.net>
43686
43687         tests: add test for bogus NULL definition
43688         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43689         * tests/test-stdlib.c: Likewise.
43690         * tests/test-string.c: Likewise.
43691         * tests/test-locale.c: Likewise.
43692         * tests/test-unistd.c: Likewise.
43693         * modules/stdio-tests (Depends-on): Add verify.
43694         * modules/stdlib-tests (Depends-on): Likewise.
43695         * modules/string-tests (Depends-on): Likewise.
43696         * modules/locale-tests (Depends-on): Likewise.
43697         * modules/unistd-tests (Depends-on): Likewise.
43698
43699 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43700
43701         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43702         self-explaining comment.
43703         * m4/selinux-selinux-h: Update serial.
43704         (gl_LIBSELINUX): New macro, adding a warning for missing development
43705         packages to code extracted from...
43706         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43707         Add warning for missing development packages here, too.
43708
43709 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43710
43711         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43712
43713 2009-06-25  Eric Blake  <ebb9@byu.net>
43714
43715         version-etc: fix regression
43716         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43717         gcc.
43718         (version_etc): Use it, to catch bugs with trailing NULL.
43719         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43720         (version_etc_va): Fix logic bug.
43721         * modules/version-etc-tests: Add test.
43722         * tests/test-version-etc.c: New file.
43723         * tests/test-version-etc.sh: Likewise.
43724
43725 2009-06-25  Sam Steingold  <sds@gnu.org>
43726
43727         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43728         mbtowc declaration.
43729
43730 2009-06-25  Eric Blake  <ebb9@byu.net>
43731
43732         fpurge: migrate into <stdio.h>
43733         * lib/fpurge.h: Delete...
43734         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43735         * lib/fpurge.c (fpurge): Change declaring header.
43736         * modules/fpurge (Files): Drop deleted file.
43737         (Depends-on): Add stdio.
43738         (configure.ac): Set witness.
43739         * modules/stdio (Makefile.am): Support fpurge macros.
43740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43741         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43742         * lib/fflush.c: Update client.
43743         * tests/test-fpurge.c: Likewise.
43744         * NEWS: Mention the change.
43745
43746 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43747
43748         * lib/argp-version-etc.c (program_authors): Add const
43749         qualifier.
43750         * lib/version-etc.c: Fix typos in the comments.
43751         * modules/argp-version-etc: Depends on version-etc.
43752
43753 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43754
43755         argp-version-etc: new module.
43756
43757         * lib/argp-version-etc.c: New file.
43758         * lib/argp-version-etc.h: New file.
43759         * modules/argp-version-etc: New file.
43760         * modules/argp-version-etc-tests: New file.
43761         * tests/test-argp-version-etc.c: New test.
43762         * tests/test-argp-version-etc-1.sh: New test.
43763
43764 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43765
43766         Provide additional interfaces and documentation for version-etc
43767         module.
43768
43769         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43770         interfaces.
43771         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43772         prototypes.
43773
43774 2009-06-24  Bruno Haible  <bruno@clisp.org>
43775
43776         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43777         HAVE_LIB${NAME} macro.
43778         Reported by Sam Steingold <sds@gnu.org>.
43779
43780 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43781
43782         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43783         needed.
43784
43785 2009-06-21  Bruno Haible  <bruno@clisp.org>
43786
43787         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43788         work.
43789         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43790         together with LIB${NAME}, LTLIB${NAME}.
43791         Reported by Sam Steingold <sds@gnu.org>.
43792
43793 2009-06-20  Jim Meyering  <meyering@redhat.com>
43794
43795         tests: make sc_require_test_exit_idiom more generic
43796         * top/maint.mk (Exit_witness_file): New overridable variable.
43797         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43798         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43799
43800 2009-06-19  Jim Meyering  <meyering@redhat.com>
43801
43802         hash: reverse order of src/dst parameters in an internal interface
43803         * lib/hash.c (transfer_entries): Reverse order of parameters to
43804         put DST before SRC.  Adjust callers.
43805
43806         tests: test-hash: avoid wholesale duplication
43807         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43808         Instead, use a loop and add a single conditional.
43809
43810         tests: test-hash: allow seed selection via a command line argument
43811         * tests/test-hash.c (get_seed): New function.
43812         (main): Use it.
43813
43814 2009-06-19  Eric Blake  <ebb9@byu.net>
43815
43816         hash: avoid memory leak on allocation failure
43817         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43818         failure.  Factor repeated algorithm...
43819         (transfer_entries): ...into new helper routine.
43820         (hash_delete): React to hash_rehash return value.
43821
43822         hash: reduce memory pressure in hash_rehash no-op case
43823         * lib/hash.c (next_prime): Avoid overflow.
43824         (hash_initialize): Factor bucket size computation...
43825         (compute_bucket_size): ...into new helper function.
43826         (hash_rehash): Use new function and open coding to reduce memory
43827         pressure, and avoid a memory leak in USE_OBSTACK code.
43828         Reported by Jim Meyering.
43829
43830 2009-06-18  Eric Blake  <ebb9@byu.net>
43831
43832         hash: make rotation more obvious
43833         * modules/hash (Depends-on): Add bitrotate and stdint.
43834         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43835         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43836         (SIZE_MAX): Rely on headers for definition.
43837         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43838         (raw_hasher): Use rotr_sz.
43839         Suggested by Jim Meyering.
43840
43841         hash: fix memory leak in last patch
43842         * lib/hash.c (hash_rehash): Avoid memory leak.
43843
43844         hash: avoid no-op rehashing
43845         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43846
43847         hash: provide default callback functions
43848         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43849         (hash_initialize): Use them as defaults.
43850         * tests/test-hash.c (main): Test this.
43851
43852         hash: minor optimization
43853         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43854         when possible.
43855         (hash_initialize): Document this promise.
43856         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43857         * tests/test-hash.c (hash_compare_strings): Test this.
43858
43859 2009-06-18  Bruno Haible  <bruno@clisp.org>
43860
43861         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43862         going to be replaced anyway.
43863
43864 2009-06-18  Bruno Haible  <bruno@clisp.org>
43865
43866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43867         in one place.
43868         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43869         be replaced anyway.
43870
43871 2009-06-18  Eric Blake  <ebb9@byu.net>
43872
43873         hash: check for resize before insertion
43874         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43875         threshold before insertion, so that a pathological hash_rehash
43876         that fills every bucket can still trigger another rehash.
43877
43878 2009-06-18  Jim Meyering  <meyering@redhat.com>
43879
43880         hash-tests: add a loop around the small tests
43881         * tests/test-hash.c (main): Repeat small tests with selected
43882         small initial table sizes.
43883
43884 2009-06-17  Eric Blake  <ebb9@byu.net>
43885
43886         hash: minor cleanups
43887         * lib/hash.h (hash_entry): Make opaque, by moving...
43888         * lib/hash.c (hash_entry): ...here.
43889         (hash_insert): Clarify restrictions on what can be inserted.
43890         (hash_get_next): Clarify when it is safe to remove an element
43891         during traversal.
43892         (check_tuning): Skip verification when tuning is known safe.
43893         (hash_initialize): Clarify restrictions on tuning.
43894
43895 2009-06-17  Jim Meyering  <jim@meyering.net>
43896         and Eric Blake  <ebb9@byu.net>
43897
43898         hash-tests: new module
43899         * modules/hash-tests: New file.
43900         * tests/test-hash.c: New file.
43901
43902 2009-06-17  Eric Blake  <ebb9@byu.net>
43903
43904         strstr-simple: document new module
43905         * MODULES.html.sh: Document new module.
43906
43907         strstr, strcasestr: replace on platforms with broken memchr
43908         * modules/strstr: Split into...
43909         * modules/strstr-simple: ...new module that does not care about
43910         performance, but does care about glibc bug.
43911         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43912         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43913         if platform memchr is broken, per Debian bug 521737.
43914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43915         memchr.
43916         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43917         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43918         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43919         * modules/mountlist (Depends-on): Add strstr-simple.
43920         * modules/gen-uni-tables (Depends-on): Likewise.
43921         * modules/argz (Depends-on): Add strstr.
43922
43923 2009-06-17  Bruno Haible  <bruno@clisp.org>
43924
43925         * modules/posix_spawn-internal (Depends-on): Add errno.
43926
43927 2009-06-17  Bruno Haible  <bruno@clisp.org>
43928
43929         Define missing ESTALE on Interix 3.5.
43930         * lib/errno.in.h (ESTALE): Assign a value if missing.
43931         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43932         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43933         missing.
43934         * doc/posix-headers/errno.texi: Mention the Interix bug.
43935         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43936
43937 2009-06-15  Eric Blake  <ebb9@byu.net>
43938
43939         memchr, memchr2: add valgrind exception
43940         * lib/memchr.valgrind: New file.
43941         * lib/memchr2.valgrind: New file.
43942         * modules/memchr (Files): Distribute valgrind file.
43943         * modules/memchr2 (Files): Likewise.
43944
43945         docs: memchr is no longer obsolete
43946         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43947         * lib/string.in.h (memchr): Simplify logic.
43948
43949 2009-06-14  Jim Meyering  <meyering@redhat.com>
43950
43951         link-follow: fix the "checking..." message to not mention trailing slash
43952         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43953         never considered trailing slashes.
43954
43955 2009-06-14  Bruno Haible  <bruno@clisp.org>
43956
43957         * m4/memchr.m4: Mention also the bug on IA-64.
43958         * doc/posix-functions/memchr.texi: Likewise.
43959
43960 2009-06-12  Eric Blake  <ebb9@byu.net>
43961
43962         memchr: detect broken x86_64 and alpha implementations
43963         * modules/memchr-tests (Depends-on): Move mmap detection...
43964         * modules/memchr (Depends-on): ...here.
43965         (configure.ac): Set indicator.
43966         * lib/string.in.h (memchr): Declare replacement.
43967         * modules/string (Makefile.am): Trigger replacement.
43968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43969         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43970         bugs.
43971         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43972         * modules/getpagesize (License): Relax license.
43973
43974 2009-06-11  Bruno Haible  <bruno@clisp.org>
43975
43976         * lib/idpriv.h: Add more references.
43977
43978 2009-06-08  Bruno Haible  <bruno@clisp.org>
43979
43980         Tests for module 'idpriv-droptemp'.
43981         * modules/idpriv-droptemp-tests: New file.
43982         * tests/test-idpriv-droptemp.sh: New file.
43983         * tests/test-idpriv-droptemp.su.sh: New file.
43984         * tests/test-idpriv-droptemp.c: New file.
43985
43986         New module 'idpriv-droptemp'.
43987         * lib/idpriv-droptemp.c: New file.
43988         * modules/idpriv-droptemp: New file.
43989
43990 2009-06-08  Bruno Haible  <bruno@clisp.org>
43991
43992         Tests for module 'idpriv-drop'.
43993         * modules/idpriv-drop-tests: New file.
43994         * tests/test-idpriv-drop.sh: New file.
43995         * tests/test-idpriv-drop.su.sh: New file.
43996         * tests/test-idpriv-drop.c: New file.
43997
43998         New module 'idpriv-drop'.
43999         * lib/idpriv.h: New file.
44000         * lib-idpriv-drop.c: New file.
44001         * m4/idpriv.m4: New file.
44002         * modules/idpriv-drop: New file.
44003
44004 2009-06-08  Bruno Haible  <bruno@clisp.org>
44005
44006         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44007         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44008         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44009         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44010         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44011         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44012         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44013
44014 2009-06-08  Eric Blake  <ebb9@byu.net>
44015
44016         test-strstr: use memory fence, when possible
44017         * tests/test-strstr.c (main): Use memory fence, in order to be
44018         more likely to trigger Debian bug 521737.
44019         * modules/strstr-tests (Files): Pull in additional files.
44020
44021         memchr: no longer obsolete, for wider field testing
44022         * modules/memchr (Status, Notice): Delete, this module is no
44023         longer obsolete.
44024         * modules/vasnprintf (Depends-on): Add memchr.
44025
44026 2009-06-07  Jim Meyering  <meyering@redhat.com>
44027
44028         hash: declare some functions with the warn_unused_result attribute
44029         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44030
44031 2009-06-07  Bruno Haible  <bruno@clisp.org>
44032
44033         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44034         Reported by Eric Blake.
44035
44036 2009-06-06  Eric Blake  <ebb9@byu.net>
44037
44038         test-alignof: fix typo with long double
44039         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44040         compiler error.
44041
44042 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44043
44044         Escape non-texinfo { and }s.
44045         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44046         markup error.
44047
44048 2009-06-04  Jim Meyering  <meyering@redhat.com>
44049
44050         gitlog-to-changelog: don't infloop on an empty commit log
44051         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44052         Reported by Boris Petersen <transacid@centerim.org>.
44053
44054 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44055
44056         version-etc: extend for packagers
44057         Add three new configure options, intended for packagers:
44058           --with-packager="packager name"
44059           --with-packager-version="packager-specific version"
44060           --with-packager-bug-reports="packager bug reporting"
44061         An example with coreutils:
44062           $ ./configure \
44063             --with-packager=Gentoo \
44064             --with-packager-bug-report=http://bugs.gentoo.org/ \
44065             --with-packager-version="patchset 1.6"
44066           $ ./src/ls --version | head -n2
44067           ls (GNU coreutils) 7.1-dirty
44068           Packaged by Gentoo (patchset 1.6)
44069         Note that the bug reporting info via --help doesn't show up because
44070         coreutils uses its own custom emit_bug_reporting_address() implementation
44071         in src/system.h.  If it didn't, it'd look like:
44072           $ ./src/ls --help | tail -n4
44073           Report bugs to <bug-coreutils@gnu.org>.
44074           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44075           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44076           General help using GNU software: <http://www.gnu.org/gethelp/>.
44077         * lib/version-etc.c: Print new information, if provided.
44078         * m4/version-etc.m4: New file.
44079         * modules/version-etc (Files): Add m4/version-etc.m4.
44080         (configure.ac): Add gl_VERSION_ETC.
44081
44082 2009-05-31  Bruno Haible  <bruno@clisp.org>
44083
44084         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44085         and 'int64_t'.
44086         * modules/alignof-tests (Dependencies): Add stdint.
44087         Reported by Eric Blake.
44088
44089 2009-05-31  Bruno Haible  <bruno@clisp.org>
44090
44091         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44092         restriction due to compiler bugs.
44093         Reported by Eric Blake.
44094
44095 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44096             Bruno Haible  <bruno@clisp.org>
44097
44098         Fix test-alignof failure.
44099         * lib/alignof.h (alignof_slot): New macro.
44100         (alignof_type): New macro, with the same semantics as the previous
44101         'alignof'.
44102         (alignof): Alias to alignof_slot.
44103         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44104         check that the results are usable as constant expressions.
44105
44106 2009-05-31  Bruno Haible  <bruno@clisp.org>
44107
44108         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44109         * tests/test-memchr.c (main): Check that memchr does not read past the
44110         first occurrence of the byte.
44111         * tests/test-strstr.c (main): Update comment.
44112         Suggested by Eric Blake.
44113
44114 2009-05-30  Bruno Haible  <bruno@clisp.org>
44115
44116         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44117         detail how to use dumpbin.
44118         Reported by David Byron <dbyron@dbyron.com>.
44119
44120 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44121
44122         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44123
44124 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44125
44126         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44127
44128 2009-05-28  Bruno Haible  <bruno@clisp.org>
44129
44130         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44131         build-aux/ files.
44132
44133 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44134
44135         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44136
44137 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44138
44139         * gnulib-tool (sed_transform_main_lib_file)
44140         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44141         regexps.
44142
44143 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44144
44145         * tests/test-strstr.c: Add another self-test.
44146         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44147         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44148
44149 2009-05-23  Bruno Haible  <bruno@clisp.org>
44150
44151         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44152         change.
44153
44154 2009-05-21  Bruno Haible  <bruno@clisp.org>
44155
44156         Simplify use of mode_t varargs.
44157         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44158         uses 'mode_t' or 'int'.
44159         * lib/openat.c (openat): Likewise.
44160         * lib/open-safer.c (open_safer): Likewise.
44161         * m4/mode_t.m4: New file.
44162         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44163         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44164         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44165         * modules/open (Files): Add m4/mode_t.m4.
44166         * modules/openat (Files): Likewise.
44167         * modules/fcntl-safer (Files): Likewise.
44168         Suggested by Eric Blake.
44169
44170 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44171
44172         * doc/glibc-functions/fallocate.texi: New file.
44173         * doc/gnulib.texi: Include it.
44174
44175 2009-05-21  Eric Blake  <ebb9@byu.net>
44176             Bruno Haible  <bruno@clisp.org>
44177
44178         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44179         invocations.
44180         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44181
44182 2009-05-21  Eric Blake  <ebb9@byu.net>
44183             Bruno Haible  <bruno@clisp.org>
44184
44185         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44186         include_next. Fix of 2008-11-20 commit.
44187         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44188         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44189         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44190         NEXT_MATH_H.
44191         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44192         instead of NEXT_MATH_H.
44193
44194 2009-05-21  Bruno Haible  <bruno@clisp.org>
44195
44196         Avoid redefinition warnings for SIZE_MAX.
44197         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44198         Reported by Simon Josefsson.
44199
44200 2009-05-21  Bruno Haible  <bruno@clisp.org>
44201
44202         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44203         AC_CACHE_VAL.
44204
44205 2009-05-20  Bruno Haible  <bruno@clisp.org>
44206
44207         Make zeroptr.h work on mingw.
44208         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44209         mprotect.
44210         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44211         * modules/memchr2-tests (configure.ac): Likewise.
44212         * modules/memcmp-tests (configure.ac): Likewise.
44213         * modules/memmem-tests (configure.ac): Likewise.
44214         * modules/memrchr-tests (configure.ac): Likewise.
44215         Reported by Simon Josefsson.
44216
44217 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44218
44219         * tests/test-glob.c: Include string.h for strcmp prototype.
44220
44221 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44222
44223         * modules/getdelim (Depends-on): Add explicit stdint, although it
44224         was implicitly already pulled in via realloc-posix.
44225         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44226
44227 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44228
44229         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44230         G. Christensen" <tgc@jupiterrise.com>.
44231         * m4/sys_socket_h.m4: Check for sa_family_t.
44232         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44233         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44234         * tests/test-sys_socket.c: Check that sa_family_t works.
44235
44236 2009-05-18  Eric Blake  <ebb9@byu.net>
44237
44238         maint.mk: allow gnulib_dir in VPATH build
44239         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44240
44241 2009-05-15  Jim Meyering  <meyering@redhat.com>
44242
44243         maint.mk: Give gnulib_dir a default definition.
44244         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44245         Thus, most packages no longer need to specify this variable in cfg.mk
44246
44247 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44248
44249         rename.m4: fix typos that would make non-mingw cross-configure fail
44250         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44251
44252 2009-05-13  Eric Blake  <ebb9@byu.net>
44253
44254         mmap-anon: avoid out-of-order autoconf expansion
44255         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44256         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44257         * modules/memchr-tests (Depends-on): Add extensions.
44258         * modules/memchr2-tests (Depends-on): Add extensions.
44259         * modules/memcmp-tests (Depends-on): Add extensions.
44260         * modules/memmem-tests (Depends-on): Add extensions.
44261         * modules/memrchr-tests (Depends-on): Add extensions.
44262
44263 2009-05-13  Bruno Haible  <bruno@clisp.org>
44264
44265         Make some tests ISO C 99 compliant.
44266         * tests/zerosize-ptr.h: New file.
44267         * tests/test-memchr.c: Include zerosize-ptr.h.
44268         (main): Use a zero-size object pointer instead of NULL.
44269         * tests/test-memchr2.c: Include zerosize-ptr.h.
44270         (main): Use a zero-size object pointer instead of NULL.
44271         * tests/test-memcmp.c: Include zerosize-ptr.h.
44272         (main): Use a zero-size object pointer instead of NULL.
44273         * tests/test-memmem.c: Include zerosize-ptr.h.
44274         (main): Use a zero-size object pointer instead of NULL.
44275         * tests/test-memrchr.c: Include zerosize-ptr.h.
44276         (main): Use a zero-size object pointer instead of NULL.
44277         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44278         m4/mmap-anon.m4.
44279         (Depends-on): Add getpagesize.
44280         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44281         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44282         m4/mmap-anon.m4.
44283         (Depends-on): Add getpagesize.
44284         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44285         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44286         m4/mmap-anon.m4.
44287         (Depends-on): Add getpagesize.
44288         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44289         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44290         m4/mmap-anon.m4.
44291         (Depends-on): Add getpagesize.
44292         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44293         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44294         m4/mmap-anon.m4.
44295         (Depends-on): Add getpagesize.
44296         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44297
44298 2009-05-12  Bruno Haible  <bruno@clisp.org>
44299
44300         Tests for module 'alignof'.
44301         * modules/alignof-tests: New file.
44302         * tests/test-alignof.c: New file.
44303
44304 2009-05-12  Bruno Haible  <bruno@clisp.org>
44305
44306         Fix alignof macro.
44307         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44308         vendor compilers that are always correct.
44309
44310 2009-05-12  Bruno Haible  <bruno@clisp.org>
44311
44312         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44313         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44314         not whether its fully works.
44315
44316 2009-05-12  Bruno Haible  <bruno@clisp.org>
44317
44318         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44319
44320 2009-05-12  Jim Meyering  <meyering@redhat.com>
44321
44322         * top/maint.mk: Adjust backslash alignment.
44323
44324 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44325
44326         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44327
44328 2009-05-11  Eric Blake  <ebb9@byu.net>
44329
44330         argp: avoid undefined behavior
44331         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44332         macros.
44333
44334 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44335
44336         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44337         user.name to prevent git commit from complaining.
44338
44339 2009-05-10  Bruno Haible  <bruno@clisp.org>
44340
44341         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44342         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44343         it rewrites every file name only once.
44344         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44345
44346 2009-05-08  Bruno Haible  <bruno@clisp.org>
44347
44348         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44349         instead of 'max'.
44350
44351 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44352
44353         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44354         sockaddr_storage test.
44355
44356 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44357
44358         * modules/sys_socket (Makefile.am): Substitute
44359         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44360         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44361         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44362         * tests/test-sys_socket.c: Check sockaddr_storage.
44363
44364 2009-05-08  Bruno Haible  <bruno@clisp.org>
44365
44366         New module 'alignof'.
44367         * lib/alignof.h: New file.
44368         * modules/alignof: New file.
44369
44370 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44371             Bruno Haible  <bruno@clisp.org>
44372
44373         Fix test-file-has-acl on FreeBSD.
44374         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44375         mask is implicitly added.
44376         * tests/test-file-has-acl.c: Include <signal.h>.
44377         (main): Terminate the test after 5 seconds.
44378         * modules/acl-tests (configure.ac): Check for alarm function.
44379
44380 2009-05-04  Bruno Haible  <bruno@clisp.org>
44381
44382         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44383         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44384         * modules/errno (configure.ac): Drop AC_REQUIRE.
44385         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44386         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44387
44388 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44389
44390         * modules/glob-tests: New module.
44391         * tests/test-glob.c: Add.
44392
44393 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44394
44395         * modules/fnmatch-tests: New module.
44396         * tests/test-fnmatch.c: Add.
44397
44398 2009-05-04  Eric Blake  <ebb9@byu.net>
44399
44400         maint: make the new no-submodule-changes rule VPATH-safe
44401         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44402
44403 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44404             Bruno Haible  <bruno@clisp.org>
44405
44406         acl: Fix infinite loop on FreeBSD.
44407         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44408         of return value from acl_get_entry.
44409         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44410         Likewise.
44411
44412 2009-05-03  Bruno Haible  <bruno@clisp.org>
44413
44414         * lib/acl-internal.h (acl_entries): Clarify return value.
44415         * lib/acl_entries.c (acl_entries): Likewise.
44416
44417 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44418
44419         Bug fix in acl module.
44420         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44421
44422 2009-05-03  Bruno Haible  <bruno@clisp.org>
44423
44424         Create gperf-generated file in the source dir, not in the build dir.
44425         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44426         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44427         * modules/unicase/locale-language (unicase/locale-languages.h):
44428         Likewise.
44429         * modules/unicase/special-casing (unicase/special-casing-table.h):
44430         Likewise.
44431         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44432         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44433         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44434         Reported by Ralf Wildenhues.
44435
44436 2009-05-03  Bruno Haible  <bruno@clisp.org>
44437
44438         * modules/fnmatch (Description, configure.ac): Taken from
44439         fnmatch-posix.
44440         * modules/fnmatch-posix: Turn into a symbolic reference to the
44441         'fnmatch' module, and deprecate.
44442         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44443
44444 2009-05-03  Bruno Haible  <bruno@clisp.org>
44445
44446         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44447         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44448         Reported by Ralf Wildenhues.
44449
44450 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44451
44452         * m4/fnmatch.m4: Fix fnmatch re-define.
44453
44454 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44455
44456         priv-set: new module and tests; adapt write-any-file
44457         * lib/priv-set.c: New file.
44458         * lib/priv-set.h: New file.
44459         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44460         * lib/write-any-file.c: Simplify by using priv-set module.
44461         * m4/priv-set.m4: New file.
44462         * modules/priv-set: New file.
44463         * modules/unlinkdir: Add dependency on priv-set module.
44464         * modules/write-any-file: Likewise.
44465
44466         Tests for module 'priv-set'.
44467         * modules/priv-set-tests: New file.
44468         * tests/test-priv-set.c: New file.
44469
44470 2009-05-03  Jim Meyering  <meyering@redhat.com>
44471             Bruno Haible  <bruno@clisp.org>
44472
44473         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44474         use the converted UTF-8 variant of the name instead.
44475
44476 2009-05-03  Jim Meyering  <meyering@redhat.com>
44477
44478         tests: tighten some getdate tests
44479         * tests/test-getdate.c (main): Tighten tests: require equality,
44480         not just greater than.  Set TZ envvar to UTC0.
44481
44482 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44483
44484         getdate: correctly interpret "next monday" when run on a Monday
44485         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44486         that e.g., "next tues" (when run on a tuesday) results in a date
44487         that is one week in the future, and not today's date.
44488         I.e., add a week when the wday is the same as the current one.
44489         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44490         and earlier by Martin Bernreuther and Jan Minář.
44491         * tests/test-getdate.c (main): Check that "next DAY" is always in
44492         the future and that "last DAY" is always in the past.
44493
44494 2009-05-02  Jim Meyering  <meyering@redhat.com>
44495
44496         build: ensure that a release build fails when a submodule is unclean
44497         * top/maint.mk (no-submodule-changes): New rule.
44498         (alpha beta major): Depend on it.
44499
44500 2009-05-02  Bruno Haible  <bruno@clisp.org>
44501
44502         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44503         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44504         shell variable gl_fnmatch_required to detect which variant is
44505         requested.
44506         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44507         gl_FUNC_FNMATCH_POSIX.
44508         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44509         exclude fnmatch-posix.
44510
44511 2009-05-02  Bruno Haible  <bruno@clisp.org>
44512
44513         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44514         * modules/mbsrtowcs (License): Change to LGPLv2+.
44515         * modules/strnlen1 (License): Likewise.
44516         Reported by Simon Josefsson.
44517
44518 2009-05-02  Bruno Haible  <bruno@clisp.org>
44519
44520         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44521         "cross".
44522         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44523         gnulib-tool was called with option --source-base=lib.
44524
44525 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44526
44527         Use automake *-local hooks without commands, for extensibility.
44528         * modules/localcharset (Makefile.am): Rename install-exec-local
44529         rule to install-exec-localcharset, and make it a prerequisite of
44530         install-exec-local.  Likewise, rename the uninstall-local rule to
44531         uninstall-localcharset, and make it a prerequisite of the former.
44532
44533 2009-05-01  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44536         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44537         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44539         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44540         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44541         m4/locale-zh.m4, m4/codeset.m4.
44542
44543         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44544         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44545         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44546         m4/locale-zh.m4.
44547
44548         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44549         REPLACE_WCRTOMB if mbstate_t must be replaced.
44550         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44551         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44552
44553 2009-05-01  Bruno Haible  <bruno@clisp.org>
44554
44555         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44556         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44557         dngettext, dcngettext, textdomain, bindtextdomain,
44558         bind_textdomain_codeset): Undefine before redefining.
44559
44560 2009-04-30  Bruno Haible  <bruno@clisp.org>
44561
44562         Fix bug introduced on 2009-04-25.
44563         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44564         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44565         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44566         is defined.
44567         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44568         is defined.
44569         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44570         is defined.
44571         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44572
44573 2009-04-28  Bruno Haible  <bruno@clisp.org>
44574
44575         Comment tweaks.
44576         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44577         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44578         * lib/unicase.h (u*_casexfrm): Likewise.
44579         Reported by Paolo Bonzini.
44580
44581 2009-04-28  Bruno Haible  <bruno@clisp.org>
44582
44583         Fix a compilation error.
44584         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44585         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44586         Reported by Jim Meyering.
44587
44588 2009-04-27  Bruno Haible  <bruno@clisp.org>
44589
44590         New module 'libunistring'.
44591         * modules/libunistring: New file.
44592         * m4/libunistring.m4: New file.
44593         * MODULES.html.sh (Unicode string functions): Add it.
44594
44595 2009-04-27  Eric Blake  <ebb9@byu.net>
44596
44597         maint.mk: allow package-specific header to provide <config.h>
44598         * top/maint.mk (sc_require_config_h): New variable.
44599         (sc_require_config_h, sc_require_config_h_first): Use it.
44600
44601 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44602
44603         * top/maint.mk (sc_avoid_if_before_free): Except
44604         useless-if-before-free script.
44605
44606 2009-04-27  Eric Blake  <ebb9@byu.net>
44607
44608         maintainer-makefile: depend on all required helper scripts
44609         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44610         useless-if-before-free.
44611         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44612         version, rather than assuming gnulib checkout is available.
44613         Reported by Simen Josefsson.
44614
44615 2009-04-26  Bruno Haible  <bruno@clisp.org>
44616
44617         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44618         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44619         "../" or "..".
44620
44621 2009-04-26  Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44624         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44625         AC_LIB_HAVE_LINKFLAGS.
44626
44627 2009-04-26  Bruno Haible  <bruno@clisp.org>
44628
44629         Simplify calling convention of u*_conv_from_encoding.
44630         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44631         u32_conv_from_encoding): Expect a resultbuf argument and return the
44632         result directly as a pointer.
44633         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44634         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44635         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44636         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44637         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44638         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44639         Update.
44640         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44641         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44642         * lib/vasnprintf.c (VASNPRINTF): Update.
44643         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44644         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44645         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44646         * NEWS: Mention the change.
44647
44648 2009-04-26  Bruno Haible  <bruno@clisp.org>
44649
44650         Simplify calling convention of u*_conv_to_encoding.
44651         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44652         u32_conv_to_encoding): Expect a resultbuf argument and return the
44653         result directly as a pointer.
44654         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44655         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44656         freeing scaled_offsets if mem_iconveha failed.
44657         * lib/unicase/u-casexfrm.h (FUNC): Update.
44658         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44659         * lib/vasnprintf.c (VASNPRINTF): Update.
44660         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44661         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44662         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44663         * NEWS: Mention the change.
44664
44665 2009-04-26  Bruno Haible  <bruno@clisp.org>
44666
44667         Avoid test failures on AIX and OSF/1.
44668         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44669         malloc(0).
44670         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44671         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44672         Likewise.
44673         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44674         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44675         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44676         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44677         * doc/posix-functions/malloc.texi: Document the portability problem
44678         related to malloc(0).
44679
44680 2009-04-26  Bruno Haible  <bruno@clisp.org>
44681
44682         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44683         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44684         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44685
44686 2009-04-25  Bruno Haible  <bruno@clisp.org>
44687
44688         Avoid link error when creating a namespace clean library.
44689         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44690         as macro with arguments if already defined as an alias.
44691         * lib/signbitf.c (gl_signbitf): Don't undefine.
44692         * lib/signbitd.c (gl_signbitd): Don't undefine.
44693         * lib/signbitl.c (gl_signbitl): Don't undefine.
44694
44695 2009-04-25  Jim Meyering  <meyering@redhat.com>
44696
44697         vc-list-files: fix another quoting bug
44698         * build-aux/vc-list-files: Avoid sed backslash expansion
44699         of pathological directory names.
44700
44701 2009-04-25  Eric Blake  <ebb9@byu.net>
44702
44703         vc-list-files: fix shell quoting error
44704         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44705         timestamp.
44706
44707 2009-04-25  Jim Meyering  <meyering@redhat.com>
44708
44709         vc-list-files: restore lost functionality with subdir argument
44710         * build-aux/vc-list-files: When given a non-"." sub-directory
44711         argument, substitute the $dir/ prefix back onto each resulting name.
44712         Otherwise, coreutils' root_tests check would fail.
44713
44714 2009-04-24  Eric Blake  <ebb9@byu.net>
44715
44716         vc-list-files: ignore git symlinks
44717         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44718         than ls-files, to ignore git symlinks.
44719
44720         maint.mk: import improvements from m4
44721         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44722         (move_if_change): Delete unused macro.
44723         (news-date-check, vc-diff-check): Support VPATH builds.
44724         (announcement): Likewise.  Split --bootstrap-tools list...
44725         (boostrap-tools): ...into separate list, which can be overridden
44726         in cfg.mk.
44727         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44728         requiring dependency on useless-if-before-free module.
44729         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44730         Support VPATH builds.
44731
44732 2009-04-24  Jim Meyering  <meyering@redhat.com>
44733
44734         maint.mk: remove coreutils-specific rules and variables
44735         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44736         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44737         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44738
44739         maint.mk: remove obsolete rule
44740         * top/maint.mk (rel-check): Remove rule.
44741         (WGET, WGETFLAGS): Remove now-unused variables.
44742
44743 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44744
44745         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44746         consistency.
44747
44748         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44749         '$(PATH_SEPARATOR)' instead of ':'.
44750
44751 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44752
44753         * lib/getopt1.c (main): Use 'const' for static array.
44754
44755 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44756
44757         * top/maint.mk: Sync with coreutils.
44758         * NEWS: Explain incompatibilities.
44759
44760 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44761             Bruno Haible  <bruno@clisp.org>
44762
44763         Fix cross-compilation results.
44764         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44765         statement, as third argument of AC_TRY_RUN.
44766         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44767         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44768         Likewise.
44769         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44770         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44771         Likewise.
44772         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44773         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44774         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44775
44776 2009-04-20  Bruno Haible  <bruno@clisp.org>
44777
44778         Avoid test failure on mingw.
44779         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44780
44781 2009-04-20  Bruno Haible  <bruno@clisp.org>
44782
44783         Avoid compilation error on mingw.
44784         * modules/localename-tests (Depends-on): Add locale.
44785
44786 2009-04-19  Bruno Haible  <bruno@clisp.org>
44787
44788         Support for building a shared library on Windows platforms.
44789         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44790         (main): Test the presence of UNINORM_NFC here.
44791         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44792         (main): Test the presence of UNINORM_NFD here.
44793         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44794         (main): Test the presence of UNINORM_NFKC here.
44795         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44796         (main): Test the presence of UNINORM_NFKD here.
44797
44798 2009-04-19  Bruno Haible  <bruno@clisp.org>
44799
44800         Avoid a compiler warning.
44801         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44802         Change type of variable 'sequence'.
44803
44804 2009-04-19  Bruno Haible  <bruno@clisp.org>
44805
44806         * modules/configmake (Makefile.am): When the contents of configmake.h
44807         does not change, arrange to preserve its modification time.
44808
44809 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44810
44811         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44812         gettext domain.
44813
44814 2009-04-16  Jim Meyering  <meyering@redhat.com>
44815
44816         useless-if-before-free: improve conversion code
44817         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44818         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44819
44820 2009-04-14  Bruno Haible  <bruno@clisp.org>
44821
44822         * modules/fcntl (Depends-on): Add extensions.
44823         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44824
44825 2009-04-12  Ben Pfaff  <blp@gnu.org>
44826
44827         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44828         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44829
44830 2009-03-20  Ben Pfaff  <blp@gnu.org>
44831
44832         Make rename replace existing destinations on Windows.
44833         * m4/rename.m4: Add test for Mingw.
44834         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44835         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44836         * doc/posix-functions/rename.texi: Document.
44837
44838 2009-04-10  Bruno Haible  <bruno@clisp.org>
44839
44840         New include file "iconveh.h".
44841         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44842         * lib/striconveh.h: Include it.
44843         (enum iconv_ilseq_handler): Remove definition.
44844         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44845         striconveh.h.
44846         * lib/striconveha.c: Include striconveh.h.
44847         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44848         * modules/striconveh (Files): Add lib/iconveh.h.
44849         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44850         lib/striconveh.h.
44851
44852 2009-04-10  Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/uniconv.h: Update comment.
44855
44856 2009-04-10  Bruno Haible  <bruno@clisp.org>
44857
44858         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44859         always.
44860         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44861         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44862         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44863         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44864         "unistring-notinline.h", so that the function gets defined always.
44865         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44866         * lib/unistr/u8-uctomb.c: Likewise.
44867         * lib/unistr/u16-mbtouc.c: Likewise.
44868         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44869         * lib/unistr/u16-uctomb.c: Likewise.
44870         * lib/unistr/u32-mbtouc.c: Likewise.
44871         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44872         * lib/unistr/u32-uctomb.c: Likewise.
44873
44874 2009-04-10  Bruno Haible  <bruno@clisp.org>
44875
44876         Mark 'utime' obsolete.
44877         * modules/utime (Status, Notice): New sections.
44878         Suggested by Jim Meyering.
44879
44880         Fix cross-compile guess for utime test.
44881         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44882         autoconf.
44883         * doc/posix-functions/utime.texi: Give more precisions.
44884         Reported by Jan <ipif@ymail.com>.
44885
44886 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44887
44888         filevercmp: correct today's change
44889         * lib/filevercmp.c: Also handle coreutils' test inputs.
44890         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44891
44892         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44893         for reporting it.
44894         * lib/filevercmp.c: Special handle for "", "." and "..".
44895         * tests/test-filevercmp.c: Enlarge the set suite.
44896
44897 2009-04-07  Jim Meyering  <meyering@redhat.com>
44898
44899         useless-if-before-free: show how to remove braced useless free, too
44900         * build-aux/useless-if-before-free: still only in a comment, though.
44901
44902 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44903
44904         maint.mk: import changes to syntax-check macros from coreutils
44905         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44906         Use them in the relevant macros.
44907
44908 2009-04-06  Bruno Haible  <bruno@clisp.org>
44909
44910         Fix unportable use of bit-fields.
44911         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44912         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44913         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44914
44915 2009-04-06  Bruno Haible  <bruno@clisp.org>
44916
44917         Avoid test failures on AIX and OSF/1.
44918         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44919         that malloc(0) = NULL.
44920         * tests/unicase/test-u8-tolower.c (check): Likewise.
44921         * tests/unicase/test-u8-totitle.c (check): Likewise.
44922         * tests/unicase/test-u8-toupper.c (check): Likewise.
44923         * tests/unicase/test-u16-casefold.c (check): Likewise.
44924         * tests/unicase/test-u16-tolower.c (check): Likewise.
44925         * tests/unicase/test-u16-totitle.c (check): Likewise.
44926         * tests/unicase/test-u16-toupper.c (check): Likewise.
44927         * tests/unicase/test-u32-casefold.c (check): Likewise.
44928         * tests/unicase/test-u32-tolower.c (check): Likewise.
44929         * tests/unicase/test-u32-totitle.c (check): Likewise.
44930         * tests/unicase/test-u32-toupper.c (check): Likewise.
44931         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44932         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44933         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44934         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44935         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44936         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44937         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44938         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44939         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44940         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44941         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44942         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44943
44944 2009-04-05  Bruno Haible  <bruno@clisp.org>
44945
44946         Work around an autoconf limitation.
44947         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44948         comment line if it would be longer than 3 KB.
44949
44950 2009-04-05  Bruno Haible  <bruno@clisp.org>
44951
44952         Avoid test failure with libiconv-1.13.
44953         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44954         of the expected test results.
44955
44956 2009-04-05  Bruno Haible  <bruno@clisp.org>
44957
44958         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44959         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44960         that it should be installed.
44961
44962 2009-04-05  Bruno Haible  <bruno@clisp.org>
44963
44964         * gnulib-tool: New option --copy-file.
44965         (func_usage): Document it.
44966         (func_dest_tmpfilename): Moved out of func_import.
44967         (func_add_file, func_update_file): New functions, extracted from
44968         func_import.
44969         (func_import): Update.
44970
44971 2009-04-05  Karl Berry  <karl@gnu.org>
44972
44973         * README: prominently mention gnulib-tool.
44974         Rearrange sections so getting the code is near the top.
44975
44976 2009-04-05  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/unicase.h: Mention u*_cmp2.
44979         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44980         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44981         * lib/unicase/ulc-casecmp.c: Likewise.
44982         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44983         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44984         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44985         unistr/u8-cmp.
44986         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44987         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44988         unistr/u16-cmp.
44989         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44990         unistr/u32-cmp.
44991
44992         * lib/uninorm.h: Mention u*_cmp2.
44993         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44994         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44995         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44996         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44997         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44998         unistr/u8-cmp.
44999         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45000         unistr/u16-cmp.
45001         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45002         unistr/u32-cmp.
45003
45004         New module 'unistr/u32-cmp2'.
45005         * lib/unistr/u32-cmp2.c: New file.
45006         * modules/unistr/u32-cmp2: New file.
45007
45008         New module 'unistr/u16-cmp2'.
45009         * lib/unistr/u16-cmp2.c: New file.
45010         * modules/unistr/u16-cmp2: New file.
45011
45012         New module 'unistr/u8-cmp2'.
45013         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45014         * lib/unistr/u8-cmp2.c: New file.
45015         * lib/unistr/u-cmp2.h: New file.
45016         * modules/unistr/u8-cmp2: New file.
45017
45018 2009-04-05  Bruno Haible  <bruno@clisp.org>
45019
45020         * lib/unictype.h (uc_property_is_valid): New macro.
45021         * tests/unictype/test-pr_byname.c (main): Use it.
45022
45023         * lib/unistr.h: Doc fixes.
45024         * lib/uniconv.h: Doc fixes.
45025         * lib/unictype.h: Doc fixes.
45026
45027 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45028
45029         Port coreutils 7.2 to Solaris 8.
45030
45031         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45032         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45033         for Solaris 8.  This is a bit of a hack, as it means it's the
45034         caller's responsibility to add -lnsl if needed, but most likely it
45035         won't be needed since only getaddrinfo uses this and getaddrinfo
45036         isn't needed on Solaris 8.
45037
45038         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45039         problem to Solaris 8 encountered with coreutils 7.2, which
45040         resulted in a message "fnmatch.c:292: warning: passing argument 4
45041         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45042         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45043
45044 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45045
45046         * m4/ld-version-script.m4: Add FIXME comment.
45047
45048 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45049
45050         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45051         SOVERSION variable.
45052
45053 2009-04-02  Bruno Haible  <bruno@clisp.org>
45054
45055         * Makefile (info, html, dvi, pdf): Combine the rules.
45056         Suggested by Jim Meyering.
45057
45058 2009-04-01  Bruno Haible  <bruno@clisp.org>
45059
45060         * Makefile (info, html, dvi, pdf): New targets.
45061         Reported by Reuben Thomas <rrt@sc3d.org>.
45062
45063 2009-04-01  Bruno Haible  <bruno@clisp.org>
45064
45065         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45066         can be put into PATH.
45067         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45068
45069 2009-04-01  Bruno Haible  <bruno@clisp.org>
45070
45071         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45072
45073 2009-04-01  Bruno Haible  <bruno@clisp.org>
45074
45075         Rename module 'visibility'.
45076         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45077         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45078         * doc/gnulib.texi: Update.
45079         * MODULES.html.sh (Misc): Update.
45080         * NEWS: Mention the change.
45081
45082 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45083
45084         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45085         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45086         Eric Blake <ebb9@byu.net> for review.
45087         * MODULES.html.sh: Add lib-msvc-compat.
45088         * doc/gnulib.texi: Link to new section.
45089         * m4/ld-output-def.m4: New file.
45090         * doc/ld-output-def.texi: New file.
45091
45092 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45093
45094         Rename ld-version-script to lib-symbol-versions.  Suggested by
45095         Bruno Haible <bruno@clisp.org>.
45096         * modules/ld-version-script: Renamed to lib-symbol-versions.
45097         * doc/ld-version-script.texi: Fix module name.
45098         * MODULES.html.sh: Add lib-symbol-versions.
45099
45100 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45101
45102         * modules/u64-tests: New file.
45103         * tests/test-u64.c: New file.
45104
45105 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45106
45107         * MODULES.html.sh: Mention u64.
45108         * modules/u64: New module.
45109         * modules/crypto/sha512: Depend on u64 module instead of providing
45110         u64.h.
45111
45112 2009-03-27  Eric Blake  <ebb9@byu.net>
45113
45114         test-strerror: make debugging EAI_SYSTEM easier
45115         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45116         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45117         failure was EAI_SYSTEM.
45118
45119 2009-03-25  Bruno Haible  <bruno@clisp.org>
45120
45121         Fix a problem with --enable-relocatable on Solaris 7.
45122         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45123         since 2008-02-24.
45124
45125 2009-03-25  Eric Blake  <ebb9@byu.net>
45126
45127         test-sockets: avoid gcc warning
45128         * tests/test-sockets.c (main): Silence compiler warning.
45129
45130 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45131
45132         New modules nproc, pthread, contributed by Glen Lenker.
45133
45134         * MODULES.html.sh: Add pthread, nproc.
45135         * lib/nproc.c: New file.
45136         * lib/nproc.h: New file.
45137         * lib/pthread.in.h: New file.
45138         * m4/pthread.m4: New file.
45139         * modules/nproc: New file.
45140         * modules/pthread: New file.
45141
45142 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45143
45144         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45145         New variable.
45146
45147 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45148
45149         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45150         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45151         * tests/test-filevercmp.c: Add tests for backup suffixes.
45152
45153 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45154
45155         * modules/stdlib (Depends-on): Add stdint, needed when defining
45156         struct random_data on, for example, HP-UX 10.20.  Reported by
45157         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45158
45159 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45160
45161         * lib/readline.c (readline): Call fflush on stdout after printing
45162         prompt.
45163
45164 2009-03-20  Bruno Haible  <bruno@clisp.org>
45165
45166         Remove dependency from 'close' module to -lws2_32 on native Windows.
45167         * lib/close-hook.h: New file.
45168         * lib/close-hook.c: New file.
45169         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45170         w32sock.h.
45171         (_gl_close_fd_maybe_socket): Remove function.
45172         (rpl_close): Invoke execute_all_close_hooks instead of
45173         _gl_close_fd_maybe_socket.
45174         * lib/sockets.c: Include close-hook.h, w32sock.h.
45175         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45176         (close_sockets_hook): New variable.
45177         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45178         (gl_sockets_cleanup): Unregister it.
45179         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45180         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45181         * modules/close-hook: New file.
45182         * modules/close (Files): Remove lib/w32sock.h.
45183         (Depends-on): Add close-hook.
45184         (Link): Remove section.
45185         * modules/sockets (Files): Add lib/w32sock.h.
45186         (Depends-on): Add close-hook.
45187         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45188         invocation.
45189         * NEWS: Mention that LIB_CLOSE is gone.
45190
45191 2009-03-23  Eric Blake  <ebb9@byu.net>
45192
45193         signal-tests: test previous patch
45194         * tests/test-signal.c: New file.
45195         * modules/signal-tests: Likewise.
45196
45197         signal.h: always support 'volatile sig_atomic_t'
45198         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45199         (gl_SIGNAL_H_DEFAULTS): Add a default.
45200         * modules/signal (Makefile.am): Substitute if needed.
45201         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45202         users can blindly add volatile.
45203         * doc/posix-headers/signal.texi (signal.h): Document it.
45204         Reported by Matthew Woehlke.
45205
45206 2009-03-23  Jim Meyering  <meyering@redhat.com>
45207
45208         pathmax: PATH_MAX: use pathconf only when available
45209         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45210         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45211         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45212         This avoids a link failure in a PSP cross-compilation environment
45213         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45214
45215         * lib/vasnprintf.c (divide): Fix typo in comment.
45216
45217 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45218
45219         * gnulib-tool (func_filter_filelist): Fix comment.
45220
45221 2009-03-20  Bruno Haible  <bruno@clisp.org>
45222
45223         Make sockets.h self-contained.
45224         * lib/sockets.c: Include sockets.h first.
45225         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45226
45227 2009-03-19  Eric Blake  <ebb9@byu.net>
45228
45229         doc: mention more functions added in cygwin 1.7.0
45230         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45231         addition.
45232         * doc/posix-functions/log2f.texi: Likewise.
45233
45234 2009-03-19  Jim Meyering  <meyering@redhat.com>
45235
45236         fsusage: avoid syntax error due to statement-before-declaration
45237         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45238         after all declarations.  Reported by Matthew Woehlke in
45239         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45240
45241 2009-03-18  Eric Blake  <ebb9@byu.net>
45242
45243         build-aux/compile: sync from automake
45244         * build-aux/compile: New file, from automake.
45245         * config/srclist.txt: Mention build-aux/compile.
45246
45247 2009-03-17  Bruno Haible  <bruno@clisp.org>
45248
45249         * lib/git-merge-changelog.c: Fix typo in comment.
45250         Reported by Reuben Thomas <rrt@sc3d.org>.
45251
45252 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45253
45254         * m4/regex.m4: update and improve help for
45255         --without-included-regex.
45256
45257 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45258
45259         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45260         failure on missing include files.
45261
45262 2009-03-17  Eric Blake  <ebb9@byu.net>
45263
45264         doc: mention more functions added in cygwin 1.7.0
45265         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45266         addition.
45267         * doc/posix-functions/fwscanf.texi: Likewise.
45268         * doc/posix-functions/swprintf.texi: Likewise.
45269         * doc/posix-functions/swscanf.texi: Likewise.
45270         * doc/posix-functions/vfwprintf.texi: Likewise.
45271         * doc/posix-functions/vfwscanf.texi: Likewise.
45272         * doc/posix-functions/vswprintf.texi: Likewise.
45273         * doc/posix-functions/vswscanf.texi: Likewise.
45274         * doc/posix-functions/vwprintf.texi: Likewise.
45275         * doc/posix-functions/vwscanf.texi: Likewise.
45276         * doc/posix-functions/wcscasecmp.texi: Likewise.
45277         * doc/posix-functions/wcsdup.texi: Likewise.
45278         * doc/posix-functions/wcsftime.texi: Likewise.
45279         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45280         * doc/posix-functions/wprintf.texi: Likewise.
45281         * doc/posix-functions/wscanf.texi: Likewise.
45282         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45283
45284 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45285
45286         maint.mk: really add $(AM_MAKEFLAGS)
45287         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45288         was inadvertently omitted in the last commit.
45289         Spotted by Bruno Haible.
45290
45291         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45292         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45293         $(AM_MAKEFLAGS)' rather than plain `make'.
45294
45295         gnulib-tool: execute $MAKE not make
45296         * gnulib-tool: Default $MAKE to 'make'.
45297         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45298         than make.  Initialize $MAKE in the do-autobuild script.
45299
45300         gnulib-tool: use $MAKE not make in generated files
45301         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45302         make, in generated files.  Initialize $MAKE in the do-autobuild
45303         script.
45304
45305         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45306
45307         GNUmakefile: disable parallelism only for multiple, recursive targets
45308         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45309         additions in the Makefile.
45310         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45311         by Automake.
45312         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45313         are listed on the command line and at least one of them is
45314         listed in $(ALL_RECURSIVE_TARGETS).
45315
45316 2009-03-14  Bruno Haible  <bruno@clisp.org>
45317
45318         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45319         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45320         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45321         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45322         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45323         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45324         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45325         unistr/u8-uctomb.
45326         * modules/unistr/u8-strchr (Depends-on): Likewise.
45327         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45328         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45329         unistr/u16-uctomb.
45330         * modules/unistr/u16-strchr (Depends-on): Likewise.
45331         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45332
45333 2009-03-12  Bruno Haible  <bruno@clisp.org>
45334
45335         Work around select() bug on Interix 3.5.
45336         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45337         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45338         * m4/select.m4: New file.
45339         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45340         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45341         * modules/select (Files): Add m4/select.m4.
45342         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45343         * modules/nanosleep (Depends-on): Add select.
45344         * modules/poll (Depends-on): Likewise.
45345         * doc/posix-functions/select.texi: Mention the Interix bug.
45346         Reported by Markus Duft <mduft@gentoo.org>.
45347
45348         * lib/select.c: Renamed from lib/winsock-select.c.
45349         * modules/select (Files): Add lib/select.c, remove
45350         lib/winsock-select.c.
45351         (configure.ac): Update.
45352
45353 2009-03-12  Jim Meyering  <meyering@redhat.com>
45354
45355         avoid gcc warnings about unused macro definitions
45356         * lib/readtokens.c (STREQ): Remove unused definition.
45357         * lib/xmalloc.c (SIZE_MAX): Likewise.
45358         * lib/openat-die.c (N_): Likewise.
45359         * lib/mountlist.c (SIZE_MAX): Remove definition.
45360         Instead, include <stdint.h>.
45361         * lib/readutmp.c: Likewise.
45362         * modules/readutmp (Depends-on): Add stdint.
45363         * modules/mountlist (Depends-on): Add stdint.
45364         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45365
45366 2009-03-10  Bruno Haible  <bruno@clisp.org>
45367
45368         Tests for module 'mbmemcasecoll'.
45369         * modules/mbmemcasecoll-tests: New file.
45370         * tests/test-mbmemcasecoll1.sh: New file.
45371         * tests/test-mbmemcasecoll2.sh: New file.
45372         * tests/test-mbmemcasecoll3.sh: New file.
45373         * tests/test-mbmemcasecoll.c: New file.
45374
45375         New module 'mbmemcasecoll'.
45376         * lib/mbmemcasecoll.h: New file.
45377         * lib/mbmemcasecoll.c: New file.
45378         * modules/mbmemcasecoll: New file.
45379
45380         * tests/test-mbmemcasecmp.h: New file, extracted from
45381         tests/test-mbmemcasecmp.c.
45382         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45383         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45384         (main): Update.
45385         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45386
45387 2009-03-09  Bruno Haible  <bruno@clisp.org>
45388
45389         Tests for module 'mbmemcasecmp'.
45390         * modules/mbmemcasecmp-tests: New file.
45391         * tests/test-mbmemcasecmp1.sh: New file.
45392         * tests/test-mbmemcasecmp2.sh: New file.
45393         * tests/test-mbmemcasecmp3.sh: New file.
45394         * tests/test-mbmemcasecmp.c: New file.
45395
45396         New module 'mbmemcasecmp'.
45397         * lib/mbmemcasecmp.h: New file.
45398         * lib/mbmemcasecmp.c: New file.
45399         * modules/mbmemcasecmp: New file.
45400
45401 2009-03-09  Bruno Haible  <bruno@clisp.org>
45402
45403         Tests for module 'unicase/ulc-casecoll'.
45404         * modules/unicase/ulc-casecoll-tests: New file.
45405         * tests/unicase/test-ulc-casecoll1.sh: New file.
45406         * tests/unicase/test-ulc-casecoll2.sh: New file.
45407         * tests/unicase/test-ulc-casecoll.c: New file.
45408
45409         New module 'unicase/ulc-casecoll'.
45410         * lib/unicase.h (ulc_casecoll): New declaration.
45411         * lib/unicase/ulc-casecoll.c: New file.
45412         * modules/unicase/ulc-casecoll: New file.
45413
45414         New module 'unicase/ulc-casexfrm'.
45415         * lib/unicase.h (ulc_casexfrm): New declaration.
45416         * lib/unicase/ulc-casexfrm.c: New file.
45417         * modules/unicase/ulc-casexfrm: New file.
45418
45419 2009-03-09  Bruno Haible  <bruno@clisp.org>
45420
45421         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45422         invocations.
45423
45424         * m4/mbscasecmp.m4: Remove file.
45425         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45426         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45427
45428         * m4/mbscasestr.m4: Remove file.
45429         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45430         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45431
45432         * m4/mbschr.m4: Remove file.
45433         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45434         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45435
45436         * m4/mbscspn.m4: Remove file.
45437         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45438         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45439
45440         * m4/mbslen.m4: Remove file.
45441         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45442         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45443
45444         * m4/mbsncasecmp.m4: Remove file.
45445         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45446         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45447
45448         * m4/mbsnlen.m4: Remove file.
45449         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45450         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45451
45452         * m4/mbspbrk.m4: Remove file.
45453         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45454         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45455
45456         * m4/mbspcasecmp.m4: Remove file.
45457         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45458         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45459
45460         * m4/mbsrchr.m4: Remove file.
45461         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45462         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45463
45464         * m4/mbssep.m4: Remove file.
45465         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45466         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45467
45468         * m4/mbsspn.m4: Remove file.
45469         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45470         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45471
45472         * m4/mbsstr.m4: Remove file.
45473         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45474         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45475
45476         * m4/mbstok_r.m4: Remove file.
45477         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45478         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45479
45480         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45481
45482         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45483         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45484
45485         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45486
45487 2009-03-08  Bruno Haible  <bruno@clisp.org>
45488
45489         Tests for module 'unicase/ulc-casecmp'.
45490         * modules/unicase/ulc-casecmp-tests: New file.
45491         * tests/unicase/test-ulc-casecmp1.sh: New file.
45492         * tests/unicase/test-ulc-casecmp2.sh: New file.
45493         * tests/unicase/test-ulc-casecmp.c: New file.
45494
45495         New module 'unicase/ulc-casecmp'.
45496         * lib/unicase.h (ulc_casecmp): New declaration.
45497         * lib/unicase/ulc-casecmp.c: New file.
45498         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45499         'const SRC_UNIT *'.
45500         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45501         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45502         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45503         * modules/unicase/ulc-casecmp: New file.
45504
45505         Tests for module 'unicase/u32-is-cased'.
45506         * modules/unicase/u32-is-cased-tests: New file.
45507         * tests/unicase/test-u32-is-cased.c: New file.
45508
45509         Tests for module 'unicase/u16-is-cased'.
45510         * modules/unicase/u16-is-cased-tests: New file.
45511         * tests/unicase/test-u16-is-cased.c: New file.
45512
45513         Tests for module 'unicase/u8-is-cased'.
45514         * modules/unicase/u8-is-cased-tests: New file.
45515         * tests/unicase/test-u8-is-cased.c: New file.
45516         * tests/unicase/test-is-cased.h: New file.
45517
45518         New module 'unicase/u32-is-cased'.
45519         * lib/unicase/u32-is-cased.c: New file.
45520         * modules/unicase/u32-is-cased: New file.
45521
45522         New module 'unicase/u16-is-cased'.
45523         * lib/unicase/u16-is-cased.c: New file.
45524         * modules/unicase/u16-is-cased: New file.
45525
45526         New module 'unicase/u8-is-cased'.
45527         * lib/unicase/u8-is-cased.c: New file.
45528         * lib/unicase/u-is-cased.h: New file.
45529         * modules/unicase/u8-is-cased: New file.
45530
45531         Tests for module 'unicase/u32-is-casefolded'.
45532         * modules/unicase/u32-is-casefolded-tests: New file.
45533         * tests/unicase/test-u32-is-casefolded.c: New file.
45534
45535         Tests for module 'unicase/u16-is-casefolded'.
45536         * modules/unicase/u16-is-casefolded-tests: New file.
45537         * tests/unicase/test-u16-is-casefolded.c: New file.
45538
45539         Tests for module 'unicase/u8-is-casefolded'.
45540         * modules/unicase/u8-is-casefolded-tests: New file.
45541         * tests/unicase/test-u8-is-casefolded.c: New file.
45542         * tests/unicase/test-is-casefolded.h: New file.
45543
45544         New module 'unicase/u32-is-casefolded'.
45545         * lib/unicase/u32-is-casefolded.c: New file.
45546         * modules/unicase/u32-is-casefolded: New file.
45547
45548         New module 'unicase/u16-is-casefolded'.
45549         * lib/unicase/u16-is-casefolded.c: New file.
45550         * modules/unicase/u16-is-casefolded: New file.
45551
45552         New module 'unicase/u8-is-casefolded'.
45553         * lib/unicase/u8-is-casefolded.c: New file.
45554         * modules/unicase/u8-is-casefolded: New file.
45555
45556         Tests for module 'unicase/u32-is-titlecase'.
45557         * modules/unicase/u32-is-titlecase-tests: New file.
45558         * tests/unicase/test-u32-is-titlecase.c: New file.
45559
45560         Tests for module 'unicase/u16-is-titlecase'.
45561         * modules/unicase/u16-is-titlecase-tests: New file.
45562         * tests/unicase/test-u16-is-titlecase.c: New file.
45563
45564         Tests for module 'unicase/u8-is-titlecase'.
45565         * modules/unicase/u8-is-titlecase-tests: New file.
45566         * tests/unicase/test-u8-is-titlecase.c: New file.
45567         * tests/unicase/test-is-titlecase.h: New file.
45568
45569         New module 'unicase/u32-is-titlecase'.
45570         * lib/unicase/u32-is-titlecase.c: New file.
45571         * modules/unicase/u32-is-titlecase: New file.
45572
45573         New module 'unicase/u16-is-titlecase'.
45574         * lib/unicase/u16-is-titlecase.c: New file.
45575         * modules/unicase/u16-is-titlecase: New file.
45576
45577         New module 'unicase/u8-is-titlecase'.
45578         * lib/unicase/u8-is-titlecase.c: New file.
45579         * modules/unicase/u8-is-titlecase: New file.
45580
45581         Tests for module 'unicase/u32-is-lowercase'.
45582         * modules/unicase/u32-is-lowercase-tests: New file.
45583         * tests/unicase/test-u32-is-lowercase.c: New file.
45584
45585         Tests for module 'unicase/u16-is-lowercase'.
45586         * modules/unicase/u16-is-lowercase-tests: New file.
45587         * tests/unicase/test-u16-is-lowercase.c: New file.
45588
45589         Tests for module 'unicase/u8-is-lowercase'.
45590         * modules/unicase/u8-is-lowercase-tests: New file.
45591         * tests/unicase/test-u8-is-lowercase.c: New file.
45592         * tests/unicase/test-is-lowercase.h: New file.
45593
45594         New module 'unicase/u32-is-lowercase'.
45595         * lib/unicase/u32-is-lowercase.c: New file.
45596         * modules/unicase/u32-is-lowercase: New file.
45597
45598         New module 'unicase/u16-is-lowercase'.
45599         * lib/unicase/u16-is-lowercase.c: New file.
45600         * modules/unicase/u16-is-lowercase: New file.
45601
45602         New module 'unicase/u8-is-lowercase'.
45603         * lib/unicase/u8-is-lowercase.c: New file.
45604         * modules/unicase/u8-is-lowercase: New file.
45605
45606         Tests for module 'unicase/u32-is-uppercase'.
45607         * modules/unicase/u32-is-uppercase-tests: New file.
45608         * tests/unicase/test-u32-is-uppercase.c: New file.
45609
45610         Tests for module 'unicase/u16-is-uppercase'.
45611         * modules/unicase/u16-is-uppercase-tests: New file.
45612         * tests/unicase/test-u16-is-uppercase.c: New file.
45613
45614         Tests for module 'unicase/u8-is-uppercase'.
45615         * modules/unicase/u8-is-uppercase-tests: New file.
45616         * tests/unicase/test-u8-is-uppercase.c: New file.
45617         * tests/unicase/test-is-uppercase.h: New file.
45618
45619         New module 'unicase/u32-is-uppercase'.
45620         * lib/unicase/u32-is-uppercase.c: New file.
45621         * modules/unicase/u32-is-uppercase: New file.
45622
45623         New module 'unicase/u16-is-uppercase'.
45624         * lib/unicase/u16-is-uppercase.c: New file.
45625         * modules/unicase/u16-is-uppercase: New file.
45626
45627         New module 'unicase/u8-is-uppercase'.
45628         * lib/unicase/u8-is-uppercase.c: New file.
45629         * modules/unicase/u8-is-uppercase: New file.
45630
45631         New module 'unicase/u32-is-invariant'.
45632         * lib/unicase/u32-is-invariant.c: New file.
45633         * modules/unicase/u32-is-invariant: New file.
45634
45635         New module 'unicase/u16-is-invariant'.
45636         * lib/unicase/u16-is-invariant.c: New file.
45637         * modules/unicase/u16-is-invariant: New file.
45638
45639         New module 'unicase/u8-is-invariant'.
45640         * lib/unicase/u8-is-invariant.c: New file.
45641         * lib/unicase/invariant.h: New file.
45642         * lib/unicase/u-is-invariant.h: New file.
45643         * modules/unicase/u8-is-invariant: New file.
45644
45645         Tests for module 'unicase/u32-casecoll'.
45646         * modules/unicase/u32-casecoll-tests: New file.
45647         * tests/unicase/test-u32-casecoll.c: New file.
45648
45649         Tests for module 'unicase/u16-casecoll'.
45650         * modules/unicase/u16-casecoll-tests: New file.
45651         * tests/unicase/test-u16-casecoll.c: New file.
45652
45653         Tests for module 'unicase/u8-casecoll'.
45654         * modules/unicase/u8-casecoll-tests: New file.
45655         * tests/unicase/test-u8-casecoll.c: New file.
45656
45657         New module 'unicase/u32-casecoll'.
45658         * lib/unicase/u32-casecoll.c: New file.
45659         * modules/unicase/u32-casecoll: New file.
45660
45661         New module 'unicase/u16-casecoll'.
45662         * lib/unicase/u16-casecoll.c: New file.
45663         * modules/unicase/u16-casecoll: New file.
45664
45665         New module 'unicase/u8-casecoll'.
45666         * lib/unicase/u8-casecoll.c: New file.
45667         * lib/unicase/u-casecoll.h: New file.
45668         * modules/unicase/u8-casecoll: New file.
45669
45670         New module 'unicase/u32-casexfrm'.
45671         * lib/unicase/u32-casexfrm.c: New file.
45672         * modules/unicase/u32-casexfrm: New file.
45673
45674         New module 'unicase/u16-casexfrm'.
45675         * lib/unicase/u16-casexfrm.c: New file.
45676         * modules/unicase/u16-casexfrm: New file.
45677
45678         New module 'unicase/u8-casexfrm'.
45679         * lib/unicase/u8-casexfrm.c: New file.
45680         * lib/unicase/u-casexfrm.h: New file.
45681         * modules/unicase/u8-casexfrm: New file.
45682
45683         Tests for module 'unicase/u32-casecmp'.
45684         * modules/unicase/u32-casecmp-tests: New file.
45685         * tests/unicase/test-u32-casecmp.c: New file.
45686
45687         Tests for module 'unicase/u16-casecmp'.
45688         * modules/unicase/u16-casecmp-tests: New file.
45689         * tests/unicase/test-u16-casecmp.c: New file.
45690
45691         Tests for module 'unicase/u8-casecmp'.
45692         * modules/unicase/u8-casecmp-tests: New file.
45693         * tests/unicase/test-u8-casecmp.c: New file.
45694         * tests/unicase/test-casecmp.h: New file.
45695
45696         New module 'unicase/u32-casecmp'.
45697         * lib/unicase/u32-casecmp.c: New file.
45698         * modules/unicase/u32-casecmp: New file.
45699
45700         New module 'unicase/u16-casecmp'.
45701         * lib/unicase/u16-casecmp.c: New file.
45702         * modules/unicase/u16-casecmp: New file.
45703
45704         New module 'unicase/u8-casecmp'.
45705         * lib/unicase/u8-casecmp.c: New file.
45706         * lib/unicase/u-casecmp.h: New file.
45707         * modules/unicase/u8-casecmp: New file.
45708
45709         Tests for module 'unicase/u32-casefold'.
45710         * modules/unicase/u32-casefold-tests: New file.
45711         * tests/unicase/test-u32-casefold.c: New file.
45712
45713         Tests for module 'unicase/u16-casefold'.
45714         * modules/unicase/u16-casefold-tests: New file.
45715         * tests/unicase/test-u16-casefold.c: New file.
45716
45717         Tests for module 'unicase/u8-casefold'.
45718         * modules/unicase/u8-casefold-tests: New file.
45719         * tests/unicase/test-u8-casefold.c: New file.
45720
45721         New module 'unicase/u32-casefold'.
45722         * lib/unicase/u32-casefold.c: New file.
45723         * modules/unicase/u32-casefold: New file.
45724
45725         New module 'unicase/u16-casefold'.
45726         * lib/unicase/u16-casefold.c: New file.
45727         * modules/unicase/u16-casefold: New file.
45728
45729         New module 'unicase/u8-casefold'.
45730         * lib/unicase/u8-casefold.c: New file.
45731         * lib/unicase/u-casefold.h: New file.
45732         * modules/unicase/u8-casefold: New file.
45733
45734         New module 'unicase/tocasefold'.
45735         * lib/unicase/casefold.h: New file.
45736         * lib/unicase/tocasefold.c: New file.
45737         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45738         * modules/unicase/tocasefold: New file.
45739
45740         Tests for module 'unicase/u32-totitle'.
45741         * modules/unicase/u32-totitle-tests: New file.
45742         * tests/unicase/test-u32-totitle.c: New file.
45743
45744         Tests for module 'unicase/u16-totitle'.
45745         * modules/unicase/u16-totitle-tests: New file.
45746         * tests/unicase/test-u16-totitle.c: New file.
45747
45748         Tests for module 'unicase/u8-totitle'.
45749         * modules/unicase/u8-totitle-tests: New file.
45750         * tests/unicase/test-u8-totitle.c: New file.
45751
45752         New module 'unicase/u32-totitle'.
45753         * lib/unicase/u32-totitle.c: New file.
45754         * modules/unicase/u32-totitle: New file.
45755
45756         New module 'unicase/u16-totitle'.
45757         * lib/unicase/u16-totitle.c: New file.
45758         * modules/unicase/u16-totitle: New file.
45759
45760         New module 'unicase/u8-totitle'.
45761         * lib/unicase/u8-totitle.c: New file.
45762         * lib/unicase/u-totitle.h: New file.
45763         * modules/unicase/u8-totitle: New file.
45764
45765         Tests for module 'unicase/u32-tolower'.
45766         * modules/unicase/u32-tolower-tests: New file.
45767         * tests/unicase/test-u32-tolower.c: New file.
45768
45769         Tests for module 'unicase/u16-tolower'.
45770         * modules/unicase/u16-tolower-tests: New file.
45771         * tests/unicase/test-u16-tolower.c: New file.
45772
45773         Tests for module 'unicase/u8-tolower'.
45774         * modules/unicase/u8-tolower-tests: New file.
45775         * tests/unicase/test-u8-tolower.c: New file.
45776
45777         New module 'unicase/u32-tolower'.
45778         * lib/unicase/u32-tolower.c: New file.
45779         * modules/unicase/u32-tolower: New file.
45780
45781         New module 'unicase/u16-tolower'.
45782         * lib/unicase/u16-tolower.c: New file.
45783         * modules/unicase/u16-tolower: New file.
45784
45785         New module 'unicase/u8-tolower'.
45786         * lib/unicase/u8-tolower.c: New file.
45787         * modules/unicase/u8-tolower: New file.
45788
45789         Tests for module 'unicase/u32-toupper'.
45790         * modules/unicase/u32-toupper-tests: New file.
45791         * tests/unicase/test-u32-toupper.c: New file.
45792
45793         Tests for module 'unicase/u16-toupper'.
45794         * modules/unicase/u16-toupper-tests: New file.
45795         * tests/unicase/test-u16-toupper.c: New file.
45796
45797         Tests for module 'unicase/u8-toupper'.
45798         * modules/unicase/u8-toupper-tests: New file.
45799         * tests/unicase/test-u8-toupper.c: New file.
45800
45801         New module 'unicase/u32-toupper'.
45802         * lib/unicase/u32-toupper.c: New file.
45803         * modules/unicase/u32-toupper: New file.
45804
45805         New module 'unicase/u16-toupper'.
45806         * lib/unicase/u16-toupper.c: New file.
45807         * modules/unicase/u16-toupper: New file.
45808
45809         New module 'unicase/u8-toupper'.
45810         * lib/unicase/u8-toupper.c: New file.
45811         * modules/unicase/u8-toupper: New file.
45812
45813         New module 'unicase/u32-casemap'.
45814         * lib/unicase/u32-casemap.c: New file.
45815         * modules/unicase/u32-casemap: New file.
45816
45817         New module 'unicase/u16-casemap'.
45818         * lib/unicase/u16-casemap.c: New file.
45819         * modules/unicase/u16-casemap: New file.
45820
45821         New module 'unicase/u8-casemap'.
45822         * lib/unicase/unicasemap.h: New file.
45823         * lib/unicase/u8-casemap.c: New file.
45824         * lib/unicase/u-casemap.h: New file.
45825         * modules/unicase/u8-casemap: New file.
45826
45827         New module 'unicase/special-casing'.
45828         * lib/unicase/special-casing.h: New file.
45829         * lib/unicase/special-casing.c: New file.
45830         * lib/unicase/special-casing-table.gperf: New file, generated by
45831         gen-uni-tables.c.
45832         * modules/unicase/special-casing: New file.
45833
45834         Tests for module 'unicase/locale-language'.
45835         * modules/unicase/locale-language-tests: New file.
45836         * tests/unicase/test-locale-language.sh: New file.
45837         * tests/unicase/test-locale-language.c: New file.
45838
45839         New module 'unicase/locale-language'.
45840         * lib/unicase/locale-language.c: New file.
45841         * lib/unicase/locale-languages.gperf: New file.
45842         * modules/unicase/locale-language: New file.
45843
45844         Generate more tables for case conversion and case folding.
45845         * lib/gen-uni-tables.c (SCC_*): New enum items.
45846         (struct special_casing_rule): New type.
45847         (casing_rules, num_casing_rules, allocated_casing_rules): New
45848         variables.
45849         (add_casing_rule, fill_casing_rules): New functions.
45850         (struct casefold_rule): New type.
45851         (casefolding_rules, num_casefolding_rules,
45852         allocated_casefolding_rules): New variables.
45853         (fill_casefolding_rules): New function.
45854         (unicode_casefold): New variable.
45855         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45856         sort_casing_rules, output_casing_rules): New functions.
45857         (main): Accept to more arguments: SpecialCasing.txt and
45858         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45859         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45860         Output mapping for casefolding.
45861
45862         * lib/unicase.h: Include stdbool.h, uninorm.h.
45863         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45864         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45865         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45866         arguments.
45867         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45868         resultp arguments.
45869         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45870         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45871         resultp arguments.
45872         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45873         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45874         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45875         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45876         declarations.
45877         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45878
45879 2009-03-08  Bruno Haible  <bruno@clisp.org>
45880
45881         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45882         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45883         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45884         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45885
45886 2009-03-07  Bruno Haible  <bruno@clisp.org>
45887
45888         Adjust u*_normcmp, u*_normcoll API.
45889         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45890         u16_normcoll, u32_normcoll): Change failure conventions.
45891         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45892         errno and return -1.
45893         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45894
45895 2009-03-07  Bruno Haible  <bruno@clisp.org>
45896
45897         Tests for module 'uninorm/u32-normcoll'.
45898         * modules/uninorm/u32-normcoll-tests: New file.
45899         * tests/uninorm/test-u32-normcoll.c: New file.
45900
45901         Tests for module 'uninorm/u16-normcoll'.
45902         * modules/uninorm/u16-normcoll-tests: New file.
45903         * tests/uninorm/test-u16-normcoll.c: New file.
45904
45905         Tests for module 'uninorm/u8-normcoll'.
45906         * modules/uninorm/u8-normcoll-tests: New file.
45907         * tests/uninorm/test-u8-normcoll.c: New file.
45908
45909 2009-03-07  Bruno Haible  <bruno@clisp.org>
45910
45911         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45912         tests/uninorm/test-u32-normcmp.c.
45913         * tests/uninorm/test-u32-normcmp.c: Include it.
45914         (test_nonascii): New function, extracted from main. Add some more
45915         tests.
45916         (main): Invoke test_ascii and test_nonascii.
45917         * modules/uninorm/u32-normcmp-tests (Files): Add
45918         tests/uninorm/test-u32-normcmp.h.
45919         (Depends-on): Remove uninorm/u32-normcmp.
45920
45921         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45922         tests/uninorm/test-u16-normcmp.c.
45923         * tests/uninorm/test-u16-normcmp.c: Include it.
45924         (test_nonascii): New function, extracted from main. Add some more
45925         tests.
45926         (main): Invoke test_ascii and test_nonascii.
45927         * modules/uninorm/u16-normcmp-tests (Files): Add
45928         tests/uninorm/test-u16-normcmp.h.
45929         (Depends-on): Remove uninorm/u16-normcmp.
45930
45931         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45932         tests/uninorm/test-u8-normcmp.c.
45933         * tests/uninorm/test-u8-normcmp.c: Include it.
45934         (test_nonascii): New function, extracted from main. Add some more
45935         tests.
45936         (main): Invoke test_ascii and test_nonascii.
45937         * modules/uninorm/u8-normcmp-tests (Files): Add
45938         tests/uninorm/test-u8-normcmp.h.
45939         (Depends-on): Remove uninorm/u8-normcmp.
45940
45941 2009-03-07  Bruno Haible  <bruno@clisp.org>
45942
45943         New module 'uninorm/u32-normcoll'.
45944         * lib/uninorm/u32-normcoll.c: New file.
45945         * modules/uninorm/u32-normcoll: New file.
45946
45947         New module 'uninorm/u16-normcoll'.
45948         * lib/uninorm/u16-normcoll.c: New file.
45949         * modules/uninorm/u16-normcoll: New file.
45950
45951         New module 'uninorm/u8-normcoll'.
45952         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45953         declarations.
45954         * lib/uninorm/u8-normcoll.c: New file.
45955         * lib/uninorm/u-normcoll.h: New file.
45956         * modules/uninorm/u8-normcoll: New file.
45957
45958         New module 'uninorm/u32-normxfrm'.
45959         * lib/uninorm/u32-normxfrm.c: New file.
45960         * modules/uninorm/u32-normxfrm: New file.
45961
45962         New module 'uninorm/u16-normxfrm'.
45963         * lib/uninorm/u16-normxfrm.c: New file.
45964         * modules/uninorm/u16-normxfrm: New file.
45965
45966         New module 'uninorm/u8-normxfrm'.
45967         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45968         declarations.
45969         * lib/uninorm/u8-normxfrm.c: New file.
45970         * lib/uninorm/u-normxfrm.h: New file.
45971         * modules/uninorm/u8-normxfrm: New file.
45972
45973 2009-03-07  Bruno Haible  <bruno@clisp.org>
45974
45975         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45976         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45977         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45978
45979 2009-03-07  Bruno Haible  <bruno@clisp.org>
45980
45981         New module 'memxfrm'.
45982         * lib/memxfrm.h: New file.
45983         * lib/memxfrm.c: New file.
45984         * modules/memxfrm: New file.
45985
45986 2009-03-07  Bruno Haible  <bruno@clisp.org>
45987
45988         New module 'memcmp2'.
45989         * lib/memcmp2.h: New file.
45990         * lib/memcmp2.c: New file.
45991         * modules/memcmp2: New file.
45992
45993 2009-03-07  Bruno Haible  <bruno@clisp.org>
45994
45995         Tests for module 'uninorm/decomposing-form'.
45996         * modules/uninorm/decomposing-form-tests: New file.
45997         * tests/uninorm/test-decomposing-form.c: New file.
45998
45999         New module 'uninorm/decomposing-form'.
46000         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46001         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46002         Add 'decomposing_variant' field.
46003         * lib/uninorm/decomposing-form.c: New file.
46004         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46005         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46006         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46007         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46008         * modules/uninorm/decomposing-form: New file.
46009         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46010         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46011
46012 2009-03-07  Bruno Haible  <bruno@clisp.org>
46013
46014         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46015         strings.
46016
46017 2009-03-06  Bruno Haible  <bruno@clisp.org>
46018
46019         Tests for module 'uninorm/u32-normcmp'.
46020         * tests/uninorm/test-u32-normcmp.c: New file.
46021         * modules/uninorm/u32-normcmp-tests: New file.
46022
46023         Tests for module 'uninorm/u16-normcmp'.
46024         * tests/uninorm/test-u16-normcmp.c: New file.
46025         * modules/uninorm/u16-normcmp-tests: New file.
46026
46027         Tests for module 'uninorm/u8-normcmp'.
46028         * tests/uninorm/test-u8-normcmp.c: New file.
46029         * modules/uninorm/u8-normcmp-tests: New file.
46030
46031         New module 'uninorm/u32-normcmp'.
46032         * lib/uninorm/u32-normcmp.c: New file.
46033         * modules/uninorm/u32-normcmp: New file.
46034
46035         New module 'uninorm/u16-normcmp'.
46036         * lib/uninorm/u16-normcmp.c: New file.
46037         * modules/uninorm/u16-normcmp: New file.
46038
46039         New module 'uninorm/u8-normcmp'.
46040         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46041         declarations.
46042         * lib/uninorm/u8-normcmp.c: New file.
46043         * lib/uninorm/u-normcmp.h: New file.
46044         * modules/uninorm/u8-normcmp: New file.
46045
46046 2009-03-06  Bruno Haible  <bruno@clisp.org>
46047
46048         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46049         Reported by Eric Blake.
46050
46051 2009-03-06  Eric Blake  <ebb9@byu.net>
46052             Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46055         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46056         condition.
46057         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46058         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46059         condition.
46060         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46061
46062 2009-03-06  Eric Blake  <ebb9@byu.net>
46063
46064         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46065         to avoid compiler warnings.
46066         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46067
46068 2009-03-05  Bruno Haible  <bruno@clisp.org>
46069
46070         * tests/test-ftell.c (main): Disable test beyond end of file on
46071         FreeMiNT.
46072         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46073
46074 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46075
46076         * lib/filevercmp.c: Move hidden files up in ordering.
46077         * tests/test-filevercmp.c: Add tests for hidden files.
46078
46079 2009-03-04  Bruno Haible  <bruno@clisp.org>
46080
46081         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46082         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46083         AM_CFLAGS.
46084         Reported by Simon Josefsson.
46085
46086 2009-03-03  Bruno Haible  <bruno@clisp.org>
46087
46088         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46089         Reported by Simon Josefsson.
46090
46091         * doc/ld-version-script.texi: Update node reference.
46092
46093 2009-03-03  Bruno Haible  <bruno@clisp.org>
46094
46095         * modules/visibility (License): Change to 'unlimited'.
46096         Suggested by Simon Josefsson.
46097
46098 2009-03-03  Jim Meyering  <meyering@redhat.com>
46099
46100         unlinkdir: cannot_unlink_dir may modify process state
46101         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46102         it's neither thread-safe nor appropriate for use in a library.
46103
46104 2009-03-03  Eric Blake  <ebb9@byu.net>
46105
46106         test-closein: silence test under Darwin
46107         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46108         care if it dies from EPIPE or EBADF.
46109
46110 2009-03-03  Bruno Haible  <bruno@clisp.org>
46111
46112         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46113         earlier.
46114         * doc/visibility.texi: Fix @node and @section.
46115
46116 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46117
46118         * doc/gnulib.texi: Link to sections for ld version script and
46119         visibility.
46120         * doc/visibility.texi: Add @node and @section.
46121         * modules/ld-version-script: New module.
46122         * m4/ld-version-script.m4: New file.
46123         * doc/ld-version-script.texi: New file.
46124
46125 2009-03-02  David Lutterkort  <lutter@redhat.com>
46126
46127         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46128         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46129
46130 2009-03-02  Bruno Haible  <bruno@clisp.org>
46131
46132         * doc/visibility.texi: Mention libtool's -export-symbols option.
46133
46134 2009-03-02  Jim Meyering  <meyering@redhat.com>
46135
46136         announce-gen: new option: --no-print-checksums
46137         * build-aux/announce-gen (usage): Describe it.
46138         (print_checksums): Print a newline here, not in the [*] footnote.
46139         (main): Honor it.
46140
46141 2009-03-01  Bruno Haible  <bruno@clisp.org>
46142
46143         Use socklen_t in the native Windows replacements prototypes.
46144         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46145         instead of 'int'.
46146         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46147         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46148         * modules/getsockopt (Depends-on): Add socklen.
46149         * modules/setsockopt (Depends-on): Add socklen.
46150
46151 2009-03-01  Bruno Haible  <bruno@clisp.org>
46152
46153         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46154         least 4.2.
46155
46156 2009-03-01  Eric Blake  <ebb9@byu.net>
46157             Bruno Haible  <bruno@clisp.org>
46158
46159         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46160         error messages.
46161         * lib/wait-process.c (wait_subprocess): Omit error message about
46162         deadly signal sent to the child of termsigp != NULL.
46163
46164 2009-03-01  Eric Blake  <ebb9@byu.net>
46165
46166         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46167
46168 2009-03-01  Bruno Haible  <bruno@clisp.org>
46169
46170         Avoid a gcc warning.
46171         * tests/test-sched.c (b): Make global.
46172         Reported by Eric Blake.
46173
46174 2009-01-19  Martin Lambers  <marlam@marlam.de>
46175
46176         Provide POSIX semantics for socket timeout options on W32.
46177         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46178         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46179         * modules/setsockopt: Depend on sys_time module for struct timeval.
46180         * modules/getsockopt: Depend on sys_time module for struct timeval.
46181
46182 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46183
46184         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46185         __USE_GNU, for consistency with netdb.in.h.
46186         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46187
46188 2009-03-01  Bruno Haible  <bruno@clisp.org>
46189
46190         More support for FreeMiNT.
46191         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46192         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46193
46194 2009-03-01  Bruno Haible  <bruno@clisp.org>
46195
46196         More support for FreeMiNT.
46197         * lib/fpurge.c (fpurge): Correct last commit.
46198         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46199
46200 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46201
46202         Fix unportable awk script in vc-list-files.
46203         * build-aux/vc-list-files: In the replacement awk script, use
46204         substr with a second argument of 1, not zero.
46205         Report by Simon Josefsson.
46206
46207 2009-02-28  Bruno Haible  <bruno@clisp.org>
46208
46209         More support for FreeMiNT.
46210         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46211         to FreeMiNT today.
46212         * lib/fwriting.c (fwriting): Likewise.
46213         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46214
46215 2009-02-28  Bruno Haible  <bruno@clisp.org>
46216
46217         * tests/test-freadseek.c (main): Disable test beyond end of file on
46218         FreeMiNT.
46219         * tests/test-ftello.c (main): Likewise.
46220         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46221
46222 2009-02-28  Bruno Haible  <bruno@clisp.org>
46223
46224         Add tentative support for FreeMiNT.
46225         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46226         * lib/fpurge.c (fpurge): Likewise.
46227         * lib/freadable.c (freadable): Likewise.
46228         * lib/freading.c (freading): Likewise.
46229         * lib/freadptr.c (freadptr): Likewise.
46230         * lib/freadseek.c (freadptrinc): Likewise.
46231         * lib/fseeko.c (rpl_fseeko): Likewise.
46232         * lib/fseterr.c (fseterr): Likewise.
46233         * lib/fwritable.c (fwritable): Likewise.
46234         * lib/fwriting.c (fwriting): Likewise.
46235         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46236         Hourihane.
46237         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46238
46239 2009-02-28  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46242         SIGCHLD.
46243         Reported by Jim Meyering.
46244
46245 2009-02-28  Bruno Haible  <bruno@clisp.org>
46246
46247         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46248         Mention the results of these tests on various platforms.
46249         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46250         order.
46251         * doc/posix-functions/printf.texi: Likewise.
46252         * doc/posix-functions/snprintf.texi: Likewise.
46253         * doc/posix-functions/sprintf.texi: Likewise.
46254         * doc/posix-functions/vfprintf.texi: Likewise.
46255         * doc/posix-functions/vprintf.texi: Likewise.
46256         * doc/posix-functions/vsnprintf.texi: Likewise.
46257         * doc/posix-functions/vsprintf.texi: Likewise.
46258         * doc/glibc-functions/obstack_printf.texi: Likewise.
46259         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46260
46261 2009-02-28  Bruno Haible  <bruno@clisp.org>
46262
46263         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46264         Reported by Loïc Minier <lool@dooz.org>.
46265
46266 2009-02-27  Bruno Haible  <bruno@clisp.org>
46267
46268         * gnulib-tool (func_import): Make the sed expression used to create the
46269         sed script for updating the .gitignore file POSIX compliant.
46270         Reported by Eric Blake.
46271
46272 2009-02-27  Bruno Haible  <bruno@clisp.org>
46273
46274         * gnulib-tool (sed): Don't alias as "sed --posix".
46275         Reported by Eric Blake.
46276
46277 2009-02-27  Bruno Haible  <bruno@clisp.org>
46278
46279         Avoid test link errors.
46280         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46281         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46282         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46283         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46284         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46285
46286 2009-02-27  Bruno Haible  <bruno@clisp.org>
46287
46288         Avoid spurious "(cached)" in configure output.
46289         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46290         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46291         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46292         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46293         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46294         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46295         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46296         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46297         Reported by Eric Blake.
46298
46299 2009-02-27  Eric Blake  <ebb9@byu.net>
46300
46301         printf: fix regression in previous patch
46302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46303
46304 2009-02-27  Bruno Haible  <bruno@clisp.org>
46305
46306         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46307         value.
46308         * lib/stdint.in.h: Likewise.
46309         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46310
46311 2009-02-27  Eric Blake  <ebb9@byu.net>
46312
46313         doc: mention more functions added in cygwin 1.7.0
46314         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46315         addition.
46316         * doc/posix-functions/open_wmemstream.texi: Likewise.
46317         * doc/posix-functions/wcsnlen.texi: Likewise.
46318         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46319         * doc/posix-functions/wcstod.texi: Likewise.
46320         * doc/posix-functions/wcstof.texi: Likewise.
46321         * doc/posix-functions/wcstoimax.texi: Likewise.
46322         * doc/posix-functions/wcstok.texi: Likewise.
46323         * doc/posix-functions/wcstoumax.texi: Likewise.
46324
46325         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46326         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46327         * doc/posix-functions/fprintf.texi: Update.
46328         * doc/posix-functions/printf.texi: Update.
46329         * doc/posix-functions/snprintf.texi: Update.
46330         * doc/posix-functions/sprintf.texi: Update.
46331         * doc/posix-functions/vfprintf.texi: Update.
46332         * doc/posix-functions/vprintf.texi: Update.
46333         * doc/posix-functions/vsnprintf.texi: Update.
46334         * doc/posix-functions/vsprintf.texi: Update.
46335         * doc/glibc-functions/obstack_printf.texi: Update.
46336         * doc/glibc-functions/obstack_vprintf.texi: Update.
46337
46338 2009-02-26  Eric Blake  <ebb9@byu.net>
46339
46340         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46341         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46342         compilation bug by using runtime conversion.
46343         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46344         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46345         * modules/ceill-tests (Files): Use nan.h.
46346         * modules/floorl-tests (Files): Likewise.
46347         * modules/frexpl-tests (Files): Likewise.
46348         * modules/isnanl-tests (Files): Likewise.
46349         * modules/ldexpl-tests (Files): Likewise.
46350         * modules/roundl-tests (Files): Likewise.
46351         * modules/truncl-tests (Files): Likewise.
46352         * tests/test-ceill.c (main): Use a working NaN.
46353         * tests/test-floorl.c (main): Likewise.
46354         * tests/test-frexpl.c (main): Likewise.
46355         * tests/test-isnan.c (test_long_double): Likewise.
46356         * tests/test-isnanl.h (main): Likewise.
46357         * tests/test-ldexpl.h (main): Likewise.
46358         * tests/test-roundl.h (main): Likewise.
46359         * tests/test-truncl.h (main): Likewise.
46360         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46361
46362 2009-02-26  Eric Blake  <ebb9@byu.net>
46363             Bruno Haible  <bruno@clisp.org>
46364
46365         Work around a *printf bug with %ls on Solaris.
46366         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46367         precision is specified, sprintf stops converting the wide string
46368         argument when the number of bytes that have been produced by this
46369         conversion equals or exceeds the precision.
46370         * doc/posix-functions/fprintf.texi: Update.
46371         * doc/posix-functions/printf.texi: Update.
46372         * doc/posix-functions/snprintf.texi: Update.
46373         * doc/posix-functions/sprintf.texi: Update.
46374         * doc/posix-functions/vfprintf.texi: Update.
46375         * doc/posix-functions/vprintf.texi: Update.
46376         * doc/posix-functions/vsnprintf.texi: Update.
46377         * doc/posix-functions/vsprintf.texi: Update.
46378         * doc/glibc-functions/obstack_printf.texi: Update.
46379         * doc/glibc-functions/obstack_vprintf.texi: Update.
46380
46381 2009-02-26  Eric Blake  <ebb9@byu.net>
46382
46383         stdlib: favor compiler check of random.h
46384         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46385         to avoid an ObjC random.h installed by Swarm.
46386
46387 2009-02-26  Bruno Haible  <bruno@clisp.org>
46388
46389         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46390         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46391         Reported by Gary V. Vaughan <gary@gnu.org>.
46392
46393 2009-02-26  Bruno Haible  <bruno@clisp.org>
46394
46395         Fix *printf behaviour regarding the %ls directive.
46396         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46397         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46398         NEED_PRINTF_DIRECTIVE_LS.
46399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46400         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46401         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46402         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46403         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46404         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46405         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46407         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46409         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46410         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46411         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46412         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46413         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46414         * doc/posix-functions/fprintf.texi: Update.
46415         * doc/posix-functions/printf.texi: Update.
46416         * doc/posix-functions/snprintf.texi: Update.
46417         * doc/posix-functions/sprintf.texi: Update.
46418         * doc/posix-functions/vfprintf.texi: Update.
46419         * doc/posix-functions/vprintf.texi: Update.
46420         * doc/posix-functions/vsnprintf.texi: Update.
46421         * doc/posix-functions/vsprintf.texi: Update.
46422         * doc/glibc-functions/obstack_printf.texi: Update.
46423         * doc/glibc-functions/obstack_vprintf.texi: Update.
46424         Reported by Eric Blake.
46425
46426 2009-02-25  Bruno Haible  <bruno@clisp.org>
46427
46428         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46429         with known value.
46430         Reported by Gary V. Vaughan <gary@gnu.org>.
46431
46432 2009-02-25  Bruno Haible  <bruno@clisp.org>
46433
46434         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46435         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46436         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46437         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46438         Reported by Gary V. Vaughan <gary@gnu.org>.
46439
46440 2009-02-25  Bruno Haible  <bruno@clisp.org>
46441
46442         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46443         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46444         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46445         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46446         Reported by Gary V. Vaughan <gary@gnu.org>.
46447
46448 2009-02-25  Eric Blake  <ebb9@byu.net>
46449
46450         tests: skip fseek/ftell tests if ungetc is broken
46451         * m4/ungetc.m4: New file.
46452         * modules/fseek-tests: Split test, so ungetc dependency is
46453         separate from rest of test.
46454         * modules/fseeko-tests: Likewise.
46455         * modules/ftell-tests: Likewise.
46456         * modules/ftello-tests: Likewise.
46457         * tests/test-fseek.c (main): Isolate ungetc dependency.
46458         * tests/test-fseeko.c (main): Likewise.
46459         * tests/test-ftell.c (main): Likewise.
46460         * tests/test-ftello.c (main): Likewise.
46461         * tests/test-fseek2.sh: New file.
46462         * tests/test-fseeko2.sh: Likewise.
46463         * tests/test-ftell2.sh: Likewise.
46464         * tests/test-ftello2.sh: Likewise.
46465
46466 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46467
46468         test-getaddrinfo: fix usage of skip return code 77
46469         * tests/test-gettaddrinfo.c: Return skip code 77 only
46470         for first occurance of skip (4x77 is not 77)
46471
46472 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46473
46474         strtod: avoid C99 decl-after-statement
46475         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46476
46477 2009-02-24  Eric Blake  <ebb9@byu.net>
46478
46479         strtod: detect HP-UX 11.31 bug
46480         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46481         Reported by Gary V. Vaughan.
46482
46483 2009-02-23  Bruno Haible  <bruno@clisp.org>
46484
46485         Fix invalid read past end of memory block.
46486         * lib/vasnprintf.c (DCHAR_SET): Define.
46487         (local_wcslen): Define only when needed.
46488         (local_strnlen, local_wcsnlen): New functions.
46489         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46490         directives that involve a conversion ourselves.
46491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46492         wcsnlen, mbrtowc, wcrtomb.
46493         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46494         * tests/test-vasprintf-posix.c (test_function): Likewise.
46495         * tests/test-snprintf-posix.h (test_function): Likewise.
46496         * tests/test-sprintf-posix.h (test_function): Likewise.
46497         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46498
46499 2009-02-22  Bruno Haible  <bruno@clisp.org>
46500
46501         Implement new clarified decomposition of Hangul syllables.
46502         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46503         of type LTV, return only a pairwise decomposition.
46504         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46505         Likewise.
46506         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46507         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46508         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46509
46510 2009-02-22  Bruno Haible  <bruno@clisp.org>
46511
46512         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46513         zero-length results and shrink excess allocated memory.
46514         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46515         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46516         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46517         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46518         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46519         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46520         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46521         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46522         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46523         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46524         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46525         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46526
46527 2009-02-21  Bruno Haible  <bruno@clisp.org>
46528
46529         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46530         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46531         spaces after a period. Put a space between a macro name and its
46532         argument list. Trivial rewordings.
46533         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46534         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46535         (main): Return 0 explicitly.
46536
46537 2009-02-21  Bruno Haible  <bruno@clisp.org>
46538
46539         Tests for module 'uninorm/filter'.
46540         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46541         * modules/uninorm/filter-tests: New file.
46542
46543         New module 'uninorm/filter'.
46544         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46545         uninorm_filter_flush, uninorm_filter_free): New declarations.
46546         * lib/uninorm/uninorm-filter.c: New file.
46547         * modules/uninorm/filter: New file.
46548
46549 2009-02-21  Bruno Haible  <bruno@clisp.org>
46550
46551         Tests for module 'uninorm/nfkc'.
46552         * tests/uninorm/test-nfkc.c: New file.
46553         * tests/uninorm/test-u8-nfkc.c: New file.
46554         * tests/uninorm/test-u16-nfkc.c: New file.
46555         * tests/uninorm/test-u32-nfkc.c: New file.
46556         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46557         * tests/uninorm/test-u32-nfkc-big.c: New file.
46558         * modules/uninorm/nfkc-tests: New file.
46559
46560         New module 'uninorm/nfkc'.
46561         * lib/uninorm/nfkc.c: New file.
46562         * modules/uninorm/nfkc: New file.
46563
46564         Tests for module 'uninorm/nfkd'.
46565         * tests/uninorm/test-nfkd.c: New file.
46566         * tests/uninorm/test-u8-nfkd.c: New file.
46567         * tests/uninorm/test-u16-nfkd.c: New file.
46568         * tests/uninorm/test-u32-nfkd.c: New file.
46569         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46570         * tests/uninorm/test-u32-nfkd-big.c: New file.
46571         * modules/uninorm/nfkd-tests: New file.
46572
46573         New module 'uninorm/nfkd'.
46574         * lib/uninorm/nfkd.c: New file.
46575         * modules/uninorm/nfkd: New file.
46576
46577         Tests for module 'uninorm/nfc'.
46578         * tests/uninorm/test-nfc.c: New file.
46579         * tests/uninorm/test-u8-nfc.c: New file.
46580         * tests/uninorm/test-u16-nfc.c: New file.
46581         * tests/uninorm/test-u32-nfc.c: New file.
46582         * tests/uninorm/test-u32-nfc-big.sh: New file.
46583         * tests/uninorm/test-u32-nfc-big.c: New file.
46584         * modules/uninorm/nfc-tests: New file.
46585
46586         New module 'uninorm/nfc'.
46587         * lib/uninorm/nfc.c: New file.
46588         * modules/uninorm/nfc: New file.
46589
46590         Tests for module 'uninorm/nfd'.
46591         * tests/uninorm/test-nfd.c: New file.
46592         * tests/uninorm/test-u8-nfd.c: New file.
46593         * tests/uninorm/test-u16-nfd.c: New file.
46594         * tests/uninorm/test-u32-nfd.c: New file.
46595         * tests/uninorm/test-u32-nfd-big.sh: New file.
46596         * tests/uninorm/test-u32-nfd-big.c: New file.
46597         * tests/uninorm/test-u32-normalize-big.h: New file.
46598         * tests/uninorm/test-u32-normalize-big.c: New file.
46599         * tests/uninorm/NormalizationTest.txt: New file, created from
46600         Unicode 5.1.0 NormalizationTest.txt.
46601         * modules/uninorm/nfd-tests: New file.
46602
46603         New module 'uninorm/nfd'.
46604         * lib/uninorm/nfd.c: New file.
46605         * modules/uninorm/nfd: New file.
46606
46607         New module 'uninorm/u32-normalize'.
46608         * lib/uninorm/u32-normalize.c: New file.
46609         * modules/uninorm/u32-normalize: New file.
46610
46611         New module 'uninorm/u16-normalize'.
46612         * lib/uninorm/u16-normalize.c: New file.
46613         * modules/uninorm/u16-normalize: New file.
46614
46615         New module 'uninorm/u8-normalize'.
46616         * lib/uninorm/u8-normalize.c: New file.
46617         * lib/uninorm/normalize-internal.h: New file.
46618         * lib/uninorm/u-normalize-internal.h: New file.
46619         * modules/uninorm/u8-normalize: New file.
46620
46621         New module 'uninorm/decompose-internal'.
46622         * lib/uninorm/decompose-internal.c: New file.
46623         * modules/uninorm/decompose-internal: New file.
46624
46625         Tests for module 'uninorm/composition'.
46626         * tests/uninorm/test-composition.c: New file.
46627         * modules/uninorm/composition-tests: New file.
46628
46629         New module 'uninorm/composition'.
46630         * lib/uninorm/composition.c: New file.
46631         * lib/uninorm/composition-table.gperf: New file, generated by
46632         gen-uni-tables.
46633         * modules/uninorm/composition: New file.
46634
46635         Tests for module 'uninorm/compat-decomposition'.
46636         * tests/uninorm/test-compat-decomposition.c: New file.
46637         * modules/uninorm/compat-decomposition-tests: New file.
46638
46639         New module 'uninorm/compat-decomposition'.
46640         * lib/uninorm/decompose-internal.h: New file.
46641         * lib/uninorm/compat-decomposition.c: New file.
46642         * modules/uninorm/compat-decomposition: New file.
46643
46644         Tests for module 'uninorm/canonical-decomposition'.
46645         * tests/uninorm/test-canonical-decomposition.c: New file.
46646         * modules/uninorm/canonical-decomposition-tests: New file.
46647
46648         New module 'uninorm/canonical-decomposition'.
46649         * lib/uninorm/canonical-decomposition.c: New file.
46650         * modules/uninorm/canonical-decomposition: New file.
46651
46652         Tests for module 'uninorm/decomposition'.
46653         * tests/uninorm/test-decomposition.c: New file.
46654         * modules/uninorm/decomposition-tests: New file.
46655
46656         New module 'uninorm/decomposition'.
46657         * lib/uninorm/decomposition.c: New file.
46658         * modules/uninorm/decomposition: New file.
46659
46660         New module 'uninorm/decomposition-table'.
46661         * lib/uninorm/decomposition-table.h: New file.
46662         * lib/uninorm/decomposition-table.c: New file.
46663         * lib/uninorm/decomposition-table1.h: New file, generated by
46664         gen-uni-tables.
46665         * lib/uninorm/decomposition-table2.h: New file, generated by
46666         gen-uni-tables.
46667         * modules/uninorm/decomposition-table: New file.
46668
46669         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46670         (UC_DECOMP_*): New enumeration items.
46671         (get_decomposition): New function.
46672         (struct decomp_table): New type.
46673         (output_decomposition, output_decomposition_tables): New functions.
46674         (unicode_composition_exclusions): New variable.
46675         (fill_composition_exclusions, debug_output_composition_tables): New
46676         functions.
46677         (main): Accept one more argument. Invoke fill_composition_exclusions.
46678         Output decomposition and composition tables.
46679
46680         New module 'uninorm/base'.
46681         * lib/uninorm.h: New file.
46682         * lib/unictype.h: Update comment.
46683         * modules/uninorm/base: New file.
46684
46685 2009-02-21  David Lutterkort  <lutter@redhat.com>
46686
46687         Tests for module 'safe-alloc'.
46688         * tests/test-safe-alloc.c: New file.
46689         * modules/safe-alloc-tests: New file.
46690
46691         New module 'safe-alloc'.
46692         * lib/safe-alloc.h: New file.
46693         * lib/safe-alloc.c: New file.
46694         * m4/safe-alloc.m4: New file.
46695         * modules/safe-alloc: New file.
46696         * doc/safe-alloc.texi: New file.
46697         * doc/gnulib.texi: Include it.
46698         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46699         safe-alloc.
46700
46701 2009-02-18  Bruno Haible  <bruno@clisp.org>
46702
46703         Fix link error on non-glibc systems.
46704         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46705         variable.
46706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46707
46708 2009-02-18  Jim Meyering  <meyering@redhat.com>
46709
46710         fts: avoid used-uninitialized error due to recent change
46711         * lib/fts.c (fts_read): Guard uses of the new member,
46712         parent->fts_n_dirs_remaining, since it's not relevant for
46713         the parent of a directory specified on the command-line.
46714
46715 2009-02-17  James Youngman  <jay@gnu.org>
46716             Bruno Haible  <bruno@clisp.org>
46717
46718         * m4/include_next.m4: Reformulate comment.
46719
46720 2009-02-16  Jim Meyering  <meyering@redhat.com>
46721
46722         fts: add #if guards so that the fts_lgpl module still builds
46723         * lib/fts.c: Guard just-added hash-table-using parts with
46724         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46725         Reported by Simon Josefsson.
46726
46727 2009-02-15  Bruno Haible  <bruno@clisp.org>
46728
46729         * modules/array-mergesort-tests: New file.
46730         * tests/test-array-mergesort.c: New file.
46731
46732         New module 'array-mergesort'.
46733         * modules/array-mergesort: New file.
46734         * lib/array-mergesort.h: New file.
46735
46736 2009-02-15  Bruno Haible  <bruno@clisp.org>
46737
46738         Fix 2009-02-07 commit.
46739         * lib/gen-uni-tables.c (output_predicate, output_category,
46740         output_combclass, output_bidi_category, output_decimal_digit,
46741         output_digit, output_numeric, output_mirror, output_scripts,
46742         output_ident_category, output_simple_mapping): Fix format directives.
46743         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46744
46745 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46746
46747         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46748         fixes are available from IBM.
46749
46750 2009-02-13  Jim Meyering  <meyering@redhat.com>
46751
46752         fts: arrange not to stat non-directories in more cases
46753         This makes GNU find (when it doesn't need to stat each file)
46754         *much* more efficient at traversing reiserfs file systems.
46755         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46756         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46757         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46758         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46759         (leaf_optimization_applies): New function.
46760         (LCO_hash, LCO_compare): New helper functions.
46761         (link_count_optimize_ok): New function.
46762         (fts_stat): Initialize new member (if dir).
46763         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46764         we've just stat'ed a directory.  Skip the stat call when possible.
46765         ---
46766         Note this AFS-related exchange:
46767         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46768         and note find's pioctl call in find/fstype.c.
46769         But that is necessary only if you want to enable the
46770         optimization for AFS, and for now, I don't.
46771
46772         fts: move a function definition "up" (no semantic change)
46773         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46774         "up" to precede upcoming use of a related function.
46775
46776 2009-02-11  Jim Meyering  <meyering@redhat.com>
46777
46778         fts: correct internal computation of nlinks (optimization-related)
46779         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46780         whether the current entry is a directory, so don't test it.
46781
46782 2009-02-10  Bruno Haible  <bruno@clisp.org>
46783
46784         Tests for module 'uniwbrk/ulc-wordbreaks'.
46785         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46786         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46787         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46788
46789         Tests for module 'uniwbrk/u32-wordbreaks'.
46790         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46791         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46792
46793         Tests for module 'uniwbrk/u16-wordbreaks'.
46794         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46795         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46796
46797         Tests for module 'uniwbrk/u8-wordbreaks'.
46798         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46799         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46800
46801 2009-02-10  Bruno Haible  <bruno@clisp.org>
46802
46803         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46804         property.
46805         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46806         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46807         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46808
46809 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46810
46811         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46812         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46813
46814 2009-02-10  Bruno Haible  <bruno@clisp.org>
46815
46816         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46817         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46818         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46819         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46820         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46821         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46822
46823 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46824
46825         * lib/sockets.h (gl_fd_to_handle): New function.
46826
46827         * tests/test-sockets.c: Call gl_fd_to_handle.
46828
46829 2009-02-09  Bruno Haible  <bruno@clisp.org>
46830
46831         * doc/havelib.texi: Document the conventions on bi-arch systems.
46832
46833 2009-02-08  Bruno Haible  <bruno@clisp.org>
46834
46835         Document the AC_LIB_LINKFLAGS macro.
46836         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46837         * doc/gnulib.texi: Include it.
46838
46839 2009-02-08  Bruno Haible  <bruno@clisp.org>
46840
46841         Fix wrong order of sections, compared to TOC.
46842         * doc/gnulib.texi: Include relocatable-maint.texi after the
46843         "Regular expressions" node, not before.
46844
46845 2009-02-08  Bruno Haible  <bruno@clisp.org>
46846
46847         Tests for module 'unicase/totitle'.
46848         * modules/unicase/totitle-tests: New file.
46849
46850         Tests for module 'unicase/tolower'.
46851         * modules/unicase/tolower-tests: New file.
46852
46853         Tests for module 'unicase/toupper'.
46854         * modules/unicase/toupper-tests: New file.
46855         * tests/unicase/test-mapping-part1.h: New file.
46856         * tests/unicase/test-mapping-part2.h: New file.
46857
46858         New module 'unicase/totitle'.
46859         * modules/unicase/totitle: New file.
46860         * lib/unicase/totitle.c: New file.
46861
46862         New module 'unicase/tolower'.
46863         * modules/unicase/tolower: New file.
46864         * lib/unicase/tolower.c: New file.
46865
46866         New module 'unicase/toupper'.
46867         * modules/unicase/toupper: New file.
46868         * lib/unicase/toupper.c: New file.
46869         * lib/unicase/simple-mapping.h: New file.
46870
46871         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46872         (mapping_table): New structure.
46873         (output_simple_mapping): New function.
46874         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46875         * modules/gen-uni-tables (Description): Update.
46876         * lib/unicase/toupper.h: New file, automatically generated by
46877         gen-uni-tables.
46878         * lib/unicase/tolower.h: New file, automatically generated by
46879         gen-uni-tables.
46880         * lib/unicase/totitle.h: New file, automatically generated by
46881         gen-uni-tables.
46882         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46883         gen-uni-tables.
46884         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46885         gen-uni-tables.
46886         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46887         gen-uni-tables.
46888
46889         New module 'unicase/base'.
46890         * modules/unicase/base: New file.
46891         * lib/unicase.h: New file.
46892
46893 2009-02-08  Bruno Haible  <bruno@clisp.org>
46894
46895         New module 'uniwbrk/ulc-wordbreaks'.
46896         * modules/uniwbrk/ulc-wordbreaks: New file.
46897         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46898
46899         New module 'uniwbrk/u32-wordbreaks'.
46900         * modules/uniwbrk/u32-wordbreaks: New file.
46901         * lib/uniwbrk/u32-wordbreaks.c: New file.
46902
46903         New module 'uniwbrk/u16-wordbreaks'.
46904         * modules/uniwbrk/u16-wordbreaks: New file.
46905         * lib/uniwbrk/u16-wordbreaks.c: New file.
46906
46907         New module 'uniwbrk/u8-wordbreaks'.
46908         * modules/uniwbrk/u8-wordbreaks: New file.
46909         * lib/uniwbrk/u8-wordbreaks.c: New file.
46910         * lib/uniwbrk/u-wordbreaks.h: New file.
46911
46912         New module 'uniwbrk/table'.
46913         * modules/uniwbrk/table: New file.
46914         * lib/uniwbrk/wbrktable.h: New file.
46915         * lib/uniwbrk/wbrktable.c: New file.
46916
46917         New module 'uniwbrk/wordbreak-property'.
46918         * modules/uniwbrk/wordbreak-property: New file.
46919         * lib/uniwbrk/wordbreak-property.c: New file.
46920
46921         * lib/gen-uni-tables.c (WBP_*): New enum items.
46922         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46923         (unicode_org_wbp): New variable.
46924         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46925         New functions.
46926         (wbp_table): New structure.
46927         (output_wbp, output_wbrk_tables): New functions.
46928         (main): Accept additional argument. Invoke fill_org_wbp,
46929         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46930         output_wbrk_tables.
46931         * modules/gen-uni-tables (Description): Update.
46932         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46933         gen-uni-tables.
46934
46935         New module 'uniwbrk/base'.
46936         * modules/uniwbrk/base: New file.
46937         * lib/uniwbrk.h: New file.
46938
46939 2009-02-08  Bruno Haible  <bruno@clisp.org>
46940
46941         Update to Unicode 5.1.0.
46942         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46943         U+2185..U+2188.
46944         (is_property_default_ignorable_code_point): Don't include characters
46945         of category Cc or Cs and not-a-characters.
46946         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46947         U+0D79, U+109E, U+109F, U+A60C.
46948         * lib/unictype/bidi_of.h: Regenerated.
46949         * lib/unictype/blocks.h: Regenerated.
46950         * lib/unictype/categ_C.h: Regenerated.
46951         * lib/unictype/categ_Cf.h: Regenerated.
46952         * lib/unictype/categ_Cn.h: Regenerated.
46953         * lib/unictype/categ_L.h: Regenerated.
46954         * lib/unictype/categ_Ll.h: Regenerated.
46955         * lib/unictype/categ_Lm.h: Regenerated.
46956         * lib/unictype/categ_Lo.h: Regenerated.
46957         * lib/unictype/categ_Lu.h: Regenerated.
46958         * lib/unictype/categ_M.h: Regenerated.
46959         * lib/unictype/categ_Mc.h: Regenerated.
46960         * lib/unictype/categ_Me.h: Regenerated.
46961         * lib/unictype/categ_Mn.h: Regenerated.
46962         * lib/unictype/categ_N.h: Regenerated.
46963         * lib/unictype/categ_Nd.h: Regenerated.
46964         * lib/unictype/categ_Nl.h: Regenerated.
46965         * lib/unictype/categ_No.h: Regenerated.
46966         * lib/unictype/categ_P.h: Regenerated.
46967         * lib/unictype/categ_Pd.h: Regenerated.
46968         * lib/unictype/categ_Pe.h: Regenerated.
46969         * lib/unictype/categ_Pf.h: Regenerated.
46970         * lib/unictype/categ_Pi.h: Regenerated.
46971         * lib/unictype/categ_Po.h: Regenerated.
46972         * lib/unictype/categ_Ps.h: Regenerated.
46973         * lib/unictype/categ_S.h: Regenerated.
46974         * lib/unictype/categ_Sk.h: Regenerated.
46975         * lib/unictype/categ_Sm.h: Regenerated.
46976         * lib/unictype/categ_So.h: Regenerated.
46977         * lib/unictype/categ_of.h: Regenerated.
46978         * lib/unictype/combining.h: Regenerated.
46979         * lib/unictype/ctype_alnum.h: Regenerated.
46980         * lib/unictype/ctype_alpha.h: Regenerated.
46981         * lib/unictype/ctype_graph.h: Regenerated.
46982         * lib/unictype/ctype_lower.h: Regenerated.
46983         * lib/unictype/ctype_print.h: Regenerated.
46984         * lib/unictype/ctype_punct.h: Regenerated.
46985         * lib/unictype/ctype_upper.h: Regenerated.
46986         * lib/unictype/decdigit.h: Regenerated.
46987         * lib/unictype/digit.h: Regenerated.
46988         * lib/unictype/mirror.h: Regenerated.
46989         * lib/unictype/numeric.h: Regenerated.
46990         * lib/unictype/pr_alphabetic.h: Regenerated.
46991         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46992         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46993         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46994         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46995         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46996         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46997         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46998         * lib/unictype/pr_combining.h: Regenerated.
46999         * lib/unictype/pr_dash.h: Regenerated.
47000         * lib/unictype/pr_decimal_digit.h: Regenerated.
47001         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47002         * lib/unictype/pr_deprecated.h: Regenerated.
47003         * lib/unictype/pr_diacritic.h: Regenerated.
47004         * lib/unictype/pr_extender.h: Regenerated.
47005         * lib/unictype/pr_format_control.h: Regenerated.
47006         * lib/unictype/pr_grapheme_base.h: Regenerated.
47007         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47008         * lib/unictype/pr_grapheme_link.h: Regenerated.
47009         * lib/unictype/pr_id_continue.h: Regenerated.
47010         * lib/unictype/pr_id_start.h: Regenerated.
47011         * lib/unictype/pr_ideographic.h: Regenerated.
47012         * lib/unictype/pr_ignorable_control.h: Regenerated.
47013         * lib/unictype/pr_lowercase.h: Regenerated.
47014         * lib/unictype/pr_math.h: Regenerated.
47015         * lib/unictype/pr_numeric.h: Regenerated.
47016         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47017         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47018         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47019         * lib/unictype/pr_other_id_continue.h: Regenerated.
47020         * lib/unictype/pr_other_lowercase.h: Regenerated.
47021         * lib/unictype/pr_other_math.h: Regenerated.
47022         * lib/unictype/pr_punctuation.h: Regenerated.
47023         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47024         * lib/unictype/pr_soft_dotted.h: Regenerated.
47025         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47026         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47027         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47028         * lib/unictype/pr_uppercase.h: Regenerated.
47029         * lib/unictype/pr_xid_continue.h: Regenerated.
47030         * lib/unictype/pr_xid_start.h: Regenerated.
47031         * lib/unictype/pr_zero_width.h: Regenerated.
47032         * lib/unictype/scripts.h: Regenerated.
47033         * lib/unictype/scripts_byname.gperf: Regenerated.
47034         * lib/unictype/sy_java_ident.h: Regenerated.
47035         * lib/unilbrk/lbrkprop1.h: Regenerated.
47036         * lib/unilbrk/lbrkprop2.h: Regenerated.
47037         * tests/unictype/test-categ_C.c: Regenerated.
47038         * tests/unictype/test-categ_Cf.c: Regenerated.
47039         * tests/unictype/test-categ_Cn.c: Regenerated.
47040         * tests/unictype/test-categ_L.c: Regenerated.
47041         * tests/unictype/test-categ_Ll.c: Regenerated.
47042         * tests/unictype/test-categ_Lm.c: Regenerated.
47043         * tests/unictype/test-categ_Lo.c: Regenerated.
47044         * tests/unictype/test-categ_Lu.c: Regenerated.
47045         * tests/unictype/test-categ_M.c: Regenerated.
47046         * tests/unictype/test-categ_Mc.c: Regenerated.
47047         * tests/unictype/test-categ_Me.c: Regenerated.
47048         * tests/unictype/test-categ_Mn.c: Regenerated.
47049         * tests/unictype/test-categ_N.c: Regenerated.
47050         * tests/unictype/test-categ_Nd.c: Regenerated.
47051         * tests/unictype/test-categ_Nl.c: Regenerated.
47052         * tests/unictype/test-categ_No.c: Regenerated.
47053         * tests/unictype/test-categ_P.c: Regenerated.
47054         * tests/unictype/test-categ_Pd.c: Regenerated.
47055         * tests/unictype/test-categ_Pe.c: Regenerated.
47056         * tests/unictype/test-categ_Pf.c: Regenerated.
47057         * tests/unictype/test-categ_Pi.c: Regenerated.
47058         * tests/unictype/test-categ_Po.c: Regenerated.
47059         * tests/unictype/test-categ_Ps.c: Regenerated.
47060         * tests/unictype/test-categ_S.c: Regenerated.
47061         * tests/unictype/test-categ_Sk.c: Regenerated.
47062         * tests/unictype/test-categ_Sm.c: Regenerated.
47063         * tests/unictype/test-categ_So.c: Regenerated.
47064         * tests/unictype/test-ctype_alnum.c: Regenerated.
47065         * tests/unictype/test-ctype_alpha.c: Regenerated.
47066         * tests/unictype/test-ctype_graph.c: Regenerated.
47067         * tests/unictype/test-ctype_lower.c: Regenerated.
47068         * tests/unictype/test-ctype_print.c: Regenerated.
47069         * tests/unictype/test-ctype_punct.c: Regenerated.
47070         * tests/unictype/test-ctype_upper.c: Regenerated.
47071         * tests/unictype/test-decdigit.h: Regenerated.
47072         * tests/unictype/test-digit.h: Regenerated.
47073         * tests/unictype/test-numeric.h: Regenerated.
47074         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47075         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47076         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47077         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47078         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47079         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47080         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47081         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47082         * tests/unictype/test-pr_combining.c: Regenerated.
47083         * tests/unictype/test-pr_dash.c: Regenerated.
47084         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47085         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47086         * tests/unictype/test-pr_deprecated.c: Regenerated.
47087         * tests/unictype/test-pr_diacritic.c: Regenerated.
47088         * tests/unictype/test-pr_extender.c: Regenerated.
47089         * tests/unictype/test-pr_format_control.c: Regenerated.
47090         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47091         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47092         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47093         * tests/unictype/test-pr_id_continue.c: Regenerated.
47094         * tests/unictype/test-pr_id_start.c: Regenerated.
47095         * tests/unictype/test-pr_ideographic.c: Regenerated.
47096         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47097         * tests/unictype/test-pr_lowercase.c: Regenerated.
47098         * tests/unictype/test-pr_math.c: Regenerated.
47099         * tests/unictype/test-pr_numeric.c: Regenerated.
47100         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47101         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47102         Regenerated.
47103         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47104         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47105         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47106         * tests/unictype/test-pr_other_math.c: Regenerated.
47107         * tests/unictype/test-pr_punctuation.c: Regenerated.
47108         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47109         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47110         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47111         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47112         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47113         * tests/unictype/test-pr_uppercase.c: Regenerated.
47114         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47115         * tests/unictype/test-pr_xid_start.c: Regenerated.
47116         * tests/unictype/test-pr_zero_width.c: Regenerated.
47117
47118         Update to Unicode 5.1.0.
47119         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47120         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47121         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47122         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47123         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47124         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47125         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47126         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47127         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47128         (nonspacing_table_ind): Update.
47129         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47130
47131         Update to Unicode 5.1.0.
47132         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47133         code transform.
47134         * lib/uniname/uniname.c (unicode_character_name,
47135         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47136         * lib/uniname/uninames.h: Regenerated.
47137         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47138
47139 2009-02-07  Bruno Haible  <bruno@clisp.org>
47140
47141         Merge gen-ctype and gen-lbrk into a single program.
47142         * lib/gen-uni-tables.c: New file, incorporating
47143         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47144         Add directory prefixes to the names of the generated files.
47145         * lib/unictype/gen-ctype.c: Remove file.
47146         * lib/unilbrk/gen-lbrk.c: Remove file.
47147         * modules/gen-uni-tables: New file.
47148         * modules/unictype/gen-ctype: Remove file.
47149         * modules/unilbrk/gen-lbrk: Remove file.
47150
47151 2009-02-07  Bruno Haible  <bruno@clisp.org>
47152
47153         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47154
47155         New module 'unistr/u32-strcoll'.
47156         * modules/unistr/u32-strcoll: New file.
47157         * lib/unistr/u32-strcoll.c: New file.
47158
47159         New module 'unistr/u16-strcoll'.
47160         * modules/unistr/u16-strcoll: New file.
47161         * lib/unistr/u16-strcoll.c: New file.
47162
47163         New module 'unistr/u8-strcoll'.
47164         * modules/unistr/u8-strcoll: New file.
47165         * lib/unistr/u8-strcoll.c: New file.
47166         * lib/unistr/u-strcoll.h: New file.
47167
47168 2009-02-07  Bruno Haible  <bruno@clisp.org>
47169
47170         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47171         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47172         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47173         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47174         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47175         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47176
47177 2009-02-07  Bruno Haible  <bruno@clisp.org>
47178
47179         Make 64-bit clean.
47180         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47181         output_combclass, output_bidi_category, output_decimal_digit,
47182         output_digit, output_numeric, output_mirror, output_scripts,
47183         output_ident_category): Use proper width specifier in format strings.
47184
47185 2009-02-07  Bruno Haible  <bruno@clisp.org>
47186
47187         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47188         failure behaviour.
47189
47190 2009-02-07  Jim Meyering  <meyering@redhat.com>
47191
47192         regex: avoid compilation failure with upcoming gcc-4.4
47193         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47194         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47195         "... error: integer overflow in preprocessor expression".
47196
47197 2009-02-05  Ben Pfaff  <blp@gnu.org>
47198
47199         Fix link errors on Windows when close module is used.
47200         * modules/close: Add $(LIB_CLOSE) to Link section.
47201         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47202         $(LIB_CLOSE) on Windows.
47203
47204 2009-02-05  Jim Meyering  <meyering@redhat.com>
47205
47206         still avoid unused-parameter warnings, but do it cleanly
47207         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47208         (get_fs_usage): Cast to void instead.
47209         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47210         (dev_from_mount_options, read_file_system_list): Cast to void.
47211         Prompted by Bruno Haible.
47212
47213 2009-02-04  Jim Meyering  <meyering@redhat.com>
47214
47215         fsusage.c: correct copyright year
47216         * lib/fsusage.c: Reflect year in which the change is pushed into
47217
47218         avoid misc. warnings
47219         * lib/fsusage.c (UNUSED_PARAM): Define.
47220         (get_fs_usage): Mark parameter "disk" as unused.
47221         * lib/getugroups.c (getgrent): Use "void" in prototype.
47222         * lib/mountlist.c: Mark unused parameters.
47223         (read_file_system_list): Declare a local with "const".
47224         * lib/nanosleep.c (getnow): Declare static.
47225         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47226
47227         dirfd: set errno upon failure
47228         * lib/dirfd.c: Include <errno.h>.
47229         Set errno to ENOTSUP when returning -1.
47230         * modules/dirfd (Depends-on): Add errno.
47231         Suggested by John Kodis <kodis@comcast.net>.
47232
47233 2009-02-01  Bruno Haible  <bruno@clisp.org>
47234
47235         Don't assume sizeof (long) >= sizeof (void *).
47236         * lib/memcmp.c: Include stdint.h.
47237         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47238         srcp2 to 'const byte *'.
47239         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47240         types to uintptr_t.
47241         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47242         * modules/memcmp (Depends-on): Add stdint.
47243         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47244
47245 2009-01-30  Eric Blake  <ebb9@byu.net>
47246
47247         fix more require-before-expand issues
47248         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47249         expand, AC_PROG_AWK.
47250         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47251
47252 2009-01-28  Eric Blake  <ebb9@byu.net>
47253
47254         version-etc: use consistent URL formatting
47255         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47256         Improve formatting.  Use fputs for string without %.
47257
47258 2009-01-28  Jim Meyering  <meyering@redhat.com>
47259
47260         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47261         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47262         "underquoted definition of NAME" from autoconf-2.59.
47263
47264 2009-01-28  Bruno Haible  <bruno@clisp.org>
47265
47266         * doc/gnulib.texi: Add "Obsolete modules" to index.
47267
47268 2009-01-28  Jim Meyering  <meyering@redhat.com>
47269
47270         useless-if-before-free: recognize more variants
47271         * build-aux/useless-if-before-free: Also recognize e.g.,
47272         if (NULL != p) free (p);
47273
47274 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47275
47276         test-getaddrinfo: skip (don't fail) this test when there's no network
47277         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47278         on the presumption that it means you lack network access.
47279
47280 2009-01-26  Jim Meyering  <meyering@redhat.com>
47281
47282         fflush: avoid warnings on modern systems
47283         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47284         pos and result, into scopes where they're used.
47285
47286 2009-01-26  Eric Blake  <ebb9@byu.net>
47287
47288         Silence warning reintroduced by recent extensions patch.
47289         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47290         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47291         autoconf.
47292
47293         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47294         * m4/00gnulib.m4: New file.
47295         * gnulib-tool (func_get_filelist): Always use it.
47296         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47297         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47298
47299 2009-01-25  Bruno Haible  <bruno@clisp.org>
47300
47301         Make test-quotearg work on MacOS X and AIX.
47302         * tests/test-quotearg.sh: New file.
47303         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47304         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47305         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47306         include <libintl.h>.
47307         (fake_locale): Remove variable.
47308         (gettext, dgettext, dcgettext): Remove functions.
47309         (main): Instead of setting a fake locale, set a real locale. Call
47310         textdomain and bindtextdomain.
47311         * modules/quotearg-tests (Files): Add the new files.
47312         (Depends-on): Add gettext, setenv, unsetenv.
47313         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47314         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47315         Augment TESTS_ENVIRONMENT.
47316
47317 2009-01-25  Bruno Haible  <bruno@clisp.org>
47318
47319         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47320         fr_FR.ISO8859-1 locale on MacOS X.
47321         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47322         ja_JP.eucJP locale on MacOS X.
47323         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47324         zh_CN.GB18030 locale on MacOS X.
47325
47326 2009-01-25  Bruno Haible  <bruno@clisp.org>
47327
47328         Avoid link errors on MacOS X 10.3.
47329         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47330         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47331
47332 2009-01-25  Bruno Haible  <bruno@clisp.org>
47333
47334         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47335         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47336         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47337         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47338         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47339         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47340         posix_spawnattr_init, posix_spawnattr_setsigmask,
47341         posix_spawnattr_setflags, posix_spawnattr_destroy.
47342
47343         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47344         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47345         * modules/execute (Files): Remove m4/posix_spawn.m4.
47346         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47347         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47348         posix_spawnattr_init, posix_spawnattr_setsigmask,
47349         posix_spawnattr_setflags, posix_spawnattr_destroy.
47350
47351 2009-01-25  Bruno Haible  <bruno@clisp.org>
47352
47353         * lib/glthread/threadlib.c: Include <stdlib.h>.
47354
47355 2009-01-25  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/glthread/threadlib.c (dummy): New declaration.
47358
47359 2009-01-25  Bruno Haible  <bruno@clisp.org>
47360
47361         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47362         multibyte characters also for the GB18030 encoding. Don't crash when
47363         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47364
47365 2009-01-25  Bruno Haible  <bruno@clisp.org>
47366
47367         Avoid redefining 'struct random_data' on OSF/1 5.1.
47368         * lib/stdlib.in.h: Include <random.h> if it exists.
47369         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47370         HAVE_RANDOM_H. Include <random.h> when testing whether
47371         'struct random_data' exists.
47372         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47373
47374 2009-01-25  Bruno Haible  <bruno@clisp.org>
47375
47376         Don't install charset.alias on MacOS X >= 10.3.
47377         * lib/localcharset.c (DARWIN7): New macro.
47378         (get_charset_aliases): Hardcode the result for Darwin7.
47379         * modules/localcharset (install-exec-local): Don't install
47380         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47381
47382 2009-01-25  Bruno Haible  <bruno@clisp.org>
47383
47384         Don't install charset.alias on mingw and Cygwin.
47385         * modules/localcharset (install-exec-local): Don't install
47386         charset.alias on mingw and Cygwin, if the file does not yet exist.
47387         The result for these platforms is hardcoded in localcharset.c.
47388
47389 2009-01-25  Bruno Haible  <bruno@clisp.org>
47390
47391         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47392         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47393         before requiring AC_USE_SYSTEM_EXTENSIONS.
47394
47395 2009-01-25  Jim Meyering  <meyering@redhat.com>
47396
47397         c-strtod: avoid warnings
47398         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47399         "assignment discards qualifiers from pointer target type" warnings.
47400
47401 2009-01-24  Bruno Haible  <bruno@clisp.org>
47402
47403         Add support for non-UTF-8 locales on MacOS X.
47404         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47405         canonical encodings. For Darwin 7 and newer, don't map traditional
47406         encodings to UTF-8.
47407         Reported by Vincent Lefevre <vincent@vinc17.org>
47408         at <http://savannah.gnu.org/bugs/?25235>.
47409
47410 2009-01-24  Bruno Haible  <bruno@clisp.org>
47411
47412         * doc/gnulib.texi (Obsolete modules): New section.
47413         Reported by Mike Frysinger <vapier@gentoo.org>.
47414
47415 2009-01-24  Bruno Haible  <bruno@clisp.org>
47416
47417         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47418         (%.dvi): New rule.
47419
47420 2009-01-24  Bruno Haible  <bruno@clisp.org>
47421
47422         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47423         Reported by Eric Blake.
47424
47425 2009-01-24  Bruno Haible  <bruno@clisp.org>
47426
47427         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47428         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47429         Reported by Gary V. Vaughan <gary@gnu.org>.
47430
47431 2009-01-24  Bruno Haible  <bruno@clisp.org>
47432
47433         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47434
47435 2009-01-23  Bruno Haible  <bruno@clisp.org>
47436
47437         Make c-strtod, c-strtold usable in libraries.
47438         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47439         (C_STRTOD): Call strdup instead of xstrdup.
47440         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47441         * modules/c-strtold (Depends-on): Likewise.
47442         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47443         * NEWS: Mention the change.
47444         Reported by Michael Gold <mgold@ncf.ca>.
47445
47446 2009-01-23  Jim Meyering  <meyering@redhat.com>
47447
47448         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47449         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47450         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47451
47452 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47453
47454         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47455         GNU CoreUtils.
47456         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47457         * modules/version-etc (Description): Update.
47458
47459 2009-01-22  Bruno Haible  <bruno@clisp.org>
47460
47461         Cache the C locale object.
47462         * lib/c-strtod.c (c_locale_cache): New variable.
47463         (c_locale): New function.
47464         (C_STRTOD): Use it, and don't call freelocale.
47465         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47466         Suggested by Paolo Bonzini.
47467
47468 2009-01-21  Bruno Haible  <bruno@clisp.org>
47469
47470         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47471         conditions other than overflow.
47472
47473 2009-01-21  Bruno Haible  <bruno@clisp.org>
47474
47475         * lib/c-strtod.c: Include errno.h.
47476         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47477         value from STRTOD_L and STRTOD.
47478
47479 2009-01-21  Bruno Haible  <bruno@clisp.org>
47480         and Jim Meyering  <meyering@redhat.com>
47481
47482         nanosleep: skip configure test (fail it) for apple universal builds
47483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47484         universal builds, assume that nanosleep does not work.
47485         * modules/nanosleep (Depends-on): Add multiarch.
47486
47487         mktime: skip configure test (fail it) for apple universal builds
47488         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47489         universal builds, assume that mktime does not work.
47490         * modules/mktime (Depends-on): Add multiarch.
47491
47492 2009-01-21  Eric Blake  <ebb9@byu.net>
47493
47494         multiarch: avoid expand-before-require warning
47495         * modules/multiarch (configure.ac): Require, rather than expand,
47496         gl_MULTIARCH.
47497         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47498         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47499         enforce that all clients require it.  Partial reversion of
47500         2008-12-29 patch.
47501
47502         error: avoid expand-before-require warning
47503         * modules/errno (configure.ac): Require, rather than expand,
47504         gl_HEADER_ERRNO_H.
47505         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47506         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47507         enforce that all clients require it.
47508
47509         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47510         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47511         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47512         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47513
47514 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47515
47516         Revert:
47517         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47518
47519         regex: do not depend on obsolete modules.
47520         * modules/regex: Remove memcmp and memmove.
47521
47522 2009-01-20  Bruno Haible  <bruno@clisp.org>
47523
47524         Make the 'link' module link on Windows NT 4.
47525         * lib/link.c (_WIN32_WINNT): Don't define.
47526         (CreateHardLinkFuncType): New type.
47527         (CreateHardLinkFunc, initialized): New variables.
47528         (initialize): New function.
47529         (link): Invoke CreateHardLink indirectly through the function pointer.
47530
47531 2009-01-20  Bruno Haible  <bruno@clisp.org>
47532
47533         Fix compilation failure on mingw.
47534         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47535
47536 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47537
47538         * doc/c-strtod.texi: Mention a couple of restrictions.
47539
47540 2009-01-20  Jim Meyering  <meyering@redhat.com>
47541
47542         gettimeofday: move more declarations out of functions
47543         * lib/gettimeofday.c: Move extern declarations of tzset and
47544         gmtime out of containing functions.  Prompted by Bruno Haible.
47545
47546 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47547
47548         regex: do not depend on obsolete modules.
47549         * modules/regex: Remove memcmp and memmove.
47550
47551 2009-01-19  Bruno Haible  <bruno@clisp.org>
47552
47553         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47554         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47555         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47556         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47557         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47558
47559 2009-01-19  Bruno Haible  <bruno@clisp.org>
47560
47561         * tests/test-link.c: Include <errno.h>.
47562         (main): Exit with code 77 when a hard link cannot be created due to
47563         the file system.
47564         * tests/test-link.sh: Skip test when a hard link cannot be created due
47565         to the file system.
47566         Suggested by Eric Blake.
47567
47568 2009-01-19  Martin Lambers  <marlam@marlam.de>
47569
47570         * modules/link-tests: New file.
47571         * tests/test-link.sh: New file.
47572         * tests/test-link.c: New file.
47573
47574 2009-01-19  Eric Blake  <ebb9@byu.net>
47575
47576         doc: mention another function added in cygwin 1.7.0
47577         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47578         Another new function in cygwin 1.7.
47579
47580 2009-01-19  Bruno Haible  <bruno@clisp.org>
47581
47582         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47583         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47584         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47585         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47586         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47587         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47588         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47589         * m4/md4.m4 (gl_MD4): Likewise.
47590         * m4/md5.m4 (gl_MD5): Likewise.
47591         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47592         * m4/sha1.m4 (gl_SHA1): Likewise.
47593         * m4/sha256.m4 (gl_SHA256): Likewise.
47594         * m4/sha512.m4 (gl_SHA512): Likewise.
47595
47596 2009-01-19  Bruno Haible  <bruno@clisp.org>
47597
47598         * modules/uniname/uniname-tests (Depends-on): Add progname.
47599         * tests/uniname/test-uninames.c: Include progname.h.
47600         (main): Call set_program_name.
47601
47602         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47603         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47604         (main): Call set_program_name.
47605
47606         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47607         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47608         (main): Call set_program_name.
47609
47610         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47611         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47612         (main): Call set_program_name.
47613
47614         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47615         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47616         (main): Call set_program_name.
47617
47618         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47619         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47620         (main): Call set_program_name.
47621
47622         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47623         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47624         (main): Call set_program_name.
47625
47626         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47627         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47628         (main): Call set_program_name.
47629
47630         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47631         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47632         (main): Call set_program_name.
47633
47634 2009-01-19  Eric Blake  <ebb9@byu.net>
47635
47636         test-unistd: test previous patch
47637         * tests/test-unistd.c: Test *_FILENO macros.
47638
47639         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47640         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47641         Guarantee a definition.
47642         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47643         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47644         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47645         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47646         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47647         Likewise.
47648         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47649         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47650         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47651         Likewise.
47652         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47653         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47654         (STDERR_FILENO): Likewise.
47655         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47656         (STDERR_FILENO): Likewise.
47657         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47658         (STDERR_FILENO): Likewise.
47659         Reported by Elbert Pol.
47660
47661 2009-01-19  Eric Blake  <ebb9@byu.net>
47662
47663         doc: mention more functions added in cygwin 1.7.0
47664         * doc/posix-functions/abort.texi (abort): Update wording related
47665         to cygwin.
47666         * doc/posix-functions/daylight.texi (daylight): Likewise.
47667         * doc/posix-functions/optarg.texi (optarg): Likewise.
47668         * doc/posix-functions/optarg.texi (opterr): Likewise.
47669         * doc/posix-functions/optarg.texi (optind): Likewise.
47670         * doc/posix-functions/optarg.texi (optopt): Likewise.
47671         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47672         worked in 1.5.x, and was withdrawn in 1.7.
47673         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47674         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47675         cygwin versions.
47676         * doc/posix-functions/perror.texi (perror): Likewise.
47677         * doc/posix-functions/printf.texi (printf): Likewise.
47678         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47679         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47680         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47681         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47682         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47683         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47684         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47685         Likewise.
47686         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47687         Likewise.
47688         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47689         this function.
47690         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47691         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47692         Likewise.
47693         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47694         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47695         * doc/posix-functions/confstr.texi (confstr): Likewise.
47696         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47697         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47698         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47699         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47700         * doc/posix-functions/fputws.texi (fputws): Likewise.
47701         * doc/posix-functions/fwide.texi (fwide): Likewise.
47702         * doc/posix-functions/getwc.texi (getwc): Likewise.
47703         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47704         * doc/posix-functions/putwc.texi (putwc): Likewise.
47705         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47706         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47707         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47708         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47709         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47710         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47711         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47712         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47713         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47714         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47715         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47716
47717 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47718
47719         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47720         * lib/ioctl.c: Include <sys/ioctl.h>.
47721
47722 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47723
47724         * modules/getdate-tests (Depends-on): Add progname.
47725         * tests/test-getdate.c: Use progname module, to avoid link errors
47726         on non-glibc systems.
47727
47728 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47729
47730         * modules/filenamecat-tests (Depends-on): Add progname.
47731         * modules/fstrcmp-tests (Depends-on): Likewise.
47732
47733         * tests/test-filenamecat.c: Use progname module, to avoid link
47734         errors on non-glibc systems.
47735         * tests/test-fstrcmp.c: Likewise.
47736
47737 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47738
47739         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47740         * lib/gettimeofday.c: Move extern declaration out of function.
47741
47742 2009-01-18  Bruno Haible  <bruno@clisp.org>
47743
47744         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47745         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47746         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47747
47748 2009-01-18  Bruno Haible  <bruno@clisp.org>
47749
47750         * lib/strftime.c (MEMPCPY): Remove unused macro.
47751         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47752
47753 2009-01-18  Martin Lambers  <marlam@marlam.de>
47754
47755         New module 'link'.
47756         * lib/unistd.in.h (link): New declaration.
47757         * lib/link.c: New file.
47758         * m4/link.m4: New file.
47759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47760         HAVE_LINK.
47761         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47762         * modules/link: New file.
47763         * doc/posix-functions/link.texi: Mention the new module.
47764
47765 2009-01-18  Bruno Haible  <bruno@clisp.org>
47766
47767         * tests/test-avltree_list.c (main): Call set_program_name.
47768         * tests/test-avltree_oset.c (main): Likewise.
47769         * tests/test-obstack-printf.c: Include progname.h.
47770         (main): Call set_program_name.
47771         * tests/test-quotearg.c: Include progname.h.
47772         (main): Call set_program_name.
47773         * tests/test-xmemdup0.c: Include progname.h.
47774         (main): Call set_program_name.
47775
47776 2009-01-18  Bruno Haible  <bruno@clisp.org>
47777
47778         New module 'alphasort'.
47779         * lib/dirent.in.h (alphasort): New declaration.
47780         * lib/alphasort.c: New file, from glibc with modifications.
47781         * m4/alphasort.m4: New file.
47782         * modules/alphasort: New file.
47783         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47784         HAVE_ALPHASORT.
47785         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47786         HAVE_ALPHASORT.
47787         * doc/posix-functions/alphasort.texi: Mention the new module and the
47788         portability problems.
47789
47790 2009-01-18  Bruno Haible  <bruno@clisp.org>
47791
47792         New module 'scandir'.
47793         * lib/dirent.in.h (scandir): New declaration.
47794         * lib/scandir.c: New file, from glibc with modifications.
47795         * m4/scandir.m4: New file.
47796         * modules/scandir: New file.
47797         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47798         HAVE_SCANDIR.
47799         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47800         HAVE_SCANDIR.
47801         * doc/posix-functions/scandir.texi: Mention the new module and the
47802         portability problems.
47803
47804 2009-01-17  Bruno Haible  <bruno@clisp.org>
47805
47806         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47807         Update documentation.
47808         (func_remove_suffix): Escape all dots in the suffix. Update
47809         documentation.
47810         (func_filter_filelist): Update documentation.
47811         Reported by Ralf Wildenhues.
47812
47813 2009-01-17  Bruno Haible  <bruno@clisp.org>
47814
47815         * modules/dprintf-posix-tests: New file.
47816         * tests/test-dprintf-posix.sh: New file.
47817         * tests/test-dprintf-posix.c: New file.
47818
47819         New modules 'dprintf', 'dprintf-posix'.
47820         * lib/stdio.in.h (dprintf): New declaration.
47821         * lib/dprintf.c: New file.
47822         * m4/dprintf.m4: New file.
47823         * m4/dprintf-posix.m4: New file.
47824         * modules/dprintf: New file.
47825         * modules/dprintf-posix: New file.
47826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47827         HAVE_DPRINTF, REPLACE_DPRINTF.
47828         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47829         HAVE_DPRINTF, REPLACE_DPRINTF.
47830         * doc/posix-functions/dprintf.texi: Mention the new modules.
47831
47832 2009-01-17  Bruno Haible  <bruno@clisp.org>
47833
47834         * modules/vdprintf-posix-tests: New file.
47835         * tests/test-vdprintf-posix.sh: New file.
47836         * tests/test-vdprintf-posix.c: New file.
47837
47838         New modules 'vdprintf', 'vdprintf-posix'.
47839         * lib/stdio.in.h (vdprintf): New declaration.
47840         * lib/vdprintf.c: New file.
47841         * m4/vdprintf.m4: New file.
47842         * m4/vdprintf-posix.m4: New file.
47843         * modules/vdprintf: New file.
47844         * modules/vdprintf-posix: New file.
47845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47846         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47847         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47848         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47849         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47850
47851 2009-01-17  Bruno Haible  <bruno@clisp.org>
47852
47853         Fix replacement of fopen on mingw.
47854         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47855         mingw.
47856
47857 2009-01-17  Bruno Haible  <bruno@clisp.org>
47858
47859         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47860         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47861
47862 2009-01-17  Bruno Haible  <bruno@clisp.org>
47863
47864         Avoid test-fflush2.sh failure on mingw.
47865         * tests/test-fflush2.c: Include binary-io.h.
47866         (main): Put standard input into binary mode.
47867         * modules/fflush-tests (Depends-on): Add binary-io.
47868
47869 2009-01-17  Bruno Haible  <bruno@clisp.org>
47870
47871         * lib/wchar.in.h: In another particular situation, include only the
47872         system's <wchar.h> file.
47873         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47874         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47875         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47876
47877 2009-01-17  Bruno Haible  <bruno@clisp.org>
47878
47879         Support for stripping executables in --enable-relocatable.
47880         * build-aux/install-reloc: Expect one more argument, or an environment
47881         variable RELOC_STRIP_PROG. If set, strip the destination program and
47882         its wrapper.
47883         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47884         RELOC_STRIP_PROG.
47885         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47886         to set RELOCATABLE_STRIP.
47887         * NEWS: Mention the new Makefile requirement.
47888
47889 2009-01-17  Bruno Haible  <bruno@clisp.org>
47890
47891         * build-aux/install-reloc: Remove debugging information left over by
47892         C compiler on MacOS X.
47893
47894 2009-01-17  Bruno Haible  <bruno@clisp.org>
47895
47896         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47897         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47898         _NSGetExecutablePath.
47899
47900 2009-01-16  Jim Meyering  <meyering@redhat.com>
47901
47902         strerror: avoid warnings about discarding "const"
47903         * lib/strerror.c (rpl_strerror): Instead of returning a const
47904         string from each and every "case", use a variable, and add a single
47905         cast after the switch.
47906
47907 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47908
47909         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47910
47911 2009-01-16  Bruno Haible  <bruno@clisp.org>
47912
47913         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47914         array initializer syntax that also works in C++ mode.
47915         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47916
47917 2009-01-16  Jim Meyering  <meyering@redhat.com>
47918
47919         poll: suppress a warning
47920         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47921         to ignore "...unsigned expression < 0 is always false" warnings.
47922
47923 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47924
47925         poll: remove declarations of unused variables
47926         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47927         sockbuf and optlen.
47928
47929 2009-01-15  Bruno Haible  <bruno@clisp.org>
47930
47931         Make fflush-after-ungetc POSIX compliant on BSD systems.
47932         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47933         (clear_ungetc_buffer): Implement also for other systems.
47934         (rpl_fflush): On glibc systems, invoke
47935         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47936         clear_ungetc_buffer after fetching the stream's position, not before.
47937
47938 2009-01-15  Bruno Haible  <bruno@clisp.org>
47939
47940         Make fflush-after-ungetc POSIX compliant on glibc systems.
47941         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47942         after ungetc.
47943         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47944         (rpl_fflush): On glibc systems, simply call the system's fflush
47945         function after clearing the ungetc buffer.
47946         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47947         Instead, lseek only to the end of file, then use the system's fseeko
47948         for the rest. On glibc systems, reset the EOF indicator bit.
47949
47950 2009-01-15  Jim Meyering  <meyering@redhat.com>
47951
47952         openmp.m4: revert quote-adding change, for portability to older autoconf
47953         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47954         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47955         Simon Josefsson noticed the problem when using autoconf-2.61.
47956
47957 2009-01-15  Bruno Haible  <bruno@clisp.org>
47958
47959         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47960         * tests/test-fflush2.c (ASSERT): Always fail.
47961         (main): Add two tests for fflush() after ungetc(), taking into account
47962         the Austin Group's clarification.
47963         Suggested by Eric Blake.
47964
47965 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47966
47967         mktime.m4: remove K&R-style function prototypes
47968         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47969         for the Sun C++ compiler.
47970
47971 2009-01-14  Bruno Haible  <bruno@clisp.org>
47972
47973         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47974         while including <wchar.h>.
47975         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47976         the system's <wchar.h> file.
47977         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47978
47979 2009-01-14  Bruno Haible  <bruno@clisp.org>
47980
47981         * m4/csharp.m4: Don't mention gettext on the serial number line.
47982         * m4/csharpexec.m4: Likewise.
47983         * m4/eaccess.m4: Likewise.
47984         * m4/javaexec.m4: Likewise.
47985         * m4/sig_atomic_t.m4: Likewise.
47986         * m4/tmpdir.m4: Likewise.
47987         * m4/intldir.m4: Bump gettext version.
47988         * m4/lib-ld.m4: Likewise.
47989
47990 2009-01-14  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/progname.c (set_program_name): Add more comments.
47993         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47994
47995 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47996
47997         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47998         were sys/stat.h does not define it.
47999
48000 2009-01-14  Jim Meyering  <meyering@redhat.com>
48001
48002         many *.m4 files: improve m4 quoting
48003         99% of this change was performed by running the following commands:
48004         git ls-files | grep '\.m4$' | xargs perl -pi \
48005           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48006           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48007           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48008           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48009         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48010         The remainder were to add Copyright dates, increment serial numbers,
48011         undo some changes in comments, exclude m4/intl.m4, and add quotes
48012         around the "1" in ",1" where the unusual spacing prohibited the
48013         above regexps from doing the job.  For more details, see
48014         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48015         * m4/acl.m4: Modified.
48016         * m4/afs.m4: Likewise.
48017         * m4/alloca.m4: Likewise.
48018         * m4/argp.m4: Likewise.
48019         * m4/argz.m4: Likewise.
48020         * m4/atexit.m4: Likewise.
48021         * m4/bison-i18n.m4: Likewise.
48022         * m4/bison.m4: Likewise.
48023         * m4/byteswap.m4: Likewise.
48024         * m4/c-stack.m4: Likewise.
48025         * m4/c-strtod.m4: Likewise.
48026         * m4/calloc.m4: Likewise.
48027         * m4/canonicalize-lgpl.m4: Likewise.
48028         * m4/chown.m4: Likewise.
48029         * m4/clock_time.m4: Likewise.
48030         * m4/codeset.m4: Likewise.
48031         * m4/copy-file.m4: Likewise.
48032         * m4/csharp.m4: Likewise.
48033         * m4/csharpcomp.m4: Likewise.
48034         * m4/csharpexec.m4: Likewise.
48035         * m4/d-ino.m4: Likewise.
48036         * m4/d-type.m4: Likewise.
48037         * m4/dirfd.m4: Likewise.
48038         * m4/double-slash-root.m4: Likewise.
48039         * m4/eaccess.m4: Likewise.
48040         * m4/eealloc.m4: Likewise.
48041         * m4/environ.m4: Likewise.
48042         * m4/errno_h.m4: Likewise.
48043         * m4/euidaccess.m4: Likewise.
48044         * m4/execute.m4: Likewise.
48045         * m4/fatal-signal.m4: Likewise.
48046         * m4/fchdir.m4: Likewise.
48047         * m4/fcntl_h.m4: Likewise.
48048         * m4/fileblocks.m4: Likewise.
48049         * m4/filenamecat.m4: Likewise.
48050         * m4/findprog.m4: Likewise.
48051         * m4/flexmember.m4: Likewise.
48052         * m4/fnmatch.m4: Likewise.
48053         * m4/fopen.m4: Likewise.
48054         * m4/fpending.m4: Likewise.
48055         * m4/fprintf-posix.m4: Likewise.
48056         * m4/free.m4: Likewise.
48057         * m4/frexp.m4: Likewise.
48058         * m4/frexpl.m4: Likewise.
48059         * m4/fsusage.m4: Likewise.
48060         * m4/ftruncate.m4: Likewise.
48061         * m4/gc-camellia.m4: Likewise.
48062         * m4/gc-random.m4: Likewise.
48063         * m4/gc.m4: Likewise.
48064         * m4/getaddrinfo.m4: Likewise.
48065         * m4/getcwd-abort-bug.m4: Likewise.
48066         * m4/getcwd-path-max.m4: Likewise.
48067         * m4/getdate.m4: Likewise.
48068         * m4/getdomainname.m4: Likewise.
48069         * m4/getgroups.m4: Likewise.
48070         * m4/gethostname.m4: Likewise.
48071         * m4/gethrxtime.m4: Likewise.
48072         * m4/getline.m4: Likewise.
48073         * m4/getloadavg.m4: Likewise.
48074         * m4/getndelim2.m4: Likewise.
48075         * m4/getpass.m4: Likewise.
48076         * m4/gettext.m4: Likewise.
48077         * m4/gettime.m4: Likewise.
48078         * m4/gettimeofday.m4: Likewise.
48079         * m4/gnulib-common.m4: Likewise.
48080         * m4/group-member.m4: Likewise.
48081         * m4/host-os.m4: Likewise.
48082         * m4/iconv.m4: Likewise.
48083         * m4/iconv_open.m4: Likewise.
48084         * m4/inet_ntop.m4: Likewise.
48085         * m4/inet_pton.m4: Likewise.
48086         * m4/inline.m4: Likewise.
48087         * m4/intldir.m4: Likewise.
48088         * m4/intlmacosx.m4: Likewise.
48089         * m4/intmax.m4: Likewise.
48090         * m4/intmax_t.m4: Likewise.
48091         * m4/inttypes.m4: Likewise.
48092         * m4/inttypes_h.m4: Likewise.
48093         * m4/inttypes-pri.m4: Likewise.
48094         * m4/isapipe.m4: Likewise.
48095         * m4/isnand.m4: Likewise.
48096         * m4/isnanf.m4: Likewise.
48097         * m4/isnanl.m4: Likewise.
48098         * m4/javacomp.m4: Likewise.
48099         * m4/javaexec.m4: Likewise.
48100         * m4/jm-winsz1.m4: Likewise.
48101         * m4/jm-winsz2.m4: Likewise.
48102         * m4/lchown.m4: Likewise.
48103         * m4/lcmessage.m4: Likewise.
48104         * m4/ldexpl.m4: Likewise.
48105         * m4/lib-ld.m4: Likewise.
48106         * m4/lib-link.m4: Likewise.
48107         * m4/libsigsegv.m4: Likewise.
48108         * m4/link-follow.m4: Likewise.
48109         * m4/localcharset.m4: Likewise.
48110         * m4/locale-fr.m4: Likewise.
48111         * m4/locale-ja.m4: Likewise.
48112         * m4/locale-tr.m4: Likewise.
48113         * m4/locale-zh.m4: Likewise.
48114         * m4/lock.m4: Likewise.
48115         * m4/longlong.m4: Likewise.
48116         * m4/ls-mntd-fs.m4: Likewise.
48117         * m4/lstat.m4: Likewise.
48118         * m4/malloc.m4: Likewise.
48119         * m4/mathl.m4: Likewise.
48120         * m4/mbrtowc.m4: Likewise.
48121         * m4/mbstate_t.m4: Likewise.
48122         * m4/mbswidth.m4: Likewise.
48123         * m4/memchr.m4: Likewise.
48124         * m4/memcmp.m4: Likewise.
48125         * m4/memcpy.m4: Likewise.
48126         * m4/memmem.m4: Likewise.
48127         * m4/memmove.m4: Likewise.
48128         * m4/mempcpy.m4: Likewise.
48129         * m4/memrchr.m4: Likewise.
48130         * m4/memset.m4: Likewise.
48131         * m4/minmax.m4: Likewise.
48132         * m4/mkdir-slash.m4: Likewise.
48133         * m4/mkdtemp.m4: Likewise.
48134         * m4/mktime.m4: Likewise.
48135         * m4/mmap-anon.m4: Likewise.
48136         * m4/mountlist.m4: Likewise.
48137         * m4/nanosleep.m4: Likewise.
48138         * m4/nls.m4: Likewise.
48139         * m4/nocrash.m4: Likewise.
48140         * m4/open.m4: Likewise.
48141         * m4/openat.m4: Likewise.
48142         * m4/openmp.m4: Likewise.
48143         * m4/pathmax.m4: Likewise.
48144         * m4/perl.m4: Likewise.
48145         * m4/physmem.m4: Likewise.
48146         * m4/pipe.m4: Likewise.
48147         * m4/po.m4: Likewise.
48148         * m4/poll.m4: Likewise.
48149         * m4/posixtm.m4: Likewise.
48150         * m4/posixver.m4: Likewise.
48151         * m4/printf-frexp.m4: Likewise.
48152         * m4/printf-frexpl.m4: Likewise.
48153         * m4/printf-posix.m4: Likewise.
48154         * m4/printf-posix-rpl.m4: Likewise.
48155         * m4/printf.m4: Likewise.
48156         * m4/progtest.m4: Likewise.
48157         * m4/putenv.m4: Likewise.
48158         * m4/readline.m4: Likewise.
48159         * m4/readlink.m4: Likewise.
48160         * m4/readutmp.m4: Likewise.
48161         * m4/realloc.m4: Likewise.
48162         * m4/regex.m4: Likewise.
48163         * m4/relocatable.m4: Likewise.
48164         * m4/relocatable-lib.m4: Likewise.
48165         * m4/rename-dest-slash.m4: Likewise.
48166         * m4/rename.m4: Likewise.
48167         * m4/rmdir-errno.m4: Likewise.
48168         * m4/rmdir.m4: Likewise.
48169         * m4/roundf.m4: Likewise.
48170         * m4/roundl.m4: Likewise.
48171         * m4/rpmatch.m4: Likewise.
48172         * m4/save-cwd.m4: Likewise.
48173         * m4/selinux-selinux-h.m4: Likewise.
48174         * m4/setenv.m4: Likewise.
48175         * m4/settime.m4: Likewise.
48176         * m4/sig2str.m4: Likewise.
48177         * m4/sig_atomic_t.m4: Likewise.
48178         * m4/signalblocking.m4: Likewise.
48179         * m4/signbit.m4: Likewise.
48180         * m4/sigpipe.m4: Likewise.
48181         * m4/sockets.m4: Likewise.
48182         * m4/sockpfaf.m4: Likewise.
48183         * m4/st_dm_mode.m4: Likewise.
48184         * m4/stat-time.m4: Likewise.
48185         * m4/stdbool.m4: Likewise.
48186         * m4/stdint.m4: Likewise.
48187         * m4/stdint_h.m4: Likewise.
48188         * m4/stpcpy.m4: Likewise.
48189         * m4/stpncpy.m4: Likewise.
48190         * m4/strcase.m4: Likewise.
48191         * m4/strchrnul.m4: Likewise.
48192         * m4/strcspn.m4: Likewise.
48193         * m4/strdup.m4: Likewise.
48194         * m4/strftime.m4: Likewise.
48195         * m4/strndup.m4: Likewise.
48196         * m4/strnlen.m4: Likewise.
48197         * m4/strpbrk.m4: Likewise.
48198         * m4/strptime.m4: Likewise.
48199         * m4/strsep.m4: Likewise.
48200         * m4/strtod.m4: Likewise.
48201         * m4/strtoimax.m4: Likewise.
48202         * m4/strtok_r.m4: Likewise.
48203         * m4/strtol.m4: Likewise.
48204         * m4/strtoll.m4: Likewise.
48205         * m4/strtoul.m4: Likewise.
48206         * m4/strtoull.m4: Likewise.
48207         * m4/strtoumax.m4: Likewise.
48208         * m4/strverscmp.m4: Likewise.
48209         * m4/threadlib.m4: Likewise.
48210         * m4/timegm.m4: Likewise.
48211         * m4/tm_gmtoff.m4: Likewise.
48212         * m4/tmpdir.m4: Likewise.
48213         * m4/tmpfile.m4: Likewise.
48214         * m4/tzset.m4: Likewise.
48215         * m4/uintmax_t.m4: Likewise.
48216         * m4/unlinkdir.m4: Likewise.
48217         * m4/unlocked-io.m4: Likewise.
48218         * m4/uptime.m4: Likewise.
48219         * m4/userspec.m4: Likewise.
48220         * m4/utimbuf.m4: Likewise.
48221         * m4/utime.m4: Likewise.
48222         * m4/utimes-null.m4: Likewise.
48223         * m4/utimes.m4: Likewise.
48224         * m4/vararrays.m4: Likewise.
48225         * m4/vasnprintf.m4: Likewise.
48226         * m4/vfprintf-posix.m4: Likewise.
48227         * m4/vprintf-posix.m4: Likewise.
48228         * m4/wait-process.m4: Likewise.
48229         * m4/wchar_t.m4: Likewise.
48230         * m4/wint_t.m4: Likewise.
48231         * m4/write-any-file.m4: Likewise.
48232         * m4/yield.m4: Likewise.
48233
48234 2009-01-13  Bruno Haible  <bruno@clisp.org>
48235
48236         Avoid test-copy-file.sh failures when ACL support insufficient.
48237         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48238         TESTS_ENVIRONMENT.
48239         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48240         Reported by Jim Meyering.
48241
48242 2009-01-13  Bruno Haible  <bruno@clisp.org>
48243
48244         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48245         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48246         * modules/unistdio/u8-printf-parse (Files): Likewise.
48247         * modules/unistdio/u32-printf-parse (Files): Likewise.
48248         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48249
48250 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48251
48252         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48253         and m4/inttypes_h.m4 too.
48254
48255 2009-01-12  Eric Blake  <ebb9@byu.net>
48256
48257         tests: IRIX 6.2 cc can't compile -0.0 into .data
48258         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48259         rather than at compile-time.
48260         * tests/test-floorl.c (minus_zero): Likewise.
48261         * tests/test-frexpl.c (minus_zero): Likewise.
48262         * tests/test-isnan.c (minus_zerol): Likewise.
48263         * tests/test-isnanl.h (minus_zero): Likewise.
48264         * tests/test-ldexpl.c (minus_zero): Likewise.
48265         * tests/test-roundl.c (minus_zero): Likewise.
48266         * tests/test-signbit.c (minus_zerol): Likewise.
48267         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48268         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48269         * tests/test-truncl.c (minus_zero): Likewise.
48270         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48271         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48272         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48273
48274 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48275
48276         regex: fix glibc bug 9697
48277         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48278         handling.
48279
48280 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48281
48282         regex: fix glibc bug 697
48283         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48284         being NULL also if there are no backreferences.
48285
48286 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48287
48288         regex: merge glibc changes
48289         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48290         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48291         re_string_skip_chars, re_string_reconstruct): Likewise.
48292         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48293
48294 2009-01-07  Jim Meyering  <meyering@redhat.com>
48295
48296         poll: filter through cppi
48297         * lib/poll.c: Indent cpp directives to reflect nesting.
48298
48299 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48300
48301         poll: don't return uninitialized
48302         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48303
48304 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48305
48306         avoid compile failure on AIX 6.1
48307         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48308         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48309
48310 2009-01-04  Jim Meyering  <meyering@redhat.com>
48311
48312         remove duplicate inclusion of <stdio.h>
48313         * tests/test-fprintf-posix.c: Likewise.
48314         * tests/test-printf-posix.c: Likewise.
48315         * tests/test-snprintf-posix.c: Likewise.
48316         * tests/test-sprintf-posix.c: Likewise.
48317         * tests/test-vasprintf-posix.c: Likewise.
48318         * tests/test-vfprintf-posix.c: Likewise.
48319         * tests/test-vprintf-posix.c: Likewise.
48320         * tests/test-vsnprintf-posix.c: Likewise.
48321         * tests/test-vsprintf-posix.c: Likewise.
48322
48323 2009-01-03  Jim Meyering  <meyering@redhat.com>
48324
48325         gnulib-tool: fix sed-based filtering
48326         * gnulib-tool (func_filter_filelist): Remove extra backslash
48327         in sed_fff_filter definition.
48328
48329 2009-01-02  Jim Meyering  <meyering@redhat.com>
48330
48331         strftime: avoid compilation failure on Solaris 2.6
48332         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48333         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48334         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48335         be available.  Reported by Tom G. Christensen.  Details in
48336         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48337
48338 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48339             Bruno Haible  <bruno@clisp.org>
48340
48341         Speed up gnulib-tool by doing more string processing through shell
48342         built-ins.
48343         * gnulib-tool (fast_func_append): New variable.
48344         (func_remove_prefix, func_remove_suffix): New functions.
48345         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48346         (func_filter_filelist): New function.
48347         (func_get_dependencies): Use func_remove_suffix instead of sed.
48348         (func_get_automake_snippet): Use func_filter_filelist instead of a
48349         subshell and sed invocation.
48350
48351 2009-01-01  Bruno Haible  <bruno@clisp.org>
48352
48353         Fix a security bug.
48354         * gnulib-tool (func_import, import, update): Don't allow the characters
48355         '"', '$', '`', '\' in macro arguments that become part of commands that
48356         are evaluated.
48357
48358 2009-01-01  Bruno Haible  <bruno@clisp.org>
48359
48360         * gnulib-tool (func_reset_sigpipe): Add more comments.
48361
48362 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48363
48364         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48365         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48366         already know the answer.
48367
48368 2009-01-01  Jim Meyering  <meyering@redhat.com>
48369
48370         * lib/version-etc.c (version_etc_va): Update copyright year.
48371
48372 2008-12-30  Bruno Haible  <bruno@clisp.org>
48373
48374         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48375         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48376         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48377
48378 2008-12-29  Eric Blake  <ebb9@byu.net>
48379
48380         multiarch: avoid autoconf AC_REQUIRE bug
48381         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48382         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48383         2.63 and older.
48384         Reported by Bruno Haible, and analyzed in
48385         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48386
48387 2008-12-29  Bruno Haible  <bruno@clisp.org>
48388
48389         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48390         files in subdirectories correctly.
48391         Reported by Ralf Wildenhues.
48392
48393 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48394
48395         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48396         rather than 'join FILE -', for Solaris join.
48397
48398 2008-12-29  Bruno Haible  <bruno@clisp.org>
48399
48400         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48401         quoting.
48402         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48403         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48404         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48405         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48406         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48407         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48408         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48409         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48410         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48411         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48412         * m4/nls.m4 (AM_NLS): Likewise.
48413         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48414         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48415         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48416         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48417         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48418         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48419         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48420         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48421         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48422         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48423         * m4/xsize.m4 (gl_XSIZE): Likewise.
48424         Suggested by Jim Meyering.
48425
48426 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48427
48428         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48429         * lib/parse-duration.c: use a switch instead of cascading if's.
48430
48431 2008-12-29  Eric Blake  <ebb9@byu.net>
48432
48433         wchar.h: supply WEOF on Irix 5.3
48434         * lib/wchar.in.h (wint_t): Also supply WEOF.
48435         * lib/wctype.in.h (wint_t): Likewise.
48436         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48437         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48438         Reported by Tom G. Christensen.
48439
48440 2008-12-26  Bruno Haible  <bruno@clisp.org>
48441
48442         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48443         i486, i586, i686.
48444
48445 2008-12-26  Bruno Haible  <bruno@clisp.org>
48446
48447         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48448
48449 2008-12-26  Bruno Haible  <bruno@clisp.org>
48450
48451         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48452         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48453         not __STDC_CONSTANT_MACROS.
48454         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48455
48456 2008-12-25  Bruno Haible  <bruno@clisp.org>
48457
48458         Add support for universal builds to vasnprintf.
48459         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48460         universal builds, guess no.
48461         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48462         * modules/vasprintf-posix (Depends-on): Likewise.
48463         * modules/fprintf-posix (Depends-on): Likewise.
48464         * modules/vfprintf-posix (Depends-on): Likewise.
48465         * modules/snprintf-posix (Depends-on): Likewise.
48466         * modules/vsnprintf-posix (Depends-on): Likewise.
48467         * modules/sprintf-posix (Depends-on): Likewise.
48468         * modules/vsprintf-posix (Depends-on): Likewise.
48469         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48470         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48471         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48472         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48473         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48474         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48475         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48476
48477         Add support for universal builds to <inttypes.h>.
48478         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48479         _SCNu64_PREFIX): In Apple
48480         universal builds, define directly, using _LP64.
48481         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48482         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48483         * modules/inttypes (Depends-on): Add multiarch.
48484         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48485
48486         Add support for universal builds to <stdint.h>.
48487         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48488         universal builds, define directly, using _LP64.
48489         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48490         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48491         and size_t.
48492         * modules/stdint (Depends-on): Add multiarch.
48493         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48494
48495         New module 'multiarch'.
48496         * modules/multiarch: New file.
48497         * m4/multiarch.m4: New file.
48498
48499 2008-12-25  Bruno Haible  <bruno@clisp.org>
48500
48501         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48502
48503 2008-12-25  Bruno Haible  <bruno@clisp.org>
48504
48505         * modules/btowc (License): Relicense under LGPLv2+.
48506         * modules/mbsinit (License): Likewise.
48507         * modules/mbrtowc (License): Likewise.
48508         * modules/wcrtomb (License): Likewise.
48509         * modules/streq (License): Likewise.
48510         Reported by David Lutterkort <lutter@redhat.com>.
48511
48512 2008-12-23  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48515
48516 2008-12-23  Bruno Haible  <bruno@clisp.org>
48517
48518         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48520         GETADDRINFO_LIB, not in LIBS.
48521         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48522         * modules/canon-host (Link): Likewise.
48523         * NEWS: Mention the change.
48524         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48525         GETADDRINFO_LIB.
48526
48527 2008-12-22  Bruno Haible  <bruno@clisp.org>
48528
48529         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48530         * doc/posix-functions/iswalpha_l.texi: Likewise.
48531         * doc/posix-functions/iswblank_l.texi: Likewise.
48532         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48533         * doc/posix-functions/iswctype_l.texi: Likewise.
48534         * doc/posix-functions/iswdigit_l.texi: Likewise.
48535         * doc/posix-functions/iswgraph_l.texi: Likewise.
48536         * doc/posix-functions/iswlower_l.texi: Likewise.
48537         * doc/posix-functions/iswprint_l.texi: Likewise.
48538         * doc/posix-functions/iswpunct_l.texi: Likewise.
48539         * doc/posix-functions/iswspace_l.texi: Likewise.
48540         * doc/posix-functions/iswupper_l.texi: Likewise.
48541         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48542         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48543         * doc/posix-functions/open_wmemstream.texi: Likewise.
48544         * doc/posix-functions/swscanf.texi: Likewise.
48545         * doc/posix-functions/towctrans_l.texi: Likewise.
48546         * doc/posix-functions/towlower.texi: Likewise.
48547         * doc/posix-functions/towlower_l.texi: Likewise.
48548         * doc/posix-functions/towupper.texi: Likewise.
48549         * doc/posix-functions/towupper_l.texi: Likewise.
48550         * doc/posix-functions/vfwprintf.texi: Likewise.
48551         * doc/posix-functions/vfwscanf.texi: Likewise.
48552         * doc/posix-functions/vswscanf.texi: Likewise.
48553         * doc/posix-functions/vwprintf.texi: Likewise.
48554         * doc/posix-functions/vwscanf.texi: Likewise.
48555         * doc/posix-functions/wcpcpy.texi: Likewise.
48556         * doc/posix-functions/wcpncpy.texi: Likewise.
48557         * doc/posix-functions/wcscasecmp.texi: Likewise.
48558         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48559         * doc/posix-functions/wcscoll_l.texi: Likewise.
48560         * doc/posix-functions/wcsdup.texi: Likewise.
48561         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48562         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48563         * doc/posix-functions/wcsnlen.texi: Likewise.
48564         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48565         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48566         * doc/posix-functions/wctrans_l.texi: Likewise.
48567         * doc/posix-functions/wctype_l.texi: Likewise.
48568         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48569         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48570         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48571         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48572         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48573         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48574         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48575         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48576         * doc/glibc-functions/wcschrnul.texi: Likewise.
48577         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48578         * doc/glibc-functions/wcstod_l.texi: Likewise.
48579         * doc/glibc-functions/wcstof_l.texi: Likewise.
48580         * doc/glibc-functions/wcstol_l.texi: Likewise.
48581         * doc/glibc-functions/wcstold_l.texi: Likewise.
48582         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48583         * doc/glibc-functions/wcstoq.texi: Likewise.
48584         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48585         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48586         * doc/glibc-functions/wcstouq.texi: Likewise.
48587         * doc/glibc-functions/wmempcpy.texi: Likewise.
48588
48589 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48590             Eric Blake  <ebb9@byu.net>
48591             Paolo Bonzini  <bonzini@gnu.org>
48592             Bruno Haible  <bruno@clisp.org>
48593
48594         Make c-stack work on Haiku.
48595         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48596         (c_stack_action): Use SA_ONSTACK flag.
48597
48598 2008-12-22  Bruno Haible  <bruno@clisp.org>
48599
48600         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48601
48602 2008-12-22  Bruno Haible  <bruno@clisp.org>
48603
48604         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48605         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48606         being overridden.
48607         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48608         New macros.
48609         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48610         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48611         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48612         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48613
48614 2008-12-22  Bruno Haible  <bruno@clisp.org>
48615
48616         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48617         from test code.
48618
48619 2008-12-22  Eric Blake  <ebb9@byu.net>
48620
48621         Avoid gcc warnings on cygwin.
48622         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48623         Avoid unused variable.
48624         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48625         Likewise.
48626
48627 2008-12-22  Bruno Haible  <bruno@clisp.org>
48628
48629         Remove HAVE_MBRTOWC conditionals.
48630         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48631         (mbscasecmp): Assume mbrtowc function.
48632         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48633         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48634         * lib/mbschr.c: Include mbuiter.h unconditionally.
48635         (mbschr): Assume mbrtowc function.
48636         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48637         (mbscspn): Assume mbrtowc function.
48638         * lib/mbslen.c: Include mbuiter.h unconditionally.
48639         (mbslen): Assume mbrtowc function.
48640         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48641         (mbsncasecmp): Assume mbrtowc function.
48642         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48643         (mbsnlen): Assume mbrtowc function.
48644         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48645         (mbspbrk): Assume mbrtowc function.
48646         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48647         (mbspcasecmp): Assume mbrtowc function.
48648         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48649         (mbsrchr): Assume mbrtowc function.
48650         * lib/mbssep.c: Include mbuiter.h unconditionally.
48651         (mbssep): Assume mbrtowc function.
48652         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48653         (mbsspn): Assume mbrtowc function.
48654         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48655         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48656         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48657         (mbstok_r): Assume mbrtowc function.
48658         * lib/propername.c: Include mbuiter.h unconditionally.
48659         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48660         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48661         (trim2): Assume mbrtowc function.
48662         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48663         (mbsnwidth): Assume mbrtowc function.
48664         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48665         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48666         fallback definitions.
48667         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48668
48669 2008-12-22  Bruno Haible  <bruno@clisp.org>
48670
48671         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48672
48673 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48674
48675         * modules/regex: Request emulations for the mb*/wc* functions we need.
48676         * m4/regex.m4: Don't look for those functions here.
48677         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48678
48679 2008-12-22  Bruno Haible  <bruno@clisp.org>
48680
48681         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48682
48683 2008-12-21  Bruno Haible  <bruno@clisp.org>
48684
48685         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48686         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48687         (Include): Remove conditionalization.
48688         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48689         (Include): Remove conditionalization.
48690         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48691         (Include): Remove conditionalization.
48692         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48693         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48694         * NEWS: Mention the change.
48695         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48696         via Sergey Poznyakoff <gray@gnu.org.ua>.
48697
48698 2008-12-21  Bruno Haible  <bruno@clisp.org>
48699
48700         * MODULES.html.sh (Extended multibyte and wide character utilities
48701         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48702         wcrtomb, wcsrtombs.
48703         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48704         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48705         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48706         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48707
48708 2008-12-21  Bruno Haible  <bruno@clisp.org>
48709
48710         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48711
48712 2008-12-21  Bruno Haible  <bruno@clisp.org>
48713
48714         * modules/wcsnrtombs-tests: New file.
48715         * tests/test-wcsnrtombs1.sh: New file.
48716         * tests/test-wcsnrtombs2.sh: New file.
48717         * tests/test-wcsnrtombs3.sh: New file.
48718         * tests/test-wcsnrtombs4.sh: New file.
48719         * tests/test-wcsnrtombs.c: New file.
48720
48721         New module 'wcsnrtombs'.
48722         * lib/wchar.in.h (wcsnrtombs): New declaration.
48723         * lib/wcsnrtombs.c: New file.
48724         * lib/wcsrtombs-state.c: New file.
48725         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48726         (internal_state): Remove variable.
48727         * m4/wcsnrtombs.m4: New file.
48728         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48729         compilation units.
48730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48731         HAVE_WCSNRTOMBS.
48732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48733         HAVE_WCSNRTOMBS.
48734         * modules/wcsnrtombs: New file.
48735         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48736         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48737
48738 2008-12-21  Bruno Haible  <bruno@clisp.org>
48739
48740         * modules/wcsrtombs-tests: New file.
48741         * tests/test-wcsrtombs1.sh: New file.
48742         * tests/test-wcsrtombs2.sh: New file.
48743         * tests/test-wcsrtombs3.sh: New file.
48744         * tests/test-wcsrtombs4.sh: New file.
48745         * tests/test-wcsrtombs.c: New file.
48746
48747         New module 'wcsrtombs'.
48748         * lib/wchar.in.h (wcsrtombs): New declaration.
48749         * lib/wcsrtombs.c: New file.
48750         * m4/wcsrtombs.m4: New file.
48751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48752         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48753         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48754         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48755         * modules/wcsrtombs: New file.
48756         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48757         bugs.
48758
48759 2008-12-21  Bruno Haible  <bruno@clisp.org>
48760
48761         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48762         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48763         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48764         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48765         if not correct.
48766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48767         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48768         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48769         m4/locale-zh.m4, m4/codeset.m4.
48770         * doc/posix-functions/wcrtomb.texi: Document the bug.
48771
48772 2008-12-21  Bruno Haible  <bruno@clisp.org>
48773
48774         Work around a btowc() bug on IRIX 6.5.
48775         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48776         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48777         REPLACE_WTOBC if not.
48778         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48779         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48780         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48781
48782 2008-12-21  Bruno Haible  <bruno@clisp.org>
48783
48784         * modules/wcrtomb-tests: New file.
48785         * tests/test-wcrtomb.sh: New file.
48786         * tests/test-wcrtomb.c: New file.
48787
48788         New module 'wcrtomb'.
48789         * lib/wchar.in.h (wcrtomb): New declaration.
48790         * lib/wcrtomb.c: New file.
48791         * m4/wcrtomb.m4: New file.
48792         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48793         HAVE_WCRTOMB.
48794         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48795         HAVE_WCRTOMB.
48796         * modules/wcrtomb: New file.
48797         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48798
48799 2008-12-21  Bruno Haible  <bruno@clisp.org>
48800
48801         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48802         * modules/mbsrtowcs (Files): Likewise.
48803         * modules/wctob (Files): Likewise.
48804         * modules/c-strcase-tests (Files): Likewise.
48805         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48806         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48807         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48808         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48809         * modules/vasnprintf-posix-tests (Files): Likewise.
48810
48811 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48812
48813         gitlog-to-changelog: pass all command-line arguments to git-log
48814         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48815         it is sometimes convenient to filter the commits in various ways.
48816         gitlog-to-changelog only allows --since to specify a start date,
48817         but git-log itself supports many other filtering mechanisms.
48818         At the moment, I want to filter by branch name.  Rather than
48819         adding a --branch option to gitlog-to-changelog, it seems more
48820         flexible to simply pass all options directly to git-log and let
48821         git do the work.  Notice that this effectively makes --since a
48822         redundant option for gitlog-to-changelog, but removing it would
48823         require current usage to change since calls would then require
48824         an additional '--'.
48825
48826 2008-12-21  Bruno Haible  <bruno@clisp.org>
48827
48828         * modules/mbsnrtowcs-tests: New file.
48829         * tests/test-mbsnrtowcs1.sh: New file.
48830         * tests/test-mbsnrtowcs2.sh: New file.
48831         * tests/test-mbsnrtowcs3.sh: New file.
48832         * tests/test-mbsnrtowcs4.sh: New file.
48833         * tests/test-mbsnrtowcs.c: New file.
48834
48835         New module 'mbsnrtowcs'.
48836         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48837         * lib/mbsnrtowcs.c: New file.
48838         * lib/mbsrtowcs-state.c: New file.
48839         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48840         (internal_state): Remove variable.
48841         * m4/mbsnrtowcs.m4: New file.
48842         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48843         compilation units.
48844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48845         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48846         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48847         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48848         * modules/mbsnrtowcs: New file.
48849         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48850         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48851         portability problem.
48852
48853 2008-12-21  Bruno Haible  <bruno@clisp.org>
48854
48855         Work around mbsrtowcs bug.
48856         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48857         (gl_FUNC_MBSRTOWCS): Invoke it.
48858         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48859         m4/locale-zh.m4.
48860         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48861
48862 2008-12-21  Bruno Haible  <bruno@clisp.org>
48863
48864         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48865
48866 2008-12-21  Bruno Haible  <bruno@clisp.org>
48867
48868         Update doc for AIX.
48869         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48870         16-bit wchar_t type.
48871         * doc/posix-functions/btowc.texi: Likewise.
48872         * doc/posix-functions/fgetwc.texi: Likewise.
48873         * doc/posix-functions/fgetws.texi: Likewise.
48874         * doc/posix-functions/fputwc.texi: Likewise.
48875         * doc/posix-functions/fputws.texi: Likewise.
48876         * doc/posix-functions/fwide.texi: Likewise.
48877         * doc/posix-functions/fwprintf.texi: Likewise.
48878         * doc/posix-functions/fwscanf.texi: Likewise.
48879         * doc/posix-functions/getwchar.texi: Likewise.
48880         * doc/posix-functions/getwc.texi: Likewise.
48881         * doc/posix-functions/iswalnum.texi: Likewise.
48882         * doc/posix-functions/iswalpha.texi: Likewise.
48883         * doc/posix-functions/iswblank.texi: Likewise.
48884         * doc/posix-functions/iswcntrl.texi: Likewise.
48885         * doc/posix-functions/iswctype.texi: Likewise.
48886         * doc/posix-functions/iswdigit.texi: Likewise.
48887         * doc/posix-functions/iswgraph.texi: Likewise.
48888         * doc/posix-functions/iswlower.texi: Likewise.
48889         * doc/posix-functions/iswprint.texi: Likewise.
48890         * doc/posix-functions/iswpunct.texi: Likewise.
48891         * doc/posix-functions/iswspace.texi: Likewise.
48892         * doc/posix-functions/iswupper.texi: Likewise.
48893         * doc/posix-functions/iswxdigit.texi: Likewise.
48894         * doc/posix-functions/mbrtowc.texi: Likewise.
48895         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48896         * doc/posix-functions/mbstowcs.texi: Likewise.
48897         * doc/posix-functions/mbtowc.texi: Likewise.
48898         * doc/posix-functions/putwchar.texi: Likewise.
48899         * doc/posix-functions/putwc.texi: Likewise.
48900         * doc/posix-functions/swprintf.texi: Likewise.
48901         * doc/posix-functions/tolower.texi: Likewise.
48902         * doc/posix-functions/toupper.texi: Likewise.
48903         * doc/posix-functions/towctrans.texi: Likewise.
48904         * doc/posix-functions/ungetwc.texi: Likewise.
48905         * doc/posix-functions/vswprintf.texi: Likewise.
48906         * doc/posix-functions/wcrtomb.texi: Likewise.
48907         * doc/posix-functions/wcscat.texi: Likewise.
48908         * doc/posix-functions/wcschr.texi: Likewise.
48909         * doc/posix-functions/wcscmp.texi: Likewise.
48910         * doc/posix-functions/wcscoll.texi: Likewise.
48911         * doc/posix-functions/wcscpy.texi: Likewise.
48912         * doc/posix-functions/wcscspn.texi: Likewise.
48913         * doc/posix-functions/wcsftime.texi: Likewise.
48914         * doc/posix-functions/wcslen.texi: Likewise.
48915         * doc/posix-functions/wcsncat.texi: Likewise.
48916         * doc/posix-functions/wcsncmp.texi: Likewise.
48917         * doc/posix-functions/wcsncpy.texi: Likewise.
48918         * doc/posix-functions/wcspbrk.texi: Likewise.
48919         * doc/posix-functions/wcsrchr.texi: Likewise.
48920         * doc/posix-functions/wcsrtombs.texi: Likewise.
48921         * doc/posix-functions/wcsspn.texi: Likewise.
48922         * doc/posix-functions/wcsstr.texi: Likewise.
48923         * doc/posix-functions/wcstod.texi: Likewise.
48924         * doc/posix-functions/wcstof.texi: Likewise.
48925         * doc/posix-functions/wcstoimax.texi: Likewise.
48926         * doc/posix-functions/wcstok.texi: Likewise.
48927         * doc/posix-functions/wcstold.texi: Likewise.
48928         * doc/posix-functions/wcstoll.texi: Likewise.
48929         * doc/posix-functions/wcstol.texi: Likewise.
48930         * doc/posix-functions/wcstombs.texi: Likewise.
48931         * doc/posix-functions/wcstoull.texi: Likewise.
48932         * doc/posix-functions/wcstoul.texi: Likewise.
48933         * doc/posix-functions/wcstoumax.texi: Likewise.
48934         * doc/posix-functions/wcswidth.texi: Likewise.
48935         * doc/posix-functions/wcsxfrm.texi: Likewise.
48936         * doc/posix-functions/wctob.texi: Likewise.
48937         * doc/posix-functions/wctomb.texi: Likewise.
48938         * doc/posix-functions/wctrans.texi: Likewise.
48939         * doc/posix-functions/wctype.texi: Likewise.
48940         * doc/posix-functions/wcwidth.texi: Likewise.
48941         * doc/posix-functions/wmemchr.texi: Likewise.
48942         * doc/posix-functions/wmemcmp.texi: Likewise.
48943         * doc/posix-functions/wmemcpy.texi: Likewise.
48944         * doc/posix-functions/wmemmove.texi: Likewise.
48945         * doc/posix-functions/wmemset.texi: Likewise.
48946         * doc/posix-functions/wprintf.texi: Likewise.
48947         * doc/posix-functions/wscanf.texi: Likewise.
48948
48949 2008-12-21  Bruno Haible  <bruno@clisp.org>
48950
48951         Update doc for HP-UX 11.11.
48952         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48953         in HP-UX version 11.00, not in all versions of HP-UX 11.
48954         * doc/posix-functions/fwide.texi: Likewise.
48955         * doc/posix-functions/fwprintf.texi: Likewise.
48956         * doc/posix-functions/fwscanf.texi: Likewise.
48957         * doc/posix-functions/inet_ntop.texi: Likewise.
48958         * doc/posix-functions/inet_pton.texi: Likewise.
48959         * doc/posix-functions/mbrlen.texi: Likewise.
48960         * doc/posix-functions/mbrtowc.texi: Likewise.
48961         * doc/posix-functions/mbsinit.texi: Likewise.
48962         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48963         * doc/posix-functions/swprintf.texi: Likewise.
48964         * doc/posix-functions/swscanf.texi: Likewise.
48965         * doc/posix-functions/towctrans.texi: Likewise.
48966         * doc/posix-functions/vfwprintf.texi: Likewise.
48967         * doc/posix-functions/vswprintf.texi: Likewise.
48968         * doc/posix-functions/vwprintf.texi: Likewise.
48969         * doc/posix-functions/wcrtomb.texi: Likewise.
48970         * doc/posix-functions/wcsrtombs.texi: Likewise.
48971         * doc/posix-functions/wcsstr.texi: Likewise.
48972         * doc/posix-functions/wctob.texi: Likewise.
48973         * doc/posix-functions/wctrans.texi: Likewise.
48974         * doc/posix-functions/wmemchr.texi: Likewise.
48975         * doc/posix-functions/wmemcmp.texi: Likewise.
48976         * doc/posix-functions/wmemcpy.texi: Likewise.
48977         * doc/posix-functions/wmemmove.texi: Likewise.
48978         * doc/posix-functions/wmemset.texi: Likewise.
48979         * doc/posix-functions/wprintf.texi: Likewise.
48980         * doc/posix-functions/wscanf.texi: Likewise.
48981
48982 2008-12-21  Bruno Haible  <bruno@clisp.org>
48983
48984         Work around a portability problem.
48985         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48986         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48987
48988 2008-12-20  Bruno Haible  <bruno@clisp.org>
48989
48990         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48991         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48992         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48994         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48995
48996         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48997         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48998         set.
48999         (GNULIB_defined_mbstate_t): New macro.
49000         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49001         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49002         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49003         reuses the system's mbrtowc function but works around the bugs.
49004         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49005         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49006         macros.
49007         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49008         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49009         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49010         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49011         REPLACE_MBSINIT if mbsinit needs to be overridden.
49012         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49013         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49014         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49015         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49016         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49017         m4/locale-zh.m4.
49018         (Depends): Add mbsinit.
49019         * modules/mbsinit (Depends): Add mbrtowc.
49020         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49021
49022 2008-12-20  Bruno Haible  <bruno@clisp.org>
49023
49024         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49025         so that there are no conversion errors on AIX.
49026         * tests/test-mbsrtowcs.c (main): LIkewise.
49027
49028 2008-12-20  Bruno Haible  <bruno@clisp.org>
49029
49030         Work around wctob bug on Solaris <= 9.
49031         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49032         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49033         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49034         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49035         * modules/wctob (Files): Add m4/locale-fr.m4.
49036         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49037
49038 2008-12-20  Bruno Haible  <bruno@clisp.org>
49039
49040         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49041         /dev/null.
49042         * tests/test-select-in.sh: Likewise.
49043         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49044
49045 2008-12-20  Bruno Haible  <bruno@clisp.org>
49046
49047         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49048         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49049         Cygwin 1.5.x.
49050
49051 2008-12-20  Bruno Haible  <bruno@clisp.org>
49052
49053         Ensure mbstate_t is defined on HP-UX 11.11.
49054         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49055         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49056         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49057         AC_USE_SYSTEM_EXTENSIONS.
49058         * modules/fnmatch (Depends-on): Add extensions.
49059         * modules/mbrlen (Depends-on): Likewise.
49060         * modules/mbrtowc (Depends-on): Likewise.
49061         * modules/mbsinit (Depends-on): Likewise.
49062         * modules/mbsrtowcs (Depends-on): Likewise.
49063         * modules/mbswidth (Depends-on): Likewise.
49064         * modules/quotearg (Depends-on): Likewise.
49065         * modules/strftime (Depends-on): Likewise.
49066
49067 2008-12-20  Bruno Haible  <bruno@clisp.org>
49068
49069         Ensure wctob is declared on IRIX 6.5.
49070         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49071         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49072         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49074         of HAVE_WCTOB.
49075         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49076         HAVE_WCTOB.
49077         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49078
49079 2008-12-19  Bruno Haible  <bruno@clisp.org>
49080
49081         * modules/mbsrtowcs-tests: New file.
49082         * tests/test-mbsrtowcs1.sh: New file.
49083         * tests/test-mbsrtowcs2.sh: New file.
49084         * tests/test-mbsrtowcs3.sh: New file.
49085         * tests/test-mbsrtowcs4.sh: New file.
49086         * tests/test-mbsrtowcs.c: New file.
49087
49088         New module 'mbsrtowcs'.
49089         * lib/wchar.in.h (mbsrtowcs): New declaration.
49090         * lib/mbsrtowcs.c: New file.
49091         * m4/mbsrtowcs.m4: New file.
49092         * modules/mbsrtowcs: New file.
49093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49094         HAVE_MBSRTOWCS.
49095         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49096         HAVE_MBSRTOWCS.
49097         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49098
49099 2008-12-19  Bruno Haible  <bruno@clisp.org>
49100
49101         New module 'mbrlen'.
49102         * lib/wchar.in.h (mbrlen): New declaration.
49103         * lib/mbrlen.c: New file.
49104         * m4/mbrlen.m4: New file.
49105         * modules/mbrlen: New file.
49106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49107         HAVE_MBRLEN.
49108         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49109         HAVE_MBRLEN.
49110         * doc/posix-functions/mbrlen.texi: Document the new module.
49111
49112 2008-12-19  Bruno Haible  <bruno@clisp.org>
49113
49114         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49115         * modules/mbrtowc (Depends-on): Add verify.
49116         Suggested by Paul Eggert.
49117
49118 2008-12-18  Bruno Haible  <bruno@clisp.org>
49119
49120         * modules/mbsinit-tests: New file.
49121         * tests/test-mbsinit.sh: New file.
49122         * tests/test-mbsinit.c: New file.
49123
49124 2008-12-18  Bruno Haible  <bruno@clisp.org>
49125
49126         * modules/mbrtowc-tests: New file.
49127         * tests/test-mbrtowc1.sh: New file.
49128         * tests/test-mbrtowc2.sh: New file.
49129         * tests/test-mbrtowc3.sh: New file.
49130         * tests/test-mbrtowc4.sh: New file.
49131         * tests/test-mbrtowc.c: New file.
49132
49133         New module 'mbrtowc'.
49134         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49135         mbsinit and mbrtowc.
49136         (mbrtowc): New declaration.
49137         * lib/mbrtowc.c: New file.
49138         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49139         * modules/mbrtowc: New file.
49140         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49141         HAVE_MBRTOWC.
49142         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49143         HAVE_MBRTOWC.
49144         * doc/posix-functions/mbrtowc.texi: Document the new module.
49145
49146 2008-12-18  Bruno Haible  <bruno@clisp.org>
49147
49148         New module 'wctob'.
49149         * lib/wchar.in.h (wctob): New declaration.
49150         * lib/wctob.c: New file.
49151         * m4/wctob.m4: New file.
49152         * modules/wctob: New file.
49153         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49154         HAVE_WCTOB.
49155         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49156         * doc/posix-functions/wctob.texi: Document the new module.
49157
49158 2008-12-18  Bruno Haible  <bruno@clisp.org>
49159
49160         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49161         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49162
49163 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49164
49165         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49166         G. Christensen" <tgc@jupiterrise.com>.
49167
49168         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49169         G. Christensen" <tgc@jupiterrise.com>.
49170
49171         * lib/flock.c: Need to include string.h.  Reported by "Tom
49172         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49173         <ebb9@byu.net>.
49174
49175 2008-12-18  Bruno Haible  <bruno@clisp.org>
49176
49177         * m4/locale-ja.m4: New file, from GNU gettext.
49178
49179 2008-12-17  Bruno Haible  <bruno@clisp.org>
49180
49181         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49182         Suggested by Eric Blake.
49183
49184 2008-12-17  Bruno Haible  <bruno@clisp.org>
49185
49186         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49187
49188 2008-12-17  Bruno Haible  <bruno@clisp.org>
49189
49190         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49191         * modules/mbsinit (Depends-on): Add verify.
49192         Suggested by Paul Eggert.
49193
49194 2008-12-17  Bruno Haible  <bruno@clisp.org>
49195
49196         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49197         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49198         gl_FUNC_MBRTOWC.
49199         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49200         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49201         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49202         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49203         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49204         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49205         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49206         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49207         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49208         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49209         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49210         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49211         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49212         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49213         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49214         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49215         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49216         * modules/trim (configure.ac): Likewise.
49217
49218 2008-12-17  Bruno Haible  <bruno@clisp.org>
49219
49220         * modules/btowc-tests: New file.
49221         * tests/test-btowc1.sh: New file.
49222         * tests/test-btowc2.sh: New file.
49223         * tests/test-btowc.c: New file.
49224
49225         New module 'btowc'.
49226         * lib/wchar.in.h (btowc): New declaration.
49227         * lib/btowc.c: New file.
49228         * m4/btowc.m4: New file.
49229         * modules/btowc: New file.
49230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49231         HAVE_BTOWC.
49232         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49233         * doc/posix-functions/btowc.texi: Document the new module.
49234
49235 2008-12-17  Bruno Haible  <bruno@clisp.org>
49236
49237         New module 'mbsinit'.
49238         * lib/wchar.in.h (mbsinit): New declaration.
49239         * lib/mbsinit.c: New file.
49240         * m4/mbsinit.m4: New file.
49241         * modules/mbsinit: New file.
49242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49243         HAVE_MBSINIT.
49244         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49245         HAVE_MBSINIT.
49246         * doc/posix-functions/mbsinit.texi: Document the new module.
49247
49248 2008-12-16  Bruno Haible  <bruno@clisp.org>
49249
49250         * lib/unistd.in.h: Add comment.
49251         * tests/test-environ.c: Don't include <stdlib.h>.
49252
49253 2008-12-16  Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/parse-duration.h (parse_duration): Document return value
49256         convention.
49257         * lib/parse-duration.c: Include specification header first. Add
49258         comments.
49259         (_): Remove macro.
49260         (parse_year_month_day, parse_hour_minute_second): Move side effects
49261         outside of strchr call.
49262         (parse_non_iso8601): Move side effects outside of isspace call.
49263         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49264         call.
49265
49266 2008-12-16  Bruno Haible  <bruno@clisp.org>
49267
49268         * tests/test-parse-duration.sh: Produce no output when the test
49269         succeeds.
49270
49271 2008-12-16  Bruno Haible  <bruno@clisp.org>
49272
49273         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49274         expressions.
49275
49276 2008-12-15  Bruno Haible  <bruno@clisp.org>
49277
49278         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49279         * doc/glibc-functions/flistxattr.texi: Likewise.
49280         * doc/glibc-functions/fopencookie.texi: Likewise.
49281         * doc/glibc-functions/fremovexattr.texi: Likewise.
49282         * doc/glibc-functions/fsetxattr.texi: Likewise.
49283         * doc/glibc-functions/getxattr.texi: Likewise.
49284         * doc/glibc-functions/lgetxattr.texi: Likewise.
49285         * doc/glibc-functions/listxattr.texi: Likewise.
49286         * doc/glibc-functions/llistxattr.texi: Likewise.
49287         * doc/glibc-functions/lremovexattr.texi: Likewise.
49288         * doc/glibc-functions/lsetxattr.texi: Likewise.
49289         * doc/glibc-functions/removexattr.texi: Likewise.
49290         * doc/glibc-functions/setxattr.texi: Likewise.
49291         * doc/posix-functions/open_memstream.texi: Likewise.
49292
49293 2008-12-15  Eric Blake  <ebb9@byu.net>
49294
49295         Update doc for cygwin 1.7.
49296         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49297         functions.
49298         * doc/posix-functions/fchmodat.texi: Likewise.
49299         * doc/posix-functions/fchownat.texi: Likewise.
49300         * doc/posix-functions/fdopendir.texi: Likewise.
49301         * doc/posix-functions/fmemopen.texi: Likewise.
49302         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49303         * doc/posix-functions/fstatat.texi: Likewise.
49304         * doc/posix-functions/futimens.texi: Likewise.
49305         * doc/posix-functions/gai_strerror.texi: Likewise.
49306         * doc/posix-functions/getaddrinfo.texi: Likewise.
49307         * doc/posix-functions/getnameinfo.texi: Likewise.
49308         * doc/posix-functions/if_freenameindex.texi: Likewise.
49309         * doc/posix-functions/if_indextoname.texi: Likewise.
49310         * doc/posix-functions/if_nameindex.texi: Likewise.
49311         * doc/posix-functions/if_nametoindex.texi: Likewise.
49312         * doc/posix-functions/insque.texi: Likewise.
49313         * doc/posix-functions/linkat.texi: Likewise.
49314         * doc/posix-functions/llrint.texi: Likewise.
49315         * doc/posix-functions/llrintf.texi: Likewise.
49316         * doc/posix-functions/llrintl.texi: Likewise.
49317         * doc/posix-functions/lockf.texi: Likewise.
49318         * doc/posix-functions/lrintl.texi: Likewise.
49319         * doc/posix-functions/mkdirat.texi: Likewise.
49320         * doc/posix-functions/mkfifoat.texi: Likewise.
49321         * doc/posix-functions/mknodat.texi: Likewise.
49322         * doc/posix-functions/mq_close.texi: Likewise.
49323         * doc/posix-functions/mq_getattr.texi: Likewise.
49324         * doc/posix-functions/mq_notify.texi: Likewise.
49325         * doc/posix-functions/mq_open.texi: Likewise.
49326         * doc/posix-functions/mq_receive.texi: Likewise.
49327         * doc/posix-functions/mq_send.texi: Likewise.
49328         * doc/posix-functions/mq_setattr.texi: Likewise.
49329         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49330         * doc/posix-functions/mq_timedsend.texi: Likewise.
49331         * doc/posix-functions/mq_unlink.texi: Likewise.
49332         * doc/posix-functions/open_memstream.texi: Likewise.
49333         * doc/posix-functions/openat.texi: Likewise.
49334         * doc/posix-functions/posix_fadvise.texi: Likewise.
49335         * doc/posix-functions/posix_fallocate.texi: Likewise.
49336         * doc/posix-functions/posix_madvise.texi: Likewise.
49337         * doc/posix-functions/posix_memalign.texi: Likewise.
49338         * doc/posix-functions/posix_openpt.texi: Likewise.
49339         * doc/posix-functions/readlinkat.texi: Likewise.
49340         * doc/posix-functions/remque.texi: Likewise.
49341         * doc/posix-functions/renameat.texi: Likewise.
49342         * doc/posix-functions/rintl.texi: Likewise.
49343         * doc/posix-functions/sem_unlink.texi: Likewise.
49344         * doc/posix-functions/shm_open.texi: Likewise.
49345         * doc/posix-functions/shm_unlink.texi: Likewise.
49346         * doc/posix-functions/signgam.texi: Likewise.
49347         * doc/posix-functions/sigset.texi: Likewise.
49348         * doc/posix-functions/stpcpy.texi: Likewise.
49349         * doc/posix-functions/stpncpy.texi: Likewise.
49350         * doc/posix-functions/strerror.texi: Likewise.
49351         * doc/posix-functions/strtod.texi: Likewise.
49352         * doc/posix-functions/symlinkat.texi: Likewise.
49353         * doc/posix-functions/unlinkat.texi: Likewise.
49354         * doc/posix-functions/utimensat.texi: Likewise.
49355         * doc/glibc-functions/bindresvport.texi: Likewise.
49356         * doc/glibc-functions/dn_expand.texi: Likewise.
49357         * doc/glibc-functions/exp10.texi: Likewise.
49358         * doc/glibc-functions/exp10f.texi: Likewise.
49359         * doc/glibc-functions/fgetxattr.texi: Likewise.
49360         * doc/glibc-functions/flistxattr.texi: Likewise.
49361         * doc/glibc-functions/fopencookie.texi: Likewise.
49362         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49363         * doc/glibc-functions/fremovexattr.texi: Likewise.
49364         * doc/glibc-functions/fsetxattr.texi: Likewise.
49365         * doc/glibc-functions/getifaddrs.texi: Likewise.
49366         * doc/glibc-functions/getxattr.texi: Likewise.
49367         * doc/glibc-functions/lgetxattr.texi: Likewise.
49368         * doc/glibc-functions/listxattr.texi: Likewise.
49369         * doc/glibc-functions/llistxattr.texi: Likewise.
49370         * doc/glibc-functions/lremovexattr.texi: Likewise.
49371         * doc/glibc-functions/lsetxattr.texi: Likewise.
49372         * doc/glibc-functions/pow10.texi: Likewise.
49373         * doc/glibc-functions/pow10f.texi: Likewise.
49374         * doc/glibc-functions/rcmd_af.texi: Likewise.
49375         * doc/glibc-functions/removexattr.texi: Likewise.
49376         * doc/glibc-functions/res_init.texi: Likewise.
49377         * doc/glibc-functions/res_mkquery.texi: Likewise.
49378         * doc/glibc-functions/res_query.texi: Likewise.
49379         * doc/glibc-functions/res_querydomain.texi: Likewise.
49380         * doc/glibc-functions/res_send.texi: Likewise.
49381         * doc/glibc-functions/rresvport_af.texi: Likewise.
49382         * doc/glibc-functions/setxattr.texi: Likewise.
49383         * doc/glibc-functions/strcasestr.texi: Likewise.
49384
49385 2008-12-15  Bruno Haible  <bruno@clisp.org>
49386
49387         Fix compilation error on OSF/1 4.0.
49388         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49389         <sys/time.h>, simply delegate to the system header.
49390         Reported by Daniel Richard G. <oss@teragram.com>.
49391
49392 2008-12-15  Bruno Haible  <bruno@clisp.org>
49393
49394         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49395         * doc/posix-functions/fchmodat.texi: Likewise.
49396         * doc/posix-functions/fchownat.texi: Likewise.
49397         * doc/posix-functions/fdopendir.texi: Likewise.
49398         * doc/posix-functions/fstatat.texi: Likewise.
49399         * doc/posix-functions/mkdirat.texi: Likewise.
49400         * doc/posix-functions/unlinkat.texi: Likewise.
49401
49402 2008-12-14  Bruno Haible  <bruno@clisp.org>
49403
49404         Update doc for POSIX:2008.
49405         * doc/posix-functions/faccessat.texi: New file.
49406         * doc/posix-functions/fchmodat.texi: New file.
49407         * doc/posix-functions/fchownat.texi: New file.
49408         * doc/posix-functions/fdopendir.texi: New file.
49409         * doc/posix-functions/fstatat.texi: New file.
49410         * doc/posix-functions/futimens.texi: New file.
49411         * doc/posix-functions/linkat.texi: New file.
49412         * doc/posix-functions/mkdirat.texi: New file.
49413         * doc/posix-functions/mkfifoat.texi: New file.
49414         * doc/posix-functions/mknodat.texi: New file.
49415         * doc/posix-functions/open_wmemstream.texi: New file.
49416         * doc/posix-functions/openat.texi: New file.
49417         * doc/posix-functions/psiginfo.texi: New file.
49418         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49419         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49420         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49421         * doc/posix-functions/readlinkat.texi: New file.
49422         * doc/posix-functions/renameat.texi: New file.
49423         * doc/posix-functions/strerror_l.texi: New file.
49424         * doc/posix-functions/symlinkat.texi: New file.
49425         * doc/posix-functions/unlinkat.texi: New file.
49426         * doc/posix-functions/utimensat.texi: New file.
49427         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49428
49429 2008-12-14  Bruno Haible  <bruno@clisp.org>
49430
49431         Update doc for POSIX:2008.
49432         * doc/posix-functions/alphasort.texi: Renamed from
49433         doc/glibc-functions/alphasort.texi.
49434         * doc/posix-functions/dirfd.texi: Renamed from
49435         doc/glibc-functions/dirfd.texi.
49436         * doc/posix-functions/dprintf.texi: Renamed from
49437         doc/glibc-functions/dprintf.texi.
49438         * doc/posix-functions/duplocale.texi: Renamed from
49439         doc/glibc-functions/duplocale.texi.
49440         * doc/posix-functions/fexecve.texi: Renamed from
49441         doc/glibc-functions/fexecve.texi.
49442         * doc/posix-functions/fmemopen.texi: Renamed from
49443         doc/glibc-functions/fmemopen.texi.
49444         * doc/posix-functions/freelocale.texi: Renamed from
49445         doc/glibc-functions/freelocale.texi.
49446         * doc/posix-functions/getdate_err.texi: Renamed from
49447         doc/glibc-functions/getdate_err.texi.
49448         * doc/posix-functions/isalnum_l.texi: Renamed from
49449         doc/glibc-functions/isalnum_l.texi.
49450         * doc/posix-functions/isalpha_l.texi: Renamed from
49451         doc/glibc-functions/isalpha_l.texi.
49452         * doc/posix-functions/isblank_l.texi: Renamed from
49453         doc/glibc-functions/isblank_l.texi.
49454         * doc/posix-functions/iscntrl_l.texi: Renamed from
49455         doc/glibc-functions/iscntrl_l.texi.
49456         * doc/posix-functions/isdigit_l.texi: Renamed from
49457         doc/glibc-functions/isdigit_l.texi.
49458         * doc/posix-functions/isgraph_l.texi: Renamed from
49459         doc/glibc-functions/isgraph_l.texi.
49460         * doc/posix-functions/islower_l.texi: Renamed from
49461         doc/glibc-functions/islower_l.texi.
49462         * doc/posix-functions/isprint_l.texi: Renamed from
49463         doc/glibc-functions/isprint_l.texi.
49464         * doc/posix-functions/ispunct_l.texi: Renamed from
49465         doc/glibc-functions/ispunct_l.texi.
49466         * doc/posix-functions/isspace_l.texi: Renamed from
49467         doc/glibc-functions/isspace_l.texi.
49468         * doc/posix-functions/isupper_l.texi: Renamed from
49469         doc/glibc-functions/isupper_l.texi.
49470         * doc/posix-functions/iswalnum_l.texi: Renamed from
49471         doc/glibc-functions/iswalnum_l.texi.
49472         * doc/posix-functions/iswalpha_l.texi: Renamed from
49473         doc/glibc-functions/iswalpha_l.texi.
49474         * doc/posix-functions/iswblank_l.texi: Renamed from
49475         doc/glibc-functions/iswblank_l.texi.
49476         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49477         doc/glibc-functions/iswcntrl_l.texi.
49478         * doc/posix-functions/iswctype_l.texi: Renamed from
49479         doc/glibc-functions/iswctype_l.texi.
49480         * doc/posix-functions/iswdigit_l.texi: Renamed from
49481         doc/glibc-functions/iswdigit_l.texi.
49482         * doc/posix-functions/iswgraph_l.texi: Renamed from
49483         doc/glibc-functions/iswgraph_l.texi.
49484         * doc/posix-functions/iswlower_l.texi: Renamed from
49485         doc/glibc-functions/iswlower_l.texi.
49486         * doc/posix-functions/iswprint_l.texi: Renamed from
49487         doc/glibc-functions/iswprint_l.texi.
49488         * doc/posix-functions/iswpunct_l.texi: Renamed from
49489         doc/glibc-functions/iswpunct_l.texi.
49490         * doc/posix-functions/iswspace_l.texi: Renamed from
49491         doc/glibc-functions/iswspace_l.texi.
49492         * doc/posix-functions/iswupper_l.texi: Renamed from
49493         doc/glibc-functions/iswupper_l.texi.
49494         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49495         doc/glibc-functions/iswxdigit_l.texi.
49496         * doc/posix-functions/isxdigit_l.texi: Renamed from
49497         doc/glibc-functions/isxdigit_l.texi.
49498         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49499         doc/glibc-functions/mbsnrtowcs.texi.
49500         * doc/posix-functions/mkdtemp.texi: Renamed from
49501         doc/glibc-functions/mkdtemp.texi.
49502         * doc/posix-functions/newlocale.texi: Renamed from
49503         doc/glibc-functions/newlocale.texi.
49504         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49505         doc/glibc-functions/nl_langinfo_l.texi.
49506         * doc/posix-functions/open_memstream.texi: Renamed from
49507         doc/glibc-functions/open_memstream.texi.
49508         * doc/posix-functions/opterr.texi: Renamed from
49509         doc/glibc-functions/opterr.texi.
49510         * doc/posix-functions/optind.texi: Renamed from
49511         doc/glibc-functions/optind.texi.
49512         * doc/posix-functions/optopt.texi: Renamed from
49513         doc/glibc-functions/optopt.texi.
49514         * doc/posix-functions/psignal.texi: Renamed from
49515         doc/glibc-functions/psignal.texi.
49516         * doc/posix-functions/scandir.texi: Renamed from
49517         doc/glibc-functions/scandir.texi.
49518         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49519         doc/glibc-functions/sched_get_priority_min.texi.
49520         * doc/posix-functions/signgam.texi: Renamed from
49521         doc/glibc-functions/signgam.texi.
49522         * doc/posix-functions/stpcpy.texi: Renamed from
49523         doc/glibc-functions/stpcpy.texi.
49524         * doc/posix-functions/stpncpy.texi: Renamed from
49525         doc/glibc-functions/stpncpy.texi.
49526         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49527         doc/glibc-functions/strcasecmp_l.texi.
49528         * doc/posix-functions/strcoll_l.texi: Renamed from
49529         doc/glibc-functions/strcoll_l.texi.
49530         * doc/posix-functions/strfmon_l.texi: Renamed from
49531         doc/glibc-functions/strfmon_l.texi.
49532         * doc/posix-functions/strftime_l.texi: Renamed from
49533         doc/glibc-functions/strftime_l.texi.
49534         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49535         doc/glibc-functions/strncasecmp_l.texi.
49536         * doc/posix-functions/strndup.texi: Renamed from
49537         doc/glibc-functions/strndup.texi.
49538         * doc/posix-functions/strnlen.texi: Renamed from
49539         doc/glibc-functions/strnlen.texi.
49540         * doc/posix-functions/strsignal.texi: Renamed from
49541         doc/glibc-functions/strsignal.texi.
49542         * doc/posix-functions/strxfrm_l.texi: Renamed from
49543         doc/glibc-functions/strxfrm_l.texi.
49544         * doc/posix-functions/timer_gettime.texi: Renamed from
49545         doc/glibc-functions/timer_gettime.texi.
49546         * doc/posix-functions/tolower_l.texi: Renamed from
49547         doc/glibc-functions/tolower_l.texi.
49548         * doc/posix-functions/toupper_l.texi: Renamed from
49549         doc/glibc-functions/toupper_l.texi.
49550         * doc/posix-functions/towctrans_l.texi: Renamed from
49551         doc/glibc-functions/towctrans_l.texi.
49552         * doc/posix-functions/towlower_l.texi: Renamed from
49553         doc/glibc-functions/towlower_l.texi.
49554         * doc/posix-functions/towupper_l.texi: Renamed from
49555         doc/glibc-functions/towupper_l.texi.
49556         * doc/posix-functions/uselocale.texi: Renamed from
49557         doc/glibc-functions/uselocale.texi.
49558         * doc/posix-functions/vdprintf.texi: Renamed from
49559         doc/glibc-functions/vdprintf.texi.
49560         * doc/posix-functions/wcpcpy.texi:
49561         Renamed from doc/glibc-functions/wcpcpy.texi.
49562         * doc/posix-functions/wcpncpy.texi: Renamed from
49563         doc/glibc-functions/wcpncpy.texi.
49564         * doc/posix-functions/wcscasecmp.texi: Renamed from
49565         doc/glibc-functions/wcscasecmp.texi.
49566         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49567         doc/glibc-functions/wcscasecmp_l.texi.
49568         * doc/posix-functions/wcscoll_l.texi: Renamed from
49569         doc/glibc-functions/wcscoll_l.texi.
49570         * doc/posix-functions/wcsdup.texi: Renamed from
49571         doc/glibc-functions/wcsdup.texi.
49572         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49573         doc/glibc-functions/wcsncasecmp.texi.
49574         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49575         doc/glibc-functions/wcsncasecmp_l.texi.
49576         * doc/posix-functions/wcsnlen.texi: Renamed from
49577         doc/glibc-functions/wcsnlen.texi.
49578         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49579         doc/glibc-functions/wcsnrtombs.texi.
49580         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49581         doc/glibc-functions/wcsxfrm_l.texi.
49582         * doc/posix-functions/wctrans_l.texi: Renamed from
49583         doc/glibc-functions/wctrans_l.texi.
49584         * doc/posix-functions/wctype_l.texi: Renamed from
49585         doc/glibc-functions/wctype_l.texi.
49586         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49587         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49588         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49589         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49590         these subsections.
49591         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49592         Remove sections.
49593
49594 2008-12-14  Bruno Haible  <bruno@clisp.org>
49595
49596         Update doc for POSIX:2008.
49597         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49598
49599 2008-12-14  Bruno Haible  <bruno@clisp.org>
49600
49601         Update doc for POSIX:2008.
49602         * doc/pastposix-functions/bcmp.texi: Renamed from
49603         doc/posix-functions/bcmp.texi.
49604         * doc/pastposix-functions/bcopy.texi: Renamed from
49605         doc/posix-functions/bcopy.texi.
49606         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49607         doc/posix-functions/bsd_signal.texi.
49608         * doc/pastposix-functions/bzero.texi: Renamed from
49609         doc/posix-functions/bzero.texi.
49610         * doc/pastposix-functions/ecvt.texi: Renamed from
49611         doc/posix-functions/ecvt.texi.
49612         * doc/pastposix-functions/fcvt.texi: Renamed from
49613         doc/posix-functions/fcvt.texi.
49614         * doc/pastposix-functions/ftime.texi: Renamed from
49615         doc/posix-functions/ftime.texi.
49616         * doc/pastposix-functions/gcvt.texi: Renamed from
49617         doc/posix-functions/gcvt.texi.
49618         * doc/pastposix-functions/getcontext.texi: Renamed from
49619         doc/posix-functions/getcontext.texi.
49620         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49621         doc/posix-functions/gethostbyaddr.texi.
49622         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49623         doc/posix-functions/gethostbyname.texi.
49624         * doc/pastposix-functions/getwd.texi: Renamed from
49625         doc/posix-functions/getwd.texi.
49626         * doc/pastposix-functions/h_errno.texi: Renamed from
49627         doc/posix-functions/h_errno.texi.
49628         * doc/pastposix-functions/index.texi: Renamed from
49629         doc/posix-functions/index.texi.
49630         * doc/pastposix-functions/makecontext.texi: Renamed from
49631         doc/posix-functions/makecontext.texi.
49632         * doc/pastposix-functions/mktemp.texi: Renamed from
49633         doc/posix-functions/mktemp.texi.
49634         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49635         doc/posix-functions/pthread_attr_getstackaddr.texi.
49636         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49637         doc/posix-functions/pthread_attr_setstackaddr.texi.
49638         * doc/pastposix-functions/rindex.texi: Renamed from
49639         doc/posix-functions/rindex.texi.
49640         * doc/pastposix-functions/scalb.texi: Renamed from
49641         doc/posix-functions/scalb.texi.
49642         * doc/pastposix-functions/setcontext.texi: Renamed from
49643         doc/posix-functions/setcontext.texi.
49644         * doc/pastposix-functions/swapcontext.texi: Renamed from
49645         doc/posix-functions/swapcontext.texi.
49646         * doc/pastposix-functions/ualarm.texi: Renamed from
49647         doc/posix-functions/ualarm.texi.
49648         * doc/pastposix-functions/usleep.texi: Renamed from
49649         doc/posix-functions/usleep.texi.
49650         * doc/pastposix-functions/vfork.texi: Renamed from
49651         doc/posix-functions/vfork.texi.
49652         * doc/pastposix-functions/wcswcs.texi: Renamed from
49653         doc/posix-functions/wcswcs.texi.
49654         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49655         (Function Substitutes): Update.
49656
49657 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49658
49659         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49660         m4/strerror.m4.
49661
49662 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49663             Bruno Haible  <bruno@clisp.org>
49664
49665         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49666
49667 2008-12-13  Bruno Haible  <bruno@clisp.org>
49668
49669         * modules/strtoull (Depends-on): Remove unistd.
49670
49671 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49672
49673         * modules/strtoull (Depends-on): Add stdlib.
49674
49675 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49676
49677         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49678
49679 2008-12-10  Jim Meyering  <meyering@redhat.com>
49680
49681         gl_ASSERT: don't say assertions are disabled when they're not
49682         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49683         "checking whether to enable assertions... no", when they are in
49684         fact enabled.  This is solely a bug in the output of configure.
49685         In spite of saying "no", NDEBUG was not defined in that case.
49686         Also, as noted by Eric Blake, leave assertions enabled upon
49687         --enable-assert=INVALID.
49688
49689 2008-12-10  Bruno Haible  <bruno@clisp.org>
49690
49691         Change MODULES.html to refer to POSIX:2008 where possible.
49692         * MODULES.html.sh (POSIX2008_URL): New variable.
49693         (posix_headers): Remove sys/timeb, ucontext.
49694         (posix2001_headers): New variable.
49695         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49696         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49697         index, makecontext, mktemp, pthread_attr_getstackaddr,
49698         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49699         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49700         (posix2001_functions): New variable.
49701         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49702         otherwise.
49703
49704 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49705
49706         add missing include to parse-duration.c
49707         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49708         * modules/parse-duration (Depends-on): Add xalloc.
49709
49710         fix sed script reading maint.mk
49711         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49712         (syntax-check-rules): Use it.
49713
49714 2008-12-09  Bruno Haible  <bruno@clisp.org>
49715
49716         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49717         MacOS X 10.4/PowerPC.
49718         Reported by Simon Josefsson.
49719
49720 2008-12-08  Jim Meyering  <meyering@redhat.com>
49721
49722         work around mingw's lack of some S_IF definitions
49723         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49724         Reported by Simon Josefsson.
49725
49726 2008-12-08  Bruno Haible  <bruno@clisp.org>
49727
49728         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49729         applied to variables. Needed on MacOS X 10.4/PowerPC.
49730         Reported by Simon Josefsson.
49731
49732 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49733         and Eric Blake  <ebb9@byu.net>
49734
49735         assert: honor --enable-assert
49736         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49737         order to honor --enable-assert, rather than treating it as a
49738         synonym for --disable-assert.
49739
49740 2008-12-08  Jim Meyering  <meyering@redhat.com>
49741
49742         * lib/posixtm.c: Remove now-useless declaration of mktime.
49743
49744         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49745
49746 2008-12-07  Bruno Haible  <bruno@clisp.org>
49747
49748         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49749         test_once): Mark functions as static.
49750         * tests/test-tls.c (test_tls): Likewise.
49751
49752 2008-12-07  Bruno Haible  <bruno@clisp.org>
49753
49754         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49755         iconv_register_autodetect.
49756
49757 2008-12-07  Jim Meyering  <meyering@redhat.com>
49758
49759         posixtm.c: avoid a warning
49760         * lib/posixtm.c (posixtime): Don't initialize tm0.
49761         It's no longer needed to placate gcc4's -Wuninitialized,
49762         and the attempt to placate would elicit a new warning.
49763
49764         unicodeio.c: mark unused parameters
49765         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49766         (fallback_failure_callback): Likewise.
49767
49768 2008-12-07  Bruno Haible  <bruno@clisp.org>
49769
49770         * gnulib-tool (func_create_testdir): When building the tests
49771         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49772         Reported by Simon Josefsson.
49773
49774 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49775
49776         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49777
49778 2008-12-06  Bruno Haible  <bruno@clisp.org>
49779
49780         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49781         Suggested by Eric Blake.
49782
49783 2008-12-06  Bruno Haible  <bruno@clisp.org>
49784
49785         Fix a c-stack test failure on MacOS X.
49786         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49787         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49788         handler for SIGBUS as well.
49789         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49790         install a signal handler for SIGBUS as well.
49791         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49792
49793 2008-12-06  Bruno Haible  <bruno@clisp.org>
49794
49795         Advocacy documentation.
49796         * doc/gnulib-intro.texi (Benefits): New section.
49797         * doc/gnulib.texi: Update.
49798
49799 2008-12-06  Bruno Haible  <bruno@clisp.org>
49800
49801         Document the 'manywarnings' module.
49802         * doc/manywarnings.texi: New file.
49803         * doc/gnulib.texi: Include it.
49804
49805 2008-12-05  Eric Blake  <ebb9@byu.net>
49806
49807         tests: silence some gcc warnings
49808         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49809         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49810         type mismatches.
49811
49812 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49813             Bruno Haible  <bruno@clisp.org>
49814
49815         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49816
49817 2008-11-29  Jim Meyering  <meyering@redhat.com>
49818
49819         unicodeio.c: mark unused parameters
49820         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49821         (fallback_failure_callback): Likewise.
49822
49823         fts: fix a thinko
49824         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49825         (set_stat_type): Return S_IF*-valued "type" directly.
49826         Prompted by James Youngman's spotting a related bug.
49827         Confirmed by further testing through find.
49828
49829         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49830         * lib/fts.c (D_TYPE): Define.
49831         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49832         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49833         (s_ifmt_shift_bits): New function.
49834         (set_stat_type): New function.
49835         (fts_build): When not calling fts_stat, call set_stat_type
49836         to propagate dirent.d_type info to fts_read caller.
49837         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49838         fts_statp->st_mode type information may be valid.
49839
49840 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49841
49842         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49843         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49844         <sds@gnu.org>.
49845
49846 2008-11-20  Bruno Haible  <bruno@clisp.org>
49847
49848         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49849         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49850         INCLUDE_NEXT.
49851         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49852         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49853         * modules/math (Makefile.am): Substitute
49854         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49855         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49856
49857 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49858             Bruno Haible  <bruno@clisp.org>
49859
49860         * lib/stdint.in.h: Define all type macros so that their expansion is
49861         a single typedef'ed token. Fixes a compilation failure in Boost which
49862         does "using ::int8_t;".
49863
49864 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49865
49866         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49867         gl_MANYWARN_ALL_GCC.
49868         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49869         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49870         * modules/manywarnings: New file.
49871         * MODULES.html.sh: Mention manywarnings module.
49872
49873 2008-11-18  Bruno Haible  <bruno@clisp.org>
49874
49875         * doc/gnulib-tool.texi (Unit tests): New section.
49876
49877 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49878
49879         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49880         paths like 'lib/po/foo.po'.
49881
49882 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49883
49884         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49885         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49886
49887 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49888
49889         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49890         parameter works.
49891
49892 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49893
49894         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49895
49896 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49897
49898         * modules/parse-duration-tests: New file.
49899         * tests/test-parse-duration.sh: New file.
49900         * tests/test-parse-duration.c: New file.
49901
49902         New module 'parse-duration'.
49903         * lib/parse-duration.h: New file.
49904         * lib/parse-duration.c: New file.
49905         * modules/parse-duration: New file.
49906
49907 2008-11-17  Bruno Haible  <bruno@clisp.org>
49908
49909         * tests/test-select-out.sh: Comment out the first pipe test.
49910         Reported by Simon Josefsson.
49911
49912 2008-11-17  Bruno Haible  <bruno@clisp.org>
49913
49914         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49915         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49916         gl_HOSTENT.
49917
49918 2008-11-17  Bruno Haible  <bruno@clisp.org>
49919
49920         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49921         -lnetwork and -lnet. Needed for Haiku and BeOS.
49922
49923 2008-11-16  Bruno Haible  <bruno@clisp.org>
49924
49925         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49926
49927 2008-11-16  Bruno Haible  <bruno@clisp.org>
49928
49929         Avoid test failure on Haiku.
49930         * tests/test-fsync.c: Include <errno.h>.
49931         (main): Don't require that fsync (0) fails.
49932
49933 2008-11-15  Bruno Haible  <bruno@clisp.org>
49934
49935         New module 'hostent'.
49936         * modules/hostent: New file.
49937         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49938
49939 2008-11-15  Bruno Haible  <bruno@clisp.org>
49940
49941         New module 'servent'.
49942         * modules/servent: New file.
49943         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49944
49945 2008-11-15  Bruno Haible  <bruno@clisp.org>
49946
49947         Avoid generating same test program with two different rules.
49948         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49949         test-frexp to test-frexp-nolibm.
49950         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49951         test-frexpl to test-frexpl-nolibm.
49952
49953 2008-11-15  Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49956         $(FREXPL_LIBM).
49957
49958 2008-11-15  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/netdb.in.h: Activate the definitions also when the system's
49961         <netdb.h> has 'struct addrinfo'.
49962         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49963         EAI_OVERFLOW or AI_NUMERICSERV.
49964         * doc/posix-headers/netdb.texi: Document the problem.
49965
49966 2008-11-15  Bruno Haible  <bruno@clisp.org>
49967
49968         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49969
49970         Make the 'sched' module work on platforms where <sched.h> exists but
49971         is incomplete (such as Haiku).
49972         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49973         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49974         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49975         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49976         HAVE_STRUCT_SCHED_PARAM.
49977         * modules/sched (Depends-on): Add include_next.
49978         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49979         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49980         * doc/posix-headers/sched.texi: Document the issue.
49981
49982 2008-11-13  Jim Meyering  <meyering@redhat.com>
49983
49984         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49985         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49986         test would fail due to the difference in the Report bugs to ...
49987         line.  The expected address is empty, "<>", while the actual
49988         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49989
49990 2008-11-12  Bruno Haible  <bruno@clisp.org>
49991
49992         lstat: don't compile lstat.c on systems lacking lstat
49993         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49994         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49995         Reported by Daniel P. Berrange via Jim Meyering.
49996
49997 2008-11-12  Jim Meyering  <meyering@redhat.com>
49998
49999         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50000
50001 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50002
50003         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50004         instead.
50005
50006 2008-11-12  Bruno Haible  <bruno@clisp.org>
50007
50008         * lib/unicodeio.c: Include unistr.h.
50009         (utf8_wctomb): Remove function.
50010         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50011
50012 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50013
50014         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50015         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50016         <bruno@clisp.org>.
50017         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50018
50019 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50020
50021         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50022         * doc/gnulib.texi: Add section for warnings.
50023
50024 2008-11-11  Bruno Haible  <bruno@clisp.org>
50025
50026         * lib/sockets.h: Add a comment.
50027
50028 2008-11-11  Karl Berry  <karl@gnu.org>
50029
50030         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50031
50032 2008-11-11  Eric Blake  <ebb9@byu.net>
50033
50034         fdl.texi: avoid git symlinks
50035         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50036
50037 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50038
50039         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50040
50041 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50042
50043         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50044         (gl_WARN_ADD): Substitute $2 if literal.
50045
50046 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50047
50048         * m4/warning.m4: Remove.
50049
50050 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50051
50052         * m4/warnings.m4: Almost complete rewrite. :-)
50053
50054 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50055
50056         * modules/warnings: New module.
50057         * m4/warnings.m4: New file.
50058         * MODULES.html.sh: Mention warnings module.
50059         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50060         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50061
50062 2008-11-10  Eric Blake  <ebb9@byu.net>
50063
50064         fdl.texi: make a symlink to the latest version
50065         * doc/standards.texi: Revert today's earlier change.
50066         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50067         * doc/fdl.texi: ...and replace this with a symlink to the newer
50068         fdl-1.3.texi.
50069
50070 2008-11-10  Bruno Haible  <bruno@clisp.org>
50071
50072         * tests/test-select-fd.c (main): Accept the result file name as fourth
50073         argument.
50074         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50075         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50076
50077 2008-11-10  Bruno Haible  <bruno@clisp.org>
50078
50079         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50080         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50081         as autoconf-substituted macros.
50082         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50083         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50084         gl_NETDB_H_DEFAULTS. Set these variables.
50085         * modules/netdb (Makefile.am): Substitute these variables.
50086
50087 2008-11-10  Eric Blake  <ebb9@byu.net>
50088
50089         standards.texi: include correct file for FDL 1.3
50090         * doc/standards.texi (GNU Free Documentation License): Change
50091         include file to pull in FDL 1.3, not 1.2.
50092
50093         fdl.texi: revert accidental change to license
50094         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50095
50096 2008-11-10  Bruno Haible  <bruno@clisp.org>
50097
50098         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50099         cross-compiling guesses also when the native compile gives no result.
50100
50101 2008-11-10  Bruno Haible  <bruno@clisp.org>
50102
50103         * lib/spawni.c (__spawni): Force variable into the stack.
50104
50105 2008-11-10  Bruno Haible  <bruno@clisp.org>
50106
50107         Add support for Haiku.
50108         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50109         glibc and BeOS, but also on Haiku.
50110         * lib/fpurge.c (fpurge): Likewise.
50111         * lib/freadable.c (freadable): Likewise.
50112         * lib/freadahead.c (freadahead): Likewise.
50113         * lib/freading.c (freading): Likewise.
50114         * lib/freadptr.c (freadptr): Likewise.
50115         * lib/freadseek.c (freadptrinc): Likewise.
50116         * lib/fseeko.c (rpl_fseeko): Likewise.
50117         * lib/fseterr.c (fseterr): Likewise.
50118         * lib/fwritable.c (fwritable): Likewise.
50119         * lib/fwriting.c (fwriting): Likewise.
50120         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50121
50122 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50123
50124         * lib/config.charset: Treat Haiku like BeOS.
50125
50126 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50127
50128         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50129         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50130
50131 2008-11-08  Bruno Haible  <bruno@clisp.org>
50132
50133         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50134         AC_CACHE_CHECK.
50135
50136 2008-11-08  Bruno Haible  <bruno@clisp.org>
50137
50138         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50139
50140 2008-11-08  Bruno Haible  <bruno@clisp.org>
50141
50142         * tests/test-select-fd.c: New file.
50143         * tests/test-select-in.sh: New file.
50144         * tests/test-select-out.sh: New file.
50145         * tests/test-select-stdin.c: New file.
50146         * modules/select-tests (Files): Add the new files.
50147         (Depends-on): Add gettimeofday.
50148         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50149         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50150         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50151
50152 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50153             Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50156
50157 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50158
50159         * build-aux/pmccabe2html: Added support for C++ source files.
50160
50161 2008-11-05  Ben Pfaff  <blp@gnu.org>
50162
50163         Fix lib/close.c build on Windows.
50164         * modules/close (Files): Add lib/w32sock.h.
50165
50166 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50167
50168         Accept Bison's NEWS format.
50169         * build-aux/announce-gen (print_news_deltas): Tweak
50170         $re_prefix.
50171
50172 2008-11-04  Bruno Haible  <bruno@clisp.org>
50173
50174         * modules/random_r (Maintainer): Add glibc.
50175
50176 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50177
50178         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50179         by karl@freefriends.org (Karl Berry).
50180         * doc/alloca.texi: Likewise.
50181         * doc/c-ctype.texi: Likewise.
50182         * doc/c-strcase.texi: Likewise.
50183         * doc/c-strcaseeq.texi: Likewise.
50184         * doc/c-strcasestr.texi: Likewise.
50185         * doc/c-strstr.texi: Likewise.
50186         * doc/c-strtod.texi: Likewise.
50187         * doc/c-strtold.texi: Likewise.
50188         * doc/ctime.texi: Likewise.
50189         * doc/error.texi: Likewise.
50190         * doc/fdl.texi: Likewise.
50191         * doc/gcd.texi: Likewise.
50192         * doc/getdate.texi: Likewise.
50193         * doc/gnulib-intro.texi: Likewise.
50194         * doc/gnulib-tool.texi: Likewise.
50195         * doc/gnulib.texi: Likewise.
50196         * doc/inet_ntoa.texi: Likewise.
50197         * doc/maintain.texi: Likewise.
50198         * doc/make-stds.texi: Likewise.
50199         * doc/quote.texi: Likewise.
50200         * doc/regexprops-generic.texi: Likewise.
50201         * doc/standards.texi: Likewise.
50202         * doc/verify.texi: Likewise.
50203         * doc/visibility.texi: Likewise.
50204         * doc/gnulib.texi (GNU Free Documentation License): Include
50205         fdl-1.3.texi instead of fdl.texi.
50206
50207 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50208
50209         * doc/fdl-1.3.texi: New file, from
50210         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50211         * modules/fdl-1.3: Add.
50212         * MODULES.html.sh: Add fdl-1.3.
50213
50214 2008-11-03  Bruno Haible  <bruno@clisp.org>
50215
50216         Make determination of absolute name of header file work with AIX xlc.
50217         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50218         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50219         preprocessing.
50220         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50221         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50222
50223 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50224
50225         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50226         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50227         <ludo@gnu.org>.
50228
50229 2008-11-02  Bruno Haible  <bruno@clisp.org>
50230
50231         Mark 'strpbrk' obsolete.
50232         * modules/strpbrk (Status, Notice): New sections.
50233         * modules/strtok_r (Depends-on): Add strpbrk.
50234
50235 2008-11-02  Bruno Haible  <bruno@clisp.org>
50236
50237         Mark 'strdup' obsolete.
50238         * modules/strdup (Status, Notice): New sections.
50239         * modules/findprog (Depends-on): Add strdup.
50240         * modules/getaddrinfo (Depends-on): Likewise.
50241         * modules/localename (Depends-on): Likewise.
50242         * modules/relocatable-lib (Depends-on): Likewise.
50243         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50244         * modules/relocatable-prog (Depends-on): Likewise.
50245         * modules/trim (Depends-on): Likewise.
50246         * modules/unictype/gen-ctype (Depends-on): Likewise.
50247         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50248
50249 2008-11-02  Bruno Haible  <bruno@clisp.org>
50250
50251         Mark 'strcspn' obsolete.
50252         * modules/strcspn (Status, Notice): New sections.
50253
50254 2008-11-02  Bruno Haible  <bruno@clisp.org>
50255
50256         Mark 'rmdir' obsolete.
50257         * modules/rmdir (Status, Notice): New sections.
50258         * modules/clean-temp (Depends-on): Add rmdir.
50259         * modules/openat (Depends-on): Likewise.
50260
50261 2008-11-02  Bruno Haible  <bruno@clisp.org>
50262
50263         Mark 'raise' obsolete.
50264         * modules/raise (Status, Notice): New sections.
50265         (Include): Specify <signal.h>.
50266         * modules/stdio (Depends-on): Add raise.
50267         * modules/write (Depends-on): Likewise.
50268
50269 2008-11-02  Bruno Haible  <bruno@clisp.org>
50270
50271         Mark 'memset' obsolete.
50272         * modules/memset (Status, Notice): New sections.
50273
50274 2008-11-02  Bruno Haible  <bruno@clisp.org>
50275
50276         Mark 'memmove' obsolete.
50277         * modules/memmove (Status, Notice): New sections.
50278         * modules/argp (Depends-on): Add memmove.
50279         * modules/argz (Depends-on): Likewise.
50280         * modules/canonicalize (Depends-on): Likewise.
50281         * modules/canonicalize-lgpl (Depends-on): Likewise.
50282         * modules/fts (Depends-on): Likewise.
50283         * modules/getcwd (Depends-on): Likewise.
50284         * modules/human (Depends-on): Likewise.
50285         * modules/regex (Depends-on): Likewise.
50286         * modules/striconveh (Depends-on): Likewise.
50287         * modules/trim (Depends-on): Likewise.
50288         * modules/unistr/u8-move (Depends-on): Likewise.
50289         * modules/unistr/u16-move (Depends-on): Likewise.
50290         * modules/unistr/u32-move (Depends-on): Likewise.
50291
50292 2008-11-02  Bruno Haible  <bruno@clisp.org>
50293
50294         Mark 'memcpy' obsolete.
50295         * modules/memcpy (Status, Notice): New sections.
50296
50297 2008-11-02  Bruno Haible  <bruno@clisp.org>
50298
50299         Mark 'memcmp' obsolete.
50300         * modules/memcmp (Status, Notice): New sections.
50301         * modules/argmatch (Depends-on): Add memchr.
50302         * modules/backupfile (Depends-on): Likewise.
50303         * modules/c-strcasestr (Depends-on): Likewise.
50304         * modules/crypto/des (Depends-on): Likewise.
50305         * modules/csharpcomp (Depends-on): Likewise.
50306         * modules/fnmatch (Depends-on): Likewise.
50307         * modules/git-merge-changelog (Depends-on): Likewise.
50308         * modules/isnand (Depends-on): Likewise.
50309         * modules/isnand-nolibm (Depends-on): Likewise.
50310         * modules/isnanf (Depends-on): Likewise.
50311         * modules/isnanf-nolibm (Depends-on): Likewise.
50312         * modules/isnanl (Depends-on): Likewise.
50313         * modules/isnanl-nolibm (Depends-on): Likewise.
50314         * modules/mbchar (Depends-on): Likewise.
50315         * modules/memcoll (Depends-on): Likewise.
50316         * modules/quotearg (Depends-on): Likewise.
50317         * modules/regex (Depends-on): Likewise.
50318         * modules/relocatable-prog (Depends-on): Likewise.
50319         * modules/same (Depends-on): Likewise.
50320         * modules/signbit (Depends-on): Likewise.
50321         * modules/strcasestr-simple (Depends-on): Likewise.
50322         * modules/unictype/gen-ctype (Depends-on): Likewise.
50323         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50324         * modules/uniname/uniname (Depends-on): Likewise.
50325         * modules/unistr/u8-cmp (Depends-on): Likewise.
50326
50327 2008-11-02  Bruno Haible  <bruno@clisp.org>
50328
50329         Mark 'memchr' obsolete.
50330         * modules/memchr (Status, Notice): New sections.
50331         * modules/argp (Depends-on): Add memchr.
50332         * modules/base64 (Depends-on): Likewise.
50333         * modules/c-strcasestr (Depends-on): Likewise.
50334         * modules/chdir-long (Depends-on): Likewise.
50335         * modules/fnmatch (Depends-on): Likewise.
50336         * modules/getsubopt (Depends-on): Likewise.
50337         * modules/git-merge-changelog (Depends-on): Likewise.
50338         * modules/glob (Depends-on): Likewise.
50339         * modules/strcasestr-simple (Depends-on): Likewise.
50340         * modules/strnlen (Depends-on): Likewise.
50341
50342 2008-11-02  Bruno Haible  <bruno@clisp.org>
50343
50344         Mark 'atexit' obsolete.
50345         * modules/atexit (Status, Notice): New sections.
50346         * modules/chdir-long (Depends-on): Add atexit.
50347         * modules/wait-process (Depends-on): Likewise.
50348
50349 2008-11-02  Bruno Haible  <bruno@clisp.org>
50350
50351         * gnulib-tool: New option --with-obsolete.
50352         (func_usage): Document it.
50353         (func_modules_transitive_closure): Drop obsolete dependencies if
50354         incobsolete is not true.
50355         (func_import): Read and save the incobsolete variable to the cache.
50356
50357 2008-11-02  Bruno Haible  <bruno@clisp.org>
50358
50359         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50360         * gnulib-tool: New option --extract-status.
50361         (func_usage): Document it.
50362         (sed_extract_prog): Recognize it.
50363         (func_get_status): New function.
50364
50365 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50366
50367         * modules/sockets (License): Change from LGPL to LGPLv2+.
50368
50369 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50370
50371         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50372
50373 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50374
50375         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50376         Mention times and sys_times.
50377         * modules/sys_times, modules/sys_times-tests: New modules.
50378         * modules/times, modules/times-tests: Likewise
50379         * m4/sys_times_h.m4: New file.
50380         * lib/sys_times.in.h: Likewise
50381         * lib/times.c: Likewise.
50382         * tests/test-sys_times.c: Likewise.
50383         * tests/test-times.c: Likewise.
50384         * doc/posix-headers/sys_times.texi: Update.
50385         * doc/posix-functions/times.texi: Update.
50386
50387 2008-10-28  Jim Meyering  <meyering@redhat.com>
50388
50389         * modules/tempname (Depends-on): Add lstat.
50390
50391         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50392
50393 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50394
50395         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50396         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50397         using idiom used elsewhere in gnulib.
50398
50399 2008-10-27  Jim Meyering  <meyering@redhat.com>
50400
50401         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50402
50403 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50404
50405         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50406         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50407         programs.
50408         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50409
50410 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50411
50412         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50413
50414 2008-10-27  Bruno Haible  <bruno@clisp.org>
50415
50416         * tests/test-lstat.c: Include <stdio.h>.
50417
50418 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50419
50420         * modules/lstat-tests: New module.
50421         * tests/test-lstat.c: New file.
50422
50423 2008-10-26  Jim Meyering  <meyering@redhat.com>
50424
50425         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50426
50427 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50428             Bruno Haible  <bruno@clisp.org>
50429
50430         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50431         * modules/configmake (Include): Add a note that the include must come
50432         after all system headers.
50433         * lib/javaversion.c: Include configmake.h after all other includes.
50434
50435 2008-10-26  Bruno Haible  <bruno@clisp.org>
50436
50437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50438         HAVE_STRUCT_RANDOM_DATA to 1.
50439         (gl_STDLIB_H): Simplify.
50440
50441 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50442
50443         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50444         substitute HAVE_STRUCT_RANDOM_DATA.
50445         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50446         random_data.
50447         * modules/stdlib (Makefile.am): Substitute
50448         HAVE_STRUCT_RANDOM_DATA.
50449
50450 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50451
50452         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50453         * doc/gnulib-intro.texi (Copyright): Likewise.
50454
50455 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50456
50457         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50458         findings.
50459
50460 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50461             Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/unistd.in.h: Include <winsock2.h>.
50464         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50465         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50466         Provide dummy declarations.
50467         (gethostname): Override.
50468         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50469         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50470         gl_PREREQ_SYS_H_WINSOCK2.
50471         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50472         * doc/posix-functions/gethostname.texi: More details.
50473
50474 2008-10-25  Bruno Haible  <bruno@clisp.org>
50475
50476         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50477         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50478         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50479
50480         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50481         here ...
50482         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50483         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50484         gl_UNISTD_H_DEFAULTS.
50485
50486 2008-10-25  Eric Blake  <ebb9@byu.net>
50487
50488         signbit: avoid spurious compiler failure
50489         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50490         declarations inside function.
50491
50492 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50493             Bruno Haible  <bruno@clisp.org>
50494
50495         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50496         * modules/random_r (Depends-on): Add stdint.
50497
50498 2008-10-24  Bruno Haible  <bruno@clisp.org>
50499
50500         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50501         Eggert.
50502         * modules/strerror (License): Likewise.
50503
50504 2008-10-24  Jim Meyering  <meyering@redhat.com>
50505
50506         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50507         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50508
50509 2008-10-24  Eric Blake  <ebb9@byu.net>
50510
50511         getgroups: fix compilation when getgroups is available
50512         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50513         but with <config.h> override of getgroups disabled.
50514
50515 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50516
50517         * doc/gnulib.texi (Header files): Add note about C++ problems.
50518         Explained by Bruno Haible <bruno@clisp.org>.
50519
50520 2008-10-23  Bruno Haible  <bruno@clisp.org>
50521
50522         Define a dummy SA_NODEFER macro on Interix.
50523         * lib/signal.in.h (SA_NODEFER): Define fallback.
50524         Reported by Aleksey Cheusov <cheusov@tut.by> via
50525         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50526
50527 2008-10-23  Bruno Haible  <bruno@clisp.org>
50528
50529         * modules/freadahead (License): Change to LGPLv2+.
50530         Suggested by Simon Josefsson.
50531
50532 2008-10-23  Jim Meyering  <meyering@redhat.com>
50533
50534         random_r: new module
50535         * modules/random_r: New file.
50536         * m4/random_r.m4: New file.
50537         * lib/random_r.c: New file, from glibc.
50538         * modules/random_r-tests: New file.
50539         * tests/test-random_r.c: New file.
50540         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50541          Declare.
50542         (RAND_MAX): Define.
50543         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50544         * modules/stdlib: Substitute them, too.
50545         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50546         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50547         * doc/glibc-functions/random_r.texi: Likewise.
50548         * doc/glibc-functions/setstate_r.texi: Likewise.
50549         * doc/glibc-functions/srandom_r.texi: Likewise.
50550         * config/srclist.txt: Mention it.
50551
50552 2008-10-23  David Lutterkort  <lutter@redhat.com>
50553
50554         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50555         link requirement
50556
50557 2008-10-23  Jim Meyering  <meyering@redhat.com>
50558
50559         selinux-h: mark parameters of stub functions as intentionally unused
50560         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50561         * lib/se-context.in.h: Likewise.
50562
50563 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50564
50565         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50566
50567 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50568
50569         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50570
50571 2008-10-22  Eric Blake  <ebb9@byu.net>
50572
50573         glthread/thread: avoid compiler warning
50574         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50575         Add unreachable abort to silence compiler.
50576
50577 2008-10-22  Eric Blake  <ebb9@byu.net>
50578
50579         netdb: also supply struct addrinfo for cygwin 1.5.x
50580         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50581         older cygwin.
50582         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50583         cygwin.
50584         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50585
50586 2008-10-22  Bruno Haible  <bruno@clisp.org>
50587
50588         * users.txt: Update entry about pspp.
50589
50590 2008-10-21  Bruno Haible  <bruno@clisp.org>
50591
50592         Simplification.
50593         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50594         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50595
50596         Simplification.
50597         * lib/ioctl.c (ioctl): Don't undefine.
50598         * lib/socket.c (socket): Don't undefine.
50599
50600         Remove unused module indicator macros.
50601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50602         GNULIB_$1 as a C macro.
50603
50604         * doc/posix-functions/close.texi: Undo last change.
50605         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50606         Windows platforms.
50607
50608 2008-10-21  Bruno Haible  <bruno@clisp.org>
50609
50610         Add gethostname() declaration to <unistd.h>.
50611         * lib/unistd.in.h (gethostname): New declaration.
50612         * lib/gethostname.c: Include <unistd.h>.
50613         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50614         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50616         and HAVE_GETHOSTNAME.
50617         * modules/gethostname (Depends-on): Add unistd.
50618         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50619         (Include): Specify <unistd.h>.
50620         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50621         HAVE_GETHOSTNAME.
50622         * tests/test-gethostname.c: Include <unistd.h> first.
50623
50624 2008-10-21  Bruno Haible  <bruno@clisp.org>
50625
50626         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50627         * modules/select-tests (Depends-on): Likewise.
50628         Reported by Simon Josefsson.
50629
50630 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50631
50632         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50633         * lib/accept.c: New file, based on winsock.c.
50634         * lib/bind.c: New file, based on winsock.c.
50635         * lib/connect.c: New file, based on winsock.c.
50636         * lib/getpeername.c: New file, based on winsock.c.
50637         * lib/getsockname.c: New file, based on winsock.c.
50638         * lib/getsockopt.c: New file, based on winsock.c.
50639         * lib/ioctl.c: New file, based on winsock.c.
50640         * lib/listen.c: New file, based on winsock.c.
50641         * lib/recv.c: New file, based on winsock.c.
50642         * lib/recvfrom.c: New file, based on winsock.c.
50643         * lib/send.c: New file, based on winsock.c.
50644         * lib/sendto.c: New file, based on winsock.c.
50645         * lib/setsockopt.c: New file, based on winsock.c.
50646         * lib/shutdown.c: New file, based on winsock.c.
50647         * lib/socket.c: New file, based on winsock.c.
50648         * lib/w32sock.h: New file, based on winsock.c.
50649         * lib/winsock.c: Remove file.
50650         * modules/accept: Likewise.
50651         * modules/bind: Likewise.
50652         * modules/connect: Likewise.
50653         * modules/getpeername: Likewise.
50654         * modules/getsockname: Likewise.
50655         * modules/getsockopt: Likewise.
50656         * modules/ioctl: Likewise.
50657         * modules/listen: Likewise.
50658         * modules/recv: Likewise.
50659         * modules/recvfrom: Likewise.
50660         * modules/send: Likewise.
50661         * modules/sendto: Likewise.
50662         * modules/setsockopt: Likewise.
50663         * modules/shutdown: Likewise.
50664         * modules/socket: Use socket.c instead of winsock.c.
50665         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50666         * doc/posix-functions/accept.texi: Doc fix.
50667         * doc/posix-functions/bind.texi: Doc fix.
50668         * doc/posix-functions/close.texi: Doc fix.
50669         * doc/posix-functions/connect.texi: Doc fix.
50670         * doc/posix-functions/getpeername.texi: Doc fix.
50671         * doc/posix-functions/getsockname.texi: Doc fix.
50672         * doc/posix-functions/getsockopt.texi: Doc fix.
50673         * doc/posix-functions/ioctl.texi: Doc fix.
50674         * doc/posix-functions/listen.texi: Doc fix.
50675         * doc/posix-functions/recv.texi: Doc fix.
50676         * doc/posix-functions/recvfrom.texi: Doc fix.
50677         * doc/posix-functions/send.texi: Doc fix.
50678         * doc/posix-functions/sendto.texi: Doc fix.
50679         * doc/posix-functions/setsockopt.texi: Doc fix.
50680         * doc/posix-functions/shutdown.texi: Doc fix.
50681         * doc/posix-functions/socket.texi: Doc fix.
50682
50683 2008-10-20  Bruno Haible  <bruno@clisp.org>
50684
50685         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50686         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50687         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50688         as an alias for SIGABRT.
50689         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50690         (sigaction): Map it to SIGABRT.
50691         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50692
50693 2008-10-20  Bruno Haible  <bruno@clisp.org>
50694
50695         * lib/fts.c: Don't include lstat.h.
50696         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50697
50698         Move the lstat() declaration to <sys/stat.h>.
50699         * lib/lstat.h: Remove file.
50700         * lib/sys_stat.in.h: Add special invocation convention.
50701         (lstat): New declaration.
50702         * lib/lstat.c (orig_lstat): New function.
50703         (rpl_lstat): Use orig_lstat instead of lstat.
50704         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50705         AC_C_INLINE. Set REPLACE_LSTAT.
50706         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50707         and REPLACE_LSTAT.
50708         * modules/lstat (Files): Remove lib/lstat.h.
50709         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50710         (Include): Specify <sys/stat.h> instead of lstat.h.
50711         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50712         REPLACE_LSTAT.
50713         * NEWS: Mention the change.
50714
50715 2008-10-20  Bruno Haible  <bruno@clisp.org>
50716
50717         * modules/posix_spawn-tests: New file.
50718         * tests/test-posix_spawn3.c: New file.
50719
50720 2008-10-20  Bruno Haible  <bruno@clisp.org>
50721
50722         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50723         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50724         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50725         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50726         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50727
50728 2008-10-20  Bruno Haible  <bruno@clisp.org>
50729
50730         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50731         of posix_spawn on AIX 5.3.
50732
50733 2008-10-20  Bruno Haible  <bruno@clisp.org>
50734
50735         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50736
50737 2008-10-20  Bruno Haible  <bruno@clisp.org>
50738
50739         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50740         of AC_LANG_PROGRAM.
50741
50742 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50743
50744         * lib/netdb.in.h: Don't define GNU specific constants until they
50745         are supported or needed.  Reported by Bruno Haible
50746         <bruno@clisp.org>.
50747
50748 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50749
50750         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50751
50752 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50753
50754         * lib/getaddrinfo.h: Remove file.
50755         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50756         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50757         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50758         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50759         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50760         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50761         * tests/test-getaddrinfo.c: Likewise.
50762         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50763         * NEWS: Mention change.
50764
50765 2008-10-19  Bruno Haible  <bruno@clisp.org>
50766
50767         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50768
50769 2008-10-19  Bruno Haible  <bruno@clisp.org>
50770
50771         * lib/wait-process.c: Include simply <sys/wait.h>.
50772         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50773         WIFSTOPPED): Remove fallback definitions.
50774         * modules/wait-process (Depends-on): Add sys_wait.
50775
50776         New module 'sys_wait'.
50777         * modules/sys_wait: New file.
50778         * lib/sys_wait.in.h: New file, partially copied from
50779         lib/wait-process.c.
50780         * m4/sys_wait_h.m4: New file.
50781         * doc/posix-headers/sys_wait.texi: Mention the new module.
50782
50783 2008-10-19  Bruno Haible  <bruno@clisp.org>
50784
50785         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50786
50787 2008-10-19  Bruno Haible  <bruno@clisp.org>
50788
50789         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50790         * lib/wait-process.c (WAIT_T): Remove type.
50791         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50792         (wait_subprocess): Update.
50793
50794 2008-10-19  Bruno Haible  <bruno@clisp.org>
50795
50796         New module 'atoll'.
50797         * modules/atoll: New file.
50798         * lib/stdlib.in.h (atoll): New declaration.
50799         * lib/atoll.c: New file, from glibc with modifications.
50800         * m4/atoll.m4: New file.
50801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50802         HAVE_ATOLL.
50803         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50804         * doc/posix-functions/atoll.texi: Mention the new module.
50805
50806 2008-10-19  Bruno Haible  <bruno@clisp.org>
50807
50808         Add strtoull() declaration to <stdlib.h>.
50809         * lib/stdlib.in.h (strtoull): New declaration.
50810         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50811         Set HAVE_STRTOULL.
50812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50813         HAVE_STRTOULL.
50814         * modules/strtoull (Depends-on): Add stdlib.
50815         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50816         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50817         HAVE_STRTOULL.
50818
50819 2008-10-19  Bruno Haible  <bruno@clisp.org>
50820
50821         Add strtoll() declaration to <stdlib.h>.
50822         * lib/stdlib.in.h (strtoll): New declaration.
50823         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50824         Set HAVE_STRTOLL.
50825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50826         HAVE_STRTOLL.
50827         * modules/strtoll (Depends-on): Add stdlib.
50828         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50829         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50830
50831 2008-10-19  Bruno Haible  <bruno@clisp.org>
50832
50833         * modules/bcopy (Depends-on): Add strings.
50834         (Include): Specify <strings.h>.
50835
50836 2008-10-19  Bruno Haible  <bruno@clisp.org>
50837
50838         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50839
50840 2008-10-19  Bruno Haible  <bruno@clisp.org>
50841
50842         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50843         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50844         mingw.
50845
50846 2008-10-19  Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/atanl.c: Don't include isnanl.h.
50849         * lib/cosl.c: Likewise.
50850         * lib/ldexpl.c: Likewise.
50851         * lib/logl.c: Likewise.
50852         * lib/sinl.c: Likewise.
50853         * lib/sqrtl.c: Likewise.
50854         * lib/tanl.c: Likewise.
50855
50856         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50857         * lib/isnanf.h: Remove file.
50858         * lib/isnand.h: Remove file.
50859         * lib/isnanl.h: Remove file.
50860         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50861         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50862         macros.
50863         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50864         HAVE_ISNANF, don't define it as a C macro.
50865         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50866         HAVE_ISNAND, don't define it as a C macro.
50867         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50868         HAVE_ISNANL, don't define it as a C macro.
50869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50870         HAVE_ISNAN[FDL].
50871         * modules/isnanf (Files): Remove lib/isnanf.h.
50872         (Depends-on): Add math.
50873         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50874         (Include): Specify <math.h> instead of isnanf.h.
50875         * modules/isnand (Files): Remove lib/isnand.h.
50876         (Depends-on): Add math.
50877         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50878         (Include): Specify <math.h> instead of isnand.h.
50879         * modules/isnanl (Files): Remove lib/isnanl.h.
50880         (Depends-on): Add math.
50881         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50882         (Include): Specify <math.h> instead of isnanl.h.
50883         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50884         HAVE_ISNAN[FDL].
50885         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50886         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50887         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50888         * NEWS: Mention the change.
50889
50890 2008-10-18  Bruno Haible  <bruno@clisp.org>
50891
50892         Add getusershell(), setusershell(), endusershell() declarations to
50893         <unistd.h>.
50894         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50895         declarations.
50896         * lib/getusershell.c: Include unistd.h.
50897         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50898         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50899         HAVE_GETUSERSHELL.
50900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50901         and HAVE_GETUSERSHELL.
50902         * modules/getusershell (Depends-on): Add unistd, extensions.
50903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50904         (Include): Specify <unistd.h>.
50905         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50906         HAVE_GETUSERSHELL.
50907
50908 2008-10-18  Bruno Haible  <bruno@clisp.org>
50909
50910         Add a getloadavg() declaration to <stdlib.h>.
50911         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50912         getloadavg declaration.
50913         (getloadavg): New declaration.
50914         * lib/getloadavg.c: Include <stdlib.h> first.
50915         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50916         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50917         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50919         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50920         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50921         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50922         (Include): Specify <stdlib.h>.
50923         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50924         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50925
50926 2008-10-18  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/dirchownmod.c: Don't include lchmod.h.
50929
50930         Move the lchmod() declaration to <sys/stat.h>.
50931         * lib/lchmod.h: Remove file.
50932         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50933         (lchmod): New declaration, moved here from lib/lchown.h.
50934         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50935         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50936         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50937         and HAVE_LCHMOD.
50938         * modules/lchmod (Files): Remove lib/lchmod.h.
50939         (Depends-on): Add sys_stat, extensions.
50940         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50941         (Include): Specify <sys/stat.h> instead of lchmod.h.
50942         * modules/sys_stat (Depends-on): Add link-warning.
50943         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50944         definition of GL_LINK_WARNING.
50945         * NEWS: Mention the change.
50946
50947 2008-10-18  Bruno Haible  <bruno@clisp.org>
50948
50949         * lib/fchdir.c: Don't include dirfd.h.
50950         * lib/fts.c: Likewise.
50951         * lib/getcwd.c: Likewise.
50952         * lib/glob.c: Likewise.
50953
50954         Move the dirfd() declaration to <dirent.h>.
50955         * lib/dirfd.h: Remove file.
50956         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50957         (dirfd): New declaration.
50958         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50959         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50960         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50961         HAVE_DECL_DIRFD.
50962         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50963         HAVE_DECL_DIRFD.
50964         * modules/dirfd (Files): Remove lib/dirfd.h.
50965         (Depends-on): Add dirent, extensions.
50966         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50967         (Include): Specify <dirent.h> instead of dirfd.h.
50968         * modules/dirent (Depends-on): Add link-warning.
50969         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50970         definition of GL_LINK_WARNING.
50971         * NEWS: Mention the change.
50972
50973 2008-10-18  Bruno Haible  <bruno@clisp.org>
50974
50975         Move the euidaccess() declaration to <unistd.h>.
50976         * lib/euidaccess.h: Remove file.
50977         * lib/unistd.in.h (euidaccess): New declaration.
50978         * lib/euidaccess.c: Don't include euidaccess.h.
50979         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50980         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50982         and HAVE_EUIDACCESS.
50983         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50984         (Depends-on): Add unistd.
50985         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50986         (Include): Specify <unistd.h> instead of euidaccess.h.
50987         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50988         HAVE_EUIDACCESS.
50989         * NEWS: Mention the change.
50990
50991 2008-10-18  Bruno Haible  <bruno@clisp.org>
50992
50993         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50994
50995         Move the getdomainname() declaration to <unistd.h>.
50996         * lib/getdomainname.h: Remove file.
50997         * lib/unistd.in.h (getdomainname): New declaration.
50998         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50999         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51000         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51001         HAVE_GETDOMAINNAME.
51002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51003         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51004         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51005         (Depends-on): Add unistd, extensions.
51006         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51007         (Includes): Specify <unistd.h> instead of getdomainname.h.
51008         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51009         HAVE_GETDOMAINNAME.
51010         * NEWS: Mention the change.
51011
51012 2008-10-18  Bruno Haible  <bruno@clisp.org>
51013
51014         * modules/dirent: New file.
51015         * m4/dirent_h.m4: New file.
51016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51017         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51018         * modules/fchdir (Files): Remove lib/dirent.in.h.
51019         (Depends-on): Add dirent.
51020         (Makefile.am): Move rules to modules/dirent.
51021         * doc/posix-headers/dirent.texi: Mention the new module.
51022
51023 2008-10-18  Bruno Haible  <bruno@clisp.org>
51024
51025         Avoid -Wunused-parameter warnings in public gnulib header files.
51026         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51027         macro.
51028         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51029
51030 2008-10-18  Bruno Haible  <bruno@clisp.org>
51031
51032         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51033         * doc/glibc-functions/error.texi: Mention the module 'error'.
51034         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51035         * doc/glibc-functions/getdomainname.texi: Mention the module
51036         'getdomainname'.
51037         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51038         * doc/glibc-functions/getpagesize.texi: Mention the module
51039         'getpagesize'.
51040         * doc/glibc-functions/getusershell.texi: Mention the module
51041         'getusershell'.
51042         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51043         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51044         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51045         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51046         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51047         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51048         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51049         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51050         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51051         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51052         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51053         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51054         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51055         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51056
51057 2008-10-17  Bruno Haible  <bruno@clisp.org>
51058
51059         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51060         HP-UX and IRIX, use -0.0L.
51061         * tests/test-ceill.c (minus_zero): Likewise.
51062         * tests/test-floorl.c (minus_zero): Likewise.
51063         * tests/test-frexpl.c (minus_zero): Likewise.
51064         * tests/test-isnan.c (minus_zerol): Likewise.
51065         * tests/test-isnanl.h (minus_zero): Likewise.
51066         * tests/test-ldexpl.c (minus_zero): Likewise.
51067         * tests/test-roundl.c (minus_zero): Likewise.
51068         * tests/test-signbit.c (minus_zerol): Likewise.
51069         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51070         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51071         * tests/test-truncl.c (minus_zero): Likewise.
51072         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51073         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51074         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51075         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51076
51077 2008-10-17  Bruno Haible  <bruno@clisp.org>
51078
51079         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51080         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51081         that it gets activated only for gcc >= 3.0.
51082         * lib/dirent.in.h: Likewise.
51083         * lib/errno.in.h: Likewise.
51084         * lib/fcntl.in.h: Likewise.
51085         * lib/float.in.h: Likewise.
51086         * lib/iconv.in.h: Likewise.
51087         * lib/inttypes.in.h: Likewise.
51088         * lib/locale.in.h: Likewise.
51089         * lib/math.in.h: Likewise.
51090         * lib/netdb.in.h: Likewise.
51091         * lib/netinet_in.in.h: Likewise.
51092         * lib/search.in.h: Likewise.
51093         * lib/signal.in.h: Likewise.
51094         * lib/spawn.in.h: Likewise.
51095         * lib/stdarg.in.h: Likewise.
51096         * lib/stdint.in.h: Likewise.
51097         * lib/stdio.in.h: Likewise.
51098         * lib/stdlib.in.h: Likewise.
51099         * lib/string.in.h: Likewise.
51100         * lib/strings.in.h: Likewise.
51101         * lib/sys_file.in.h: Likewise.
51102         * lib/sys_ioctl.in.h: Likewise.
51103         * lib/sys_select.in.h: Likewise.
51104         * lib/sys_socket.in.h: Likewise.
51105         * lib/sys_stat.in.h: Likewise.
51106         * lib/sys_time.in.h: Likewise.
51107         * lib/sysexits.in.h: Likewise.
51108         * lib/time.in.h: Likewise.
51109         * lib/unistd.in.h: Likewise.
51110         * lib/wchar.in.h: Likewise.
51111         * lib/wctype.in.h: Likewise.
51112         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51113
51114 2008-10-17  Jim Meyering  <meyering@redhat.com>
51115
51116         ignore-value: don't depend on inline module
51117         * modules/ignore-value (Depends-on): Remove 'inline'.
51118         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51119         Suggestion from Bruno Haible.
51120
51121 2008-10-17  Bruno Haible  <bruno@clisp.org>
51122
51123         New implementation of condition variables for Win32.
51124         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51125         (gl_linked_waitqueue_t): New type.
51126         (gl_cond_t): Use it.
51127         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51128         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51129         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51130         (glthread_cond_init_func, glthread_cond_wait_func,
51131         glthread_cond_timedwait_func, glthread_cond_signal_func,
51132         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51133         Reimplemented on the basis of gl_linked_waitqueue_t.
51134         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51135         gl_waitqueue_t.
51136         (gl_rwlock_t): Update.
51137         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51138
51139 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51140
51141         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51142         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51143
51144 2008-10-17  Jim Meyering  <meyering@redhat.com>
51145
51146         ignore-value: new module
51147         * modules/ignore-value: New file.
51148         * lib/ignore-value.h: New file.
51149         * MODULES.html.sh (Compiler warning management): New section,
51150         just for this module.  More to come.
51151
51152 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51153
51154         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51155         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51156         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51157
51158 2008-10-16  Jim Meyering  <meyering@redhat.com>
51159
51160         openat-die.c: avoid 'no previous prototype' warning
51161         * lib/openat-die.c: Include "openat.h".
51162         Reported by Reuben Thomas <rrt@sc3d.org>.
51163
51164 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51165
51166         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51167         * lib/netdb.in.h: Fix typo.
51168         Reported by Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/netdb.in.h: Include sys/socket.h for platforms without
51171         netdb.h, to get structures like hostent on MinGW.
51172         * modules/netdb (Depends-on): Add sys_socket.
51173
51174 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51175
51176         * modules/netdb, modules/netdb-tests: New file.
51177         * m4/netdb_h.m4: New file.
51178         * lib/netdb.in.h: Add, currently just an empty file pending
51179         definitions.
51180         * tests/test-netdb.c: New file.
51181         * doc/posix-headers/netdb.texi: Mention that we replace it if
51182         needed.
51183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51184         netdb.
51185
51186 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51187
51188         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51189         with code.
51190
51191 2008-10-13  Bruno Haible  <bruno@clisp.org>
51192
51193         * lib/glthread/cond.c (glthread_cond_wait_func,
51194         glthread_cond_timedwait_func): Add a comment.
51195
51196 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51197
51198         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51199         * tests/test-select.c: Likewise,
51200
51201 2008-10-13  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/glthread/cond.c (glthread_cond_wait_func,
51204         glthread_cond_timedwait_func): Fix variable name.
51205         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51206
51207 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51208
51209         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51210         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51211         struct sockaddr.sa_len.
51212         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51213
51214 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51215
51216         * build-aux/pmccabe2html: Add css and css_url parameters.
51217
51218 2008-10-12  Bruno Haible  <bruno@clisp.org>
51219
51220         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51221         calling aclx_get.
51222         Reported by Rainer Tammer <tammer@tammer.net>.
51223
51224 2008-10-12  Bruno Haible  <bruno@clisp.org>
51225
51226         Use msvcrt aware primitives for creation/termination of Win32 threads.
51227         * lib/glthread/thread.c: Include <process.h>.
51228         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51229         (wrapper_func): Update signature.
51230         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51231
51232 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51233             Bruno Haible  <bruno@clisp.org>
51234
51235         Provide a Win32 implementation of the 'cond' module.
51236         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51237         * lib/glthread/cond.c (glthread_cond_init_func,
51238         glthread_cond_wait_func, glthread_cond_timedwait_func,
51239         glthread_cond_signal_func, glthread_cond_broadcast_func,
51240         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51241         * modules/cond (Dependencies): Add gettimeofday.
51242
51243 2008-10-11  Bruno Haible  <bruno@clisp.org>
51244
51245         Make sleep work on older versions of mingw.
51246         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51247         only whether it exists.
51248         * doc/posix-functions/sleep.texi: Mention the problem with older
51249         versions of mingw.
51250
51251 2008-10-11  Bruno Haible  <bruno@clisp.org>
51252
51253         New module 'shutdown'.
51254         * modules/shutdown: New file.
51255         * lib/sys_socket.in.h (shutdown): New declaration.
51256         * lib/winsock.c (shutdown): New function.
51257         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51258         GNULIB_SHUTDOWN.
51259         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51260         * doc/posix-functions/shutdown.texi: Document the new module.
51261
51262 2008-10-11  Jim Meyering  <meyering@redhat.com>
51263
51264         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51265
51266 2008-10-11  Bruno Haible  <bruno@clisp.org>
51267
51268         New module 'fclose'.
51269         * modules/fclose: New file.
51270         * lib/stdio.in.h (fclose): New declaration.
51271         * lib/fclose.c: New file.
51272         * m4/fclose.m4: New file.
51273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51274         REPLACE_FCLOSE.
51275         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51276         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51277         REPLACE_FCLOSE.
51278         * modules/close (Depends-on): fclose.
51279         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51280
51281 2008-10-11  Bruno Haible  <bruno@clisp.org>
51282
51283         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51284         set errno and don't call _close.
51285
51286 2008-10-10  Bruno Haible  <bruno@clisp.org>
51287
51288         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51289         ACL, not afterwards. Fixes test failure on Cygwin.
51290
51291 2008-10-09  Ben Pfaff  <blp@gnu.org>
51292
51293         * build-aux/announce-gen: Fix gnulib version related part of usage
51294         message.  Die with a useful error message if no tarballs are
51295         found.
51296
51297 2008-10-10  Jim Meyering  <meyering@redhat.com>
51298
51299         bootstrap: use git's --depth=N option only if it's supported
51300         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51301         recognize the --depth option.  Reported by Pádraig Brady.
51302
51303 2008-10-09  Bruno Haible  <bruno@clisp.org>
51304
51305         New module 'ioctl'.
51306         * modules/ioctl: New file.
51307         * lib/sys_socket.in.h (ioctl): Remove declaration.
51308         * lib/winsock.c: Include <sys/ioctl.h>.
51309         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51310         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51311         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51312         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51313         * doc/posix-functions/ioctl.texi: Mention the new module.
51314
51315 2008-10-09  Bruno Haible  <bruno@clisp.org>
51316
51317         New module 'sys_ioctl'.
51318         * lib/sys_ioctl.in.h: New file.
51319         * m4/sys_ioctl_h.m4: New file.
51320         * modules/sys_ioctl: New file.
51321         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51322
51323 2008-10-09  Bruno Haible  <bruno@clisp.org>
51324
51325         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51326         * lib/winsock.c: Include <stdarg.h>.
51327         (rpl_ioctl): Change to second argument 'int' and then varargs.
51328
51329 2008-10-09  Bruno Haible  <bruno@clisp.org>
51330
51331         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51332         when the sys_socket module is present and the system has <winsock2.h>.
51333
51334 2008-10-09  Bruno Haible  <bruno@clisp.org>
51335
51336         * doc/posix-functions/close.texi: Mention module 'close' instead of
51337         module 'sys_socket'.
51338
51339 2008-10-09  Bruno Haible  <bruno@clisp.org>
51340
51341         * doc/glibc-headers/sys_ioctl.texi: New file.
51342         * doc/gnulib.texi: Include it.
51343
51344 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51345             Bruno Haible  <bruno@clisp.org>
51346
51347         Combine the two replacements of 'close'.
51348         * lib/sys_socket.in.h (close): Define to a reminder to include
51349         <unistd.h>.
51350         (_gl_close_fd_maybe_socket): New declaration.
51351         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51352         * lib/winsock.c (close): Remove undefinition.
51353         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51354         needed for the gnulib module 'close'.
51355         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51356         define to an error symbol or to a warning, if suitable.
51357         * lib/close.c: Include <sys/socket.h>.
51358         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51359         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51360         UNISTD_H_HAVE_WINSOCK2_H.
51361         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51363         UNISTD_H_HAVE_WINSOCK2_H.
51364         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51365         (configure.ac): Set a module indicator.
51366         (Makefile.am): Substitute GNULIB_CLOSE.
51367         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51368         * modules/poll-tests (Depends-on): Add close.
51369         * modules/select-tests (Depends-on): Likewise.
51370
51371 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51372             Bruno Haible  <bruno@clisp.org>
51373
51374         New module 'close'.
51375         * modules/close: New file.
51376         * lib/unistd.in.h (close): Move declaration out of the
51377         FCHDIR_REPLACEMENT scope.
51378         (_gl_unregister_fd): New declaration.
51379         * lib/close.c: New file.
51380         * lib/fchdir.c (rpl_close): Remove function.
51381         * m4/close.m4: New file.
51382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51383         close.
51384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51385         REPLACE_CLOSE.
51386         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51387         REPLACE_CLOSE.
51388         * modules/fchdir (Depends-on): Add close.
51389
51390 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51391             Bruno Haible  <bruno@clisp.org>
51392
51393         * lib/fcntl.in.h (open): Simplify conditionals.
51394         (_gl_register_fd): New declaration.
51395         * lib/fchdir.c (rpl_open): Remove function.
51396         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51397         also.
51398         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51400         open.
51401
51402 2008-10-09  Jim Meyering  <meyering@redhat.com>
51403
51404         GNUmakefile: use the more name-space-friendly "_version"
51405         * top/GNUmakefile (_dummy): Update.
51406         (_version): Rename from "version".
51407
51408 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51409             Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51412         rpl_close.
51413         (_gl_register_fd): New function, extracted from rpl_open.
51414         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51415         (rpl_open, rpl_opendir): Use _gl_register_fd.
51416
51417 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51418
51419         Fix organization of 'open' replacement.
51420         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51421         (gl_FUNC_OPEN): Use it.
51422         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51423
51424 2008-10-08  Bruno Haible  <bruno@clisp.org>
51425
51426         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51427
51428 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51429
51430         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51431         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51432         listen).
51433
51434 2008-10-08  Eric Blake  <ebb9@byu.net>
51435
51436         GNUmakefile: add 'make version' target
51437         * top/GNUmakefile (_curr-ver): Split version update rules...
51438         (version): ...into a target.
51439
51440 2008-10-07  Bruno Haible  <bruno@clisp.org>
51441
51442         Use a more portable replacement expression for -0.0L.
51443         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51444         instead of -0.0L. Fix m4 quotation.
51445
51446         * tests/test-signbit.c: Include <float.h>.
51447         (minus_zero): New variable.
51448         (test_signbitl): Use minus_zero instead of -zero.
51449         * modules/signbit-tests (Depends-on): Add float.
51450
51451         * tests/test-ceill.c: Include <float.h>.
51452         (zero): Remove variable.
51453         (minus_zero): New variable.
51454         (main): Use minus_zero instead of -zero.
51455         * modules/ceill-tests (Depends-on): Add float.
51456
51457         * tests/test-floorl.c: Include <float.h>.
51458         (zero): Remove variable.
51459         (minus_zero): New variable.
51460         (main): Use minus_zero instead of -zero.
51461         * modules/floorl-tests (Depends-on): Add float.
51462
51463         * tests/test-roundl.c: Include <float.h>.
51464         (zero): Remove variable.
51465         (minus_zero): New variable.
51466         (main): Use minus_zero instead of -zero.
51467         * modules/roundl-tests (Depends-on): Add float.
51468
51469         * tests/test-truncl.c: Include <float.h>.
51470         (zero): Remove variable.
51471         (minus_zero): New variable.
51472         (main): Use minus_zero instead of -zero.
51473         * modules/truncl-tests (Depends-on): Add float.
51474
51475         * tests/test-frexpl.c (zero): Remove variable.
51476         (minus_zero): New variable.
51477         (main): Use minus_zero instead of -zero.
51478         * modules/frexpl-tests (Depends-on): Add float.
51479
51480         * tests/test-isnan.c (zerol): Remove variable.
51481         (minus_zerol): New variable.
51482         (test_long_double): Use minus_zerol instead of -zerol.
51483         * modules/isnan-tests (Depends-on): Add float.
51484
51485         * tests/test-isnanl.h (zero): Remove variable.
51486         (minus_zero): New variable.
51487         (main): Use minus_zero instead of -zero.
51488         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51489         * modules/isnanl-tests (Depends-on): Add float.
51490
51491         * tests/test-ldexpl.c (zero): Remove variable.
51492         (minus_zero): New variable.
51493         (main): Use minus_zero instead of -zero.
51494         * modules/ldexpl-tests (Depends-on): Add float.
51495
51496         * tests/test-snprintf-posix.h (zerol): Remove variable.
51497         (minus_zerol): New variable.
51498         (test_function): Use minus_zerol instead of -zerol.
51499         * modules/snprintf-posix-tests (Depends-on): Add float.
51500         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51501
51502         * tests/test-sprintf-posix.h (zerol): Remove variable.
51503         (minus_zerol): New variable.
51504         (test_function): Use minus_zerol instead of -zerol.
51505         * modules/sprintf-posix-tests (Depends-on): Add float.
51506         * modules/vsprintf-posix-tests (Depends-on): Add float.
51507
51508         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51509         (minus_zerol): New variable.
51510         (test_function): Use minus_zerol instead of -zerol.
51511         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51512
51513         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51514         (minus_zerol): New variable.
51515         (test_function): Use minus_zerol instead of -zerol.
51516         * modules/vasprintf-posix-tests (Depends-on): Add float.
51517
51518 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51519
51520         * MODULES.html.sh (Support for building documentation): Mention
51521         pmccabe2html.  Sort entries.
51522
51523         Add pmccabe2html module, from gnupdf.
51524         * build-aux/pmccabe.css: New file.
51525         * build-aux/pmccabe2html: New file.
51526         * m4/pmccabe2html.m4: New file.
51527         * modules/pmccabe2html: New file.
51528
51529 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51530
51531         flock: new module
51532         * MODULES.html.sh: Add to list of modules.
51533         * lib/flock.c: flock implementation for Windows and Unix systems
51534         which have fcntl.
51535         * doc/glibc-functions/flock.texi: Update documentation.
51536         * lib/sys_file.in.h: <sys/file.h> header file.
51537         * m4/flock.m4: M4 macros.
51538         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51539         * modules/flock: flock module.
51540         * modules/flock-tests: flock tests module.
51541         * modules/sys_file: sys/file.h module.
51542         * tests/test-flock.c: test suite for flock.
51543
51544 2008-10-06  Jim Meyering  <meyering@redhat.com>
51545
51546         bootstrap: check for LT_INIT more portably still ;-)
51547         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51548         Spotted by Bruno Haible.
51549
51550 2008-10-06  Eric Blake  <ebb9@byu.net>
51551
51552         test-signbit: avoid tripping Irix cc bug on -0.0L
51553         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51554         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51555         entire testsuite consistent and avoids an Irix 6.2 bug.
51556
51557 2008-10-05  Bruno Haible  <bruno@clisp.org>
51558             Jim Meyering  <jim@meyering.net>
51559
51560         Add an option for ignoring EPIPE during close_stdout.
51561         * lib/closeout.h: Include <stdbool.h>.
51562         (close_stdout_set_ignore_EPIPE): New declaration.
51563         * lib/closeout.c: Include <stdbool.h>.
51564         (ignore_EPIPE): New variable.
51565         (close_stdout_set_ignore_EPIPE): New function.
51566         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51567         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51568         failure.
51569         * modules/closeout (Depends-on): Add stdbool.
51570
51571 2008-10-05  Bruno Haible  <bruno@clisp.org>
51572
51573         * modules/accept: New file.
51574         * modules/bind: New file.
51575         * modules/connect: New file.
51576         * modules/getpeername: New file.
51577         * modules/getsockname: New file.
51578         * modules/getsockopt: New file.
51579         * modules/listen: New file.
51580         * modules/recv: New file.
51581         * modules/recvfrom: New file.
51582         * modules/send: New file.
51583         * modules/sendto: New file.
51584         * modules/setsockopt: New file.
51585         * modules/socket: New file.
51586         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51587         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51588         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51589         the particular module is requested. Add a link warning when the
51590         particular module is not requested.
51591         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51592         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51593         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51594         the particular module is requested.
51595         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51596         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51597         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51598         * modules/sys_socket (Depends-on): Add link-warning.
51599         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51600         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51601         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51602         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51603         GL_LINK_WARNING.
51604         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51605         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51606         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51607         * doc/posix-functions/getpeername.texi: Mention the new module
51608         'getpeername'.
51609         * doc/posix-functions/getsockname.texi: Mention the new module
51610         'getsockname'.
51611         * doc/posix-functions/getsockopt.texi: Mention the new module
51612         'getsockopt'.
51613         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51614         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51615         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51616         * doc/posix-functions/send.texi: Mention the new module 'send'.
51617         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51618         * doc/posix-functions/setsockopt.texi: Mention the new module
51619         'setsockopt'.
51620         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51621         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51622         listen, connect, accept.
51623         * modules/select-tests (Depends-on): Likewise.
51624
51625 2008-10-05  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/winsock.c (strerror): Remove unused #undef.
51628         (rpl_close): Remove unused local variable.
51629
51630         * modules/sys_socket (Depends-on); Add errno.
51631
51632 2008-10-05  Bruno Haible  <bruno@clisp.org>
51633
51634         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51635         (select): Add a link warning when the 'select' module is not used.
51636         * modules/sys_select (Depends-on): Add link-warning.
51637         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51638         Suggested by Paolo Bonzini.
51639
51640 2008-10-05  Jim Meyering  <meyering@redhat.com>
51641
51642         bootstrap: check for LT_INIT more portably
51643         * build-aux/bootstrap: Avoid using grep -E, since it's not
51644         portable enough.  Suggestion from Bruno Haible.
51645
51646 2008-10-05  Bruno Haible  <bruno@clisp.org>
51647
51648         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51649         as being fixed by gnulib.
51650
51651 2008-10-05  Bruno Haible  <bruno@clisp.org>
51652
51653         * modules/select-tests: New file, mostly copied from
51654         modules/sys_select-tests.
51655         * tests/test-select.c: New file, mostly copied from
51656         tests/test-sys_select.c.
51657         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51658         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51659         (Makefile.am): Remove test_sys_select_LDADD.
51660
51661         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51662         to an undefined symbol, for an error message.
51663         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51664         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51665         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51666         winsock-select.c here.
51667         * modules/sys_select (Files): Remove lib/winsock-select.c.
51668         (Depends-on): Remove alloca.
51669         (Makefile.am): Substitute GNULIB_SELECT.
51670         * modules/select: New file.
51671         * doc/posix-functions/select.texi: Update.
51672
51673 2008-10-05  Bruno Haible  <bruno@clisp.org>
51674
51675         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51676         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51677         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51678         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51679         getdtablesize.
51680         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51681         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51682
51683 2008-10-05  Bruno Haible  <bruno@clisp.org>
51684
51685         * modules/getdtablesize-tests: New file.
51686         * tests/test-getdtablesize.c: New file.
51687
51688         New module 'getdtablesize'.
51689         * lib/unistd.in.h (getdtablesize): New declaration.
51690         * lib/getdtablesize.c: New file.
51691         * m4/getdtablesize.m4: New file.
51692         * modules/getdtablesize: New file.
51693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51694         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51695         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51696         HAVE_GETDTABLESIZE.
51697         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51698
51699 2008-10-05  Bruno Haible  <bruno@clisp.org>
51700
51701         * modules/sched (Makefile.am): Fix typo.
51702         Reported by Simon Josefsson.
51703
51704 2008-10-05  Jim Meyering  <meyering@redhat.com>
51705
51706         bootstrap: check for LT_INIT, too
51707         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51708         are deprecated.  Suggestion from Ralf Wildenhues.
51709
51710 2008-10-05  Bruno Haible  <bruno@clisp.org>
51711
51712         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51713         overriding them by ours.
51714         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51715
51716 2008-10-05  Jim Meyering  <meyering@redhat.com>
51717
51718         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51719         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51720         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51721
51722 2008-10-04  Bruno Haible  <bruno@clisp.org>
51723
51724         * modules/dup2 (License): Change to LGPLv2+.
51725         * modules/sleep (License): Likewise.
51726         * modules/perror (License): Likewise.
51727         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51728         Blake.
51729         * modules/signal (License): Likewise.
51730         * modules/sigprocmask (License): Likewise.
51731         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51732         Meyering.
51733
51734 2008-10-04  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51737         Reported by Rainer Tammer <tammer@tammer.net>.
51738
51739 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51740             Bruno Haible  <bruno@clisp.org>
51741
51742         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51743         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51744         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51745
51746 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51747
51748         filevercmp: new module
51749         * lib/filevercmp.h: New function filevercmp comparing version strings.
51750         * lib/filevercmp.c: Implementation of filevercmp function.
51751         * modules/filevercmp: Module metadata.
51752         * tests/test-filevercmp.c: Unit test for new module.
51753         * modules/filevercmp-tests: Unit test metadata.
51754         * MODULES.html.sh: Add filevercmp module.
51755
51756 2008-10-03  Bruno Haible  <bruno@clisp.org>
51757
51758         * lib/c-ctype.h: Add comment.
51759         Reported by Jim Meyering.
51760
51761 2008-10-02  Bruno Haible  <bruno@clisp.org>
51762
51763         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51764
51765 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51766
51767         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51768         name of bootstrap.conf accordingly.
51769
51770 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51771
51772         * build-aux/bootstrap: Install git-merge-changelog configuration
51773         items into .gitconfig if needed.
51774
51775 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51776
51777         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51778         git repository, and initialize/update it accordingly.
51779
51780 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51781
51782         * modules/fsync-tests: New file.
51783         * tests/test-fsync.c: New file.
51784
51785         New module 'fsync'.
51786         * lib/fsync.c: New file.
51787         * m4/fsync.m4: New file.
51788         * modules/fsync: New file.
51789         * lib/unistd.in.h (fsync): New declaration.
51790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51791         GNULIB_FSYNC and HAVE_FSYNC.
51792         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51793         * MODULES.html.sh (posix_functions): Add fsync.
51794         * doc/posix-functions/fsync.texi: Mention the new module.
51795
51796 2008-10-02  Jim Meyering  <meyering@redhat.com>
51797
51798         fts.c: sync with similar code from coreutils' remove.c
51799         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51800         Guard also with "#if defined __linux__", since for now at least,
51801         this code is Linux-kernel-specific.
51802
51803 2008-10-02  Jim Meyering  <meyering@redhat.com>
51804
51805         fts: bug fixes
51806         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51807         Include <sys/vfs.h>, not <sys/statfs.h>.
51808
51809         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51810         Include <sys/vfs.h>, not <sys/statfs.h>.
51811
51812 2008-10-01  Bruno Haible  <bruno@clisp.org>
51813
51814         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51815         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51816         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51817         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51818         * doc/posix-functions/posix_spawnp.texi: Likewise.
51819         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51820         whether posix_spawn actually works.
51821         * m4/pipe.m4 (gl_PIPE): Likewise.
51822         * modules/execute (Files): Add m4/posix_spawn.m4.
51823         * modules/pipe (Files): Add m4/posix_spawn.m4.
51824         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51825
51826 2008-10-01  Jim Meyering  <meyering@redhat.com>
51827
51828         remove trailing spaces
51829         * NEWS: Likewise.
51830         * lib/poll.c (poll): Likewise.
51831         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51832         * lib/winsock.c (rpl_close): Likewise.
51833         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51834         * modules/yield: Likewise.
51835         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51836         * tests/test-sys_select.c (connect_to_socket): Likewise.
51837
51838         fts.c: adjust a new interface to be more generally useful
51839         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51840         (fts_build): Adjust caller.
51841
51842 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51843
51844         * modules/cond-tests: New file.
51845         * tests/test-cond.c: New file.
51846
51847 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51848             Bruno Haible  <bruno@clisp.org>
51849
51850         * modules/cond (Dependencies): Add errno, time.
51851         * lib/glthread/cond.h: Include <time.h>.
51852         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51853         across platforms.
51854
51855 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51856             Bruno Haible  <bruno@clisp.org>
51857
51858         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51859
51860 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51861             Bruno Haible  <bruno@clisp.org>
51862
51863         * modules/tls-tests (Depends-on): Add thread, yield.
51864         (configure.ac): Remove all checks.
51865         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51866         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51867         gl_thread_self): Remove definitions. Include glthread/thread.h and
51868         glthread/yield.h instead.
51869         (test_tls): Pass an additional NULL argument to gl_thread_join.
51870
51871 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51872             Bruno Haible  <bruno@clisp.org>
51873
51874         * modules/lock-tests (Depends-on): Add thread, yield.
51875         (configure.ac): Remove all checks.
51876         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51877         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51878         gl_thread_self): Remove definitions. Include glthread/thread.h and
51879         glthread/yield.h instead.
51880         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51881         additional NULL argument to gl_thread_join.
51882
51883 2008-09-30  Bruno Haible  <bruno@clisp.org>
51884
51885         Fix the Win32 implementation of the 'thread' module.
51886         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51887         pointer type.
51888         (gl_thread_self): Invoke gl_thread_self_func.
51889         (gl_thread_self_func): New declaration.
51890         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51891         (do_init_self_key, init_self_key): New functions.
51892         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51893         Remove some fields.
51894         (running_threads, running_lock): Remove variables.
51895         (get_current_thread_handle): New function.
51896         (gl_thread_self_func, wrapper_func, glthread_create_func,
51897         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51898         simplified.
51899
51900 2008-09-30  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51903         files.
51904
51905 2008-09-30  Jim Meyering  <meyering@redhat.com>
51906
51907         fts.m4: correct the test for statfs.f_type
51908         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51909         when checking for statfs.f_type.
51910
51911 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51912
51913         tests: avoid some compiler warnings
51914         * tests/test-memchr.c (main): Pass NULL indirectly.
51915         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51916
51917 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51918
51919         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51920         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51921         exactly specified dayshifts.
51922         (dayshift): New rule.
51923         (rel): Add dayshift.
51924         (relative_time_table) [tomorrow, yesterday, today, now]:
51925         Use tDAY_SHIFT in place of tDAY_UNIT.
51926         * tests/test-getdate.c: Add tests for now-disallowed countable
51927         dayshifts, e.g., "4 yesterday ago".
51928
51929 2008-09-29  Bruno Haible  <bruno@clisp.org>
51930
51931         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51932         * tests/test-posix_spawn1.in.sh: Renamed from
51933         tests/test-posix_spawn.in.sh.
51934         * tests/test-posix_spawn2.c: New file.
51935         * tests/test-posix_spawn2.in.sh: New file.
51936         * modules/posix_spawnp-tests (Files): Update.
51937         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51938
51939 2008-09-29  Bruno Haible  <bruno@clisp.org>
51940
51941         Propagate effects of putenv/setenv/unsetenv to child processes.
51942         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51943         * lib/pipe.c (create_pipe): Likewise.
51944
51945 2008-09-29  Bruno Haible  <bruno@clisp.org>
51946
51947         Enable use of shell scripts as executables in mingw.
51948         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51949         run the program as a shell script.
51950         * lib/pipe.c (create_pipe): Likewise.
51951         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51952         resulting array.
51953
51954 2008-09-29  Eric Blake  <ebb9@byu.net>
51955
51956         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51957
51958 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51959
51960         * doc/posix-functions/accept.texi: Update mingw problems.
51961         * doc/posix-functions/bind.texi: Update mingw problems.
51962         * doc/posix-functions/close.texi: Update mingw problems.
51963         * doc/posix-functions/connect.texi: Update mingw problems.
51964         * doc/posix-functions/getpeername.texi: Update mingw problems.
51965         * doc/posix-functions/getsockname.texi: Update mingw problems.
51966         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51967         * doc/posix-functions/ioctl.texi: Update mingw problems.
51968         * doc/posix-functions/listen.texi: Update mingw problems.
51969         * doc/posix-functions/recv.texi: Update mingw problems.
51970         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51971         * doc/posix-functions/select.texi: Update mingw problems.
51972         * doc/posix-functions/send.texi: Update mingw problems.
51973         * doc/posix-functions/sendto.texi: Update mingw problems.
51974         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51975         * doc/posix-functions/socket.texi: Update mingw problems.
51976
51977 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51978             Bruno Haible  <bruno@clisp.org>
51979
51980         * lib/sys_select.in.h: Include sys/time.h.
51981         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51982         * modules/sys_select: Depend on sys_time.
51983         * tests/test-sys_select.c: Test that sys/select.h defines struct
51984         timeval fully.
51985
51986 2008-09-29  Bruno Haible  <bruno@clisp.org>
51987
51988         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51989         * lib/sys_select.in.h: Likewise.
51990
51991 2008-09-29  Bruno Haible  <bruno@clisp.org>
51992
51993         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51994
51995 2008-09-29  Bruno Haible  <bruno@clisp.org>
51996
51997         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51998         Set LIBSOCKET instead of augmenting LIBS.
51999         * modules/sockets (Link): New section.
52000         * modules/sockets-tests (test_sockets_LDADD): New variable.
52001         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52002         * modules/poll-tests (test_poll_LDADD): New variable.
52003         * NEWS: Document the change.
52004
52005 2008-09-29  Bruno Haible  <bruno@clisp.org>
52006
52007         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52008         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52009         ARPA_INET_H directly.
52010         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52011
52012 2008-09-28  Bruno Haible  <bruno@clisp.org>
52013
52014         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52015         from gl_HEADER_SYS_SOCKET.
52016         (gl_HEADER_SYS_SOCKET): Invoke it.
52017         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52018
52019 2008-09-28  Bruno Haible  <bruno@clisp.org>
52020
52021         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52022         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52023         Needed on OSF/1 4.0.
52024
52025 2008-09-28  Bruno Haible  <bruno@clisp.org>
52026
52027         Override open more carefully.
52028         * lib/open.c (orig_open): New function.
52029         (rpl_open): Use orig_open instead of open.
52030         * lib/fcntl.in.h: Add special invocation convention.
52031         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52032         (gl_FUNC_OPEN): Invoke it.
52033
52034         Override freopen more carefully.
52035         * lib/freopen.c (orig_freopen): New function.
52036         (rpl_freopen): Use orig_freopen instead of freopen.
52037         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52038         (gl_FUNC_FREOPEN): Invoke it.
52039
52040         Override fopen more carefully.
52041         * lib/fopen.c (orig_fopen): New function.
52042         (rpl_fopen): Use orig_fopen instead of fopen.
52043         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52044         (gl_FUNC_FOPEN): Invoke it.
52045         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52046
52047 2008-09-28  Bruno Haible  <bruno@clisp.org>
52048
52049         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52050         SIGPIPE.
52051
52052 2008-09-28  Bruno Haible  <bruno@clisp.org>
52053
52054         * tests/test-sigaction.c (handler, main): Disable the check whether
52055         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52056         glibc systems with LinuxThreads.
52057
52058 2008-09-28  Bruno Haible  <bruno@clisp.org>
52059
52060         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52061
52062         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52063         with AIX xlc.
52064         * lib/fcntl.in.h (open): Likewise.
52065         Reported by Rainer Tammer <tammer@tammer.net>.
52066
52067 2008-09-28  Bruno Haible  <bruno@clisp.org>
52068
52069         * modules/posix_spawnp-tests: New file.
52070         * tests/test-posix_spawn.c: New file.
52071         * tests/test-posix_spawn.in.sh: New file.
52072
52073         New module 'posix_spawnp'.
52074         * modules/posix_spawnp: New file.
52075         * lib/spawnp.c: New file, from GNU libc with modifications.
52076         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52077
52078         New module 'posix_spawn'.
52079         * modules/posix_spawn: New file.
52080         * lib/spawn.c: New file, from GNU libc with modifications.
52081         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52082
52083         New module 'posix_spawnattr_destroy'.
52084         * modules/posix_spawnattr_destroy: New file.
52085         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52086         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52087         module.
52088
52089         New module 'posix_spawnattr_setsigmask'.
52090         * modules/posix_spawnattr_setsigmask: New file.
52091         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52092         modifications.
52093         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52094         new module.
52095
52096         New module 'posix_spawnattr_getsigmask'.
52097         * modules/posix_spawnattr_getsigmask: New file.
52098         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52099         modifications.
52100         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52101         new module.
52102
52103         New module 'posix_spawnattr_setsigdefault'.
52104         * modules/posix_spawnattr_setsigdefault: New file.
52105         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52106         modifications.
52107         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52108         new module.
52109
52110         New module 'posix_spawnattr_getsigdefault'.
52111         * modules/posix_spawnattr_getsigdefault: New file.
52112         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52113         modifications.
52114         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52115         new module.
52116
52117         New module 'posix_spawnattr_setschedpolicy'.
52118         * modules/posix_spawnattr_setschedpolicy: New file.
52119         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52120         modifications.
52121         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52122         new module.
52123
52124         New module 'posix_spawnattr_getschedpolicy'.
52125         * modules/posix_spawnattr_getschedpolicy: New file.
52126         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52127         modifications.
52128         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52129         new module.
52130
52131         New module 'posix_spawnattr_setschedparam'.
52132         * modules/posix_spawnattr_setschedparam: New file.
52133         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52134         modifications.
52135         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52136         new module.
52137
52138         New module 'posix_spawnattr_getschedparam'.
52139         * modules/posix_spawnattr_getschedparam: New file.
52140         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52141         modifications.
52142         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52143         new module.
52144
52145         New module 'posix_spawnattr_setpgroup'.
52146         * modules/posix_spawnattr_setpgroup: New file.
52147         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52148         modifications.
52149         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52150         module.
52151
52152         New module 'posix_spawnattr_getpgroup'.
52153         * modules/posix_spawnattr_getpgroup: New file.
52154         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52155         modifications.
52156         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52157         module.
52158
52159         New module 'posix_spawnattr_setflags'.
52160         * modules/posix_spawnattr_setflags: New file.
52161         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52162         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52163         module.
52164
52165         New module 'posix_spawnattr_getflags'.
52166         * modules/posix_spawnattr_getflags: New file.
52167         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52168         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52169         module.
52170
52171         New module 'posix_spawnattr_init'.
52172         * modules/posix_spawnattr_init: New file.
52173         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52174         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52175         module.
52176
52177         New module 'posix_spawn_file_actions_destroy'.
52178         * modules/posix_spawn_file_actions_destroy: New file.
52179         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52180         modifications.
52181         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52182         the new module.
52183
52184         New module 'posix_spawn_file_actions_addopen'.
52185         * modules/posix_spawn_file_actions_addopen: New file.
52186         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52187         modifications.
52188         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52189         the new module.
52190
52191         New module 'posix_spawn_file_actions_adddup2'.
52192         * modules/posix_spawn_file_actions_adddup2: New file.
52193         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52194         modifications.
52195         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52196         the new module.
52197
52198         New module 'posix_spawn_file_actions_addclose'.
52199         * modules/posix_spawn_file_actions_addclose: New file.
52200         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52201         modifications.
52202         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52203         the new module.
52204
52205         New module 'posix_spawn_file_actions_init'.
52206         * modules/posix_spawn_file_actions_init: New file.
52207         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52208         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52209         new module.
52210
52211         New module 'posix_spawn-internal'.
52212         * modules/posix_spawn-internal: New file.
52213         * lib/spawn_int.h: New file, from GNU libc with modifications.
52214         * lib/spawni.c: New file, from GNU libc with modifications.
52215         * m4/posix_spawn.m4: New file.
52216
52217         New module 'spawn'.
52218         * modules/spawn: New file.
52219         * lib/spawn.in.h: New file, from GNU libc with modifications.
52220         * m4/spawn_h.m4: New file.
52221         * doc/posix-headers/spawn.texi: Mention the new module.
52222
52223 2008-09-28  Bruno Haible  <bruno@clisp.org>
52224
52225         * modules/sched-tests: New file.
52226         * tests/test-sched.c: New file.
52227
52228         New module 'sched'.
52229         * modules/sched: New file.
52230         * lib/sched.in.h: New file.
52231         * m4/sched_h.m4: New file.
52232         * doc/posix-headers/sched.texi: Mention the new module.
52233
52234 2008-09-27  Eric Blake  <ebb9@byu.net>
52235
52236         Fix previous patch, and tweak references to $0.
52237         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52238         (func_version, func_gnulib_dir): Don't call this program
52239         gnulib-tool.
52240         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52241         with using $0 in function.
52242         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52243         (func_fatal_error): Reuse the name the user invoked us with.
52244
52245 2008-09-27  Bruno Haible  <bruno@clisp.org>
52246
52247         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52248         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52249         (gl_ICONV_H): Not here.
52250         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52251         instead of assigning ICONV_H directly.
52252
52253         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52255         WCHAR_H directly.
52256
52257 2008-09-27  Bruno Haible  <bruno@clisp.org>
52258
52259         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52260         * modules/arpa_inet (Depends-on): Add link-warning.
52261         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52262         * modules/unistd (Makefile.am): Likewise.
52263
52264 2008-09-26  Bruno Haible  <bruno@clisp.org>
52265
52266         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52267         variables.
52268         (func_version): Essentially copied from gnulib-tool.
52269         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52270         func_readlink): Copied from gnulib-tool.
52271
52272 2008-09-26  Bruno Haible  <bruno@clisp.org>
52273
52274         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52275         invoking git-version-gen.
52276
52277 2008-09-26  Bruno Haible  <bruno@clisp.org>
52278
52279         * posix-modules: Update to directory names changed on 2008-01-19.
52280         Remove commas in output before splitting into words. No more need to
52281         avoid 'ftruncate' since 2007-02-19.
52282
52283 2008-09-26  Bruno Haible  <bruno@clisp.org>
52284
52285         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52286
52287 2008-09-26  Bruno Haible  <bruno@clisp.org>
52288
52289         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52290         * modules/fwriteerror (Depends-on): Add errno.
52291
52292 2008-09-26  Bruno Haible  <bruno@clisp.org>
52293
52294         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52295         * tests/test-vc-list-files-cvs.sh: Likewise.
52296
52297 2008-09-26  Bruno Haible  <bruno@clisp.org>
52298
52299         * doc/posix-headers/sys_resource.texi: Reorder items.
52300
52301 2008-09-26  Jim Meyering  <meyering@redhat.com>
52302
52303         fts: tweak inode comparison function
52304         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52305         inode numbers, as documented.
52306
52307         fts: sort dirent entries on inode number before traversing
52308         This avoids a quadratic, seek-related performance penalty when
52309         operating on a directory containing many entries (measurable at 10k;
52310         3.5 hours at 2 million entries with a cold cache) on certain types
52311         of file systems, including ext3 and ext4, but not tmpfs.
52312         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52313         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52314         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52315         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52316         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52317         (fts_build): Set the stat.st_ino member from D_INO.
52318         If it is likely to be useful, sort dirent entries on inode number.
52319
52320         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52321         and the struct statfs.f_type member.
52322         * modules/fts (Depends-on): Add d-ino.
52323
52324 2008-09-26  Bruno Haible  <bruno@clisp.org>
52325
52326         * modules/sigpipe-die (Depends-on): Add sigpipe.
52327
52328         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52329         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52330         and GNULIB_STDIO_H_SIGPIPE are set.
52331         * lib/stdio-write.c: New file.
52332         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52333         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52334         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52335         REPLACE_STDIO_WRITE_FUNCS.
52336         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52337         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52338         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52339         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52340         * modules/stdio (Files): Add lib/stdio-write.c.
52341         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52342         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52343         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52344         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52345         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52346         REPLACE_FPRINTF_POSIX.
52347         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52348         REPLACE_PRINTF_POSIX.
52349         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52350         REPLACE_VFPRINTF_POSIX.
52351         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52352         REPLACE_VPRINTF_POSIX.
52353         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52354         SIGPIPE issue.
52355         * doc/posix-functions/fputc.texi: Likewise.
52356         * doc/posix-functions/fputs.texi: Likewise.
52357         * doc/posix-functions/fwrite.texi: Likewise.
52358         * doc/posix-functions/printf.texi: Likewise.
52359         * doc/posix-functions/putc.texi: Likewise.
52360         * doc/posix-functions/putchar.texi: Likewise.
52361         * doc/posix-functions/puts.texi: Likewise.
52362         * doc/posix-functions/vfprintf.texi: Likewise.
52363         * doc/posix-functions/vprintf.texi: Likewise.
52364
52365         * modules/safe-write (Depends-on): Add write.
52366
52367         * modules/sigpipe-tests: New file.
52368         * tests/test-sigpipe.c: New file.
52369         * tests/test-sigpipe.sh: New file.
52370
52371         * modules/write: New file.
52372         * lib/unistd.in.h: Include <sys/types.h>.
52373         (write): New declaration.
52374         * lib/write.c: New file.
52375         * m4/write.m4: New file.
52376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52377         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52378         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52379         GNULIB_WRITE, REPLACE_WRITE.
52380         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52381         and the SIGPIPE issue.
52382
52383         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52384         (raise): New declaration.
52385         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52386         (ext_signal): New function.
52387         (rpl_raise): New function.
52388         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52389         GNULIB_SIGNAL_H_SIGPIPE.
52390         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52391         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52392
52393         * modules/sigpipe: New file.
52394         * m4/sigpipe.m4: New file.
52395
52396 2008-09-25  Derek Price  <derek@ximbiot.com>
52397             Bruno Haible  <bruno@clisp.org>
52398
52399         * gnulib-tool (func_import): Report all license incompatibilities, not
52400         just the first one.
52401
52402 2008-09-25  Bruno Haible  <bruno@clisp.org>
52403
52404         * gnulib-tool (func_import): When computing the edits, consider not
52405         only the Makefile.ams that exist but also those that will be generated.
52406
52407 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52408
52409         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52410         fixes gnulib-tool --test warning about duplicate dependency.
52411
52412 2008-09-25  Bruno Haible  <bruno@clisp.org>
52413
52414         * gnulib-tool: Don't ask the user to perform edits in the generated
52415         Makefile.ams.
52416         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52417         apply to the Makefile.am being generated.
52418         (func_emit_tests_Makefile_am): Execute edits that apply to the
52419         Makefile.am being generated.
52420         (func_import): Setup list of Makefile.am edits before emitting the
52421         Makefile.ams, not at the end.
52422         (func_create_testdir): Update.
52423         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52424
52425 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52426
52427         * gnulib-tool (func_import): Store the --tests-base option in the
52428         comment in gnulib-cache.m4.
52429
52430 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52431
52432         * NEWS: Document increased portability that sys_select now provides.
52433
52434         * lib/sys_select.in.h: Install select wrapper.
52435         * lib/sys_socket.in.h: Use more descriptive name when there is no
52436         select wrapper.
52437         * lib/winsock-select.c: New.
52438         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52439         Require gl_HEADER_SYS_SOCKET.
52440         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52441         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52442         * tests/test-sys_select.c: Add functional tests.
52443
52444 2008-09-24  Eric Blake  <ebb9@byu.net>
52445
52446         open, fopen: close fd leak in last patch
52447         * lib/open.c (rpl_open): Close fd before returning error.
52448         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52449         * doc/posix-functions/open.texi (open): Document that Irix also
52450         has the bug.
52451         * doc/posix-functions/fopen.texi (fopen): Likewise.
52452         Reported by Paolo Bonzini.
52453
52454 2008-09-24  Bruno Haible  <bruno@clisp.org>
52455
52456         Ensure that a filename ending in a slash cannot be used to access a
52457         non-directory.
52458         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52459         to check whether it's really a directory.
52460         * lib/fopen.c: Include fcntl.h, unistd.h.
52461         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52462         and fdopen().
52463         * modules/fopen (Depends-on): Add unistd.
52464         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52465         * tests/test-fopen.c (main): Likewise.
52466         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52467         * doc/posix-functions/fopen.texi: Likewise.
52468         Reported by Eric Blake.
52469
52470 2008-09-23  Eric Blake  <ebb9@byu.net>
52471
52472         c-stack: avoid compiler optimizations when provoking overflow
52473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52474         recursion harder to optimize, to ensure a stack overflow occurs.
52475         * tests/test-c-stack.c (recurse): Likewise.
52476         Borrowed from libsigsegv.
52477
52478         c-stack: work around Irix sigaltstack bug
52479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52480         whether sigaltstack uses wrong end of stack_t (copied in part from
52481         libsigsegv).
52482         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52483         Irix bug, without requiring an over-allocation.
52484         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52485         bug.
52486
52487         fopen: document mingw bug on directories
52488         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52489         not allowing a stream visiting a directory, even though reading
52490         from such a stream is not portable.
52491
52492 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52493
52494         * lib/poll.c: Rewrite.
52495         * modules/poll: Depend on alloca.
52496
52497 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52498
52499         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52500         instead define prototypes for a full set of wrappers.  Ensure
52501         that Cygwin does not use the compatibility code, which is only
52502         for MinGW.
52503         * lib/winsock.c: New.
52504         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52505         * modules/sys_socket: Add lib/winsock.c.
52506
52507         * modules/poll-tests: Add errno and perror.
52508         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52509
52510 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52511
52512         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52513
52514 2008-09-23  Bruno Haible  <bruno@clisp.org>
52515
52516         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52517         * doc/glibc-functions/*: Likewise.
52518
52519 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52520
52521         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52522         success.
52523
52524 2008-09-22  Eric Blake  <ebb9@byu.net>
52525             Bruno Haible  <bruno@clisp.org>
52526
52527         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52528         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52529         supply %A but mishandle pseudo-NaN.
52530         Reported by Simon Josefsson.
52531
52532 2008-09-21  Bruno Haible  <bruno@clisp.org>
52533
52534         * tests/test-lock.c (main): Tweak skip message.
52535         * tests/test-tls.c (main): Likewise.
52536
52537 2008-09-21  Bruno Haible  <bruno@clisp.org>
52538
52539         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52540         whether 'struct sigaction' has sa_sigaction here...
52541         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52542         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52543
52544 2008-09-21  Bruno Haible  <bruno@clisp.org>
52545
52546         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52547         section.
52548         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52549         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52550         the new section.
52551         (Support for obsolete systems lacking POSIX:2001): New section.
52552         (String handling <string.h>): Move strdup to the new section.
52553         Suggested by Simon Josefsson and Paolo Bonzini.
52554
52555 2008-09-21  Bruno Haible  <bruno@clisp.org>
52556
52557         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52558         exponents in %e and %g results on 'long double'. Needed for mingw's
52559         improved *printf functions.
52560         * tests/test-vasprintf-posix.c (test_function): Likewise.
52561         * tests/test-snprintf-posix.h (test_function): Likewise.
52562         * tests/test-sprintf-posix.h (test_function): Likewise.
52563         Reported by Eric Blake.
52564
52565 2008-09-21  Bruno Haible  <bruno@clisp.org>
52566
52567         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52568         * tests/test-sprintf-posix.h (test_function): Likewise.
52569
52570 2008-09-21  Bruno Haible  <bruno@clisp.org>
52571
52572         * modules/getpass (Depends-on): Add strdup-posix.
52573
52574         New module 'strdup-posix'.
52575         * modules/strdup-posix: New file.
52576         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52577         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52579         REPLACE_STRDUP.
52580         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52581         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52582         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52583         strdup-posix.
52584
52585         * modules/strdup (Depends-on): Remove malloc-posix.
52586
52587 2008-09-20  Bruno Haible  <bruno@clisp.org>
52588
52589         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52590         Wildenhues.
52591
52592 2008-09-20  Bruno Haible  <bruno@clisp.org>
52593
52594         Ensure that wint_t gets defined on IRIX 5.3.
52595         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52596         * lib/wctype.in.h (wint_t): Likewise.
52597         (__wctype_wint_t): Remove type.
52598         (isw*): Use wint_t instead of __wctype_wint_t.
52599         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52600         * modules/wchar (Files): Add m4/wint_t.m4.
52601         (Makefile.am): Substitute HAVE_WINT_T.
52602         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52603         * tests/test-wctype.c: Check that wint_t is defined.
52604         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52605         * doc/posix-headers/wctype.texi: Likewise.
52606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52607
52608 2008-09-18  Bruno Haible  <bruno@clisp.org>
52609
52610         * gnulib-tool (func_exit): Update comment.
52611
52612 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52613
52614         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52615         assumes strdup exists and does not depend on strdup to return
52616         ENOMEM on out of memory conditions.
52617
52618 2008-09-18  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52621         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52622         digits for the exponent.
52623
52624 2008-09-18  Jim Meyering  <meyering@redhat.com>
52625             Bruno Haible  <bruno@clisp.org>
52626
52627         * lib/vasnprintf.c (decimal_point_char): Define also if
52628         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52629
52630 2008-09-16  Bruno Haible  <bruno@clisp.org>
52631         and Eric Blake  <ebb9@byu.net>
52632
52633         vasnprintf: support Irix 5.3
52634         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52635         that mishandle long double infinity.
52636         Reported by Tom G. Christensen.
52637
52638 2008-09-16  Bruno Haible  <bruno@clisp.org>
52639
52640         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52641         Solaris 9.
52642         * doc/glibc-functions/alphasort.texi: Likewise.
52643         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52644
52645 2008-09-16  Jim Meyering  <meyering@redhat.com>
52646
52647         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52648         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52649         a umask modification leak out of a subshell.  Otherwise, the
52650         opensolaris /bin/sh would be accepted and thus cause unwarranted
52651         failures in the coreutils test suite.
52652
52653 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52654
52655         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52656         to succeed.
52657
52658 2008-09-16  Jim Meyering  <meyering@redhat.com>
52659
52660         avoid spurious test failure when library is built without ACL support
52661         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52662         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52663         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52664         * tests/test-copy-acl.sh: Likewise.
52665
52666 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52667
52668         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52669         based on character occurrence counts.
52670
52671 2008-09-15  Eric Blake  <ebb9@byu.net>
52672
52673         tests: avoid some compiler warnings
52674         * tests/test-memchr.c (main): Pass NULL indirectly.
52675         * tests/test-closein.c (main): Avoid unused variable.
52676
52677 2008-09-15  Bruno Haible  <bruno@clisp.org>
52678
52679         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52680         are missing on OpenBSD 4.0 individually.
52681         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52682
52683 2008-09-15  Bruno Haible  <bruno@clisp.org>
52684
52685         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52686         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52687         * doc/posix-functions/perror.texi: Likewise.
52688         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52689         is missing.
52690         Reported by Eric Blake.
52691
52692         * lib/errno.in.h: Use replacement values >= 2000.
52693         Reported by Eric Blake.
52694
52695 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52696
52697         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52698         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52699         limit.
52700         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52701         compareseq was aborted.
52702
52703 2008-09-14  Bruno Haible  <bruno@clisp.org>
52704
52705         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52706         yvec_edit_count.
52707         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52708         (fstrcmp_bounded): Simplify result computation accordingly.
52709
52710 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52711
52712         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52713         (fstrcmp): Define in terms of fstrcmp_bounded.
52714         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52715         lower_bound argument.
52716         Return quickly if the result is certainly < lower_bound.
52717         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52718
52719 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52720
52721         * lib/diffseq.h (EARLY_ABORT): New macro.
52722         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52723         evaluates to true.
52724
52725 2008-09-14  Bruno Haible  <bruno@clisp.org>
52726
52727         * modules/perror-tests: New file.
52728         * tests/test-perror.sh: New file.
52729         * tests/test-perror.c: New file.
52730
52731         New module 'perror'.
52732         * lib/stdio.in.h (perror): New declaration.
52733         * lib/perror.c: New file.
52734         * m4/perror.m4: New file.
52735         * modules/perror: New file.
52736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52737         * doc/posix-functions/perror.texi: Mention the perror module.
52738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52739         REPLACE_PERROR.
52740         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52741         REPLACE_PERROR.
52742
52743 2008-09-14  Bruno Haible  <bruno@clisp.org>
52744
52745         * modules/stdio (Makefile.am): Reorder to match the order in
52746         lib/stdio.in.h.
52747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52748
52749 2008-09-13  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52752
52753 2008-09-13  Bruno Haible  <bruno@clisp.org>
52754
52755         Extend strerror to cover the added errno values.
52756         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52757         (rpl_strerror): Provide error messages for the added errno values and
52758         for the WSA* values.
52759         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52760         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52761         strerror.
52762         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52763         * modules/strerror (Depends-on): Add errno.
52764         * doc/posix-functions/strerror.texi: Document the change.
52765         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52766         and EOVERFLOW.
52767
52768 2008-09-13  Bruno Haible  <bruno@clisp.org>
52769
52770         * modules/EOVERFLOW: Remove file.
52771         * m4/eoverflow.m4: Remove file.
52772         * modules/EOVERFLOW-tests: Remove file.
52773         * tests/test-EOVERFLOW.c: Remove file.
52774         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52775         * modules/ftell (Depends-on): Likewise.
52776         * modules/getdelim (Depends-on): Likewise.
52777         * modules/getugroups (Depends-on): Likewise.
52778         * modules/poll (Depends-on): Likewise.
52779         * modules/snprintf (Depends-on): Likewise.
52780         * modules/sprintf-posix (Depends-on): Likewise.
52781         * modules/vasnprintf (Depends-on): Likewise.
52782         * modules/vasprintf (Depends-on): Likewise.
52783         * modules/vfprintf-posix (Depends-on): Likewise.
52784         * modules/vsnprintf (Depends-on): Likewise.
52785         * modules/vsprintf-posix (Depends-on): Likewise.
52786         * modules/xvasprintf (Depends-on): Likewise.
52787         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52788         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52789         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52790         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52791         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52792         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52793         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52794         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52795         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52796         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52797         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52798         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52799         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52800         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52801         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52802         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52803         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52804         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52805         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52806         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52807         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52808         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52809         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52810         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52811         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52812         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52813         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52814         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52815         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52816         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52817         * MODULES.html.sh: Remove EOVERFLOW.
52818         * NEWS: Mention the change.
52819
52820 2008-09-13  Bruno Haible  <bruno@clisp.org>
52821
52822         * modules/errno-tests: New file.
52823         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52824
52825         * lib/errno.in.h: New file.
52826         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52827         * modules/errno: New file.
52828         * doc/posix-headers/errno.texi: Update documentation.
52829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52830
52831 2008-09-13  Bruno Haible  <bruno@clisp.org>
52832
52833         * tests/test-poll.c: Use #if for native Windows, rather than testing
52834         __MSVCRT__.
52835
52836 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52837             Bruno Haible  <bruno@clisp.org>
52838
52839         * lib/glob.c: Don't include <pwd.h> on native Windows.
52840         (WINDOWS32): New macro.
52841         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52842
52843 2008-09-13  Bruno Haible  <bruno@clisp.org>
52844
52845         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52846         (ETIMEDOUT): Remove macro.
52847         (glthread_cond_timedwait_multithreaded): New declaration.
52848         (glthread_cond_timedwait): Use it.
52849         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52850         (glthread_cond_timedwait_multithreaded): New function.
52851
52852 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52853
52854         * modules/poll-tests: Do not check for io.h.
52855         * tests/test-poll.c: Check for __MSVCRT__ instead.
52856
52857 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52858
52859         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52860         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52861         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52862
52863 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52864
52865         * modules/poll-tests: New.
52866         * tests/test-poll.c: New.
52867
52868 2008-09-12  Eric Blake  <ebb9@byu.net>
52869
52870         frexp: test for NetBSD failure on -0.0
52871         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52872         not all, bugs from NetBSD 3.0 have been fixed.
52873         * doc/posix-functions/frexp.texi (frexp): Document bug.
52874         Reported by Thomas Klausner.
52875
52876         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52877         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52878         literal -0.0.
52879         Reported by Jonathan C. Patschke <jp@centtech.com>.
52880
52881 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52882
52883         * lib/glthread/cond.h: Use dummy implementation also if
52884         USE_WIN32_THREADS.
52885
52886 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52887
52888         * modules/fnmatch-posix (License): Change to LGPLv2+.
52889         * modules/fnmatch-gnu (License): Likewise.
52890
52891 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52892
52893         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52894
52895 2008-09-11  Jim Meyering  <meyering@redhat.com>
52896
52897         * users.txt: Add gtk-vnc.
52898
52899 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52900
52901         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52902         rotate amounts.
52903
52904         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52905         required for 16-bit and 8-bit rotates.
52906         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52907         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52908         UINT8_MAX instead of hard-coded constants.
52909         Suggested by Paul Eggert.
52910
52911 2008-09-07  Bruno Haible  <bruno@clisp.org>
52912
52913         * tests/test-striconveh.c (main): Check behaviour when converting from
52914         UTF-7.
52915
52916         Make striconveh work better with stateful encodings.
52917         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52918         that iconv does not increment the inptr when returning -1/EINVAL.
52919
52920 2008-09-07  Bruno Haible  <bruno@clisp.org>
52921
52922         * build-aux/config.rpath: Update according to libtool-2.2.6.
52923         * build-aux/config.libpath: Likewise.
52924
52925 2008-09-06  Bruno Haible  <bruno@clisp.org>
52926
52927         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52928         * lib/freadptr.c (freadptr): Likewise.
52929         * lib/freadseek.c (freadptrinc): Likewise.
52930         Reported by Simon Josefsson.
52931
52932 2008-09-06  Bruno Haible  <bruno@clisp.org>
52933
52934         * modules/freadptr (License): Change to LGPLv2+.
52935         * modules/freadseek (License): Likewise.
52936         Suggested by Eric Blake.
52937
52938         * modules/memchr2 (License): Change to LGPLv2+.
52939         Approved by Eric Blake.
52940
52941 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52942             Bruno Haible  <bruno@clisp.org>
52943
52944         Make gnulib-tool work with native 'sed' on AIX.
52945         * gnulib-tool (sed_noop): New variable.
52946         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52947         func_add_or_update, func_create_testdir): Use it to initialize sed
52948         script variables.
52949         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52950
52951 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52952             Bruno Haible  <bruno@clisp.org>
52953
52954         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52955         also works after #include directives.
52956
52957 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52958
52959         getdate.y: reject an out-of-range timezone value
52960         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52961         the range [-24...+24].  When specified with only one or two digits,
52962         * tests/test-getdate.c: Tests for the fix.
52963         * doc/getdate.texi: Document this change.
52964
52965 2008-09-03  Bruno Haible  <bruno@clisp.org>
52966
52967         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52968
52969 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52970
52971         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52972         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52973         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52974         Blake <ebb9@byu.net>.
52975
52976         * tests/test-bitrotate.c: Add more test vectors.
52977
52978 2008-09-02  Eric Blake  <ebb9@byu.net>
52979
52980         vasnprintf-posix: handle large precision via %.*d
52981         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52982         when handling it ourselves.
52983         * tests/test-vasnprintf-posix.c (test_function): Add test.
52984         * tests/test-snprintf-posix.h (test_function): Likewise.
52985         * tests/test-sprintf-posix.h (test_function): Likewise.
52986         * tests/test-vasprintf-posix.c (test_function): Likewise.
52987         Reported by Alain Guibert.
52988
52989 2008-09-01  Eric Blake  <ebb9@byu.net>
52990
52991         c-stack: make configure-time check more robust
52992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52993         successful sigaction call.
52994         Reported by Tom G. Christensen.
52995
52996 2008-09-01  Bruno Haible  <bruno@clisp.org>
52997
52998         New module 'findprog-lgpl'.
52999         * modules/findprog-lgpl: New file.
53000         * lib/findprog-lgpl.c: New file.
53001         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53002         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53003         to decide whether to use strdup or xstrdup, concatenated_filename or
53004         xconcatenated_filename.
53005
53006 2008-09-01  Bruno Haible  <bruno@clisp.org>
53007
53008         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53009         'xconcat-filename' (GPL).
53010         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53011         (License): Change to LGPLv2+.
53012         * modules/xconcat-filename: New file.
53013         * lib/concat-filename.h (concatenated_filename): Change specification.
53014         (xconcatenated_filename): New declaration.
53015         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53016         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53017         memory situations.
53018         * lib/xconcat-filename.c: New file.
53019         * NEWS: Mention the change.
53020         * lib/findprog.c: Include concat-filename.h, not filename.h.
53021         (find_in_path): Use xconcatenated_filename instead of
53022         concatenated_filename.
53023         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53024         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53025         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53026         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53027         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53028         instead of concatenated_filename.
53029         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53030         (execute_java_class): Use xconcatenated_filename instead of
53031         concatenated_filename.
53032         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53033         * modules/javacomp (Depends-on): Likewise.
53034         * modules/javaexec (Depends-on): Likewise.
53035
53036 2008-09-01  Bruno Haible  <bruno@clisp.org>
53037
53038         Split module 'filename' into 'filename' and 'concat-filename'.
53039         * modules/filename: Keep only lib/filename.h.
53040         (License): Change to LGPLv2+.
53041         * modules/concat-filename: New file, extracted from modules/filename.
53042         * lib/filename.h (concatenated_filename): Remove declaration.
53043         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53044         * lib/concat-filename.c: Include concat-filename.h.
53045         * NEWS: Mention the change.
53046
53047 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53048
53049         * lib/bitrotate.h (rotl8, rotr8): Add.
53050
53051         * modules/bitrotate (configure.ac): Need
53052         AC_REQUIRE([AC_C_INLINE]).
53053         (Description): Mention stdint.h.  Reported by Bruno Haible
53054         <bruno@clisp.org>.
53055
53056         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53057         Paolo Bonzini <bonzini@gnu.org>.
53058
53059 2008-08-31  Bruno Haible  <bruno@clisp.org>
53060
53061         Assume Solaris specific bi-arch conventions on Solaris systems.
53062         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53063         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53064         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53065         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53066         like acl_libdirstem.
53067         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53068         acl_libdirstem.
53069         * NEWS: Mention the change.
53070         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53071
53072 2008-08-31  Jim Meyering  <meyering@redhat.com>
53073
53074         * lib/strftime.h: Add comments describing the two added arguments.
53075
53076         remove duplicate #include directives
53077         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53078         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53079
53080 2008-08-31  Bruno Haible  <bruno@clisp.org>
53081
53082         New module 'sigpipe-die'.
53083         * modules/sigpipe-die: New file.
53084         * lib/sigpipe-die.h: New file.
53085         * lib/sigpipe-die.c: New file.
53086         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53087
53088 2008-08-31  Bruno Haible  <bruno@clisp.org>
53089
53090         Don't override previously installed signal handlers.
53091         * lib/fatal-signal.c (saved_sigactions): New variable.
53092         (uninstall_handlers): Reset the signal to the saved handler, not
53093         to SIG_DFL (except when ignored).
53094         (install_handlers): Save the previous handlers.
53095
53096 2008-08-30  Bruno Haible  <bruno@clisp.org>
53097
53098         * gnulib-tool (func_reset_sigpipe): New function.
53099         (func_get_automake_snippet, func_modules_transitive_closure,
53100         func_import): Invoke it before a join command that reads from stdin,
53101         to avoid "echo: write error: Broken pipe" error messages on stderr.
53102         Reported by Sam Steingold <sds@gnu.org>.
53103
53104 2008-08-30  Bruno Haible  <bruno@clisp.org>
53105
53106         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53107         Code copied from m4/open.m4.
53108         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53109         access and the filename ends in a slash. Code copied from lib/open.c.
53110         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53111         * tests/test-fopen.c (main): Check against bug with trailing slash.
53112
53113 2008-08-29  Bruno Haible  <bruno@clisp.org>
53114
53115         Avoid some "gcc -pedantic" warnings.
53116         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53117         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53118         * lib/dirent.in.h: Likewise.
53119         * lib/fcntl.in.h: Likewise.
53120         * lib/float.in.h: Likewise.
53121         * lib/iconv.in.h: Likewise.
53122         * lib/inttypes.in.h: Likewise.
53123         * lib/locale.in.h: Likewise.
53124         * lib/math.in.h: Likewise.
53125         * lib/netinet_in.in.h: Likewise.
53126         * lib/search.in.h: Likewise.
53127         * lib/signal.in.h: Likewise.
53128         * lib/stdarg.in.h: Likewise.
53129         * lib/stdint.in.h: Likewise.
53130         * lib/stdio.in.h: Likewise.
53131         * lib/stdlib.in.h: Likewise.
53132         * lib/string.in.h: Likewise.
53133         * lib/strings.in.h: Likewise.
53134         * lib/sys_select.in.h: Likewise.
53135         * lib/sys_socket.in.h: Likewise.
53136         * lib/sys_stat.in.h: Likewise.
53137         * lib/sys_time.in.h: Likewise.
53138         * lib/sysexits.in.h: Likewise.
53139         * lib/time.in.h: Likewise.
53140         * lib/unistd.in.h: Likewise.
53141         * lib/wchar.in.h: Likewise.
53142         * lib/wctype.in.h: Likewise.
53143         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53144         * modules/fchdir (Makefile.am): Likewise.
53145         * modules/fcntl (Makefile.am): Likewise.
53146         * modules/float (Makefile.am): Likewise.
53147         * modules/iconv_open (Makefile.am): Likewise.
53148         * modules/inttypes (Makefile.am): Likewise.
53149         * modules/locale (Makefile.am): Likewise.
53150         * modules/math (Makefile.am): Likewise.
53151         * modules/netinet_in (Makefile.am): Likewise.
53152         * modules/search (Makefile.am): Likewise.
53153         * modules/signal (Makefile.am): Likewise.
53154         * modules/stdarg (Makefile.am): Likewise.
53155         * modules/stdint (Makefile.am): Likewise.
53156         * modules/stdio (Makefile.am): Likewise.
53157         * modules/stdlib (Makefile.am): Likewise.
53158         * modules/string (Makefile.am): Likewise.
53159         * modules/strings (Makefile.am): Likewise.
53160         * modules/sys_select (Makefile.am): Likewise.
53161         * modules/sys_socket (Makefile.am): Likewise.
53162         * modules/sys_stat (Makefile.am): Likewise.
53163         * modules/sys_time (Makefile.am): Likewise.
53164         * modules/sysexits (Makefile.am): Likewise.
53165         * modules/time (Makefile.am): Likewise.
53166         * modules/unistd (Makefile.am): Likewise.
53167         * modules/wchar (Makefile.am): Likewise.
53168         * modules/wctype (Makefile.am): Likewise.
53169         Reported by Reuben Thomas <rrt@sc3d.org>.
53170
53171 2008-08-29  Bruno Haible  <bruno@clisp.org>
53172
53173         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53174         any more.
53175
53176 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53177
53178         * MODULES.html.sh (Misc): Add bitrotate.
53179
53180         * modules/bitrotate: New file.
53181
53182         * lib/bitrotate.h: New file.
53183
53184         * modules/bitrotate-tests: New file.
53185
53186         * tests/test-bitrotate.c: New file.
53187
53188         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53189         on the bitrotate module.
53190
53191         * lib/arctwo.c: Use new bitrotate module.
53192
53193 2008-08-29  Jim Meyering  <meyering@redhat.com>
53194
53195         bootstrap: merge changes from coreutils
53196         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53197         of copied files.  Remove a kludge, now that this is fixed.
53198         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53199         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53200         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53201
53202 2008-08-29  Bruno Haible  <bruno@clisp.org>
53203
53204         * MODULES.html.sh: Remove --cvs-urls option.
53205
53206 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53207
53208         maint.mk: adjust to file name change
53209         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53210
53211 2008-08-28  Jim Meyering  <meyering@redhat.com>
53212
53213         * modules/getndelim2 (License): Relicense to LGPLv2+.
53214         Approved by Richard Stallman for the version of 1995, and by
53215         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53216
53217 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53218
53219         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53220         dummy if one is not available.  Do not touch them if
53221         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53222         (getc_maybe_unlocked): New.
53223         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53224
53225 2008-08-26  Eric Blake  <ebb9@byu.net>
53226
53227         doc/INSTALL: resync from autoconf
53228         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53229         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53230         moving...
53231         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53232         * INSTALL: Regenerate.
53233         * INSTALL.ISO: New file.
53234         * INSTALL.UTF-8: Likewise.
53235
53236 2008-08-26  Jim Meyering  <meyering@redhat.com>
53237
53238         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53239         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53240         these definitions conditional, so that they may be overridden, too.
53241
53242 2008-08-26  Bruno Haible  <bruno@clisp.org>
53243
53244         Generate INSTALL file variants with prettier quotes.
53245         * doc/Makefile (INSTALL_PRELUDE): New macro.
53246         (INSTALL): Use it.
53247         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53248
53249 2008-08-26  Bruno Haible  <bruno@clisp.org>
53250
53251         Run makeinfo in an English locale.
53252         * doc/Makefile (MAKEINFO): New variable.
53253
53254 2008-08-26  Bruno Haible  <bruno@clisp.org>
53255
53256         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53257         Suggested by Eric Blake.
53258
53259 2008-08-25  Bruno Haible  <bruno@clisp.org>
53260
53261         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53262
53263 2008-08-25  Eric Blake  <ebb9@byu.net>
53264
53265         c-stack: test that stack overflow can be caught
53266         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53267         that platform allows handling stack overflow; at least OS/2 EMX
53268         has sigaltstack, but crashes before transferring control to
53269         handler on stack overflow.
53270         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53271         check for HAVE_STACK_OVERFLOW_HANDLING.
53272         Reported by Elbert Pol.
53273
53274 2008-08-25  Bruno Haible  <bruno@clisp.org>
53275
53276         * doc/posix-functions/strftime.texi: Fix description of strftime
53277         module.
53278
53279 2008-08-24  Bruno Haible  <bruno@clisp.org>
53280
53281         * tests/uniwidth/test-uc_width2.c: New file.
53282         * tests/uniwidth/test-uc_width2.sh: New file.
53283         * modules/uniwidth/width-tests (Files): Add the new files.
53284         (TESTS): Add uniwidth/test-uc_width2.sh.
53285         (TESTS_ENVIRONMENT): New variable.
53286         (check_PROGRAMS): Add test-uc_width2.
53287         (test_uc_width2_SOURCES): New variable.
53288
53289         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53290         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53291         not 0x00AB.
53292         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53293
53294 2008-08-22  Eric Blake  <ebb9@byu.net>
53295
53296         test-lock, test-tls: mention why a test is skipped
53297         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53298         skipped.
53299         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53300
53301         count-one-bits: relax license
53302         * modules/count-one-bits (License): Relicense to LGPLv2+.
53303         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53304
53305 2008-08-22  Andreas Schwab  <schwab@suse.de>
53306
53307         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53308         Remove spurious space in assignment.
53309
53310 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53311
53312         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53313         Paul Eggert <eggert@CS.UCLA.EDU>.
53314
53315 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53316
53317         * modules/gettext: Add m4/threadlib.m4.
53318
53319 2008-08-19  Eric Blake  <ebb9@byu.net>
53320
53321         test-c-stack: fix compilation failure on FreeBSD 5.0
53322         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53323         headers before <sys/resource.h>.
53324         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53325         the bug.
53326         Reported by Nelson H. F. Beebe.
53327
53328         strverscmp: migrate from "strverscmp.h" to <string.h>
53329         * modules/string (Makefile.am): Add new hooks.
53330         * modules/strverscmp (Files): Remove strverscmp.h.
53331         (Depends-on): Add string.
53332         (configure.ac): Add indicator.
53333         (Include): Mention new header.
53334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53335         defaults.
53336         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53337         results.
53338         * lib/strverscmp.h: Delete.
53339         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53340         * tests/test-strverscmp.c (includes): Adjust client.
53341         * lib/check-version.c (includes): Likewise.
53342         * NEWS: Document the change.
53343
53344         strverscmp: add unit test
53345         * modules/strverscmp-tests: New file.
53346         * tests/test-strverscmp.c: Likewise.
53347
53348 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53349
53350         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53351         regarding Windows crypto stuff, from Mono.
53352
53353 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53354
53355         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53356         if present, for intel RND.  Return error on failures.
53357
53358 2008-08-18  Ben Pfaff  <blp@gnu.org>
53359
53360         gitlog-to-changelog: give better diagnostic for failed pipe-open
53361         * build-aux/gitlog-to-changelog: Improve error message: suggest
53362         that the version of Git may be too old.
53363
53364 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53365
53366         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53367         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53368
53369 2008-08-18  Bruno Haible  <bruno@clisp.org>
53370
53371         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53372         pthread_in_use().
53373
53374 2008-08-18  Bruno Haible  <bruno@clisp.org>
53375
53376         * lib/glthread/threadlib.c: Include <pthread.h>.
53377
53378 2008-08-18  Bruno Haible  <bruno@clisp.org>
53379
53380         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53381         glthread_recursive_lock_* macros.
53382         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53383         Fix syntax error.
53384
53385 2008-08-18  Bruno Haible  <bruno@clisp.org>
53386
53387         * lib/glthread/thread.c: Avoid forcing a context switch right after
53388         thread creation.
53389
53390 2008-08-17  Bruno Haible  <bruno@clisp.org>
53391
53392         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53393         * lib/glthread/thread.h: Provide Win32 specific implementation.
53394         * modules/thread (Files): Add lib/glthread/thread.c.
53395         (Depends-on): Add lock.
53396         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53397
53398 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53399
53400         New module 'yield'.
53401         * modules/yield: New file.
53402         * lib/glthread/yield.h: New file.
53403         * m4/yield.m4: New file.
53404         * MODULES.html.sh (Multithreading): Add yield.
53405
53406 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53407
53408         New module 'thread'.
53409         * modules/thread: New file.
53410         * lib/glthread/thread.h: New file.
53411         * m4/thread.m4: New file.
53412         * MODULES.html.sh (Multithreading): Add thread.
53413
53414 2008-08-17  Bruno Haible  <bruno@clisp.org>
53415
53416         * lib/glthread/lock.h: Include <stdlib.h> always.
53417         * lib/glthread/tls.h: Likewise.
53418         * lib/glthread/cond.h: Likewise.
53419
53420 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53421
53422         New module 'cond'.
53423         * modules/cond: New file.
53424         * lib/glthread/cond.h: New file.
53425         * lib/glthread/cond.c: New file.
53426         * m4/cond.m4: New file.
53427         * MODULES.html.sh (Multithreading): Add cond.
53428
53429 2008-08-16  Eric Blake  <ebb9@byu.net>
53430
53431         c-stack: fix regression on Irix 5.3 from 2008-06-21
53432         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53433         sa_sigaction...
53434         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53435         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53436         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53437         * modules/signal (Makefile.am): Use the value.
53438         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53439         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53440         * doc/posix-headers/signal.texi (signal.h): Document this
53441         portability issue.
53442         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53443         Reported by Tom G. Christensen.
53444
53445 2008-08-17  Bruno Haible  <bruno@clisp.org>
53446
53447         New module 'threadlib'.
53448         * modules/threadlib: New file.
53449         * lib/glthread/threadlib.c: New file, extracted from
53450         lib/glthread/lock.c.
53451         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53452         functions.
53453         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53454         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53455         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53456         macros.
53457         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53458         (gl_DISABLE_THREADS): Remove macro.
53459         * modules/lock (Files): Remove build-aux/config.rpath.
53460         (Depends-on): Remove havelib. Add threadlib.
53461         (configure.ac-early): Remove section.
53462         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53463         * modules/tls (Depends-on): Remove lock. Add threadlib.
53464         (Link): New section, copied from threadlib.
53465         * MODULES.html.sh (Multithreading): Add threadlib.
53466
53467 2008-08-14  Bruno Haible  <bruno@clisp.org>
53468
53469         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53470         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53471         glthread_rwlock_unlock, glthread_rwlock_destroy,
53472         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53473         glthread_recursive_lock_destroy): Define as macros always.
53474         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53475         glthread_lock_lock.
53476         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53477         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53478         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53479         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53480         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53481         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53482         (glthread_recursive_lock_lock_func): Renamed from
53483         glthread_recursive_lock_lock.
53484         (glthread_recursive_lock_unlock_func): Renamed from
53485         glthread_recursive_lock_unlock.
53486         (glthread_recursive_lock_destroy_func): Renamed from
53487         glthread_recursive_lock_destroy.
53488
53489 2008-08-14  Bruno Haible  <bruno@clisp.org>
53490
53491         * lib/glthread/lock.h: Renamed from lib/lock.h.
53492         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53493         * lib/glthread/tls.h: Renamed from lib/tls.h.
53494         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53495         * lib/fstrcmp.c: Update includes.
53496         * lib/strsignal.c: Update includes.
53497         * modules/lock (Files, Makefile.am): Update.
53498         (Include): Change to "glthread/lock.h".
53499         * modules/tls (Files, Makefile.am): Update.
53500         (Include): Change to "glthread/tls.h".
53501         * tests/test-lock.c: Update includes.
53502         * tests/test-tls.c: Update includes.
53503         * NEWS: Mention the renamed header files.
53504
53505 2008-08-11  Jim Meyering  <meyering@redhat.com>
53506
53507         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53508
53509 2008-08-11  Eric Blake  <ebb9@byu.net>
53510
53511         test-c-stack: avoid C99-ism
53512         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53513         before statement.
53514         Reported by Alain Guibert.
53515
53516 2008-08-10  Jim Meyering  <meyering@redhat.com>
53517
53518         ensure that return value of uinttostr et al are not ignored
53519         * lib/inttostr.h (__GNUC_PREREQ): Define.
53520         (__attribute_warn_unused_result__): Define.
53521         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53522
53523 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53524
53525         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53526         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53527
53528 2008-08-07  Jim Meyering  <meyering@redhat.com>
53529
53530         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53531
53532         * modules/mkstemp (License): Relicense under LGPLv2+.
53533         * modules/tempname (License): Likewise.
53534
53535 2008-08-06  Bruno Haible  <bruno@clisp.org>
53536
53537         * lib/poll.c (poll): Further micro-optimization.
53538
53539 2008-08-06  Jim Meyering  <meyering@redhat.com>
53540
53541         inet_pton.c: use locale-independent tolower
53542         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53543         (inet_pton6): Use c_tolower rather than tolower.
53544         * modules/inet_pton (Depends-on): Add c-ctype.
53545
53546 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53547
53548         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53549         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53550
53551 2008-08-06  Jim Meyering  <meyering@redhat.com>
53552
53553         * modules/inet_pton (License): Relicense under LGPLv2+.
53554
53555 2008-08-03  Bruno Haible  <bruno@clisp.org>
53556
53557         Additional non-aborting API for lock and tls.
53558         * lib/lock.h: Include <errno.h>.
53559         (glthread_lock_init): New macro/function.
53560         (gl_lock_init): Define as wrapper around glthread_lock_init.
53561         (glthread_lock_lock): New macro/function.
53562         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53563         (glthread_lock_unlock): New macro/function.
53564         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53565         (glthread_lock_destroy): New macro/function.
53566         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53567         (glthread_rwlock_init): New macro/function.
53568         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53569         (glthread_rwlock_rdlock): New macro/function.
53570         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53571         (glthread_rwlock_wrlock): New macro/function.
53572         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53573         (glthread_rwlock_unlock): New macro/function.
53574         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53575         (glthread_rwlock_destroy): New macro/function.
53576         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53577         (glthread_recursive_lock_init): New macro/function.
53578         (gl_recursive_lock_init): Define as wrapper around
53579         glthread_recursive_lock_init.
53580         (glthread_recursive_lock_lock): New macro/function.
53581         (gl_recursive_lock_lock): Define as wrapper around
53582         glthread_recursive_lock_lock.
53583         (glthread_recursive_lock_unlock): New macro/function.
53584         (gl_recursive_lock_unlock): Define as wrapper around
53585         glthread_recursive_lock_unlock.
53586         (glthread_recursive_lock_destroy): New macro/function.
53587         (gl_recursive_lock_destroy): Define as wrapper around
53588         glthread_recursive_lock_destroy.
53589         (glthread_once): New macro/function.
53590         (gl_once): Define as wrapper around glthread_once.
53591         Update function declarations.
53592         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53593         glthread_rwlock_init. Return error code.
53594         (glthread_rwlock_rdlock_multithreaded): Renamed from
53595         glthread_rwlock_rdlock. Return error code.
53596         (glthread_rwlock_wrlock_multithreaded): Renamed from
53597         glthread_rwlock_wrlock. Return error code.
53598         (glthread_rwlock_unlock_multithreaded): Renamed from
53599         glthread_rwlock_unlock. Return error code.
53600         (glthread_rwlock_destroy_multithreaded): Renamed from
53601         glthread_rwlock_destroy. Return error code.
53602         (glthread_recursive_lock_init_multithreaded): Renamed from
53603         glthread_recursive_lock_init. Return error code.
53604         (glthread_recursive_lock_lock_multithreaded): Renamed from
53605         glthread_recursive_lock_lock. Return error code.
53606         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53607         glthread_recursive_lock_unlock. Return error code.
53608         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53609         glthread_recursive_lock_destroy. Return error code.
53610         (glthread_once_call): Make static.
53611         (glthread_once_multithreaded): Renamed from glthread_once.
53612         * lib/tls.h: Include <errno.h>.
53613         (glthread_tls_key_init): New macro/function.
53614         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53615         (glthread_tls_set): New macro/function.
53616         (gl_tls_set): Define as wrapper around glthread_tls_set.
53617         (glthread_tls_key_destroy): New macro/function.
53618         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53619         Update function declarations.
53620         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53621         glthread_tls_get.
53622         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53623
53624 2008-08-04  Eric Blake  <ebb9@byu.net>
53625
53626         gnumakefile: use space, not TAB, outside of targets
53627         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53628
53629 2008-08-02  Jim Meyering  <meyering@redhat.com>
53630
53631         getdate.y: avoid locale-dependent date parsing failure
53632         In Turkish locales, getdate would fail to recognize keywords
53633         containing a lowercase "i".  The solution is not to rely on
53634         locale-sensitive case-conversion.
53635         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53636         (lookup_word): Use c_toupper in place of toupper.
53637         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53638         Reported by Vefa Bicakci <bicave@superonline.com> in
53639         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53640         * modules/getdate (Depends-on): Add c-ctype.
53641
53642 2008-08-02  Bruno Haible  <bruno@clisp.org>
53643
53644         * gnulib-tool (func_import): When updating or creating a .gitignore
53645         file, prepend each added line with a slash, and ignore leading slashes
53646         from the existing lines.
53647         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53648
53649 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53650
53651         Portability fix for GNU make 3.79.1.
53652         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53653         versions do not understand.
53654
53655 2008-08-01  Bruno Haible  <bruno@clisp.org>
53656
53657         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53658         * tests/test-isnanf.h (zero): New variable.
53659         (main): Avoid literal -0.0f.
53660         * tests/test-isnand.h (zero): New variable.
53661         (main): Avoid literal -0.0.
53662         * tests/test-isnanl.h (zero): New variable.
53663         (main): Avoid literal -0.0L.
53664         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53665         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53666         -0.0, -0.0L.
53667         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53668         (test_signbitd): Avoid literal -0.0.
53669         (test_signbitl): Avoid literal -0.0L.
53670         * tests/test-ceilf1.c (zero): New variable.
53671         (main): Avoid literal -0.0f.
53672         * tests/test-ceill.c (zero): New variable.
53673         (main): Avoid literal -0.0L.
53674         * tests/test-floorf1.c (zero): New variable.
53675         (main): Avoid literal -0.0f.
53676         * tests/test-floorl.c (zero): New variable.
53677         (main): Avoid literal -0.0L.
53678         * tests/test-roundf1.c (zero): New variable.
53679         (main): Avoid literal -0.0f.
53680         * tests/test-round1.c (zero): New variable.
53681         (main): Avoid literal -0.0.
53682         * tests/test-roundl.c (zero): New variable.
53683         (main): Avoid literal -0.0L.
53684         * tests/test-truncf1.c (zero): New variable.
53685         (main): Avoid literal -0.0f.
53686         * tests/test-trunc1.c (zero): New variable.
53687         (main): Avoid literal -0.0.
53688         * tests/test-truncl.c (zero): New variable.
53689         (main): Avoid literal -0.0L.
53690         * tests/test-frexp.c (zero): New variable.
53691         (main): Avoid literal -0.0.
53692         * tests/test-frexpl.c (zero): New variable.
53693         (main): Avoid literal -0.0L.
53694         * tests/test-ldexpl.c (zero): New variable.
53695         (main): Avoid literal -0.0L.
53696         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53697         (zerod, zerol): New variables.
53698         (test_function): Avoid literals -0.0, -0.0L.
53699         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53700         (zerod, zerol): New variables.
53701         (test_function): Avoid literals -0.0, -0.0L.
53702         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53703         (zerod, zerol): New variables.
53704         (test_function): Avoid literals -0.0, -0.0L.
53705         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53706         (zerod, zerol): New variables.
53707         (test_function): Avoid literals -0.0, -0.0L.
53708         * tests/test-strtod.c (zero): New variable.
53709         (main): Avoid literal -0.0.
53710         Reported by Jonathan C. Patschke <jp@centtech.com>.
53711
53712 2008-07-31  Jim Meyering  <meyering@redhat.com>
53713
53714         sha256.h: correct definition of SHA224_DIGEST_SIZE
53715         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53716         Reported by Paulie Pena IV <paulie4@gmail.com>.
53717         Define as 224 / 8, rather than as a literal.
53718         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53719         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53720         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53721
53722 2008-07-31  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53725         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53726         Reported by Jonathan Patschke <jp@centtech.com>.
53727
53728 2008-07-31  Bruno Haible  <bruno@clisp.org>
53729
53730         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53731         Reported by Paolo Bonzini <bonzini@gnu.org>.
53732
53733 2008-07-30  Eric Blake  <ebb9@byu.net>
53734
53735         test-strtod: allow compilation without -lm
53736         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53737         Reported by Dennis Clarke <blastwave@gmail.com>.
53738
53739 2008-07-28  Jim Meyering  <meyering@redhat.com>
53740
53741         bootstrap: work also when there are no .po files in po/
53742         * build-aux/bootstrap (update_po_files): Complete the change
53743         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53744
53745 2008-07-27  Jim Meyering  <meyering@redhat.com>
53746
53747         * users.txt: Add zile.
53748
53749 2008-07-26  Ben Pfaff  <blp@gnu.org>
53750
53751         Add missing dependencies on new m4/exponent[fdl].m4 files.
53752         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53753         * modules/isnand-nolibm: Add m4/exponentd.m4.
53754         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53755         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53756         m4/isnan[fdl].m4, because the macros actually used moved.
53757         Reported by Jim Meyering.
53758
53759 2008-07-14  Ben Pfaff  <blp@gnu.org>
53760
53761         Add isinf module.
53762         * lib/isinf.c: New file.
53763         * lib/math.in.h: Define isinf macro if we have decided to replace
53764         it.
53765         * m4/isinf.m4: New file.
53766         * m4/math_h.m4: Initialize and substitute variables for isinf
53767         module.
53768         * modules/isinf: New file.
53769         * modules/isinf-tests: New file.
53770         * modules/math: Add substitutions for new module.
53771         * tests/test-isinf.c: New file.
53772         * doc/posix-functions/isinf.texi: Mention new module.
53773         * MODULES.html.sh: Mention new module.
53774
53775 2008-07-14  Ben Pfaff  <blp@gnu.org>
53776
53777         Factor out some macros for use by additional modules.
53778         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53779         exponentf.m4.
53780         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53781         exponentd.m4.
53782         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53783         file exponentl.m4.
53784         * m4/exponentf.m4: New file.
53785         * m4/exponentd.m4: New file.
53786         * m4/exponentl.m4: New file.
53787         * modules/isnanf: Use new file m4/exponentf.m4.
53788         * modules/isnand: Use new file m4/exponentd.m4.
53789         * modules/isnanl: Use new file m4/exponentl.m4.
53790
53791 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53792
53793         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53794         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53795         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53796         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53797
53798         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53799         readlink on platforms without PATH_MAX.
53800
53801 2008-07-21  Eric Blake  <ebb9@byu.net>
53802
53803         Warn, not fail, on stale version.
53804         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53805
53806         Don't allow installation with stale devel version number.
53807         * top/GNUmakefile (_is-install-target): New macro.
53808         (_curr-ver): Forbid installation with stale version number.
53809
53810 2008-07-20  Bruno Haible  <bruno@clisp.org>
53811
53812         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53813         TESTS_ENVIRONMENT.
53814         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53815
53816 2008-07-20  Bruno Haible  <bruno@clisp.org>
53817
53818         * lib/c-stack.h (c_stack_action): Add documentation.
53819         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53820
53821 2008-07-20  Bruno Haible  <bruno@clisp.org>
53822
53823         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53824         * modules/readlink (License): Likewise.
53825
53826 2008-07-17  Eric Blake  <ebb9@byu.net>
53827
53828         * modules/c-stack (Link): Fix typo.
53829
53830         Make c-stack use libsigsegv, when available.
53831         * modules/c-stack (Depends-on): Add libsigsegv.
53832         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53833         needed.
53834         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53835         (segv_handler, overflow_handler, c_stack_action)
53836         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53837         implementation when libsigsegv is available, but only when using
53838         the library is necessary.
53839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53840         comment, explaining why XSI check fails on Linux.
53841         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53842         * tests/test-c-stack2.sh: Tweak skip message.
53843         * NEWS: Document new link-time requirements.
53844
53845 2008-07-16  Eric Blake  <ebb9@byu.net>
53846
53847         c-stack: Expose false positives when not using libsigsegv.
53848         * modules/c-stack-tests (Files): Expand test.
53849         * tests/test-c-stack.c (main): Add means to conditionally trigger
53850         non-overflow SIGSEGV.
53851         * tests/test-c-stack2.sh: New file.
53852
53853 2008-07-14  Bruno Haible  <bruno@clisp.org>
53854
53855         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53856         Reported by Eric Blake.
53857
53858 2008-07-14  Sam Steingold  <sds@gnu.org>
53859             Bruno Haible  <bruno@clisp.org>
53860
53861         New module libsigsegv.
53862         * modules/libsigsegv: New file.
53863         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53864         modifications.
53865         * MODULES.html.sh (Signal handling): New section.
53866
53867 2008-07-14  Bruno Haible  <bruno@clisp.org>
53868
53869         * modules/unictype/ctype-* (Description): Add the word "function".
53870         Improves the resulting doc in MODULES.html.
53871
53872 2008-07-12  Ben Pfaff  <blp@gnu.org>
53873
53874         Add longlong module.
53875         * modules/longlong: New file.
53876
53877 2008-07-12  Bruno Haible  <bruno@clisp.org>
53878
53879         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53880         to empty.
53881
53882 2008-07-10  Ben Pfaff  <blp@gnu.org>
53883
53884         Add isnan module.
53885         * doc/posix-functions/isnan.texi: Mention new module.
53886         * lib/math.in.h: Define isnan macro if we have decided to replace
53887         it.
53888         * m4/isnan.m4: New file.
53889         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53890         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53891         also.
53892         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53893         redundancy.
53894         * m4/math_h.m4: Initialize and substitute variables for isnan
53895         module.
53896         * modules/isnan: New file.
53897         * modules/isnan-tests: New file.
53898         * modules/math: Add substitutions for new module.
53899         * tests/test-isnan.c: New file.
53900         * MODULES.html.sh: Mention new module.
53901
53902 2008-07-10  Ben Pfaff  <blp@gnu.org>
53903
53904         Add isnanf module.
53905         * lib/isnanf.m4: New file.
53906         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53907         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53908         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53909         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53910         * modules/isnanf: New file.
53911         * modules/isnanf-tests: New file.
53912         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53913         files.
53914         * tests/test-isnanf-nolibm.c: factored most of its contents into
53915         new file tests/test-isnanf.h.
53916         * tests/test-isnanf.h: New file.
53917         * tests/test-isnanf.c: New file.
53918         * MODULES.html.sh: Mention new module.
53919         * doc/glibc-functions/isnanf.texi: Mention new module.
53920
53921 2008-07-10  Ben Pfaff  <blp@gnu.org>
53922
53923         Add isnand module.
53924         * lib/isnand.h: New file.
53925         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53926         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53927         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53928         functionality also.
53929         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53930         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53931         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53932         * modules/isnand: New file.
53933         * modules/isnand-tests: New file.
53934         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53935         files.
53936         * tests/test-isnand-nolibm.c: factored most of its contents into
53937         new file tests/test-isnand.h.
53938         * tests/test-isnand.h: New file.
53939         * tests/test-isnand.c: New file.
53940         * MODULES.html.sh: Mention new module.
53941
53942 2008-07-10  Ben Pfaff  <blp@gnu.org>
53943
53944         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53945         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53946         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53947         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53948         * modules/isnanf-nolibm: Update references to renamed files.
53949         * modules/isnand-nolibm: Likewise.
53950         * modules/isnanf-nolibm-tests: Likewise.
53951         * modules/isnand-nolibm-tests: Likewise.
53952         * lib/frexp.c: Likewise.
53953         * lib/isfinite.c: Likewise.
53954         * lib/signbitd.c: Likewise.
53955         * lib/signbitf.c: Likewise.
53956         * lib/vasnprintf.c: Likewise.
53957         * tests/test-ceilf1.c: Likewise.
53958         * tests/test-ceilf2.c: Likewise.
53959         * tests/test-floorf1.c: Likewise.
53960         * tests/test-floorf2.c: Likewise.
53961         * tests/test-frexp.c: Likewise.
53962         * tests/test-round1.c: Likewise.
53963         * tests/test-round2.c: Likewise.
53964         * tests/test-roundf1.c: Likewise.
53965         * tests/test-strtod.c: Likewise.
53966         * tests/test-trunc1.c: Likewise.
53967         * tests/test-trunc2.c: Likewise.
53968         * tests/test-truncf1.c: Likewise.
53969         * tests/test-truncf2.c: Likewise.
53970         * NEWS: Mention the renamed header files.
53971
53972 2008-07-11  Jim Meyering  <meyering@redhat.com>
53973
53974         vc-list-files: make the last-resort awk code more portable
53975         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53976         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53977         does not support it.
53978
53979 2008-07-10  Eric Blake  <ebb9@byu.net>
53980
53981         Work with tar's bootstrap.
53982         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53983         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53984         an m4 comment.
53985
53986 2008-07-09  Jim Meyering  <meyering@redhat.com>
53987
53988         posix-shell.m4: fix typo that made this test malfunction
53989         * m4/posix-shell.m4: Remove capitalization in variable name.
53990
53991 2008-07-08  Bruno Haible  <bruno@clisp.org>
53992
53993         * m4/onceonly.m4: Update comments.
53994         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53995
53996 2008-07-04  Jim Meyering  <meyering@redhat.com>
53997
53998         * users.txt: Add vc-dwim.
53999         (bison, coreutils): Use the gitweb URL.
54000
54001 2008-07-03  Jim Meyering  <meyering@redhat.com>
54002
54003         * users.txt: Add libffcall.  From Sam Steingold.
54004
54005 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54006
54007         getdate.y: do not ignore TZ with relative day, month or year offset
54008         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54009         relative-date-handling, since otherwise, the latter would clobber the
54010         sole output (an updated Start value) of the tz-handling block.
54011         * tests/test-getdate.c: Tests for the fix
54012
54013 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54014
54015         Recognize 'foo_LIBRARIES += libgnu.a'.
54016         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54017         makefile snippet has already specified an installation location,
54018         also using '+='.
54019
54020 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54021
54022         getdate.y: factor out common actions
54023         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54024         Use them in place of open-coded actions.
54025
54026 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54027
54028         Add self-test for getdate module.
54029         * modules/getdate-tests: New file.
54030         * tests/test-getdate.c: New file.
54031
54032 2008-06-29  Bruno Haible  <bruno@clisp.org>
54033
54034         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54035         .gitignore.
54036         Reported by Sylvain Beucler <beuc@beuc.net>.
54037
54038 2008-06-29  Bruno Haible  <bruno@clisp.org>
54039
54040         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54041         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54042
54043 2008-06-29  Bruno Haible  <bruno@clisp.org>
54044
54045         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54046         EXTRA_DIST.
54047         Reported by Sylvain Beucler <beuc@beuc.net>.
54048
54049 2008-06-26  Jim Meyering  <meyering@redhat.com>
54050
54051         make several modules depend on the "open" module
54052         This provides slightly increased consistency when opening-for-write
54053         the name of a non-directory spelled with a trailing slash.
54054         * modules/chdir-safer: Likewise.
54055         * modules/chown: Likewise.
54056         * modules/clean-temp: Likewise.
54057         * modules/copy-file: Likewise.
54058         * modules/fchdir: Likewise.
54059         * modules/fcntl-safer: Likewise.
54060         * modules/pipe: Likewise.
54061         * modules/utime: Likewise.
54062         Prompted by Eric Blake and Bruno Haible.
54063
54064 2008-06-24  Andreas Schwab  <schwab@suse.de>
54065
54066         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54067         literals can be used as initializers for global variables.
54068
54069 2008-06-23  Eric Blake  <ebb9@byu.net>
54070
54071         Make gnulib-cache.m4 easier to diff.
54072         * gnulib-tool (func_import): Allow newlines when reading cached
54073         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54074
54075 2008-06-23  Bruno Haible  <bruno@clisp.org>
54076
54077         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54078         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54079         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54080         m4/signalblocking.m4.
54081         (gl_PREREQ_SIGACTION): Don't invoke it.
54082         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54083         gl_PREREQ_SIG_HANDLER_H.
54084         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54085         Don't check for sigaction here.
54086
54087 2008-06-23  Bruno Haible  <bruno@clisp.org>
54088
54089         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54090         (install_handlers): Don't set the SA_RESETHAND flag.
54091
54092 2008-06-23  Bruno Haible  <bruno@clisp.org>
54093
54094         * m4/sigaction.m4: Comment fixes.
54095         * lib/signal.in.h: Likewise.
54096
54097 2008-06-23  Eric Blake  <ebb9@byu.net>
54098
54099         Fix typo.
54100         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54101
54102         Avoid SA_ namespace.
54103         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54104         Reported by Ralf Wildenhues.
54105
54106         Avoid test failure due to SA_RESTORER.
54107         * tests/test-sigaction.c (SA_MASK): New macro.
54108         (main): Avoid failing due to extension flags being set.
54109         Reported by Jim Meyering.
54110
54111         Revert use of sig-handler.h in sigprocmask.c.
54112         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54113         it requires the existence of struct sigaction.
54114         * lib/sigprocmask.c (handler_t): Restore typedef.
54115         (rpl_signal, old_handlers): Use local type.
54116
54117 2008-06-22  Bruno Haible  <bruno@clisp.org>
54118
54119         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54120         conditionally.
54121         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54122
54123 2008-06-22  Bruno Haible  <bruno@clisp.org>
54124
54125         * doc/posix-functions/siginterrupt.texi: Move note.
54126
54127         * lib/signal.in.h (SA_RESTART): New macro.
54128         * lib/sigaction.c: Update comment.
54129
54130         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54131
54132         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54133         (gl_PREREQ_SIGPROCMASK): Invoke it.
54134         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54135
54136         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54137
54138         * lib/sigprocmask.c: Update a comment.
54139
54140 2008-06-21  Eric Blake  <ebb9@byu.net>
54141
54142         Use sigaction module rather than signal().
54143         * modules/c-stack (Depends-on): Add sigaction.
54144         * modules/fatal-signal (Depends-on): Likewise.
54145         * modules/nanosleep (Depends-on): Likewise.
54146         * modules/sigprocmask (Files): Add sig-handler.h.
54147         * modules/sigaction (Files): Likewise.
54148         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54149         Eggert.
54150         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54151         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54152         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54153         (init_fatal_signals): Likewise.
54154         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54155         (siginterrupt): Delete fallback.
54156         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54157         instead.
54158         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54159         siginterrupt.
54160
54161         New module sigaction, for mingw.
54162         * modules/sigaction: New module...
54163         * modules/sigaction-tests: ...and its test.
54164         * m4/sigaction.m4: New file.
54165         * lib/sigaction.c: Likewise.
54166         * tests/test-sigaction.c: Likewise.
54167         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54168         * modules/signal (Makefile.am): Likewise.
54169         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54170         needed.
54171         * doc/posix-headers/signal.texi (signal.h): Mention provided
54172         types.
54173         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54174         that sigaction is preferable.
54175         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54176         module.
54177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54178         sigaction.
54179
54180         Improve robustness of sigprocmask by overriding signal.
54181         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54182         is in use.
54183         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54184         (SIGKILL, SIGSTOP): Provide fallbacks.
54185         (rpl_signal): Implement.
54186         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54187         signal can be called inside handlers.
54188
54189         Fix nanosleep module on mingw.
54190         * modules/nanosleep (Depends-on): Add sys_select.
54191         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54192
54193         Fix licensing of sigprocmask.
54194         * modules/raise (License): Relicense as LGPL.
54195
54196 2008-06-21  Bruno Haible  <bruno@clisp.org>
54197
54198         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54199         result if it contains question marks.
54200         Reported by Michael Geng <linux@michaelgeng.de>.
54201
54202 2008-06-19  Bruno Haible  <bruno@clisp.org>
54203
54204         Fix CVS-ism.
54205         * doc/gnulib.texi: Include updated-stamp.texi.
54206         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54207         (updated-stamp.texi): New rule.
54208         (gnulib.info): Depend on it.
54209         * doc/.gitignore: Add updated-stamp.texi.
54210         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54211
54212 2008-06-19  Bruno Haible  <bruno@clisp.org>
54213
54214         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54215         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54216
54217 2008-06-19  Eric Blake  <ebb9@byu.net>
54218
54219         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54220         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54221         Reported by Stepan Kasal.
54222
54223 2008-06-18  Bruno Haible  <bruno@clisp.org>
54224
54225         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54226         Reported by Eric Blake.
54227
54228 2008-06-18  Eric Blake  <ebb9@byu.net>
54229
54230         Work around cygwin 1.5.25 strsignal bug.
54231         * tests/test-strsignal.c: Allow for const char *.
54232         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54233
54234 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54235
54236         * users.txt: Update URL to article and add author/date
54237         information.
54238
54239 2008-06-17  Bruno Haible  <bruno@clisp.org>
54240
54241         New macro gl_DISABLE_THREADS.
54242         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54243         if the user did not pass --enable-threads or --disable-threads option.
54244         (gl_DISABLE_THREADS): New macro.
54245         Reported by Eric Blake <ebb9@byu.net>.
54246
54247 2008-06-17  Bruno Haible  <bruno@clisp.org>
54248
54249         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54250         when the macro ignores it.
54251         Based on a patch by Eric Blake <ebb9@byu.net>.
54252
54253 2008-06-17  Bruno Haible  <bruno@clisp.org>
54254
54255         * modules/tls (License): Change to LGPLv2+.
54256         Reported by Eric Blake.
54257
54258 2008-06-17  Eric Blake  <ebb9@byu.net>
54259
54260         Simplify c-stack prerequisites.
54261         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54262         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54263         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54264         check.
54265         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54266         <sys/resource.h>.
54267
54268         Move c-stack test into testsuite.
54269         * modules/c-stack-tests: New file.
54270         * lib/c-stack.c [DEBUG]: Move test program...
54271         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54272         fail test if sigaltstack is lacking.
54273         * tests/test-c-stack.sh: New driver file.
54274
54275 2008-06-16  Eric Blake  <ebb9@byu.net>
54276
54277         Use raise module consistently.
54278         * modules/fatal-signal (Depends-on): Add raise.
54279         * modules/sigprocmask (Depends-on): Likewise.
54280         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54281         * lib/sigprocmask.c (sigprocmask): Likewise.
54282         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54283         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54284
54285         Fix compliance bug in sigpending.
54286         * lib/sigprocmask.c (sigpending): Return pending array via
54287         parameter, not return value.
54288
54289 2008-06-14  Eric Blake  <ebb9@byu.net>
54290
54291         Improve obstack-printf test code.
54292         * tests/test-obstack-printf.c (test_function): Fix comment, and
54293         simplify usage of obstack_* in macros.  Add a test for coverage.
54294         Reported by Bruno Haible.
54295
54296 2008-06-14  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54299         array size as a constant, not as a const variable.
54300         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54301         AC_USE_SYSTEM_EXTENSIONS.
54302         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54303         Test whether the obstack_printf function actually exists.
54304         * modules/obstack-printf (Depends-on): Add extensions.
54305         (Include): Remove obstack.h.
54306         * modules/obstack-printf-posix (Depends-on): Add extensions.
54307         (Include): Remove obstack.h.
54308
54309 2008-06-13  Eric Blake  <ebb9@byu.net>
54310
54311         Add obstack-printf and obstack-printf-posix modules.
54312         * modules/obstack-printf: New file.
54313         * modules/obstack-printf-posix: Likewise.
54314         * MODULES.html.sh (Misc): Mention them.
54315         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54316         Likewise.
54317         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54318         Likewise.
54319         * modules/stdio (Makefile.am): Accomodate new modules.
54320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54321         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54322         Declare.
54323         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54324         functions.
54325         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54326         (gl_REPLACE_OBSTACK_PRINTF): New macros
54327         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54328         * tests/test-obstack-printf.c: New file.
54329         * modules/obstack-printf-tests: Likewise.
54330         * modules/obstack-printf-posix-tests: Likewise.
54331
54332 2008-06-11  Bruno Haible  <bruno@clisp.org>
54333
54334         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54335         * lib/open.c: Include errno.h.
54336         (open): Fail when attempting to write to a file that has a trailing
54337         slash.
54338         * tests/test-open.c (main): Test against trailing slash bug.
54339         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54340
54341 2008-06-10  Bruno Haible  <bruno@clisp.org>
54342
54343         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54344         for $? to work inside the trap command, with various /bin/sh-s.
54345         * tests/test-vc-list-files-cvs.sh: Likewise.
54346
54347 2008-06-10  Bruno Haible  <bruno@clisp.org>
54348
54349         * lib/acl-internal.h: Don't include gettext.h here.
54350         * lib/set-mode-acl.c: Include gettext.h here.
54351         * lib/copy-acl.c: Likewise.
54352
54353 2008-06-10  Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54356         * lib/wait-process.c (wait_subprocess): Likewise.
54357         * lib/execute.h (execute): Add termsigp argument.
54358         * lib/execute.c (execute): Likewise.
54359         * lib/csharpcomp.c (compile_csharp_using_pnet,
54360         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54361         * lib/csharpexec.c (execute_csharp_using_pnet,
54362         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54363         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54364         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54365         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54366         is_jikes_present): Update.
54367         * lib/javaexec.c (execute_java_class): Update.
54368         * lib/javaversion.c (execute_and_read_line): Update.
54369         * NEWS: Document the changes.
54370         Reported by Eric Blake.
54371
54372 2008-06-10  Eric Blake  <ebb9@byu.net>
54373
54374         Add missing include.
54375         * tests/test-strstr.c (includes): Add <signal.h>.
54376         * tests/test-strcasestr.c (includes): Likewise.
54377         * tests/test-memmem.c (includes): Likewise.
54378
54379 2008-06-10  Bruno Haible  <bruno@clisp.org>
54380
54381         * lib/wait-process.c (wait_subprocess): Add an assertion.
54382
54383 2008-06-10  Bruno Haible  <bruno@clisp.org>
54384
54385         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54386
54387 2008-06-10  Bruno Haible  <bruno@clisp.org>
54388
54389         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54390         using alarm().
54391         * tests/test-strcasestr.c (main): Likewise.
54392         * tests/test-strstr.c (main): Likewise.
54393
54394 2008-06-09  Bruno Haible  <bruno@clisp.org>
54395
54396         Work around the Solaris 10 ACE ACLs ABI change.
54397         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54398         declare if ACL_NO_TRIVIAL is present.
54399         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54400         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54401         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54402         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54403         define if ACL_NO_TRIVIAL is present.
54404         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54405         and use the current ABI.
54406         (file_has_acl): Use same #if condition as elsewhere.
54407         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54408         in use, and use the current ABI.
54409         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54410         Reported by Jim Meyering.
54411
54412 2008-06-09  Eric Blake  <ebb9@byu.net>
54413
54414         Work around environments that (stupidly) ignore SIGALRM.
54415         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54416         before using alarm().
54417         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54418         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54419         Reported by Ian Beckwith <ianb@erislabs.net>.
54420
54421         Produce autobuild blurb earlier in log.
54422         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54423
54424 2008-06-09  Jim Meyering  <meyering@redhat.com>
54425         and OndÅ™ej Vašík  <ovasik@redhat.com>
54426
54427         utimens.c: correct kernel bug work-around
54428         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54429         failure, not success, and the kernel bug we're trying to work
54430         around affects not just the utimensat call, but also the fallback
54431         futimens call.
54432         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54433         not success.
54434         [HAVE_FUTIMENS]: Use the same work-around, here.
54435
54436 2008-06-09  Jim Meyering  <meyering@redhat.com>
54437
54438         add more guards around definition of ACE_-related code
54439         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54440         ALLOW and ACE_OWNER are also defined.
54441
54442 2008-06-08  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/acl-internal.h: Add me as co-author.
54445         * lib/file-has-acl.c: Likewise.
54446         * lib/set-mode-acl.c: Likewise.
54447         * lib/copy-acl.c: Likewise.
54448
54449 2008-06-08  Bruno Haible  <bruno@clisp.org>
54450
54451         Add support for AIX ACLs.
54452         * lib/acl-internal.h (acl_nontrivial): New declaration.
54453         * lib/file-has-acl.c (acl_nontrivial): New function.
54454         (file_has_acl): Add implementation using AIX 4 ACL API.
54455         * lib/set-mode-acl.c (qset_acl): Likewise.
54456         * lib/copy-acl.c (qcopy_acl): Likewise.
54457
54458 2008-06-08  Bruno Haible  <bruno@clisp.org>
54459
54460         Add support for HP-UX ACLs.
54461         * lib/acl-internal.h (acl_nontrivial): New declaration.
54462         * lib/file-has-acl.c (acl_nontrivial): New function.
54463         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54464         * lib/set-mode-acl.c (qset_acl): Likewise.
54465         * lib/copy-acl.c (qcopy_acl): Likewise.
54466
54467 2008-06-08  Bruno Haible  <bruno@clisp.org>
54468
54469         Add support for Cygwin ACLs.
54470         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54471         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54472         the chmod_or_fchmod call.
54473         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54474
54475 2008-06-08  Bruno Haible  <bruno@clisp.org>
54476
54477         Fix bug with setuid modes in Solaris 10+ code.
54478         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54479         succeeded, when the mode contains some special bits.
54480
54481 2008-06-08  Bruno Haible  <bruno@clisp.org>
54482
54483         Add support for Solaris 7..10 ACLs.
54484         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54485         declarations.
54486         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54487         functions.
54488         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54489         * lib/set-mode-acl.c (qset_acl): Likewise.
54490         * lib/copy-acl.c (qcopy_acl): Likewise.
54491
54492 2008-06-08  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54495         declaration.
54496         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54497         (acl_access_nontrivial): Remove MacOS X case.
54498         (file_has_acl): Use acl_extended_nontrivial.
54499         * lib/copy-acl.c (qcopy_acl): Likewise.
54500
54501 2008-06-08  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54504
54505 2008-06-08  Jim Meyering  <meyering@redhat.com>
54506
54507         * modules/acl (Maintainer): Add Bruno Haible.
54508
54509 2008-06-07  Bruno Haible  <bruno@clisp.org>
54510
54511         Improve support for Tru64 ACLs.
54512         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54513         ACL on OSF/1.
54514
54515 2008-06-07  Bruno Haible  <bruno@clisp.org>
54516
54517         Add support for MacOS X ACLs.
54518         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54519         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54520         * lib/set-mode-acl.c (qset_acl): Likewise.
54521         * lib/copy-acl.c (qcopy_acl): Likewise.
54522
54523 2008-06-07  Bruno Haible  <bruno@clisp.org>
54524
54525         Fix memory leak introduced on 2008-05-22.
54526         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54527         use.
54528
54529 2008-06-07  Bruno Haible  <bruno@clisp.org>
54530
54531         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54532         to construct an empty ACL.
54533
54534 2008-06-07  Bruno Haible  <bruno@clisp.org>
54535
54536         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54537         precisely.
54538         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54539
54540 2008-06-07  Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54543         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54544
54545 2008-06-07  Bruno Haible  <bruno@clisp.org>
54546
54547         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54548         regardless of POSIX.
54549         * doc/posix-functions/_longjmp.texi: Likewise.
54550         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54551         SystemV platform in this case.
54552
54553 2008-06-06  Eric Blake  <ebb9@byu.net>
54554
54555         Document abort() bugs.
54556         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54557
54558         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54559         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54560         sigsetjmp.
54561         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54562         siglongjmp, but only as a macro.
54563         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54564         is obsolete.
54565         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54566
54567         Tweak documentation to cover cygwin argz bugs.
54568         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54569         argz bug fix; no code change needed since no cygwin releases
54570         occurred between the last fix and the bug being tested.
54571         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54572         module and recently fixed cygwin bugs.
54573         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54574         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54575         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54576         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54577         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54578         Likewise.
54579         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54580         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54581         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54582         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54583         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54584         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54585         Likewise.
54586
54587         Avoid gcc warning on cygwin.
54588         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54589         !ACL_NO_TRIVIAL]: Avoid unused variable.
54590
54591 2008-06-05  Eric Blake  <ebb9@byu.net>
54592
54593         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54594         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54595         git-version-gen fails to come up with a version.
54596         Reported by Simon Josefsson.
54597
54598 2008-06-05  Jim Meyering  <meyering@redhat.com>
54599             Paul Eggert  <eggert@cs.ucla.edu>
54600
54601         utimens.c: work around a probable Linux kernel bug
54602         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54603         appears to be a kernel bug that causes utimensat to return 280
54604         instead of 0, indicating success.
54605
54606 2008-06-04  Bruno Haible  <bruno@clisp.org>
54607
54608         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54609         2008-06-01 commit.
54610
54611 2008-06-04  Bruno Haible  <bruno@clisp.org>
54612
54613         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54614         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54615         (file_has_acl): Use it. Save errno afterwards.
54616         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54617
54618 2008-06-03  Bruno Haible  <bruno@clisp.org>
54619
54620         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54621         draft code. Simplify #ifs.
54622         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54623         Put Solaris code after POSIX-draft code. Fix comments regarding
54624         Solaris 10, HP-UX. Mention Cygwin.
54625         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54626
54627 2008-06-03  Eric Blake  <ebb9@byu.net>
54628
54629         Provide fallback for older kernels.
54630         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54631         Provide runtime fallback if kernel lacks support.
54632         Reported by Mike Frysinger.
54633
54634 2008-06-02  Bruno Haible  <bruno@clisp.org>
54635
54636         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54637         it exists.
54638
54639 2008-06-02  Bruno Haible  <bruno@clisp.org>
54640
54641         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54642         * lib/copy-acl.c (qcopy_acl): Update comment.
54643
54644 2008-06-02  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54647         like ACL APIs.
54648
54649 2008-06-02  Bruno Haible  <bruno@clisp.org>
54650
54651         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54652         * tests/test-set-mode-acl.sh: Likewise.
54653         * tests/test-copy-acl.sh: Likewise.
54654         * tests/test-copy-file.sh: Likewise.
54655
54656 2008-06-02  Bruno Haible  <bruno@clisp.org>
54657
54658         * tests/test-file-has-acl.sh: Remove unused code.
54659
54660 2008-06-01  Bruno Haible  <bruno@clisp.org>
54661
54662         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54663         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54664         messages.
54665         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54666
54667 2008-06-01  Bruno Haible  <bruno@clisp.org>
54668
54669         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54670         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54671         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54672         APIs.
54673         * modules/acl-tests (configure.ac): Remove tests now contained in
54674         m4/acl.m4.
54675
54676 2008-06-02  Jim Meyering  <meyering@redhat.com>
54677
54678         announce-gen: use a better key-server host name
54679         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54680         it may be more consistently reliable.  Suggested by Werner Koch
54681         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54682
54683 2008-06-01  Bruno Haible  <bruno@clisp.org>
54684
54685         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54686         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54687
54688 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54689
54690         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54691
54692 2008-06-01  Bruno Haible  <bruno@clisp.org>
54693
54694         New ACL tests.
54695         * tests/test-file-has-acl.sh: New file.
54696         * tests/test-file-has-acl.c: New file.
54697         * tests/test-set-mode-acl.sh: New file.
54698         * tests/test-set-mode-acl.c: New file.
54699         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54700         * tests/test-copy-acl.c: New file.
54701         * modules/acl-tests: New file, based on modules/copy-file-tests.
54702         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54703         (Depends-on): Add acl-tests.
54704         (configure.ac): Remove checks.
54705         (Makefile.am): Don't create test-sameacls program here any more.
54706
54707 2008-06-01  Bruno Haible  <bruno@clisp.org>
54708
54709         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54710         * tests/test-sameacls.c: Include progname.h.
54711         (main): Invoke set_program_name. Portability fixes for MacOS X,
54712         Solaris, HP-UX.
54713
54714 2008-06-01  Bruno Haible  <bruno@clisp.org>
54715
54716         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54717         function.
54718         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54719
54720 2008-06-01  Bruno Haible  <bruno@clisp.org>
54721
54722         * modules/rpmatch (Depends-on): Add strdup.
54723
54724 2008-06-01  Bruno Haible  <bruno@clisp.org>
54725
54726         * lib/pipe.c: Include unistd-safer.h.
54727         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54728         * modules/pipe (Depends-on): Add unistd-safer.
54729
54730 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54731
54732         * modules/autobuild (configure.ac): Call AB_INIT.
54733
54734 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54735
54736         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54737         Suggested by Bruno Haible <bruno@clisp.org>.
54738
54739 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54740
54741         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54742         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54743         <bruno@clisp.org>.
54744
54745 2008-05-29  Eric Blake  <ebb9@byu.net>
54746
54747         Prefer new POSIX 200x interfaces over futimesat.
54748         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54749         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54750         when available.
54751         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54752
54753 2008-05-28  Bruno Haible  <bruno@clisp.org>
54754
54755         * modules/stpcpy (License): Change to LGPLv2+.
54756         Requested by David Lutterkort <dlutter@redhat.com>.
54757
54758 2008-05-27  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54761         current mingw.
54762         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54763
54764 2008-05-27  Bruno Haible  <bruno@clisp.org>
54765
54766         * modules/iconv_open (Link): New section, from module 'iconv'.
54767         * modules/striconv (Link): Likewise.
54768         * modules/striconveh (Link): Likewise.
54769         * modules/xstriconv (Link): Likewise.
54770         * modules/unicodeio (Link): Likewise.
54771         * modules/propername (Link): Likewise.
54772         Reported by Jim Meyering.
54773
54774 2008-05-26  Jim Meyering  <meyering@redhat.com>
54775
54776         sha256: do not artificially restrict buffer length to be < 2^32
54777         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54778         uint32_t to size_t.
54779         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54780         to match.
54781
54782         avoid unaligned access errors, e.g., on sparc
54783         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54784         direct access through a possibly-unaligned uint64* pointer.
54785         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54786         direct access through a possibly-unaligned uint32* pointer.
54787         Prompted by this patch from Tom "spot" Callaway:
54788         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54789
54790         sha512.c: fix typo in comment
54791         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54792
54793 2008-05-25  Bruno Haible  <bruno@clisp.org>
54794
54795         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54796         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54797         (Makefile.am): Update lib_SOURCES.
54798
54799 2008-05-25  Bruno Haible  <bruno@clisp.org>
54800
54801         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54802
54803 2008-05-25  Jim Meyering  <meyering@redhat.com>
54804
54805         useless-if-before-free: freed expr may have white-space differences
54806         * build-aux/useless-if-before-free: Recognize cases in which the
54807         freed expression differs from the tested one in embedded white
54808         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54809         $1 was used, so we can't make any regexp shy.  Improved tests now
54810         detect this.
54811
54812         useless-if-before-free: accept white space in the expression.
54813         * build-aux/useless-if-before-free: For now, any white space
54814         in the expression must be identical in the free argument.
54815
54816         useless-if-before-free: efficiency tweak
54817         * build-aux/useless-if-before-free: Make the expression-matching
54818         regexp "shy".
54819         Make the *outer* regexp shy, not the expr-matching one.
54820
54821         update code-in-comment to accept cast of free arg
54822         * build-aux/useless-if-before-free: Update regexp.
54823
54824 2008-05-25  Bruno Haible  <bruno@clisp.org>
54825
54826         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54827         * modules/copy-file-tests (Files, Makefile.am): Update.
54828         * tests/test-copy-file.c (func_test_copy): Update.
54829
54830 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54831
54832         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54833
54834 2008-05-23  Bruno Haible  <bruno@clisp.org>
54835
54836         Improve support for ACLs on OSF/1.
54837         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54838         Remove fallback for unknown flavors of ACLs.
54839
54840 2008-05-22  Bruno Haible  <bruno@clisp.org>
54841
54842         Add support for ACLs on OSF/1.
54843         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54844         replacements.
54845         (acl_free_text): New macro fallback.
54846         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54847         acl_free.
54848         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54849         acl_free_text function. Require AC_C_INLINE.
54850
54851 2008-05-22  Bruno Haible  <bruno@clisp.org>
54852
54853         Make copy_acl work on MacOS X 10.5.
54854         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54855         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54856         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54857         If MODE_INSIDE_ACL, don't assume that every system has the same text
54858         representation for ACLs as FreeBSD.
54859         * lib/copy-acl.c (copy_acl): Add support for platforms with
54860         !MODE_INSIDE_ACL.
54861         * lib/file-has-acl.c (file_has_acl): Likewise.
54862         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54863         FreeBSD, MacOS X, or IRIX, respectively.
54864
54865 2008-05-22  Bruno Haible  <bruno@clisp.org>
54866
54867         * lib/acl.h: Don't include <sys/acl.h>.
54868         (GETACLCNT): Move fallback to lib/acl-internal.h.
54869         * lib/acl-internal.h: Include <sys/acl.h> here.
54870         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54871
54872 2008-05-22  Bruno Haible  <bruno@clisp.org>
54873
54874         Split off copy_acl function to separate file.
54875         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54876         * lib/acl.c (copy_acl): Moved function to separate file.
54877         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54878         * modules/acl (Files): Add lib/copy-acl.c.
54879         (Makefiles.am): Augment lib_SOURCES.
54880
54881 2008-05-22  Bruno Haible  <bruno@clisp.org>
54882
54883         * modules/copy-file-tests: New file.
54884         * tests/test-copy-file.sh: New file.
54885         * tests/test-copy-file.c: New file.
54886         * tests/test-copy-file-sameacls.c: New file.
54887
54888 2008-05-22  Eric Blake  <ebb9@byu.net>
54889
54890         Avoid gcc warning.
54891         * tests/test-memcmp.c (main): Pass NULL indirectly.
54892
54893 2008-05-21  Bruno Haible  <bruno@clisp.org>
54894
54895         Add reference doc about ACLs.
54896         * doc/acl-resources.txt: New file.
54897         * doc/acl-cygwin.txt: New file.
54898
54899 2008-05-21  Bruno Haible  <bruno@clisp.org>
54900
54901         Avoid one more warning from gcc.
54902         * lib/vasnprintf.c (IF_LINT): Update comments.
54903         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54904
54905 2008-05-21  Jim Meyering  <meyering@redhat.com>
54906
54907         avoid a warning from gcc
54908         * lib/vasnprintf.c (IF_LINT): Define.
54909         (scale10_round_decimal_long_double):
54910         Use it to avoid a "may be used uninitialized" warning.
54911         (scale10_round_decimal_double): Likewise.
54912
54913 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54914
54915         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54916         declared.
54917
54918 2008-05-20  Bruno Haible  <bruno@clisp.org>
54919
54920         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54921         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54922
54923 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54924
54925         * modules/memcmp-tests: New file.
54926         * tests/test-memcmp.c: New file.
54927
54928 2008-05-19  Bruno Haible  <bruno@clisp.org>
54929
54930         * modules/propername (Notice, configure.ac): Put quoted "..." into
54931         --keyword option.
54932         * lib/propername.h: Update comments accordingly.
54933         Reported by Eric Blake.
54934
54935 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54936
54937         * modules/getpass-gnu (Depends-on): Add fseeko.
54938
54939 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54940
54941         * modules/base64-tests: New file.
54942
54943 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54944
54945         * lib/base64.c (base64_decode_ctx): If a decode context structure
54946         was passed in use it to ignore newlines.  If a context structure
54947         was _not_ passed in, continue to treat newlines as garbage (this
54948         is the historical behavior).  Formerly base64_decode.
54949         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54950         takes a decode context structure.
54951         * lib/base64.h (base64_decode): Macro for four-argument calls.
54952         (base64_decode_alloc): Likewise.
54953         * lib/base64.c (base64_decode_ctx): If a decode context structure
54954         was passed in use it to ignore newlines.  If a context structure
54955         was _not_ passed in, continue to treat newlines as garbage (this
54956         is the historical behavior).  Formerly base64_decode.
54957         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54958         takes a decode context structure.
54959         * lib/base64.h (base64_decode): Macro for four-argument calls.
54960         (base64_decode_alloc): Likewise.
54961
54962 2008-05-19  Jim Meyering  <meyering@redhat.com>
54963
54964         avoid a warning from gcc
54965         * lib/trim.c (IF_LINT): Define.
54966         (trim2): Use it to avoid a "may be used uninitialized" warning.
54967
54968         Fix doc typo.
54969         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54970
54971 2008-05-19  Bruno Haible  <bruno@clisp.org>
54972
54973         * doc/glibc-functions/getpass.texi: Document limits of other
54974         implementations.
54975
54976 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54977             Bruno Haible <bruno@clisp.org>
54978
54979         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54980
54981 2008-05-18  Bruno Haible  <bruno@clisp.org>
54982
54983         * modules/propername: New file, from GNU gettext.
54984         * lib/propername.h: New file, from GNU gettext.
54985         * lib/propername.c: New file, from GNU gettext.
54986         * MODULES.html.sh (Internationalization functions): Add propername.
54987
54988 2008-05-16  Jim Meyering  <meyering@redhat.com>
54989             Bruno Haible  <bruno@clisp.org>
54990
54991         Avoid some warnings from "gcc -Wshadow".
54992         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54993
54994 2008-05-15  Eric Blake  <ebb9@byu.net>
54995
54996         Extend previous patch to cygwin 1.7.0.
54997         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54998         fast implementation in cygwin >= 1.7.0.
54999         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55000         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55001
55002 2008-05-15  Bruno Haible  <bruno@clisp.org>
55003
55004         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55005         implementation in glibc >= 2.9.
55006         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55007         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55008
55009 2008-05-15  Bruno Haible  <bruno@clisp.org>
55010
55011         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55012         (Unicode string functions): Add unilbrk/*.
55013         Reported by Karl Berry.
55014
55015 2008-05-15  Eric Blake  <ebb9@byu.net>
55016
55017         Fix violation of <stdbool.h> replacement in regex.
55018         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55019         * lib/regexec.c (re_search_internal): Likewise.
55020         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55021
55022 2008-05-15  Jim Meyering  <meyering@redhat.com>
55023
55024         avoid distracting test output when git or cvs is not found
55025         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55026         * tests/test-vc-list-files-git.sh: Likewise.
55027
55028 2008-05-15  Eric Blake  <ebb9@byu.net>
55029
55030         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55031         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55032         glibc version.
55033         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55034         * doc/posix-functions/strstr.texi (strstr): Likewise.
55035         * lib/str-two-way.h (MAX): Sychronize with glibc.
55036
55037 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55038
55039         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55040         opr.ctx_type.
55041         (calc_first): Initialize constraint field.
55042         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55043         Fix grammar.
55044         (duplicate_node): Merge constraint field for all node types.
55045         (calc_eclosure_iter): Look at constraint field for all node types.
55046         * lib/regex_internal.c (create_cd_newstate): Don't look at
55047         opr.ctx_type.
55048
55049 2008-05-14  Bruno Haible  <bruno@clisp.org>
55050
55051         Help GCC to do better code generation.
55052         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55053         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55054         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55055         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55056         Declare with attribute 'malloc' if supported.
55057
55058 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55059
55060         use "echo STR|wc -c" rather than unportable "expr length STR"
55061         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55062         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55063
55064 2008-05-14  Jim Meyering  <meyering@redhat.com>
55065
55066         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55067         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55068         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55069         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55070         via Collin Lasse.
55071
55072 2008-05-14  Eric Blake  <ebb9@byu.net>
55073
55074         Avoid quadratic growth in gl_LIBSOURCES.
55075         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55076         Suggested by Bruno Haible.
55077
55078         Test xmemdup0.
55079         * modules/xmemdup0-tests: New file.
55080         * tests/test-xmemdup0.c: Likewise.
55081
55082 2008-05-13  Eric Blake  <ebb9@byu.net>
55083
55084         Split xmemdup0 into its own module.
55085         * modules/xmemdup0: New file.
55086         * lib/xmemdup0.h: Likewise.
55087         * lib/xmemdup0.c: Likewise.
55088         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55089         * lib/xalloc.h (xmemdup0): Remove.
55090         * lib/xmalloc.c (xmemdup0): Likewise.
55091
55092 2008-05-13  Eric Blake  <ebb9@byu.net>
55093             Bruno Haible  <bruno@clisp.org>
55094
55095         Reduce number of forks required during autoconf.
55096         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55097         and gl_LIBSOURCES_DIR.
55098         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55099         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55100         m4_syscmd per file.
55101         <m4_foreach_w>: Move...
55102         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55103
55104 2008-05-13  Eric Blake  <ebb9@byu.net>
55105
55106         * gnulib-tool: Fix various comment typos.
55107
55108 2008-05-12  Bruno Haible  <bruno@clisp.org>
55109
55110         Tailor the linebreaking algorithm.
55111         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55112
55113 2008-05-12  Bruno Haible  <bruno@clisp.org>
55114
55115         Update to Unicode 5.0.0.
55116         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55117         LBP_JV, LBP_JT. Redistribute values.
55118         (unilbrk_table): Change size.
55119         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55120         Unicode TR#14 rev. 22.
55121         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55122         LBP_JV, LBP_JT. Redistribute values.
55123         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55124         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55125         Update.
55126         * lib/unilbrk/lbrkprop1.h: Regenerated.
55127         * lib/unilbrk/lbrkprop2.h: Regenerated.
55128         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55129         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55130         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55131         Likewise.
55132         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55133         Likewise.
55134         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55135         result.
55136         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55137         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55138         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55139         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55140         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55141         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55142
55143 2008-05-11  Bruno Haible  <bruno@clisp.org>
55144
55145         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55146
55147 2008-05-11  Bruno Haible  <bruno@clisp.org>
55148
55149         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55150         * modules/unilbrk/gen-lbrk: New file.
55151
55152 2008-05-11  Bruno Haible  <bruno@clisp.org>
55153
55154         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55155         * m4/sha512.m4 (gl_SHA512): Likewise.
55156
55157 2008-05-11  Jim Meyering  <meyering@redhat.com>
55158
55159         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55160         * modules/crypto/sha256: New file.
55161         * modules/crypto/sha512: Likewise.
55162         * lib/sha256.c: Likewise.
55163         * lib/sha256.h: Likewise.
55164         * lib/sha512.c: Likewise.
55165         * lib/sha512.h: Likewise.
55166         * lib/u64.h: Likewise.
55167         * m4/sha256.m4: Likewise.
55168         * m4/sha512.m4: Likewise.
55169         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55170
55171 2008-05-10  Bruno Haible  <bruno@clisp.org>
55172
55173         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55174         (Input/Output <stdio.h>): Add xprintf.
55175         (Signal handling <signal.h>): Add strsignal.
55176         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55177         (Core language properties): Add func.
55178         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55179         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55180         strings.
55181         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55182         (Input/output): New section.
55183         (File system functions): Add openat-die, stat-macros.
55184         (Networking functions): Add sockets.
55185         (Unicode string functions): Add unictype/*.
55186         (Support for building libraries and executables): Add gperf.
55187         (Support for building documentation): Add agpl-3.0.
55188         (Misc): Add nocrash.
55189
55190 2008-05-10  Bruno Haible  <bruno@clisp.org>
55191
55192         * modules/unictype/gen-ctype: New file.
55193
55194 2008-05-10  Jim Meyering  <meyering@redhat.com>
55195
55196         Make chdir-safer.c more efficient on a system with no symlinks.
55197         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55198         also if ELOOP is zero.  Suggested by Bruno Haible.
55199
55200         Make chdir-safer.c slightly safer.
55201         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55202         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55203
55204         Avoid compile failure on systems without ELOOP (like mingw).
55205         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55206         Reported by Bruno Haible.
55207
55208 2008-05-10  Bruno Haible  <bruno@clisp.org>
55209
55210         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55211         (is_utf8_encoding): Use a case-insensitive comparison.
55212         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55213         streq.
55214
55215 2008-05-10  Bruno Haible  <bruno@clisp.org>
55216
55217         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55218         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55219         * lib/unilbrk/ulc-common.h (iconv_string_length,
55220         iconv_string_keeping_offsets): Remove declarations.
55221         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55222         Don't include <iconv.h>, streq.h, xsize.h.
55223         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55224         conversion.
55225         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55226         <iconv.h>, streq.h, xsize.h.
55227         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55228         conversion.
55229         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55230         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55231         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55232         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55233
55234 2008-05-10  Bruno Haible  <bruno@clisp.org>
55235
55236         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55237         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55238
55239         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55240         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55241
55242         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55243         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55244
55245         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55246         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55247
55248         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55249         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55250
55251         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55252         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55253
55254         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55255         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55256
55257         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55258         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55259
55260 2008-05-10  Bruno Haible  <bruno@clisp.org>
55261
55262         Split up 'linebreak' module.
55263         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55264         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55265         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55266         modifications.
55267         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55268         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55269         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55270         lib/linebreak.c.
55271         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55272         lib/linebreak.c.
55273         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55274         lib/linebreak.c.
55275         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55276         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55277         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55278         lib/linebreak.c.
55279         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55280         lib/linebreak.c.
55281         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55282         lib/linebreak.c.
55283         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55284         lib/linebreak.c.
55285         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55286         lib/linebreak.c.
55287         * modules/unilbrk/base: New file.
55288         * modules/unilbrk/tables: New file.
55289         * modules/unilbrk/u8-possible-linebreaks: New file.
55290         * modules/unilbrk/u16-possible-linebreaks: New file.
55291         * modules/unilbrk/u32-possible-linebreaks: New file.
55292         * modules/unilbrk/ulc-common: New file.
55293         * modules/unilbrk/ulc-possible-linebreaks: New file.
55294         * modules/unilbrk/u8-width-linebreaks: New file.
55295         * modules/unilbrk/u16-width-linebreaks: New file.
55296         * modules/unilbrk/u32-width-linebreaks: New file.
55297         * modules/unilbrk/ulc-width-linebreaks: New file.
55298         * lib/linebreak.h: Remove file.
55299         * lib/linebreak.c: Remove file.
55300         * m4/linebreak.m4: Remove file.
55301         * modules/linebreak: Remove file.
55302         * NEWS: Mention the changes.
55303
55304 2008-05-09  Eric Blake  <ebb9@byu.net>
55305
55306         Add xmemdup0.
55307         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55308         implementation.
55309         * lib/xmalloc.c (xmemdup0): New C implementation.
55310
55311 2008-05-08  Bruno Haible  <bruno@clisp.org>
55312
55313         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55314
55315 2008-05-07  Eric Blake  <ebb9@byu.net>
55316
55317         Support cross-compilation of <wctype.h>.
55318         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55319         AC_CACHE_CHECK.
55320
55321 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55322
55323         * build-aux/vc-list-files: Add support for bzr.
55324
55325 2008-05-03  Jim Meyering  <meyering@redhat.com>
55326
55327         avoid failed assertion with tight malloc
55328         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55329
55330 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55331
55332         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55333         are needed from arpa/inet.h.
55334         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55335         Reported by Bruno Haible.
55336
55337 2008-05-02  Jim Meyering  <meyering@redhat.com>
55338
55339         avoid compilation error on FreeBSD 6
55340         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55341
55342 2008-05-01  Jim Meyering  <meyering@redhat.com>
55343
55344         useless-if-before-free: correct --help's exit status description
55345         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55346         for one or more matches, etc.  Reported by Bruno Haible.
55347
55348         vc-list-files: make the stand-alone gnulib test work
55349         * modules/vc-list-files-tests (configure.ac):
55350         Define and AC_SUBST abs_aux_dir.
55351         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55352         $(abs_top_srcdir) to each script and having each of them
55353         duplicate the work of setting PATH, set PATH here, using
55354         the new variable, abs_aux_dir instead.
55355         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55356         * tests/test-vc-list-files-git.sh: Likewise.
55357         Reported by Bruno Haible.
55358
55359 2008-05-01  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55362         reallocation. Rename 'done' to 'found_delimiter'.
55363
55364 2008-05-01  Jim Meyering  <meyering@redhat.com>
55365
55366         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55367         * build-aux/vc-list-files: Use `...`, not $(...).
55368
55369 2008-04-30  Jim Meyering  <meyering@redhat.com>
55370
55371         add tests for vc-list-files
55372         * modules/vc-list-files-tests: New module.
55373         * tests/test-vc-list-files-cvs.sh: New file.
55374         * tests/test-vc-list-files-git.sh: New file.
55375
55376         avoid a warning from gcc
55377         * lib/getndelim2.c (IF_LINT): Define.
55378         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55379
55380         vc-list-files: work properly with build-aux/cvsu, too
55381         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55382         to all cvs-based clauses.
55383
55384         vc-list-files: work properly in the CVS+awk case, too
55385         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55386
55387         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55388         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55389         take more than one file argument, so .  Add quotes, just in case $dir
55390         ever contains a shell meta-character.  Prompted by Soren Hansen in
55391         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55392
55393 2008-04-29  Eric Blake  <ebb9@byu.net>
55394
55395         Optimize getndelim2 to use block operations when possible.
55396         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55397         freadseek, and memchr2.
55398         * lib/getndelim2.c (getndelim2): Use them for block reads.
55399
55400 2008-04-29  Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55403         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55404         * modules/inet_ntop (Depends-on): Add extensions.
55405         * modules/inet_pton (Depends-on): Likewise.
55406         Reported by Simon Josefsson.
55407
55408 2008-04-29  Jim Meyering  <meyering@redhat.com>
55409
55410         When the is more than one match in a block, match all of them.
55411         * build-aux/useless-if-before-free: Iterate through each block
55412         until there are no more matches.
55413
55414         Fix broken useless-if-before-free script.
55415         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55416         the expression to match cast of argument to free-like function.
55417
55418 2008-04-29  Eric Blake  <ebb9@byu.net>
55419
55420         Use new header.
55421         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55422
55423 2008-04-29  Jim Meyering  <meyering@redhat.com>
55424
55425         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55426         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55427         by gnulib to exist and to declare e.g., inet_ntop.
55428         Don't include "inet_ntop.h", now removed.
55429
55430         * m4/arpa_inet_h.m4: Remove trailing blanks.
55431
55432 2008-04-29  Eric Blake  <ebb9@byu.net>
55433
55434         Silence valgrind on safe reads beyond potential array bounds.
55435         * lib/rawmemchr.valgrind: New file.
55436         * lib/strchrnul.valgrind: Likewise.
55437         * modules/rawmemchr (Files): Distribute new file.
55438         * modules/strchrnul (Files): Likewise.
55439         Suggested by Bruno Haible.
55440
55441 2008-04-29  Bruno Haible  <bruno@clisp.org>
55442
55443         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55444         (inet_ntop, inet_pton): Change portability warning's wording.
55445         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55446         Invoke gl_CHECK_NEXT_HEADERS.
55447         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55448         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55449         set ARPA_INET_H.
55450         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55451         * modules/arpa_inet (Description): No longer only for systems that
55452         lack it.
55453         (Depends-on): Add include_next.
55454         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55455         HAVE_ARPA_INET_H.
55456
55457 2008-04-29  Jim Meyering  <meyering@redhat.com>
55458
55459         * modules/mkdir (License): Re-license as LGPLv2+.
55460
55461 2008-04-29  Bruno Haible  <bruno@clisp.org>
55462
55463         * modules/rawmemchr (Maintainer): Set to Eric.
55464         * modules/strchrnul (Maintainer): Likewise.
55465
55466 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55467
55468         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55469         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55470
55471         * modules/arpa_inet (arpa/inet.h): Use them.
55472
55473 2008-04-28  Eric Blake  <ebb9@byu.net>
55474
55475         Test getndelim2.
55476         * modules/getndelim2-tests: New file.
55477         * tests/test-getndelim2.c: Likewise.
55478         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55479         stream.
55480         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55481
55482         * MODULES.html.sh: Document new module.
55483
55484 2008-04-20  Bruno Haible  <bruno@clisp.org>
55485
55486         * lib/c-stack.c (die): Use raise.
55487         * modules/c-stack (Depends-on): Add raise.
55488
55489 2008-04-28  Bruno Haible  <bruno@clisp.org>
55490
55491         Expect rpmatch to be declared.
55492         * lib/yesno.c (rpmatch): Remove declaration.
55493
55494         Declare rpmatch.
55495         * lib/stdlib.in.h (rpmatch): New declaration.
55496         * lib/rpmatch.c: Include <stdlib.h> first.
55497         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55498         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55500         HAVE_RPMATCH.
55501         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55502         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55503         (Include): Set to <stdlib.h>.
55504         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55505         HAVE_RPMATCH.
55506         * NEWS: Document the change.
55507
55508 2008-04-28  Bruno Haible  <bruno@clisp.org>
55509
55510         Change rpmatch to use nl_langinfo when appropriate.
55511         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55512         (N_): New macro.
55513         (localized_pattern): New function/macro.
55514         (try): Remove match, nomatch arguments. Copy the pattern into safe
55515         memory before caching it.
55516         (rpmatch): Use localized_pattern. Add translator comments.
55517         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55518         Suggested by Eric Blake.
55519         * modules/rpmatch (Depends-on): Add stdbool.
55520
55521 2008-04-28  Eric Blake  <ebb9@byu.net>
55522
55523         Add rawmemchr module, matching glibc.
55524         * modules/string (Makefile.am): New indicator.
55525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55526         * lib/string.in.h (rawmemchr): Declare when appropriate.
55527         * modules/rawmemchr: New file.
55528         * m4/rawmemchr.m4: Likewise.
55529         * lib/rawmemchr.c: Likewise.
55530         * modules/rawmemchr-tests: Likewise.
55531         * tests/test-rawmemchr.c: Likewise.
55532         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55533         module.
55534         * modules/strchrnul (Depends-on): Add rawmemchr.
55535         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55536
55537         Whitespace cleanup.
55538         * tests/test-strchrnul.c: Reindent.
55539         * lib/strchrnul.c: Likewise.
55540
55541         Optimize and test strchrnul.
55542         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55543         * modules/strchrnul-tests: New file.
55544         * tests/test-strchrnul.c: Likewise.
55545
55546         Remove intprops dependency.
55547         * modules/memchr (Depends-on): Remove intprops.
55548         * modules/memrchr (Depends-on): Likewise.
55549         * modules/memchr2 (Depends-on): Likewise.
55550         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55551         * lib/memrchr.c (__memrchr): Likewise.
55552         * lib/memrchr2.c (memchr2): Likewise.
55553         Reported by Simon Josefsson.
55554
55555 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55556
55557         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55558         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55559
55560 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55561
55562         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55563
55564         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55565
55566         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55567
55568         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55569         declarations.
55570         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55571
55572         * m4/inet_pton.m4: Don't check for header files.
55573
55574         * m4/inet_ntop.m4: Don't check for header files.
55575
55576 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55577
55578         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55579         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55580         trigger for cygwin).
55581         Reported by Bruno Haible  <bruno@clisp.org>.
55582
55583 2008-04-28  Bruno Haible  <bruno@clisp.org>
55584
55585         * doc/posix-functions/strdup.texi: Mention mingw problem.
55586
55587 2008-04-27  Bruno Haible  <bruno@clisp.org>
55588
55589         * modules/stat-time-tests (Depends-on): Add sleep.
55590         * tests/test-stat-time.c (force_unlink): New function.
55591         (cleanup): Use it.
55592         (test_mtime): Remove the ctime related tests.
55593         (test_ctime): New function, containing the ctime related tests.
55594         (main): Call test_ctime, except on native Windows platforms.
55595
55596 2008-04-27  Bruno Haible  <bruno@clisp.org>
55597
55598         * lib/rpmatch.c (rpmatch): Add some comments.
55599         Reported by James Youngman <jay@gnu.org>.
55600
55601 2008-04-27  Bruno Haible  <bruno@clisp.org>
55602
55603         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55604         quiet NaNs.
55605
55606 2008-04-27  Bruno Haible  <bruno@clisp.org>
55607
55608         Make test-yesno.sh work on mingw.
55609         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55610         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55611         (main): Set stdin to binary mode.
55612         * modules/yesno-tests (Depends-on): Add binary-io.
55613
55614 2008-04-27  Bruno Haible  <bruno@clisp.org>
55615
55616         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55617         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55618         argument that lie outside the IEEE 854 domain.
55619         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55620         (gl_ISFINITE): Use it.
55621         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55622
55623 2008-04-27  Bruno Haible  <bruno@clisp.org>
55624
55625         Allow local renaming in config.h.
55626         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55627
55628 2008-04-27  Bruno Haible  <bruno@clisp.org>
55629
55630         * lib/memchr.c (__memchr): Change type of 'i'.
55631         * lib/memchr2.c (memchr2): Likewise.
55632
55633 2008-04-26  Eric Blake  <ebb9@byu.net>
55634         and Bruno Haible  <bruno@clisp.org>
55635
55636         Optimize and test memrchr.
55637         * modules/memrchr (Depends-on): Add intprops.
55638         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55639         * modules/memrchr-tests: New file.
55640         * tests/test-memrchr.c: New file.
55641
55642 2008-04-26  Bruno Haible  <bruno@clisp.org>
55643
55644         Add tentative support for DragonFly BSD.
55645         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55646         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55647         fp.
55648         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55649         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55650         * lib/fpurge.c (fpurge): Likewise.
55651         * lib/freadable.c (freaadable): Likewise.
55652         * lib/freadahead.c (freadahead): Likewise.
55653         * lib/freading.c (freading): Likewise.
55654         * lib/freadptr.c (freadptr): Likewise.
55655         * lib/freadseek.c (freadptrinc): Likewise.
55656         * lib/fseeko.c (fseeko): Likewise.
55657         * lib/fseterr.c (fseterr): Likewise.
55658         * lib/fwritable.c (fwritable): Likewise.
55659         * lib/fwriting.c (fwriting): Likewise.
55660
55661 2008-04-26  Bruno Haible  <bruno@clisp.org>
55662
55663         * lib/stdio-impl.h: New file.
55664         * lib/fbufmode.c: Include stdio-impl.h.
55665         (fbufmode): Use fp_, remove redundant #defines.
55666         * lib/fflush.c: Include stdio-impl.h.
55667         (clear_ungetc_buffer): Remove redundant #defines.
55668         * lib/fpurge.c: Include stdio-impl.h.
55669         (fpurge): Remove redundant #defines.
55670         * lib/freadable.c: Include stdio-impl.h.
55671         (freadable): Remove redundant #defines.
55672         * lib/freadahead.c: Include stdio-impl.h.
55673         (freadahead): Remove redundant #defines.
55674         * lib/freading.c: Include stdio-impl.h.
55675         (freading): Remove redundant #defines.
55676         * lib/freadptr.c: Include stdio-impl.h.
55677         (freadptr): Remove redundant #defines.
55678         * lib/freadseek.c: Include stdio-impl.h.
55679         (freadptrinc): Remove redundant #defines.
55680         * lib/fseeko.c: Include stdio-impl.h.
55681         (rpl_fseeko): Remove redundant #defines.
55682         * lib/fseterr.c: Include stdio-impl.h.
55683         (fseterr): Remove redundant #defines.
55684         * lib/fwritable.c: Include stdio-impl.h.
55685         (fwritable: Remove redundant #defines.
55686         * lib/fwriting.c: Include stdio-impl.h.
55687         (fwriting): Remove redundant #defines.
55688         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55689         * modules/fflush (Files): Likewise.
55690         * modules/fpurge (Files): Likewise.
55691         * modules/freadable (Files): Likewise.
55692         * modules/freadahead (Files): Likewise.
55693         * modules/freading (Files): Likewise.
55694         * modules/freadptr (Files): Likewise.
55695         * modules/freadseek (Files): Likewise.
55696         * modules/fseeko (Files): Likewise.
55697         * modules/fseterr (Files): Likewise.
55698         * modules/fwritable (Files): Likewise.
55699         * modules/fwriting (Files): Likewise.
55700
55701 2008-04-26  Bruno Haible  <bruno@clisp.org>
55702
55703         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55704         restore_seek_optimization, update_fpos_cache): New functions, extracted
55705         from rpl_fflush.
55706         (rpl_fflush): Use them.
55707         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55708         (gl_REPLACE_FFLUSH): Use it.
55709
55710 2008-04-26  Bruno Haible  <bruno@clisp.org>
55711
55712         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55713         on Solaris.
55714         * tests/test-xstrtoimax.sh: Likewise.
55715         * tests/test-xstrtoumax.sh: Likewise.
55716         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55717
55718 2008-04-26  Bruno Haible  <bruno@clisp.org>
55719
55720         * modules/memchr-tests: New file.
55721         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55722
55723 2008-04-26  Eric Blake  <ebb9@byu.net>
55724             Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/memchr.c: Include intprops.h.
55727         (__memchr): Optimize parallel detection of matching bytes. Rename local
55728         variables. Add explanatory comments.
55729
55730 2008-04-26  Bruno Haible  <bruno@clisp.org>
55731
55732         Fix module 'memchr', broken since 2000-10-28.
55733         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55734
55735 2008-04-26  Bruno Haible  <bruno@clisp.org>
55736
55737         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55738         comments.
55739
55740 2008-04-25  Eric Blake  <ebb9@byu.net>
55741
55742         Use native fstatat on cygwin 1.7.0.
55743         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55744         first.
55745
55746 2008-04-23  Eric Blake  <ebb9@byu.net>
55747
55748         Improve memchr2 performance.
55749         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55750         NUL bytes.
55751         * modules/memchr2 (Depends-on): Use intprops.h.
55752
55753 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55754
55755         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55756         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55757         <blp@cs.stanford.edu>.
55758
55759 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55760
55761         * lib/arpa_inet.in.h: New file.
55762
55763         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55764         (Makefile.am): Sed in substitute header file.
55765
55766         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55767         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55768
55769         * modules/inet_ntop (configure.ac): Use
55770         gl_ARPA_INET_MODULE_INDICATOR.
55771
55772         * modules/inet_pton (configure.ac): Use
55773         gl_ARPA_INET_MODULE_INDICATOR.
55774
55775 2008-04-22  Jim Meyering  <meyering@redhat.com>
55776
55777         * modules/verify (License): Re-license as LGPLv2+.
55778
55779 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55780
55781         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55782         parameter to void* as per POSIX standard (MinGW uses char*).
55783
55784 2008-04-21  Bruno Haible  <bruno@clisp.org>
55785
55786         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55787         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55788         Define to replacements if REPLACE_ISWCNTRL is 1.
55789         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55790         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55791         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55792         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55793         what it fixes.
55794         * doc/posix-functions/iswalpha.texi: Likewise.
55795         * doc/posix-functions/iswblank.texi: Likewise.
55796         * doc/posix-functions/iswcntrl.texi: Likewise.
55797         * doc/posix-functions/iswdigit.texi: Likewise.
55798         * doc/posix-functions/iswgraph.texi: Likewise.
55799         * doc/posix-functions/iswlower.texi: Likewise.
55800         * doc/posix-functions/iswprint.texi: Likewise.
55801         * doc/posix-functions/iswpunct.texi: Likewise.
55802         * doc/posix-functions/iswspace.texi: Likewise.
55803         * doc/posix-functions/iswupper.texi: Likewise.
55804         * doc/posix-functions/iswxdigit.texi: Likewise.
55805         Reported by Alain Guibert.
55806
55807 2008-04-21  Bruno Haible  <bruno@clisp.org>
55808
55809         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55810         Patch by Alain Guibert.
55811
55812 2008-04-21  Bruno Haible  <bruno@clisp.org>
55813
55814         Fix test failures on mingw.
55815         * tests/test-xstrtol.c (print_no_progname): New function.
55816         (main): Install it in error_print_progname hook.
55817         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55818         * tests/test-xstrtoimax.sh: Likewise.
55819         * tests/test-xstrtoumax.sh: Likewise.
55820
55821 2008-04-21  Bruno Haible  <bruno@clisp.org>
55822
55823         Fix test failure on mingw.
55824         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55825
55826 2008-04-21  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55829         Actually assign a value.
55830
55831 2008-04-20  Bruno Haible  <bruno@clisp.org>
55832
55833         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55834         take 2.
55835         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55836         'canonicalize-lgpl' module is also used.
55837         * lib/canonicalize-lgpl.c: Undo last change.
55838         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55839
55840 2008-04-20  Bruno Haible  <bruno@clisp.org>
55841
55842         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55843         config.h. Provide _mkdir based fallback for mingw.
55844         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55845         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55846         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55847         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55848         rather than defining mkdir in config.h.
55849         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55850         (gl_SYS_STAT_H_DEFAULTS): New macro.
55851         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55852         HAVE_IO_H any more.
55853         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55854         HAVE_DECL_MKDIR and HAVE_IO_H.
55855
55856 2008-04-20  Bruno Haible  <bruno@clisp.org>
55857
55858         * lib/isapipe.c: Port to native Windows platforms.
55859
55860 2008-04-20  Bruno Haible  <bruno@clisp.org>
55861
55862         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55863
55864 2008-04-21  Eric Blake  <ebb9@byu.net>
55865
55866         Work around preprocessors that don't handle UINTMAX_MAX.
55867         * lib/memchr2.c (memchr2): Avoid embedded #if.
55868         Reported by Alain Guibert, fix suggested by Bruno Haible.
55869
55870 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55871
55872         * doc/posix-functions/strftime.texi (strftime): Explain better
55873         Windows incompatibility.  Suggested by Micah Cowan
55874         <micah@cowan.name>.
55875
55876 2008-04-20  Bruno Haible  <bruno@clisp.org>
55877
55878         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55879         unistr/u8-mblen.
55880
55881 2008-04-20  Bruno Haible  <bruno@clisp.org>
55882
55883         Fix test failure on platforms with non-GNU iconv.
55884         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55885         (U_TO_U8): Use it, rather than u16_to_u8.
55886         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55887         units at the end of the input string.
55888         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55889
55890 2008-04-20  Bruno Haible  <bruno@clisp.org>
55891
55892         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55893         when the resulting length is 0.
55894         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55895
55896 2008-04-20  Bruno Haible  <bruno@clisp.org>
55897
55898         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55899         works.
55900         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55901
55902 2008-04-20  Bruno Haible  <bruno@clisp.org>
55903
55904         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55905         * modules/tsearch-tests (configure.ac): Test for initstate function.
55906
55907 2008-04-20  Bruno Haible  <bruno@clisp.org>
55908
55909         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55910         for nlink_t if missing.
55911         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55912
55913 2008-04-19  Bruno Haible  <bruno@clisp.org>
55914
55915         Work around snprintf bug on Linux libc5.
55916         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55918         gl_SNPRINTF_SIZE1.
55919         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55920         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55921         that test failed.
55922         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55923         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55924         * modules/snprintf (Files): Add m4/printf.m4.
55925         * modules/vsnprintf (Files): Likewise.
55926         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55927         * doc/posix-functions/vsnprintf.texi: Likewise.
55928
55929 2008-04-19  Bruno Haible  <bruno@clisp.org>
55930
55931         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55932         from 0.0058 to less than 10^-7.
55933
55934 2008-04-19  Bruno Haible  <bruno@clisp.org>
55935
55936         Fix rounding when a precision is given.
55937         * lib/vasnprintf.c (is_borderline): New function.
55938         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55939         9...9x.
55940         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55941         %e, %g.
55942         * tests/test-vasprintf-posix.c (test_function): Likewise.
55943         * tests/test-snprintf-posix.h (test_function): Likewise.
55944         * tests/test-sprintf-posix.h (test_function): Likewise.
55945         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55946         * tests/test-printf-posix.h (test_function): Likewise.
55947         * tests/test-printf-posix.output: Update.
55948         Reported by John Darrington <john@darrington.wattle.id.au> via
55949         Ben Pfaff <blp@cs.stanford.edu>.
55950
55951 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55952
55953         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55954         Suggested by Bruno Haible <bruno@clisp.org>.
55955
55956 2008-04-17  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55959         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55960         implementation.
55961         Patch by Bruce Merry <bmerry@gmail.com>.
55962
55963 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55964
55965         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55966         doesn't work under Windows.
55967
55968 2008-04-16  Bruno Haible  <bruno@clisp.org>
55969
55970         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55971         New macros.
55972         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55973         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55974         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55975         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55976         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55977         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55978         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55979         macros.
55980         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55981         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55982         Northern Sotho, Uighur.
55983
55984 2008-04-16  Bruno Haible  <bruno@clisp.org>
55985
55986         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55987         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55988         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55989         Reported by Daniel Bergström <daniel@octocode.com>.
55990
55991 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55992             Bruno Haible  <bruno@clisp.org>
55993
55994         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55995         function.
55996         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55997         New functions, mostly extracted from gl_locale_name_default.
55998         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55999
56000 2008-04-16  Eric Blake  <ebb9@byu.net>
56001
56002         Adjust strtod detection to catch glibc 2.7 bug.
56003         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56004         Reported by John Gatewood Ham.
56005
56006 2008-04-16  Bruno Haible  <bruno@clisp.org>
56007
56008         Add tentative support for Linux libc5.
56009         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56010         * lib/fpurge.c (fpurge): Likewise.
56011         * lib/freadable.c (freadable): Likewise.
56012         * lib/freadahead.c (freadahead): Likewise.
56013         * lib/freading.c (freading): Likewise.
56014         * lib/freadptr.c (freadptr): Likewise.
56015         * lib/freadseek.c (freadptrinc): Likewise.
56016         * lib/fseeko.c (rpl_fseeko): Likewise.
56017         * lib/fseterr.c (fseterr): Likewise.
56018         * lib/fwritable.c (fwritable): Likewise.
56019         * lib/fwriting.c (fwriting): Likewise.
56020         Reported by Alain Guibert <alguibert+bts@free.fr>.
56021
56022 2008-04-15  Bruno Haible  <bruno@clisp.org>
56023
56024         * modules/mathl (configure.ac): Define module indicator.
56025
56026 2008-04-15  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/logl.c (logl): Remove unused variables.
56029
56030 2008-04-15  Bruno Haible  <bruno@clisp.org>
56031
56032         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56033         fails.
56034
56035 2008-04-15  Bruno Haible  <bruno@clisp.org>
56036
56037         * lib/trim.c (trim2): Fix argument of isspace() macro.
56038
56039 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56040
56041         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56042         to 0.
56043         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56044
56045 2008-04-14  Bruno Haible  <bruno@clisp.org>
56046
56047         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56048         AC_LANG_PROGRAM argument.
56049         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56050         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56052         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56053         * m4/math_h.m4 (gl_MATH_H): Likewise.
56054         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56055         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56056         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56057         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56058         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56059         * m4/regex.m4 (gl_REGEX): Likewise.
56060         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56061         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56063         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56064         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56065         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56066         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56067         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56068
56069 2008-04-14  Jim Meyering  <meyering@redhat.com>
56070
56071         test-strtod: fix typos: s/abs/fabs/
56072         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56073
56074 2008-04-13  Bruno Haible  <bruno@clisp.org>
56075
56076         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56077         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56078         module is also used and while not building the reloc-wrapper.
56079
56080 2008-04-13  Bruno Haible  <bruno@clisp.org>
56081
56082         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56083
56084 2008-04-13  Bruno Haible  <bruno@clisp.org>
56085
56086         Fix AIX compilation failure introduced on 2008-04-02.
56087         * tests/test-frexp.c (exp): Undefine before redefining.
56088         * tests/test-frexpl.c (exp): Likewise.
56089
56090 2008-04-13  Bruno Haible  <bruno@clisp.org>
56091
56092         Work around a HP-UX stdio bug.
56093         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56094         * tests/test-ftello.c (main): Likewise.
56095         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56096         * doc/posix-functions/ftello.texi: Likewise.
56097
56098 2008-04-13  Bruno Haible  <bruno@clisp.org>
56099
56100         Make test-signbit pass on HP-UX/hppa.
56101         * tests/test-signbit.c (minus_zerol): New variable.
56102         (test_signbitl): Use it.
56103
56104 2008-04-13  Bruno Haible  <bruno@clisp.org>
56105
56106         Make truncl work on OSF/1 4.0.
56107         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56108         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56109         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56111         HAVE_DECL_TRUNCL.
56112         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56113         HAVE_DECL_TRUNCL.
56114         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56115
56116 2008-04-13  Bruno Haible  <bruno@clisp.org>
56117
56118         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56119
56120 2008-04-13  Bruno Haible  <bruno@clisp.org>
56121
56122         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56123         expression, so as to avoid HP-UX 11 cc compiler bug.
56124
56125 2008-04-13  Bruno Haible  <bruno@clisp.org>
56126
56127         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56128
56129 2008-04-13  Bruno Haible  <bruno@clisp.org>
56130
56131         * lib/git-merge-changelog.c: Remove empty declaration outside of
56132         functions.
56133
56134 2008-04-13  Bruno Haible  <bruno@clisp.org>
56135
56136         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56137
56138 2008-04-13  Bruno Haible  <bruno@clisp.org>
56139
56140         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56141         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56142         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56143         also if it exists but lacks definitions of the SHUT_* macros.
56144         * modules/sys_socket (Description): Update.
56145         Reported by Elbert Pol <e.pol@chello.nl>.
56146
56147 2008-04-13  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/localcharset.c (OS2): Don't redefine if already defined.
56150         Reported by Elbert Pol <e.pol@chello.nl>.
56151
56152 2008-04-13  Bruno Haible  <bruno@clisp.org>
56153
56154         * lib/binary-io.h [__EMX__]: Include <io.h>.
56155         Reported by Elbert Pol <e.pol@chello.nl>.
56156
56157 2008-04-12  Bruno Haible  <bruno@clisp.org>
56158
56159         * lib/fpucw.h: Enable the definitions also for x86_64.
56160         Needed for NetBSD/x86_64.
56161         Reported by Thomas Klausner <tk@giga.or.at>.
56162
56163 2008-04-12  Bruno Haible  <bruno@clisp.org>
56164
56165         * tests/test-strtod.c: Include isnand.h.
56166         (main): Use isnand instead of isnan.
56167         Reported by Jim Meyering.
56168
56169 2008-04-12  Bruno Haible  <bruno@clisp.org>
56170
56171         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56172         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56173
56174 2008-04-12  Jim Meyering  <meyering@redhat.com>
56175
56176         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56177
56178 2008-04-12  Bruno Haible  <bruno@clisp.org>
56179
56180         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56181         Reported by Elbert Pol <e.pol@chello.nl>.
56182
56183 2008-04-12  Eric Blake  <ebb9@byu.net>
56184
56185         Work around Solaris 10 math.h bug.
56186         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56187         (gl_MATH_H_DEFAULTS): Set up default.
56188         * modules/math (Makefile.am): Replace new indicators.
56189         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56190         * tests/test-math.c (main): Test this.
56191         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56192         * doc/posix-headers/math.texi (math.h): Mention bug.
56193         Reported by Nelson H. F. Beebe and Jim Meyering.
56194
56195 2008-04-11  Bruno Haible  <bruno@clisp.org>
56196
56197         Adapt to future versions of Apple GCC.
56198         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56199         Reported by Peter O'Gorman <peter@pogma.com>.
56200
56201 2008-04-11  Bruno Haible  <bruno@clisp.org>
56202
56203         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56204
56205 2008-04-11  Bruno Haible  <bruno@clisp.org>
56206
56207         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56208
56209         * modules/getaddrinfo-tests (Makefile.am): Define
56210         test_getaddrinfo_LDADD.
56211
56212 2008-04-11  Bruno Haible  <bruno@clisp.org>
56213
56214         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56215         (init): Fix syntax error.
56216         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56217         is declared.
56218
56219 2008-04-11  Bruno Haible  <bruno@clisp.org>
56220
56221         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56222         * modules/glob (Depends-on): Add stdbool.
56223
56224 2008-04-11  Bruno Haible  <bruno@clisp.org>
56225
56226         * lib/trim.c: Include <string.h>.
56227
56228 2008-04-11  Eric Blake  <ebb9@byu.net>
56229
56230         Avoid compile failure on OS/2.
56231         * lib/regex_internal.h (internal_function): Disable optimization
56232         on OS/2 (__EMX__), where it caused compiler error.
56233         Reported by Elbert Pol.
56234
56235 2008-04-11  Bruno Haible  <bruno@clisp.org>
56236
56237         Flush the standard error stream before aborting. Needed on mingw.
56238         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56239         * tests/test-array_list.c (ASSERT): Likewise.
56240         * tests/test-array_oset.c (ASSERT): Likewise.
56241         * tests/test-avltree_list.c (ASSERT): Likewise.
56242         * tests/test-avltree_oset.c (ASSERT): Likewise.
56243         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56244         * tests/test-binary-io.c (ASSERT): Likewise.
56245         * tests/test-byteswap.c (ASSERT): Likewise.
56246         * tests/test-c-ctype.c (ASSERT): Likewise.
56247         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56248         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56249         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56250         * tests/test-c-strstr.c (ASSERT): Likewise.
56251         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56252         * tests/test-canonicalize.c (ASSERT): Likewise.
56253         * tests/test-carray_list.c (ASSERT): Likewise.
56254         * tests/test-ceilf1.c (ASSERT): Likewise.
56255         * tests/test-ceilf2.c (ASSERT): Likewise.
56256         * tests/test-ceill.c (ASSERT): Likewise.
56257         * tests/test-count-one-bits.c (ASSERT): Likewise.
56258         * tests/test-fbufmode.c (ASSERT): Likewise.
56259         * tests/test-fflush2.c (ASSERT): Likewise.
56260         * tests/test-floorf1.c (ASSERT): Likewise.
56261         * tests/test-floorf2.c (ASSERT): Likewise.
56262         * tests/test-floorl.c (ASSERT): Likewise.
56263         * tests/test-fopen.c (ASSERT): Likewise.
56264         * tests/test-fpending.c (ASSERT): Likewise.
56265         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56266         * tests/test-fpurge.c (ASSERT): Likewise.
56267         * tests/test-freadable.c (ASSERT): Likewise.
56268         * tests/test-freadahead.c (ASSERT): Likewise.
56269         * tests/test-freading.c (ASSERT): Likewise.
56270         * tests/test-freadptr.c (ASSERT): Likewise.
56271         * tests/test-freadptr2.c (ASSERT): Likewise.
56272         * tests/test-freadseek.c (ASSERT): Likewise.
56273         * tests/test-freopen.c (ASSERT): Likewise.
56274         * tests/test-frexp.c (ASSERT): Likewise.
56275         * tests/test-frexpl.c (ASSERT): Likewise.
56276         * tests/test-fseek.c (ASSERT): Likewise.
56277         * tests/test-fseeko.c (ASSERT): Likewise.
56278         * tests/test-fstrcmp.c (ASSERT): Likewise.
56279         * tests/test-ftell.c (ASSERT): Likewise.
56280         * tests/test-ftello.c (ASSERT): Likewise.
56281         * tests/test-func.c (ASSERT): Likewise.
56282         * tests/test-fwritable.c (ASSERT): Likewise.
56283         * tests/test-fwriting.c (ASSERT): Likewise.
56284         * tests/test-getdelim.c (ASSERT): Likewise.
56285         * tests/test-getline.c (ASSERT): Likewise.
56286         * tests/test-i-ring.c (ASSERT): Likewise.
56287         * tests/test-iconv-utf.c (ASSERT): Likewise.
56288         * tests/test-iconv.c (ASSERT): Likewise.
56289         * tests/test-isfinite.c (ASSERT): Likewise.
56290         * tests/test-isnand.c (ASSERT): Likewise.
56291         * tests/test-isnanf.c (ASSERT): Likewise.
56292         * tests/test-isnanl.h (ASSERT): Likewise.
56293         * tests/test-ldexpl.c (ASSERT): Likewise.
56294         * tests/test-linked_list.c (ASSERT): Likewise.
56295         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56296         * tests/test-localename.c (ASSERT): Likewise.
56297         * tests/test-lseek.c (ASSERT): Likewise.
56298         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56299         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56300         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56301         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56302         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56303         * tests/test-mbschr.c (ASSERT): Likewise.
56304         * tests/test-mbscspn.c (ASSERT): Likewise.
56305         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56306         * tests/test-mbspbrk.c (ASSERT): Likewise.
56307         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56308         * tests/test-mbsrchr.c (ASSERT): Likewise.
56309         * tests/test-mbsspn.c (ASSERT): Likewise.
56310         * tests/test-mbsstr1.c (ASSERT): Likewise.
56311         * tests/test-mbsstr2.c (ASSERT): Likewise.
56312         * tests/test-mbsstr3.c (ASSERT): Likewise.
56313         * tests/test-memchr2.c (ASSERT): Likewise.
56314         * tests/test-memmem.c (ASSERT): Likewise.
56315         * tests/test-open.c (ASSERT): Likewise.
56316         * tests/test-printf-frexp.c (ASSERT): Likewise.
56317         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56318         * tests/test-printf-posix.c (ASSERT): Likewise.
56319         * tests/test-quotearg.c (ASSERT): Likewise.
56320         * tests/test-rbtree_list.c (ASSERT): Likewise.
56321         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56322         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56323         * tests/test-round1.c (ASSERT): Likewise.
56324         * tests/test-roundf1.c (ASSERT): Likewise.
56325         * tests/test-roundl.c (ASSERT): Likewise.
56326         * tests/test-signbit.c (ASSERT): Likewise.
56327         * tests/test-sleep.c (ASSERT): Likewise.
56328         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56329         * tests/test-snprintf.c (ASSERT): Likewise.
56330         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56331         * tests/test-stat-time.c (ASSERT): Likewise.
56332         * tests/test-strcasestr.c (ASSERT): Likewise.
56333         * tests/test-strerror.c (ASSERT): Likewise.
56334         * tests/test-striconv.c (ASSERT): Likewise.
56335         * tests/test-striconveh.c (ASSERT): Likewise.
56336         * tests/test-striconveha.c (ASSERT): Likewise.
56337         * tests/test-strsignal.c (ASSERT): Likewise.
56338         * tests/test-strstr.c (ASSERT): Likewise.
56339         * tests/test-strtod.c (ASSERT): Likewise.
56340         * tests/test-trunc1.c (ASSERT): Likewise.
56341         * tests/test-trunc2.c (ASSERT): Likewise.
56342         * tests/test-truncf1.c (ASSERT): Likewise.
56343         * tests/test-truncf2.c (ASSERT): Likewise.
56344         * tests/test-truncl.c (ASSERT): Likewise.
56345         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56346         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56347         * tests/test-vasnprintf.c (ASSERT): Likewise.
56348         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56349         * tests/test-vasprintf.c (ASSERT): Likewise.
56350         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56351         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56352         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56353         * tests/test-vsnprintf.c (ASSERT): Likewise.
56354         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56355         * tests/test-wcwidth.c (ASSERT): Likewise.
56356         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56357         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56358         * tests/test-xvasprintf.c (ASSERT): Likewise.
56359         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56360         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56361         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56362         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56363         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56364         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56365         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56366         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56367         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56368         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56369         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56370         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56371         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56372         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56373         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56374         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56375         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56376         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56377         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56378         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56379         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56380         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56381         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56382         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56383         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56384         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56385         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56386         * tests/unictype/test-combining.c (ASSERT): Likewise.
56387         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56388         * tests/unictype/test-digit.c (ASSERT): Likewise.
56389         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56390         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56391         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56392         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56393         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56394         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56395         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56396         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56397         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56398         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56399         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56400         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56401         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56402         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56403         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56404         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56405         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56406         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56407         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56408         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56409         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56410         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56411         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56412         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56413         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56414         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56415         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56416         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56417         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56418         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56419         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56420         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56421         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56422         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56423         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56424         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56425         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56426         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56427         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56428         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56429         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56430         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56431         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56432         Reported by Eric Blake.
56433
56434 2008-04-11  Bruno Haible  <bruno@clisp.org>
56435
56436         * lib/wchar.in.h: Tweak comment.
56437
56438 2008-04-11  Bruno Haible  <bruno@clisp.org>
56439
56440         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56441         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56442         gl_COMMON.
56443         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56444
56445 2008-04-11  Bruno Haible  <bruno@clisp.org>
56446
56447         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56448
56449 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56450
56451         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56452         of attempting to use non-existing /dev/*random.  Based on patch
56453         from Adam Strzelecki <ono@java.pl> in
56454         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56455
56456 2008-04-08  Bruno Haible  <bruno@clisp.org>
56457
56458         Add tentative support for emx+gcc.
56459         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56460         * lib/fpurge.c (fpurge): Likewise.
56461         * lib/freadable.c (freadable): Likewise.
56462         * lib/freadahead.c (freadahead): Likewise.
56463         * lib/freading.c (freading): Likewise.
56464         * lib/freadptr.c (freadptr): Likewise.
56465         * lib/freadseek.c (freadptrinc): Likewise.
56466         * lib/fseeko.c (rpl_fseeko): Likewise.
56467         * lib/fseterr.c (fseterr): Likewise.
56468         * lib/fwritable.c (fwritable): Likewise.
56469         * lib/fwriting.c (fwriting): Likewise.
56470         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56471
56472 2008-04-09  Eric Blake  <ebb9@byu.net>
56473
56474         Avoid some autoconf warnings.
56475         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56476         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56477         * m4/afs.m4 (gl_AFS): Likewise.
56478         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56479         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56480         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56481         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56482         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56483         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56484         (AC_CHECK_DECLS_ONCE): Likewise.
56485         Rename file...
56486         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56487         gnulib-tool requires autoconf 2.59 or better.
56488         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56489
56490 2008-04-08  Eric Blake  <ebb9@byu.net>
56491
56492         Use 'git describe --match' if present (added in git 1.5.5).
56493         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56494         if possible.
56495
56496 2008-04-08  Bruno Haible  <bruno@clisp.org>
56497
56498         Add tentative support for OpenServer.
56499         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56500         _ptr, _cnt.
56501         * lib/fpurge.c (fpurge): Likewise.
56502         * lib/freadable.c (freadable): Likewise.
56503         * lib/freadahead.c (freadahead): Likewise.
56504         * lib/freading.c (freading): Likewise.
56505         * lib/freadptr.c (freadptr): Likewise.
56506         * lib/freadseek.c (freadptrinc): Likewise.
56507         * lib/fseeko.c (rpl_fseeko): Likewise.
56508         * lib/fseterr.c (fseterr): Likewise.
56509         * lib/fwritable.c (fwritable): Likewise.
56510         * lib/fwriting.c (fwriting): Likewise.
56511         Reported by Roger Cornelius <rac@tenzing.org> and
56512         Brian K. White <brian@aljex.com>.
56513
56514 2008-04-06  Jim Meyering  <meyering@redhat.com>
56515
56516         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56517
56518 2008-04-06  Bruno Haible  <bruno@clisp.org>
56519
56520         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56521         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56522         * tests/test-printf-posix.sh: Likewise.
56523         * tests/test-vfprintf-posix.sh: Likewise.
56524         * tests/test-vprintf-posix.sh: Likewise.
56525         * tests/test-xprintf-posix.sh: Likewise.
56526
56527 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56528
56529         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56530         hide error from 'ls', needed on OS/2.
56531         Report by Elbert Pol <elbert.pol@gmail.com>.
56532
56533 2008-04-04  Eric Blake  <ebb9@byu.net>
56534
56535         Make test-fseeko.c failures meaningful.
56536         * tests/test-fseeko.c: Print line number on failure.
56537         * tests/test-fseek.c: Likewise.
56538         Reported by Nelson H. F. Beebe.
56539
56540         Improve strtod bug detection check.
56541         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56542         required for Solaris 10.
56543         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56544
56545 2008-04-04  Bruno Haible  <bruno@clisp.org>
56546
56547         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56548         by m4/setenv.m4.
56549
56550 2008-04-03  Eric Blake  <ebb9@byu.net>
56551
56552         Ensure sane .version contents.
56553         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56554         version string.
56555         * build-aux/git-version-gen: Improve documentation.
56556
56557         Make GNU make output nicer.
56558         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56559         MAKECMDGOALS to enforce message for all command line targets.  Set
56560         srcdir for use in maint.mk.
56561
56562         Another maintainer tweak.
56563         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56564         a target that regenerates version.
56565
56566 2008-04-03  Jim Meyering  <meyering@redhat.com>
56567
56568         vc-list-files: don't cause coreutils "make po-check" failure
56569         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56570
56571 2008-04-03  Eric Blake  <ebb9@byu.net>
56572
56573         Allow VPATH usage of vc-list-files.
56574         * build-aux/vc-list-files (scriptversion): Add timestamp.
56575         (options): Add --help, --version, -C.
56576         (CVS): Support installed cvsu.
56577
56578 2008-04-02  Bruno Haible  <bruno@clisp.org>
56579
56580         Avoid some "statement with no effect" warnings from gcc.
56581         * tests/test-wctype.c (main): Explicitly ignore unused values.
56582         Reported by Jim Meyering.
56583
56584 2008-04-02  Jim Meyering  <meyering@redhat.com>
56585
56586         Avoid some warnings from "gcc -Wshadow".
56587         * tests/test-frexp.c (exp): Define to a different identifier.
56588         * tests/test-frexpl.c (exp): Likewise.
56589
56590 2008-04-03  Jim Meyering  <meyering@redhat.com>
56591
56592         bootstrap: remove dangling *.[ch] symlinks from lib
56593         * build-aux/bootstrap [dangling symlink removal]: Move find's
56594         -depth option to precede all others, to avoid a warning.
56595         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56596
56597 2008-04-02  Bruno Haible  <bruno@clisp.org>
56598
56599         Avoid some warnings from "gcc -Wshadow".
56600         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56601         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56602         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56603         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56604         Reported by Jim Meyering.
56605
56606 2008-04-01  Bruno Haible  <bruno@clisp.org>
56607
56608         Fix test to work on IRIX 6.5 with cc.
56609         * tests/test-math.c (numeric_equal): New function.
56610         (main): Use it.
56611
56612 2008-04-01  Bruno Haible  <bruno@clisp.org>
56613
56614         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56615
56616 2008-04-01  Bruno Haible  <bruno@clisp.org>
56617
56618         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56619         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56620         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56621         (Depends-on): Remove math.
56622
56623         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56624         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56625         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56626         (Depends-on): Remove math.
56627
56628         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56629         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56630         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56631         (Depends-on): Remove math.
56632         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56633         (Depends-on): Remove math.
56634
56635         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56636         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56637         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56638         (Depends-on): Remove math.
56639         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56640         (Depends-on): Remove math.
56641
56642         * tests/test-round1.c: Include nan.h.
56643         (main): Use NaNd instead of NAN.
56644         * modules/round-tests (Files): Add tests/nan.h.
56645
56646         * tests/test-trunc1.c: Include nan.h.
56647         (main): Use NaNd instead of NAN.
56648         * modules/trunc-tests (Files): Add tests/nan.h.
56649
56650         * tests/test-roundf1.c: Include nan.h.
56651         (main): Use NaNf instead of NAN.
56652         * modules/roundf-tests (Files): Add tests/nan.h.
56653
56654         * tests/test-truncf1.c: Include nan.h.
56655         (main): Use NaNf instead of NAN.
56656         * modules/truncf-tests (Files): Add tests/nan.h.
56657
56658         * tests/test-ceilf1.c: Include nan.h.
56659         (main): Use NaNf instead of NAN.
56660         * modules/ceilf-tests (Files): Add tests/nan.h.
56661
56662         * tests/test-floorf1.c: Include nan.h.
56663         (main): Use NaNf instead of NAN.
56664         * modules/floorf-tests (Files): Add tests/nan.h.
56665
56666         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56667         (main): Use NaNf instead of NAN.
56668         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56669
56670         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56671         (main): Use NaNd instead of NAN.
56672         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56673
56674         * tests/test-frexp.c: Include nan.h.
56675         (main): Use NaNd instead of NAN.
56676         * modules/frexp-tests (Files): Add tests/nan.h.
56677
56678         * lib/isnan.c: Don't include <math.h>.
56679         (FUNC): Don't use NAN macro.
56680         * modules/isnand-nolibm (Depends-on): Remove math.
56681         * modules/isnanf-nolibm (Depends-on): Remove math.
56682         * modules/isnanl (Depends-on): Remove math.
56683         * modules/isnanl-nolibm (Depends-on): Remove math.
56684
56685         * tests/nan.h: New file.
56686
56687 2008-04-01  Eric Blake  <ebb9@byu.net>
56688
56689         Fix typos.
56690         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56691         values to be the right type.
56692
56693         For now, cater to gnulib strtod inaccuracies.
56694         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56695         fractional results.  While not as nice from a QoI perspective, it
56696         is a quicker patch than correctly implementing decimal to binary
56697         rounding.
56698
56699 2008-03-31  Eric Blake  <ebb9@byu.net>
56700
56701         Guarantee a definition of NAN.
56702         * lib/math.in.h (NAN): Define if missing.
56703         * tests/test-math.c (main): Test it.
56704         * doc/posix-headers/math.texi (math.h): Document this.
56705         * lib/isnan.c (rpl_isnand): Use it.
56706         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56707         * tests/test-floorf1.c (NaN): Likewise.
56708         * tests/test-frexp.c (NaN): Likewise.
56709         * tests/test-isnand.c (NaN): Likewise.
56710         * tests/test-isnanf.c (NaN): Likewise.
56711         * tests/test-round1.c (NaN): Likewise.
56712         * tests/test-roundf1.c (NaN): Likewise.
56713         * tests/test-snprintf-posix.h (NaN): Likewise.
56714         * tests/test-sprintf-posix.h (NaN): Likewise.
56715         * tests/test-trunc1.c (NaN): Likewise.
56716         * tests/test-truncf1.c (NaN): Likewise.
56717         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56718         * tests/test-vasprintf-posix.c (NaN): Likewise.
56719         * modules/isnand-nolibm (Depends-on): Add math.
56720         * modules/isnanf-nolibm (Depends-on): Likewise.
56721         * modules/isnanl (Depends-on): Likewise.
56722         * modules/isnanl-nolibm (Depends-on): Likewise.
56723         * modules/snprintf-posix-tests (Depends-on): Likewise.
56724         * modules/sprintf-posix-tests (Depends-on): Likewise.
56725         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56726         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56727         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56728         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56729
56730 2008-03-31  Bruno Haible  <bruno@clisp.org>
56731
56732         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56733         * doc/posix-functions/strtod.texi: Likewise.
56734
56735 2008-03-31  Bruno Haible  <bruno@clisp.org>
56736
56737         * tests/test-strtod.c (main): Don't use C99 syntax.
56738
56739 2008-03-31  Bruno Haible  <bruno@clisp.org>
56740
56741         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56742         Reported by Eric Blake.
56743
56744 2008-03-31  Jim Meyering  <meyering@redhat.com>
56745
56746         Don't compare actual signbit return values.
56747         * tests/test-strtod.c (main): Rather, compare only their
56748         zero/non-zero nature.
56749
56750 2008-03-31  Eric Blake  <ebb9@byu.net>
56751
56752         More strtod documentation.
56753         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56754         failures as distinct bugs.
56755
56756 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56757
56758         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56759         Problem reported by Erik Benada in
56760         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56761
56762 2008-03-30  Bruno Haible  <bruno@clisp.org>
56763
56764         * tests/test-strtod.c: Add comments about which assertion fails on which
56765         platform.
56766         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56767
56768 2008-03-30  Eric Blake  <ebb9@byu.net>
56769
56770         Test signbit behavior on zeros.
56771         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56772         (test_signbitd, test_signbitl): Likewise.
56773
56774         More strtod touchups.
56775         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56776         sign of negative underflow, for now.  Use .5, not .1.
56777         * doc/posix-functions/strtod.texi (strtod): Mention these
56778         limitations.
56779         Reported by Jim Meyering.
56780
56781 2008-03-30  Bruno Haible  <bruno@clisp.org>
56782
56783         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56784         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56785
56786 2008-03-30  Bruno Haible  <bruno@clisp.org>
56787
56788         Avoid failure when attempting to return empty iconv results on some
56789         platforms.
56790         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56791         allocation, don't report ENOMEM when the resulting string is empty.
56792
56793 2008-03-30  Bruno Haible  <bruno@clisp.org>
56794
56795         Fix buffer overrun.
56796         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56797         Don't consider the width for tmp_length. Check count against tmp_length
56798         before doing the padding. Ensure enough allocation during padding.
56799
56800 2008-03-30  Eric Blake  <ebb9@byu.net>
56801
56802         strtod touchups.
56803         * lib/strtod.c (strtod): Avoid compiler warnings.
56804         Reported by Jim Meyering.
56805
56806 2008-03-30  Bruno Haible  <bruno@clisp.org>
56807
56808         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56809         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56810         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56811         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56812         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56813         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56814         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56815         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56816
56817         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56818         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56819         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56820         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56821         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56822         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56823         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56824         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56825
56826         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56827         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56828         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56829         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56830         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56831         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56832         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56833         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56834
56835         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56836         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56837
56838         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56839         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56840
56841         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56842         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56843
56844         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56845         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56846         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56847
56848         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56850         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56851
56852         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56853         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56854         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56855
56856         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56857         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56858         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56859
56860         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56861         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56862         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56863         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56864         (Depends-on): Add EOVERFLOW.
56865         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56866         (Depends-on): Add EOVERFLOW.
56867         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56868         (Depends-on): Add EOVERFLOW.
56869         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56870         (Depends-on): Add EOVERFLOW.
56871         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56872         (Depends-on): Add EOVERFLOW.
56873         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56874         (Depends-on): Add EOVERFLOW.
56875         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56876         (Depends-on): Add EOVERFLOW.
56877         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56878         (Depends-on): Add EOVERFLOW.
56879
56880         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56881         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56882         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56883
56884         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56885         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56886         * modules/snprintf (Depends-on): Add EOVERFLOW.
56887
56888         * lib/poll.c (EOVERFLOW): Remove fallback.
56889         * modules/poll (Depends-on): Add EOVERFLOW.
56890
56891         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56892         * modules/getugroups (Depends-on): Add EOVERFLOW.
56893
56894         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56895         * modules/getdelim (Depends-on): Add EOVERFLOW.
56896
56897         * lib/ftell.c (EOVERFLOW): Remove fallback.
56898         * modules/ftell (Depends-on): Add EOVERFLOW.
56899
56900         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56901         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56902         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56903
56904         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56905
56906         * modules/EOVERFLOW-tests: New file.
56907         * tests/test-EOVERFLOW.c: New file.
56908
56909         * modules/EOVERFLOW: New file.
56910         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56911
56912 2008-03-30  Bruno Haible  <bruno@clisp.org>
56913
56914         Fix bug introduced on 2007-06-10.
56915         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56916         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56917
56918 2008-03-30  Bruno Haible  <bruno@clisp.org>
56919
56920         Improve freadseek's efficiency after ungetc.
56921         * lib/freadseek.c: Include freadahead.h.
56922         (freadptrinc): New function, extracted from freadseek.
56923         (freadseek): Use it in a loop. Use freadahead to determine the number
56924         of loop iterations.
56925         * modules/freadseek (Depends-on): Add freadahead.
56926         (configure.ac): Require AC_C_INLINE.
56927
56928 2008-03-30  Bruno Haible  <bruno@clisp.org>
56929
56930         * lib/freadseek.c (freadseek): Don't ignore the return value of
56931         freadptr.
56932
56933 2008-03-29  Eric Blake  <ebb9@byu.net>
56934
56935         Add hex float support.
56936         * modules/strtod (Depends-on): Add c-ctype.
56937         (Link): Mention POW_LIB.
56938         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56939         whitespace between 'e' and exponent.
56940         * tests/test-strtod.c (main): Enable hex float tests.
56941         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56942         now provides.
56943
56944         Document various strtod bugs, with some fixes.
56945         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56946         "-0x", "inf", "nan", and hex constants.
56947         * doc/posix-functions/atof.texi (atof): Likewise.
56948         * modules/stdlib (Makefile.am): Support strtod.
56949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56950         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56951         detect additional strtod bugs.
56952         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56953         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56954         bool where appropriate.  Parse 'inf' and 'nan'.
56955         * tests/test-strtod.c: New file.
56956         * modules/strtod (Depends-on): Add stdbool, stdlib.
56957         (configure.ac): Turn on module indicator.
56958         * modules/strtod-tests: New module.
56959
56960 2008-03-29  Eric Blake  <ebb9@byu.net>
56961
56962         Fix ftell on mingw.
56963         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56964         * modules/ftell-tests (Depends-on): Add binary-io.
56965         * modules/ftello-tests (Depends-on): Likewise.
56966         * tests/test-ftell.c (main): Enhance test to cover behavior after
56967         ungetc.  Enforce binary mode.
56968         * tests/test-ftello.c (main): Likewise.
56969
56970         Pass test-freadseek on cygwin.
56971         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56972         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56973         ungetc buffer.
56974
56975         * tests/test-fflush2.c (main): Fix typo.
56976
56977 2008-03-29  Bruno Haible  <bruno@clisp.org>
56978
56979         * tests/test-fflush2.c (main): Temporarily disable the contents of
56980         this test.
56981         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56982         Reported by Eric Blake.
56983
56984 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56985
56986         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56987         (GC_SHA224_DIGEST_SIZE): Add.
56988
56989         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56990         (gc_hash_digest_length): Likewise.
56991         (gc_hash_buffer): Likewise.
56992
56993 2008-03-25  Bruno Haible  <bruno@clisp.org>
56994
56995         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56996         detail which gettext release to use.
56997         Reported by Simon Josefsson.
56998
56999 2008-03-26  Jim Meyering  <meyering@redhat.com>
57000
57001         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57002         * modules/gnumakefile (clean-GNUmakefile): Also, use
57003         test ... && ... || : syntax rather than if-then ... fi.
57004
57005         gnumakefile: Don't double-quote-expand $(VPATH) value.
57006         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57007
57008 2008-03-24  Eric Blake  <ebb9@byu.net>
57009
57010         Alter GNUmakefile to install into top directory.
57011         * modules/maintainer-makefile: Split, and add dependency...
57012         * modules/gnumakefile: to this new module.
57013         * build-aux/GNUmakefile: Move...
57014         * top/GNUmakefile: ...here.
57015         * build-aux/maint.mk: Move...
57016         * top/maint.mk: ...here.
57017         * MODULES.html.sh (Support for maintaining...): Document new
57018         module.
57019
57020 2008-03-23  Bruno Haible  <bruno@clisp.org>
57021
57022         * gnulib-tool: New options --vc-files, --no-vc-files.
57023         (func_usage): Document them.
57024         (vc_files): New variable.
57025         (func_import): Consider vc_files.
57026         (func_create_testdir): Set vc_files to empty.
57027         Suggested by Jim Meyering and Karl Berry.
57028
57029 2008-03-23  Bruno Haible  <bruno@clisp.org>
57030
57031         Fix regex compilation error on HP-UX 11.
57032         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57033         * modules/regex (Files): Add m4/mbstate_t.m4.
57034         Reported by Ton Voon <ton.voon@altinity.com>.
57035
57036 2008-03-23  Bruno Haible  <bruno@clisp.org>
57037
57038         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57039
57040 2008-03-23  Eric Blake  <ebb9@byu.net>
57041             Bruno Haible  <bruno@clisp.org>
57042
57043         Install files from top/ in the destination directory.
57044         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57045         augmentation also for the files from top/.
57046         (func_import, func_create_testdir): Rewrite file names:
57047         top/filename -> filename.
57048
57049 2008-03-23  Bruno Haible  <bruno@clisp.org>
57050
57051         Tweak "gnulib --version" output.
57052         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57053
57054 2008-03-23  Bruno Haible  <bruno@clisp.org>
57055
57056         Tweak "gnulib --version" output.
57057         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57058         rather than contents of ChangeLog, when possible.
57059
57060 2008-03-21  Eric Blake  <ebb9@byu.net>
57061
57062         More --version tweaks.
57063         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57064         date of last ChangeLog entry.
57065
57066 2008-03-21  Jim Meyering  <meyering@redhat.com>
57067
57068         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57069
57070 2008-03-20  Eric Blake  <ebb9@byu.net>
57071
57072         VPATH fix.
57073         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57074
57075 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57076
57077         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57078         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57079
57080 2008-03-20  Eric Blake  <ebb9@byu.net>
57081
57082         Sync GNUmakefile with coreutils.
57083         * build-aux/GNUmakefile (have-Makefile): Rename...
57084         (_have-Makefile): ...to this, for namespace consideration.
57085         (GNUmakefile.cfg): Include, if present.
57086         (_autoreconf): Define a default.
57087         (_is-dist-target): New rule for rebuilds to pick up intra-release
57088         version.
57089         (maint-cfg.mk): Rename...
57090         (cfg.mk): ...to this.
57091
57092 2008-03-18  Jim Meyering  <meyering@redhat.com>
57093
57094         New script and module: mktempd
57095         * MODULES.html.sh (maint+release support): Add mktempd.
57096         * build-aux/mktempd: New file.
57097         * modules/mktempd: New file.
57098
57099 2008-03-15  Jim Meyering  <meyering@redhat.com>
57100
57101         Undo last change.
57102         * lib/sha1.c, lib/md5.c: 63 != ~63.
57103         Reported by Andreas Schwab.
57104
57105         sha1.c, md5.c: Hoist a redundant expression.
57106         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57107         "ctx->buflen" only once, before calling *_process_block.
57108         * lib/md5.c (md5_process_bytes): Likewise.
57109
57110 2008-03-14  Eric Blake  <ebb9@byu.net>
57111
57112         Bump copyright year in files generated by gnulib-tool.
57113         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57114         gnulib-tool, rather than hard-coding it.
57115
57116         Fix 'gnulib-tool --version' output to work with git.
57117         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57118         (startup): ...here.
57119         (func_version): Use it to invoke git-version-gen, rather than
57120         relying on CVS keyword expansion.  Modernize wording.
57121         (cvsdatestamp, last_checkin_date, version): Kill unused
57122         variables.
57123
57124 2008-03-12  Jim Meyering  <meyering@redhat.com>
57125
57126         Recognize optional cast of the argument to free.
57127         * build-aux/useless-if-before-free: Update regexps.
57128
57129         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57130
57131 2008-03-11  Bruno Haible  <bruno@clisp.org>
57132
57133         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57134         by a single package.
57135         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57136         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57137         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57138         Reported by Sam Steingold <sds@gnu.org>.
57139
57140 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57141
57142         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57143         repositories.
57144
57145 2008-03-11  Bruno Haible  <bruno@clisp.org>
57146
57147         Avoid conflicts between local macro definitions.
57148         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57149         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57150
57151 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57152             Bruno Haible  <bruno@clisp.org>
57153
57154         Make va_copy work with some version of xlc on AIX 5.1.
57155         * lib/stdarg.in.h: New file.
57156         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57157         On AIX, use a <stdarg.h> file substitute.
57158         * modules/stdarg (Files): Add lib/stdarg.in.h.
57159         (Depends-on): Add include_next.
57160         (Makefile.am): Build a stdarg.h substitute if requested.
57161         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57162
57163 2008-03-10  Bruno Haible  <bruno@clisp.org>
57164
57165         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57166         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57167         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57168
57169 2008-03-10  Bruno Haible  <bruno@clisp.org>
57170
57171         * modules/stdlib (Depends-on): Add include_next, remove
57172         absolute-header.
57173
57174 2008-03-09  Bruno Haible  <bruno@clisp.org>
57175
57176         * lib/freadahead.h (freadahead): Document more precisely.
57177         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57178         the sum of both buffer sizes.
57179         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57180         * NEWS: Document the change.
57181
57182 2008-03-09  Bruno Haible  <bruno@clisp.org>
57183
57184         Extend freadptr to return also the buffer size.
57185         * lib/freadptr.h (freadptr): Add sizep argument.
57186         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57187         (freadptr): Add sizep argument. Determine buffer size like freadahead
57188         does.
57189         * tests/test-freadptr.c: Don't include freadahead.h.
57190         (main): Adapt for new calling convention of freadptr.
57191         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57192         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57193         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57194         tests/test-freadptr2.sh.
57195         (Depends): Remove freadahead.
57196         (TESTS): Add test-freadptr2.sh.
57197         (check_PROGRAMS): Add test-freadptr2.
57198
57199 2008-03-09  Bruno Haible  <bruno@clisp.org>
57200
57201         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57202         Report and solution by Simon Josefsson.
57203
57204 2008-03-06  Bruno Haible  <bruno@clisp.org>
57205
57206         Make fflush after ungetc work on BSD platforms.
57207         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57208         * tests/test-fflush2.c: New file.
57209         * tests/test-fflush2.sh: New file.
57210         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57211         tests/test-fflush2.c.
57212         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57213         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57214
57215 2008-03-06  Eric Blake  <ebb9@byu.net>
57216
57217         Likewise for ftello.
57218         * modules/ftello (Dependencies): Add extensions.
57219         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57220
57221 2008-03-06  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/fseeko (Dependencies): Add extensions.
57224         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57225         Needed on glibc systems.
57226
57227 2008-03-06  Bruno Haible  <bruno@clisp.org>
57228
57229         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57230         email address.
57231         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57232
57233 2008-03-06  Bruno Haible  <bruno@clisp.org>
57234
57235         * users.txt: Add libgnupdf.
57236
57237 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57238
57239         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57240         (Header File Substitutes, Function Substitutes,
57241         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57242         (Build robot for gnulib): Fix typo.
57243
57244 2008-03-06  Bruno Haible  <bruno@clisp.org>
57245
57246         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57247         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57248
57249 2008-03-06  Bruno Haible  <bruno@clisp.org>
57250
57251         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57252         * doc/gnulib.texi: Include it.
57253
57254 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57255
57256         * modules/func (License): Change license to unlimited; there was
57257         no LGPL parts in the module anyway.
57258
57259 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57260
57261         * modules/__func__: Renamed to modules/func.
57262         * modules/__func__-tests: Renamed to modules/func-tests.
57263         * tests/test-__func__.c: Renamed to tests/test-func.c.
57264         * m4/__func__.m4: Renamed to m4/func.m4.
57265         * doc/gnulib.texi (__func__): Section renamed to func.
57266         Suggested by Eric Blake <ebb9@byu.net>.
57267
57268 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57269
57270         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57271         about __func__.  Make example self-contained.  Suggested by Eric
57272         Blake <ebb9@byu.net>.
57273
57274         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57275         Suggested by Eric Blake <ebb9@byu.net>.
57276
57277 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57278
57279         * modules/__func__: New file.
57280         * modules/__func__-tests: New file.
57281         * tests/test-__func__.c: New file.
57282         * m4/__func__.m4: New file.
57283         * doc/gnulib.texi (__func__): Document __func__ module.
57284
57285 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57286
57287         * modules/byteswap (License): Re-license as LGPLv2+.
57288
57289 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57290
57291         * doc/Makefile: Add pdf target.
57292
57293 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57294
57295         * modules/inline (License): Use 'unlimited', since there are only
57296         *.m4 files in this module.
57297
57298 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57299             Bruno Haible  <bruno@clisp.org>
57300
57301         Add support for HP C 7.1 on OpenVMS 8.3.
57302         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57303
57304 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57305
57306         Update VMS specifics.
57307         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57308
57309 2008-03-02  Jim Meyering  <meyering@redhat.com>
57310
57311         Remove the last dependency on the "free" module.
57312         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57313         Reported by Bob Proulx.
57314
57315         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57316
57317         Remove useless "if" tests before free.  Deprecate "free" module.
57318         * doc/posix-functions/free.texi: Mention that this
57319         module is no longer useful.
57320         * modules/free (Notice): Say this module is obsolete.
57321         * modules/readutmp (Depends-on): Remove free.
57322         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57323         * lib/putenv.c (putenv): Likewise.
57324         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57325         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57326         * tests/test-c-strcasestr.c (main): Likewise.
57327         * tests/test-c-strstr.c (main): Likewise.
57328         * tests/test-mbscasestr1.c (main): Likewise.
57329         * tests/test-mbscasestr2.c (main): Likewise.
57330         * tests/test-mbsstr1.c (main): Likewise.
57331         * tests/test-mbsstr2.c (main): Likewise.
57332         * tests/test-memmem.c (main): Likewise.
57333         * tests/test-strcasestr.c (main): Likewise.
57334         * tests/test-striconv.c (main): Likewise.
57335         * tests/test-striconveh.c (main): Likewise.
57336         * tests/test-striconveha.c (main): Likewise.
57337         * tests/test-strstr.c (main): Likewise.
57338
57339         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57340
57341         bootstrap: sync from coreutils again
57342         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57343
57344 2008-03-01  Jim Meyering  <meyering@redhat.com>
57345
57346         bootstrap: sync from coreutils
57347         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57348         also when the target doesn't exist.
57349
57350 2008-03-01  Eric Blake  <ebb9@byu.net>
57351
57352         Fix bugs in last patch.
57353         * lib/memchr2.c (memchr2): Fix typo.
57354         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57355         extension.
57356         Reported by Bruce Korb.
57357
57358         New module 'memchr2'.
57359         * modules/memchr2: New file.
57360         * modules/memchr2-tests: Likewise.
57361         * lib/memchr2.h: Likewise.
57362         * lib/memchr2.c: Likewise, based on memchr.c.
57363         * tests/test-memchr2.c: New test.
57364         * MODULES.html.sh (String handling): Add memchr2.
57365
57366 2008-02-29  Bruno Haible  <bruno@clisp.org>
57367
57368         * modules/freadseek-tests: New file.
57369         * tests/test-freadseek.sh: New file.
57370         * tests/test-freadseek.c: New file.
57371
57372         New module 'freadseek'.
57373         * modules/freadseek: New file.
57374         * lib/freadseek.h: New file.
57375         * lib/freadseek.c: New file.
57376         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57377
57378 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57379
57380         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57381         wydawca.
57382
57383         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57384         program_invocation_name and program_invocation_short_name are
57385         present.
57386
57387 2008-02-28  Bruno Haible  <bruno@clisp.org>
57388
57389         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57390         * tests/test-freadptr.sh: Also test non-seekable stdin.
57391
57392 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57393
57394         * build-aux/bootstrap (source_base, m4_base)
57395         (doc_base, tests_base): New variables.
57396         (gnulib_tool_options): Do not hardcode base directories, use
57397         the above variables instead.
57398
57399 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57400
57401         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57402
57403 2008-02-28  Bruno Haible  <bruno@clisp.org>
57404
57405         * modules/freadptr-tests: New file.
57406         * tests/test-freadptr.sh: New file.
57407         * tests/test-freadptr.c: New file.
57408
57409         New module 'freadptr'.
57410         * modules/freadptr: New file.
57411         * lib/freadptr.h: New file.
57412         * lib/freadptr.c: New file.
57413         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57414
57415 2008-02-26  Karl Berry  <karl@freefriends.org>
57416
57417         Sync from Libtool:
57418         * libltdl/argz.c (argz_add, argz_count): New functions.
57419         * libltdl/argz.in.h: Declare them.
57420         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57421
57422 2008-02-22  Bruno Haible  <bruno@clisp.org>
57423
57424         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57425         is a pointer type.  Needed for HP-UX 10.
57426         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57427         * doc/posix-functions/gmtime_r.texi: Likewise.
57428         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57429
57430 2008-02-24  Bruno Haible  <bruno@clisp.org>
57431
57432         * modules/environ-tests: New file.
57433         * tests/test-environ.c: New file.
57434
57435         New module 'environ'.
57436         * modules/environ: New file.
57437         * lib/unistd.in.h (environ): New declaration.
57438         * m4/environ.m4: New file.
57439         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57440         after use.
57441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57442         HAVE_DECL_ENVIRON.
57443         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57444         HAVE_DECL_ENVIRON.
57445         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57446         wrong claim that 'environ' is missing on some systems.
57447         * modules/execute (Depends-on): Add environ.
57448         * lib/execute.c (environ): Remove fallback declaration.
57449         * modules/pipe (Depends-on): Add environ.
57450         * lib/pipe.c (environ): Remove fallback declaration.
57451         * modules/setenv (Depends-on): Add environ.
57452         * lib/setenv.c (environ): Remove fallback declaration.
57453         * modules/unsetenv (Depends-on): Add environ.
57454         * lib/unsetenv.c (environ): Remove fallback declaration.
57455         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57456         m4/environ.m4.
57457         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57458         (gl_PREREQ_UNSETENV): Likewise.
57459
57460 2008-02-24  Bruno Haible  <bruno@clisp.org>
57461
57462         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57463
57464 2008-02-20  Bob Proulx  <bob@proulx.com>
57465
57466         Enable use of older two part flavor 'git describe'.
57467         * build-aux/git-version-gen: If using the older two part flavor of
57468         git version then recreate the third part now present in the
57469         newer three part flavor of git describe.
57470
57471 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57472
57473         * lib/fts.c (fts_build): Typo correction to comment.
57474
57475 2008-02-17  Bruno Haible  <bruno@clisp.org>
57476
57477         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57478         generating no-op conflicts.
57479
57480 2008-02-17  Bruno Haible  <bruno@clisp.org>
57481
57482         Speed up by 10%.
57483         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57484         result_entries, rather than an index-based loop.
57485
57486 2008-02-17  Bruno Haible  <bruno@clisp.org>
57487
57488         Speed up by 25%.
57489         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57490         'hashcode_cached'.
57491         (entry_create): New function.
57492         (entry_hashcode): Use the cached hashcode if possible.
57493         (read_changelog_file, try_split_merged_entry): Use entry_create.
57494
57495 2008-02-17  Bruno Haible  <bruno@clisp.org>
57496
57497         Speed up from O(n^2) to O(n) for long ChangeLog files.
57498         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57499         (read_changelog_file): Change implementation of entries_reversed list
57500         to rbtreehash.
57501         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57502
57503 2008-02-17  Bruno Haible  <bruno@clisp.org>
57504
57505         New option --split-merged-entry.
57506         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57507         (find_paragraph_end, try_split_merged_entry): New functions.
57508         (long_options): Add option --split-merged-entry.
57509         (usage): Document option --split-merged-entry.
57510         (main): Implement option --split-merged-entry.
57511         Reported by Eric Blake.
57512
57513 2008-02-17  Bruno Haible  <bruno@clisp.org>
57514
57515         * lib/git-merge-changelog.c: Include c-strstr.h.
57516         (main): Support the "git pull --rebase" situation.
57517         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57518         Reported by Eric Blake.
57519
57520 2008-02-16  Eric Blake  <ebb9@byu.net>
57521
57522         Avoid doubling \ in common case of "c-maybe" quoting style.
57523         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57524         eliding outer quotes.
57525         * lib/quotearg.h: Document this.
57526         * tests/test-quotearg.c (result_strings, inputs, results_g)
57527         (flag_results, locale_results): Test it by adding a new string to
57528         each test group.
57529         (compare_strings): Test new string.
57530
57531 2008-02-13  Eric Blake  <ebb9@byu.net>
57532
57533         Avoid trigraph quoting in default output.
57534         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57535         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57536         unless explicitly requested.
57537         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57538
57539 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57540
57541         Don't rely on signed integer overflowing to negative value.
57542         * lib/getugroups.c (getugroups): Include <limits.h>.
57543         Instead, compare against INT_MAX, and increment only if the test passes.
57544
57545 2008-02-13  Jim Meyering  <meyering@redhat.com>
57546         and Eric Blake  <ebb9@byu.net>
57547
57548         Avoid shadowing warning and compile errors on Linux.
57549         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57550         forwarding macros on Linux.
57551         (dcgettext): Define a stub, for Linux.
57552         (results_g, main): Avoid warnings.
57553
57554 2008-02-12  Eric Blake  <ebb9@byu.net>
57555
57556         Silence warning in last patch.
57557         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57558
57559         Quotearg part 4: add tests, fix c-maybe colon quoting.
57560         * lib/quotearg.h: Improve documentation.
57561         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57562         escapes when adding outer quotes.  When quoting trigraphs, use
57563         valid C notation.  When quoting NUL, omit extra characters if next
57564         character is not digit.  Alter prototype.
57565         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57566         callers.
57567         * modules/quotearg-tests: New module.
57568         * tests/test-quotearg.c: New test.
57569
57570 2008-02-07  Eric Blake  <ebb9@byu.net>
57571
57572         Quotearg part 3: add flag to control outer quote elision.
57573         * lib/quotearg.h (c_maybe_quoting_style): New style.
57574         (enum quoting_flags): Better documentation of flags.
57575         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57576         c-maybe style.
57577         (quotearg_buffer_restyled): Handle new flag to elide outer
57578         quotes.
57579
57580         Quotearg part 2: add flag that can control NUL elision.
57581         * lib/quotearg.h (set_quoting_flags): New prototype.
57582         * lib/quotearg.c (struct quoting_options): Add flag field.
57583         (set_quoting_flags): New function.
57584         (quotearg_buffer_restyled): Add flags parameter.
57585         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57586         (quotearg_n_options): Set the flag, since length cannot be
57587         returned.
57588         (quoting_options_from_style): Default flags correctly.
57589
57590         Quotearg part 1: more wrappers, restore quotearg_char state.
57591         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57592         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57593         (quotearg_colon_mem): New wrappers.
57594         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57595         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57596         functions.
57597         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57598         (quotearg_colon_mem): New functions.
57599
57600 2008-02-11  Bruno Haible  <bruno@clisp.org>
57601
57602         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57603         library in the current directory: it does not work with parallel make.
57604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57605
57606 2008-02-11  Bruno Haible  <bruno@clisp.org>
57607
57608         * .gitattributes: New file.
57609
57610 2008-02-11  Jim Meyering  <meyering@redhat.com>
57611
57612         useless-if-before-free: Fix reversed exit values.
57613         * build-aux/useless-if-before-free: Use correct values
57614         for EXIT_MATCH and EXIT_NO_MATCH.
57615
57616         * build-aux/useless-if-before-free: Close stdout carefully.
57617
57618 2008-02-10  Bruno Haible  <bruno@clisp.org>
57619
57620         New module 'git-merge-changelog'.
57621         * modules/git-merge-changelog: New file.
57622         * lib/git-merge-changelog.c: New file.
57623
57624 2008-02-10  Jim Meyering  <meyering@redhat.com>
57625
57626         useless-if-before-free: New option: --list (-l).
57627
57628         useless-if-before-free: Don't exit immediately upon open failure.
57629         * build-aux/useless-if-before-free: Exit 2 for errors.
57630         Upon failure to open a file, don't exit immediately.
57631         Rather, just warn and continue with any remaining files.
57632
57633 2008-02-10  Bruno Haible  <bruno@clisp.org>
57634
57635         New abstract list operation 'node_set_value'.
57636         * lib/gl_list.h (gl_list_node_set_value): New function.
57637         (struct gl_list_implementation): New field node_set_value.
57638         * lib/gl_list.c (gl_list_node_set_value): New function.
57639         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57640         (gl_array_list_implementation): Update.
57641         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57642         (gl_carray_list_implementation): Update.
57643         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57644         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57645         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57646         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57647         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57648         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57649         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57650         Update.
57651         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57652         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57653         (gl_sublist_list_implementation): Update.
57654
57655 2008-02-10  Bruno Haible  <bruno@clisp.org>
57656
57657         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57658         Needed when ELEMENT is #defined to 'some_type *'.
57659
57660 2008-02-10  Jim Meyering  <meyering@redhat.com>
57661
57662         New script and module: useless-if-before-free
57663         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57664         * build-aux/useless-if-before-free: New file.
57665         * modules/useless-if-before-free: New file.
57666
57667         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57668
57669         xstrtol_error: Fix typo.
57670         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57671         s/exit_failure/exit_status/.
57672
57673 2008-02-09  Jim Meyering  <meyering@redhat.com>
57674
57675         New script and module: gitlog-to-changelog
57676         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57677         * modules/gitlog-to-changelog: New file.
57678         * build-aux/gitlog-to-changelog: New file.
57679
57680 2008-02-08  Jim Meyering  <meyering@redhat.com>
57681
57682         Avoid two "parameter unused" warnings.
57683         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57684         Mark "st" as used.
57685
57686         Use "git COMMAND", not "git-COMMAND".
57687         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57688         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57689         * build-aux/git-version-gen: Use "git status", not "git-status".
57690
57691 2008-02-07  Bruno Haible  <bruno@clisp.org>
57692
57693         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57694         Avoids a crash on Windows Vista.
57695         Reported by Adam Strzelecki <ono@java.pl> via
57696         Simon Josefsson <simon@josefsson.org>.
57697
57698 2008-02-06  Bruno Haible  <bruno@clisp.org>
57699
57700         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57701         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57702         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57704         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57705         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57706         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57707         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57708         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57709         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57710         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57711         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57712         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57714         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57715         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57716         left-adjust flag.
57717         * tests/test-snprintf-posix.h (test_function): Likewise.
57718         * tests/test-sprintf-posix.h (test_function): Likewise.
57719         * tests/test-vasprintf-posix.c (test_function): Likewise.
57720         * doc/posix-functions/fprintf.texi: Update.
57721         * doc/posix-functions/printf.texi: Update.
57722         * doc/posix-functions/snprintf.texi: Update.
57723         * doc/posix-functions/sprintf.texi: Update.
57724         * doc/posix-functions/vfprintf.texi: Update.
57725         * doc/posix-functions/vprintf.texi: Update.
57726         * doc/posix-functions/vsnprintf.texi: Update.
57727         * doc/posix-functions/vsprintf.texi: Update.
57728         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57729
57730 2008-02-06  Bruno Haible  <bruno@clisp.org>
57731
57732         Fix bug introduced on 2008-01-26.
57733         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57734
57735 2008-02-06  Bruno Haible  <bruno@clisp.org>
57736
57737         Fix bug introduced on 2007-06-10.
57738         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57739         !NEED_PRINTF_FLAG_ZERO.
57740
57741 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57742
57743         getloadavg: use libperfstat on AIX5
57744         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57745
57746 2008-02-03  Bruno Haible  <bruno@clisp.org>
57747
57748         * lib/diffseq.h: Add comments about required #includes.
57749         Reported by Michael Biggs <gnulib@doubleplum.net>.
57750
57751 2008-02-01  Bruno Haible  <bruno@clisp.org>
57752
57753         * users.txt: Add gnuit.
57754
57755 2008-01-31  Bruno Haible  <bruno@clisp.org>
57756
57757         * lib/md4.c (set_uint32): Mark as inline.
57758         * lib/md5.c (set_uint32): Likewise.
57759         * lib/sha1.c (set_uint32): Likewise.
57760         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57761         * m4/md5.m4 (gl_MD5): Likewise.
57762         * m4/sha1.m4 (gl_SHA1): Likewise.
57763
57764 2008-01-31  Jim Meyering  <meyering@redhat.com>
57765
57766         Use "sizeof VAR", rather than a literal "4".
57767         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57768         * lib/md4.c (md4_read_ctx): Likewise.
57769         * lib/sha1.c (sha1_read_ctx): Likewise.
57770
57771 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57772
57773         * tests/test-sha1.c: New file, based on test-md5.c.
57774
57775         * modules/crypto/sha1-tests: New file.
57776
57777 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57778
57779         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57780
57781 2008-01-31  Jim Meyering  <meyering@redhat.com>
57782
57783         Prefer "sizeof v" over the equivalent "4".
57784         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57785         * lib/md5.c (set_uint32): Likewise.
57786         * lib/sha1.c (set_uint32): Likewise.
57787
57788 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57789
57790         * lib/sha1.c (set_uint32): Mark function as static.
57791
57792 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57793
57794         md2: clarify comments to say that alignment is not required.
57795         * lib/md2.h: Remove warning about alignment in comment.
57796         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57797         never been required.
57798
57799 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57800
57801         md4: adapt alignment constraint fix from sha1.
57802         * lib/md4.c (set_uint32): New function, from sha1.c
57803         (md4_read_ctx): Use it.
57804         (md4_finish_ctx): Doc fix.
57805         * lib/md4.h: Doc fix.
57806
57807 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57808
57809         md5: adapt alignment constraint fix from sha1.
57810         * lib/md5.c (set_uint32): New function, from sha1.c
57811         (md5_read_ctx): Use it.
57812         (md5_finish_ctx): Doc fix.
57813         * lib/md5.h: Doc fix.
57814
57815 2008-01-30  Peter Palfrader  <weasel@debian.org>
57816
57817         sha1: remove the result buffer alignment constraint
57818         * lib/sha1.c (set_uint32): New function.
57819         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57820         constraint.
57821         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57822         * lib/sha1.h: Likewise.
57823
57824 2008-01-30  Andreas Schwab  <schwab@suse.de>
57825             Bruno Haible  <bruno@clisp.org>
57826
57827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57828         correct definition of LDBL_MIN_EXP.
57829
57830 2008-01-30  Karl Berry  <karl@gnu.org>
57831
57832         * config/srclist-update: try to preserve x bit on updates.
57833         * config/srclistvars.sh: update for karl.
57834
57835 2008-01-29  Jim Meyering  <meyering@redhat.com>
57836
57837         vasnprintf.c: Avoid warning about unused label
57838         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57839         "overflow" label definition and associated code with the
57840         same cpp condition that guards the sole use of that label.
57841
57842 2008-01-26  Bruno Haible  <bruno@clisp.org>
57843
57844         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57845         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57846         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57847         * lib/isnanl-nolibm.h (isnanl): Likewise.
57848         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57849
57850 2008-01-26  Bruno Haible  <bruno@clisp.org>
57851
57852         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57853         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57854
57855 2008-01-26  Bruno Haible  <bruno@clisp.org>
57856
57857         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57858         GCC >= 4.0 built-in.
57859         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57860
57861 2008-01-26  Bruno Haible  <bruno@clisp.org>
57862
57863         Rename isnan, applicable to 'double' only, to isnand.
57864         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57865         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57866         (configure.ac): Update.
57867         (Include): Replace "isnan.h" with "isnand.h".
57868         * m4/isnand.m4: Renamed from m4/isnan.m4.
57869         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57870         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57871         instead of isnan.c.
57872         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57873         instead of HAVE_ISNAN_IN_LIBC.
57874         (isnand): Renamed from isnan.
57875         * lib/isnand.c: New file.
57876         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57877         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57878         (Makefile.am): Update.
57879         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57880         Include isnand.h instead of isnan.h.
57881         (main): Test isnand instead of isnan.
57882         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57883         isnan-nolibm.
57884         * modules/frexp (Depends-on): Likewise.
57885         * modules/frexp-tests (Depends-on): Likewise.
57886         * modules/frexp-nolibm (Depends-on): Likewise.
57887         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57888         * modules/isfinite (Depends-on): Likewise.
57889         * modules/round-tests (Depends-on): Likewise.
57890         * modules/signbit (Depends-on): Likewise.
57891         * modules/signbit-tests (Depends-on): Likewise.
57892         * modules/snprintf-posix (Depends-on): Likewise.
57893         * modules/sprintf-posix (Depends-on): Likewise.
57894         * modules/trunc-tests (Depends-on): Likewise.
57895         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57896         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57897         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57898         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57899         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57900         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57901         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57902         * modules/vasnprintf-posix (Depends-on): Likewise.
57903         * modules/vasprintf-posix (Depends-on): Likewise.
57904         * modules/vfprintf-posix (Depends-on): Likewise.
57905         * modules/vsnprintf-posix (Depends-on): Likewise.
57906         * modules/vsprintf-posix (Depends-on): Likewise.
57907         * lib/frexp.c: Include isnand.h instead of isnan.h.
57908         (ISNAN): Set to isnand instead of isnan.
57909         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57910         (gl_isfinited): Use isnand instead of isnan.
57911         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57912         (gl_signbitd): Use isnand instead of isnan.
57913         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57914         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57915         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57916         (main): Use isnand instead of isnan.
57917         * tests/test-round1.c: Include isnand.h.
57918         (main): Use isnand instead of isnan.
57919         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57920         (ISNAN): Set to isnand instead of isnan.
57921         * tests/test-trunc1.c: Include isnand.h.
57922         (main): Use isnand instead of isnan.
57923         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57924         (equal): Use isnand instead of isnan.
57925         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57926         isnand-nolibm.
57927         * NEWS: Mention the change.
57928
57929 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57930             Bruno Haible  <bruno@clisp.org>
57931
57932         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57933         the GCC builtins for signbits are present and set
57934         REPLACE_SIGNBIT_USING_GCC if so.
57935         * lib/math.in.h (signbit): Define using GCC builtins if
57936         REPLACE_SIGNBIT_USING_GCC is set.
57937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57938         REPLACE_SIGNBIT_USING_GCC.
57939         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57940
57941 2008-01-25  Jim Meyering  <meyering@redhat.com>
57942
57943         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57944         * lib/poll.c: Include <config.h>, not "config.h".
57945         * tests/test-getaddrinfo.c: Likewise.
57946
57947 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57948
57949         * modules/sockets-tests: New file.
57950
57951 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57952
57953         * modules/sockets: New module, can be used to call WSA_Startup and
57954         WSA_Cleanup when needed.
57955
57956         * lib/sockets.h, lib/sockets.c: New files.
57957
57958         * m4/sockets.m4: New file.
57959
57960         * tests/test-sockets.c: New file.
57961
57962 2008-01-19  Bruno Haible  <bruno@clisp.org>
57963
57964         * doc/posix-headers: Renamed from doc/headers.
57965         * doc/posix-functions: Renamed from doc/functions.
57966         * doc/gnulib.texi: Update.
57967
57968 2008-01-19  Bruno Haible  <bruno@clisp.org>
57969
57970         * doc/glibc-functions/strcasestr.texi: Include contents of
57971         doc/functions/strcasestr.texi, fixing the list of platforms.
57972         * doc/functions/strcasestr.texi: Remove file.
57973
57974 2008-01-19  Bruno Haible  <bruno@clisp.org>
57975
57976         * doc/glibc-functions/memmem.texi: Include contents of
57977         doc/functions/memmem.texi.
57978         * doc/functions/memmem.texi: Remove file.
57979
57980 2008-01-18  Bruno Haible  <bruno@clisp.org>
57981
57982         * doc/glibc-functions/*.texi: New files.
57983         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57984         to use the new files.
57985
57986 2008-01-17  Bruno Haible  <bruno@clisp.org>
57987
57988         * tests/test-gethostname.c (main): Fix printf statement.
57989
57990 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57991
57992         * modules/gethostname-tests: New file.
57993
57994         * tests/test-gethostname.c: New file.
57995
57996 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57997
57998         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57999         used by the UNAME case.  Reported by Bruno Haible
58000         <bruno@clisp.org>.
58001
58002 2008-01-17  Eric Blake  <ebb9@byu.net>
58003
58004         Convert c-strcasestr to be more efficient.
58005         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58006         (Depends-on): Add c-strcase, remove malloca, strnlen.
58007         * tests/test-c-strcasestr.c (main): Enhance test.
58008         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58009
58010 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58011
58012         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58013         Use it in creating po/Makevars.
58014
58015 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58016
58017         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58018         Applications that requires it should initialize libgcrypt
58019         manually.
58020
58021 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58022
58023         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58024
58025 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58026
58027         Fix problem with getdate on mingw32 reported by Simon Josefsson
58028         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58029         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58030         tzname", when deciding whether to declare tzname.
58031         * lib/strftime.c (tzname): Likewise.
58032
58033 2008-01-15  Bruno Haible  <bruno@clisp.org>
58034
58035         Work around a MacOS X 10.5 bug in frexpl().
58036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58037         * doc/functions/frexpl.texi: Document the bug.
58038         Reported by Elias Pipping <pipping@gentoo.org>.
58039
58040 2008-01-14  Eric Blake  <ebb9@byu.net>
58041
58042         Touch up previous patch.
58043         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58044         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58045
58046         Convert strcasestr module to use Two-Way algorithm.
58047         * modules/strcasestr-simple: New module, based on the old
58048         strcasestr, but with Two-Way rather than KMP.
58049         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58050         * lib/string.in.h (rpl_strcasestr): Declare.
58051         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58052         performance.
58053         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58054         * modules/string (Makefile.am): Support strcasestr.
58055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58056         * modules/strcasestr-tests (Depends-on): Check for alarm.
58057         * tests/test-strcasestr.c: Augment test.
58058         * lib/str-two-way.h: Clean up stray macro.
58059         * NEWS: Document new module.
58060         * MODULES.html.sh (string handling): Likewise.
58061         * doc/functions/strcasestr.texi: New file.
58062         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58063         here, since it is not a POSIX function.
58064
58065 2008-01-14  Colin Watson  <cjwatson@debian.org>
58066             Bruno Haible  <bruno@clisp.org>
58067
58068         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58069         works fine; if not, set REPLACE_STRSIGNAL.
58070         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58072         REPLACE_STRSIGNAL.
58073         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58074         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58075         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58076
58077 2008-01-14  Bruno Haible  <bruno@clisp.org>
58078
58079         * modules/strsignal (Include): Change to <string.h>.
58080
58081 2008-01-14  Colin Watson  <cjwatson@debian.org>
58082
58083         * modules/argp (Notice): Add a notice recommending to change
58084         XGETTEXT_OPTIONS.
58085         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58086
58087 2008-01-13  Colin Watson  <cjwatson@debian.org>
58088
58089         * modules/strsignal-tests: New file.
58090         * tests/test-strsignal.c: New file.
58091
58092         * lib/strsignal.c: New file, from glibc with modifications.
58093         * lib/siglist.h: New file, from glibc with modifications.
58094         * lib/string.in.h (strsignal): New declaration.
58095         * m4/strsignal.m4: New file.
58096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58097         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58098         * modules/strsignal: New file.
58099         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58100         HAVE_DECL_STRSIGNAL.
58101
58102 2008-01-13  Bruno Haible  <bruno@clisp.org>
58103
58104         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58105         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58106         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58107         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58108
58109 2008-01-13  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58112         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58113         * lib/argp.h (__attribute__): Likewise.
58114         * lib/c-stack.c (__attribute__): Likewise.
58115         * lib/error.h (__attribute__): Likewise.
58116         * lib/fts.c (__attribute__): Likewise.
58117         * lib/openat.h (__attribute__): Likewise.
58118         * lib/stdio.in.h (__attribute__): Likewise.
58119         * lib/string.in.h (__attribute__): Likewise.
58120         * lib/utimens.c (__attribute__): Likewise.
58121         * lib/vasnprintf.h (__attribute__): Likewise.
58122         * lib/xalloc.h (__attribute__): Likewise.
58123         * lib/xprintf.h (__attribute__): Likewise.
58124         * lib/xstrtol.h (__attribute__): Likewise.
58125         * lib/xvasprintf.h (__attribute__): Likewise.
58126
58127 2008-01-12  Bruno Haible  <bruno@clisp.org>
58128
58129         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58130         * doc/glibc-headers/a.out.texi: New file.
58131         * doc/glibc-headers/aliases.texi: New file.
58132         * doc/glibc-headers/alloca.texi: New file.
58133         * doc/glibc-headers/ar.texi: New file.
58134         * doc/glibc-headers/argp.texi: New file.
58135         * doc/glibc-headers/argz.texi: New file.
58136         * doc/glibc-headers/byteswap.texi: New file.
58137         * doc/glibc-headers/crypt.texi: New file.
58138         * doc/glibc-headers/endian.texi: New file.
58139         * doc/glibc-headers/envz.texi: New file.
58140         * doc/glibc-headers/err.texi: New file.
58141         * doc/glibc-headers/error.texi: New file.
58142         * doc/glibc-headers/execinfo.texi: New file.
58143         * doc/glibc-headers/fpu_control.texi: New file.
58144         * doc/glibc-headers/fstab.texi: New file.
58145         * doc/glibc-headers/fts.texi: New file.
58146         * doc/glibc-headers/getopt.texi: New file.
58147         * doc/glibc-headers/ieee754.texi: New file.
58148         * doc/glibc-headers/ifaddrs.texi: New file.
58149         * doc/glibc-headers/libintl.texi: New file.
58150         * doc/glibc-headers/mcheck.texi: New file.
58151         * doc/glibc-headers/mntent.texi: New file.
58152         * doc/glibc-headers/obstack.texi: New file.
58153         * doc/glibc-headers/paths.texi: New file.
58154         * doc/glibc-headers/printf.texi: New file.
58155         * doc/glibc-headers/pty.texi: New file.
58156         * doc/glibc-headers/resolv.texi: New file.
58157         * doc/glibc-headers/shadow.texi: New file.
58158         * doc/glibc-headers/sysexits.texi: New file.
58159         * doc/glibc-headers/ttyent.texi: New file.
58160
58161 2008-01-12  Jim Meyering  <meyering@redhat.com>
58162
58163         announce-gen: emit Gnulib's git-based version string.
58164         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58165         New option --gnulib-version=V, where V is expected to be
58166         the output of running git describe in the gnulib directory.
58167         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58168         not useful, and plan to stop publishing an xdelta file with each
58169         coreutils release.
58170
58171         * build-aux/announce-gen: Also check for lzma-compressed files.
58172
58173 2008-01-11  Bruno Haible  <bruno@clisp.org>
58174
58175         * tests/test-memmem.c (main): Increase maximum allowed time.
58176         * tests/test-strstr.c (main): Likewise.
58177
58178 2008-01-11  Bruno Haible  <bruno@clisp.org>
58179
58180         * doc/functions/memmem.texi: Add more precisions about platforms.
58181         * doc/functions/strstr.texi: Likewise.
58182
58183 2008-01-10  Eric Blake  <ebb9@byu.net>
58184
58185         * m4/strstr.m4: Delete cruft from copy-n-paste.
58186         Reported by Bruno Haible.
58187
58188 2008-01-10  Bruno Haible  <bruno@clisp.org>
58189
58190         Make c-strstr rely on strstr.
58191         * lib/c-strstr.c: Don't include str-kmp.h.
58192         (c_strstr): Define in terms of strstr.
58193         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58194         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58195
58196 2008-01-10  Bruno Haible  <bruno@clisp.org>
58197
58198         * doc/gnulib.texi (String Functions in C Locale): New section.
58199         * doc/c-ctype.texi: New file.
58200         * doc/c-strcase.texi: New file.
58201         * doc/c-strcaseeq.texi: New file.
58202         * doc/c-strcasestr.texi: New file.
58203         * doc/c-strstr.texi: New file.
58204         * doc/c-strtod.texi: New file.
58205         * doc/c-strtold.texi: New file.
58206
58207 2008-01-10  Eric Blake  <ebb9@byu.net>
58208
58209         * lib/relocatable.h: Fix a comment.
58210
58211 2008-01-10  Eric Blake  <ebb9@byu.net>
58212
58213         Share two-way algorithm.
58214         * lib/str-two-way.h: New file, merged from...
58215         * lib/memmem.c: ...here...
58216         * lib/strstr.c: ...and here.
58217         * modules/memmem (Files): Use it.
58218         * modules/strstr (Files): Likewise.
58219
58220         Avoid quadratic strstr implementations.
58221         * lib/strstr.c: New file.
58222         * m4/strstr.m4: Likewise.
58223         * modules/strstr: Likewise.
58224         * modules/strstr-tests: Likewise.
58225         * tests/test-strstr.c: Likewise.
58226         * lib/string.in.h (rpl_strstr): Declare.
58227         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58229         * modules/string (Makefile.am): Likewise.
58230         * MODULES.html.sh (string handling): Mention new module.
58231         * doc/functions/strstr.texi (strstr): Document the bug.
58232
58233 2008-01-10  Bruno Haible  <bruno@clisp.org>
58234
58235         * lib/relocatable.h (relocate): State whether result is freshly
58236         allocated or not.
58237         * lib/relocatable.c (relocate): Return a freshly allocated string
58238         instead of a pointer to a privately held string.
58239         Reported by Sylvain Beucler <beuc@gnu.org>.
58240
58241 2008-01-10  Colin Watson  <cjwatson@debian.org>
58242
58243         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58244         s/S_ISNLK/S_ISLNK/.
58245
58246 2008-01-09  Bruno Haible  <bruno@clisp.org>
58247
58248         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58249         and other files.
58250         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58251         if it's only a guess.
58252         * modules/memmem: Simplify by depending on memmem-simple.
58253
58254 2008-01-09  Bruno Haible  <bruno@clisp.org>
58255
58256         Work around OpenBSD 4.0 tdelete() bug.
58257         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58258         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58259         macros and don't redefine the enum values.
58260         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58261         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58262         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58263
58264 2008-01-09  Bruno Haible  <bruno@clisp.org>
58265
58266         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58267         (main): Don't perform the tests if setlocale did not install a UTF-8
58268         locale. Needed on OpenBSD 4.0.
58269         * modules/wcwidth-tests (Depends-on): Add localcharset.
58270
58271 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58272
58273         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58274         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58275         * NEWS: announce this.
58276         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58277
58278 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58279         and Eric Blake  <ebb9@byu.net>
58280
58281         Add memmem-simple module.
58282         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58283         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58284         * modules/memmem-simple: New file.
58285         * modules/memmem (Description): Tweak.
58286         * MODULES.html.sh (string handling): Mention new module.
58287         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58288         addressed by memmem-simple.
58289         * NEWS: Document the difference.
58290
58291 2008-01-09  Eric Blake  <ebb9@byu.net>
58292
58293         Give gcc some memmem optimization hints.
58294         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58295         (strcasestr): Declare as pure.
58296         * modules/memmem (Maintainer): Claim my implementation.
58297
58298 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58299
58300         Support AIX 6.1 and higher.
58301         * build-aux/config.libpath: Likewise.
58302         * build-aux/config.rpath: Likewise.
58303
58304 2008-01-08  Jim Meyering  <meyering@redhat.com>
58305             Bruno Haible  <bruno@clisp.org>
58306
58307         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58308         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58309         Reported by Peter Fales in
58310         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58311
58312 2008-01-08  Bruno Haible  <bruno@clisp.org>
58313
58314         * modules/unictype/category-of (Depends-on): Add
58315         unictype/category-none.
58316         * modules/unictype/category-and-tests (Depends-on): Add
58317         unictype/category-{L,N,Lu,Nd}.
58318         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58319         * modules/unictype/category-or-tests (Depends-on): Add
58320         unictype/category-{L,N}.
58321         * modules/unictype/category-name-tests (Depends-on): Add
58322         unictype/category-{Z,Nl}.
58323         Reported by Simon Josefsson.
58324
58325 2008-01-08  Bruno Haible  <bruno@clisp.org>
58326
58327         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58328         convention better.
58329         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58330         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58331         Reported by Peter Miller <millerp@canb.auug.org.au>.
58332
58333 2008-01-08  Eric Blake  <ebb9@byu.net>
58334
58335         Rewrite memmem to guarantee linear complexity without malloc.
58336         * lib/memmem.c (memmem): Use Two-Way rather than
58337         Knuth-Morris-Pratt, to allow O(1) space usage.
58338         (critical_factorization, two_way_short_needle)
58339         (two_way_long_needle): New functions.
58340         (knuth_morris_pratt): Delete.
58341         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58342         Add stdint.
58343         * tests/test-memmem.c (main): Add tests for periodic needle and
58344         sublinear performance.
58345         * doc/functions/memmem.texi (memmem): Document other deficiencies
58346         in cygwin and older glibc.
58347
58348 2008-01-08  Bruno Haible  <bruno@clisp.org>
58349
58350         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58351         augmentation.
58352
58353 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58354
58355         Add a configure time option: --disable-acl.
58356         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58357         AC_ARG_ENABLE(acl).
58358
58359 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58360
58361         * tests/test-localename.c: Don't include obsolete "setenv.h".
58362
58363         * modules/localename-tests (Depends-on): Need unsetenv.
58364
58365 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58366
58367         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58368
58369 2008-01-06  Colin Watson  <cjwatson@debian.org>
58370
58371         * users.txt: Add man-db.
58372
58373 2008-01-07  Bruno Haible  <bruno@clisp.org>
58374
58375         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58376         previous section name.
58377
58378 2008-01-07  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/progname.c (set_program_name): Don't strip off a leading
58381         "lt-" prefix outside a .libs directory.
58382         Suggested by Paul Eggert.
58383
58384 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58385             Bruno Haible  <bruno@clisp.org>
58386
58387         Improve memory cleanup in 'relocatable' module.
58388         * lib/relocatable.h (compute_curr_prefix): Change return type to
58389         'char *'.
58390         * lib/relocatable.c (compute_curr_prefix): Change return type to
58391         'char *'. Free curr_installdir after use.
58392         (relocate): Free curr_prefix_better after use.
58393         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58394
58395 2008-01-01  Bruno Haible  <bruno@clisp.org>
58396
58397         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58398         failure on older glibc systems.
58399         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58400
58401 2008-01-05  Eric Blake  <ebb9@byu.net>
58402
58403         Avoid quadratic system memmem.
58404         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58405         Reported by Ralf Wildenhues.
58406
58407         Fix memmem test for mingw.
58408         * modules/memmem-tests (configure.ac): Check for alarm.
58409         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58410         it.
58411         * doc/functions/memmem.texi: New file.
58412         * doc/gnulib.texi (Function Substitutes): Add memmem.
58413         Reported by Bruno Haible.
58414
58415 2008-01-04  Bruno Haible  <bruno@clisp.org>
58416
58417         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58418         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58419         gl_HEADER_STRING_H_DEFAULTS.
58420
58421 2008-01-04  Eric Blake  <ebb9@byu.net>
58422
58423         Shorten duration of memmem test.
58424         * tests/test-memmem.c (main): Use alarm to declare failure if test
58425         is taking too long.
58426         Reported by Ralf Wildenhues.
58427
58428 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58429
58430         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58431         string, needed by strerror.
58432
58433 2008-01-03  Colin Watson  <cjwatson@debian.org>
58434             Bruno Haible  <bruno@clisp.org>
58435
58436         * doc/gnulib-tool.texi (Localization): New section.
58437
58438 2008-01-02  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58441         variables to 'unsigned char *' type.
58442         Reported by Paul Eggert.
58443
58444 2008-01-02  Jim Meyering  <jim@meyering.net>
58445
58446         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58447
58448 2007-12-31  Jim Meyering  <jim@meyering.net>
58449
58450         Avoid use of private FTS type name.
58451         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58452
58453 2007-12-30  Karl Berry  <karl@gnu.org>
58454
58455         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58456         work around defect in Texinfo and/or the standalone Info browser.
58457
58458 2007-12-30  Bruno Haible  <bruno@clisp.org>
58459
58460         Unify 5 copies of the KMP code.
58461         * lib/str-kmp.h: New file.
58462         * lib/c-strcasestr.c: Include str-kmp.h.
58463         (knuth_morris_pratt): Remove function.
58464         (c_strcasestr): Update.
58465         * lib/c-strstr.c: Include str-kmp.h.
58466         (knuth_morris_pratt): Remove function.
58467         (c_strcasestr): Update.
58468         * lib/mbscasestr.c: Include str-kmp.h.
58469         (knuth_morris_pratt_unibyte): Remove function.
58470         * lib/mbsstr.c: Include str-kmp.h.
58471         (knuth_morris_pratt_unibyte): Remove function.
58472         * lib/strcasestr.c: Include str-kmp.h.
58473         (knuth_morris_pratt): Remove function.
58474         (strcasestr): Update.
58475         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58476         * modules/c-strstr (Files): Likewise.
58477         * modules/mbscasestr (Files): Likewise.
58478         * modules/mbsstr (Files): Likewise.
58479         * modules/strcasestr (Files): Likewise.
58480         Suggested by Paul Eggert.
58481
58482 2007-12-30  Bruno Haible  <bruno@clisp.org>
58483
58484         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58485         defined.
58486
58487 2007-12-30  Bruno Haible  <bruno@clisp.org>
58488
58489         * lib/xmalloca.h: Include xalloc.h.
58490         (xnmalloca): New macro.
58491
58492 2007-12-30  Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/malloca.h (nmalloca): New macro.
58495         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58496         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58497         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58498         knuth_morris_pratt_multibyte): Likewise.
58499         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58500         knuth_morris_pratt_multibyte): Likewise.
58501         * lib/memmem.c (knuth_morris_pratt): Likewise.
58502         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58503
58504 2007-12-25  Bruno Haible  <bruno@clisp.org>
58505
58506         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58507         * lib/glob.c: Don't include openat.h.
58508         (link_exists2_p): Add back the code that deals with the
58509         !GLOB_ALTDIRFUNC case.
58510         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58511         let it do the filename concatenation.
58512         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58513         * modules/glob (Depends-on): Remove openat.
58514
58515 2007-12-31  Bruno Haible  <bruno@clisp.org>
58516
58517         * modules/dirfd (License): Change to LGPLv2+.
58518         Approved by Jim Meyering.
58519
58520 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58521
58522         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58523         when multiplying M by sizeof (size_t).
58524
58525 2007-12-10  Martin Lambers  <marlam@marlam.de>
58526
58527         Override getpagesize on mingw.
58528         * lib/getpagesize.c: New file.
58529         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58530         * modules/getpagesize (Files): Add lib/getpagesize.c.
58531         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58533         REPLACE_GETPAGESIZE.
58534         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58535
58536 2007-12-25  Bruno Haible  <bruno@clisp.org>
58537
58538         * modules/localcharset (Notice): New field.
58539         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58540         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58541
58542 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58543             Bruno Haible  <bruno@clisp.org>
58544
58545         Avoid using the syntax symbol() in formatted documentation.
58546         * MODULES.html.sh (func_module): When replacing symbol() with a
58547         hyperlink, remove the parentheses. Show an error if some remain.
58548         Recognize and render the '...' syntax.
58549         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58550         Rework. Add paragraph about GCC's inlining.
58551         * doc/alloca.texi: Likewise.
58552         * doc/error.texi: Remove parentheses from symbol reference.
58553         * doc/gnulib-intro.texi: Likewise.
58554         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58555         * modules/fnmatch (Description): Reword to say "the ... function".
58556         * modules/full-read (Description): Likewise.
58557         * modules/full-write (Description): Likewise.
58558         * modules/safe-read (Description): Likewise.
58559         * modules/safe-write (Description): Likewise.
58560         * modules/strchrnul (Description): Likewise.
58561         * modules/trim (Description): Likewise.
58562         * modules/error (Description): Remove parentheses from symbol
58563         references.
58564         * modules/verror (Description): Likewise.
58565         Reported by Karl Berry.
58566
58567 2007-12-25  Bruno Haible  <bruno@clisp.org>
58568
58569         Fixup after 2007-10-16 commit.
58570         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58571
58572 2007-12-24  Bruno Haible  <bruno@clisp.org>
58573
58574         Make --enable-relocatable work with DESTDIR.
58575         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58576         to compute installdir from destprog.
58577         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58578         also set the RELOC_DESTDIR variable.
58579         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58580
58581 2007-12-24  Bruno Haible  <bruno@clisp.org>
58582
58583         Fix link error due to xalloc_die().
58584         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58585         of xreadlink.
58586         * lib/relocwrapper.c: Update comments.
58587         * build-aux/install-reloc: Remove xreadlink.c from file list.
58588         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58589         xreadlink.c.
58590         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58591
58592 2007-12-24  Bruno Haible  <bruno@clisp.org>
58593
58594         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58595         * lib/setenv.h: Remove file.
58596         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58597         lib/setenv.h.
58598         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58599         (Depends-on): Add stdlib.
58600         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58601         gl_FUNC_UNSETENV.
58602         (Include): Replace setenv.h with <stdlib.h>.
58603         * modules/unsetenv: New file.
58604         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58605         * lib/unsetenv.c: Include <stdlib.h> first.
58606         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58607         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58608         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58609         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58610         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58611         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58613         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58614         * doc/functions/unsetenv.texi: Update.
58615         * modules/xsetenv (Depends-on): Add unsetenv.
58616         * modules/getdate (Depends-on): Likewise.
58617         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58618         * lib/xsetenv.c: Don't include setenv.h.
58619         * lib/getdate.y: Likewise.
58620         * lib/relocwrapper.c: Likewise.
58621         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58622         (Depends-on): Add stdlib.
58623         * NEWS: Mention the changes.
58624         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58625
58626 2007-12-23  Bruno Haible  <bruno@clisp.org>
58627
58628         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58629         indentation.
58630
58631 2007-12-23  Bruno Haible  <bruno@clisp.org>
58632
58633         * lib/c-strcasestr.c: Add more comments.
58634         * lib/c-strstr.c: Likewise.
58635         * lib/mbscasestr.c: Likewise.
58636         * lib/mbsstr.c: Likewise.
58637         * lib/strcasestr.c: Likewise.
58638         * lib/memmem.c: Likewise.
58639
58640 2007-12-23  Bruno Haible  <bruno@clisp.org>
58641
58642         * tests/test-memmem.c: Include <string.h> first.
58643
58644 2007-12-22  Bruno Haible  <bruno@clisp.org>
58645
58646         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58647         the contents of $testsbase.
58648         Reported by Ralf Wildenhues.
58649
58650 2007-12-22  Bruno Haible  <bruno@clisp.org>
58651
58652         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58653         two variables local_ldadd_before, local_ldadd_last.
58654
58655 2007-12-20  Eric Blake  <ebb9@byu.net>
58656
58657         Work around circular library issue when cross-compiling.
58658         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58659         that progname.o does not need to pull in rpl_memcmp.
58660
58661 2007-12-19  Eric Blake  <ebb9@byu.net>
58662
58663         Fix memmem to avoid O(n^2) worst-case complexity.
58664         * lib/memmem.c (knuth_morris_pratt): New function.
58665         (memmem): Use it if first few naive iterations fail.
58666         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58667         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58668         * modules/memchr (License): Likewise.
58669         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58670         malloca.
58671         * tests/test-memmem.c: Rewrite, borrowing ideas from
58672         test-mbsstr1.c; the old version wouldn't even compile!
58673         * modules/memmem-tests: New file.
58674         * lib/string.in.h (rpl_memmem): Add declaration.
58675         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58677         REPLACE_MEMMEM.
58678
58679 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58680
58681         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58682         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58683         before any system include files, and undef after them all.  This
58684         should fix a problem on VMS reported by John E. Malmberg in
58685         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58686
58687 2007-12-17  Eric Blake  <ebb9@byu.net>
58688
58689         Revert addition of verify, for BSD/OS.
58690         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58691         can't handle large files, for the sake of obsolete platforms.
58692         * modules/fseeko (Depends-on): Remove verify.
58693         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58694         * doc/functions/ftello.texi (ftello): Likewise.
58695         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58696         Reported by Larry Jones.
58697
58698 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58699
58700         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58701         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58702
58703 2007-12-17  Jim Meyering  <meyering@redhat.com>
58704
58705         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58706         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58707         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58708         * modules/getcwd (Depends-on): Add openat.
58709         Reported by Petr Salinger.
58710
58711 2007-12-17  Bruno Haible  <bruno@clisp.org>
58712
58713         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58714         avoid a segmentation fault of the configure test on x86_64 systems.
58715
58716 2007-12-15  Jim Meyering  <meyering@redhat.com>
58717
58718         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58719
58720 2007-12-13  Eric Blake  <ebb9@byu.net>
58721
58722         Another fseek test.
58723         * tests/test-fseek.c (main): Also test ungetc handling.
58724         * tests/test-fseeko.c (main): Likewise.
58725         * modules/fseeko (Depends-on): Add verify.
58726         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58727         large.
58728         Reported by Larry Jones.
58729
58730         Fix fseeko on mingw.
58731         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58732         seek.
58733
58734         Beef up fseek tests.
58735         * tests/test-fseek.c (main): Also test eof handling.
58736         * tests/test-fseeko.c (main): Likewise.
58737         Reported by Larry Jones.
58738
58739 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58740
58741         Fix fseeko on BSD-based platforms.
58742         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58743         successful seek.
58744
58745 2007-12-12  Eric Blake  <ebb9@byu.net>
58746
58747         Allow circular dependency of separate libtests.a
58748         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58749         when use_libtests.
58750
58751 2007-12-11  Eric Blake  <ebb9@byu.net>
58752
58753         Fix bug with -0.0L in previous patch.
58754         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58755         * tests/test-isnan.c (main): Also test on zeroes.
58756         * tests/test-isnanf.c (main): Likewise.
58757         * tests/test-isnanl.h (main): Likewise.
58758
58759         Detect pseudo-denormals on x86 even when cross-compiling.
58760         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58761         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58762         invalid bit patterns that happen to satisfy ==.
58763
58764         Avoid link failures with separate libtests.a.
58765         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58766         last, to satisfy circular dependencies.
58767
58768 2007-12-11  Eric Blake  <ebb9@byu.net>
58769         and Bruno Haible  <bruno@clisp.org>
58770
58771         Fix OpenBSD 4.0 <float.h> handling of long double.
58772         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58773         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58774         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58775
58776 2007-12-11  Jim Meyering  <meyering@redhat.com>
58777
58778         * users.txt: Add libvirt.
58779
58780         Support versions of autoconf prior to 2.59c.
58781         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58782         if it is not already defined.
58783
58784 2007-12-09  Bruno Haible  <bruno@clisp.org>
58785
58786         Let 'gnulib-tool --import' collect sources needed for the tests in
58787         tests/ rather than in lib/.
58788         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58789         argument. If true, add rules to generate libtests.a, and put libtests.a
58790         into $(LDADD). Consider source files in subdirectories and set
58791         uses_subdirs.
58792         (func_emit_initmacro_start, func_emit_initmacro_end,
58793         func_emit_initmacro_done): Pass all arguments explicitly.
58794         (func_import): Determine two module lists main_modules,
58795         testsrelated_modules. Determine use_libtests. Determine two variables
58796         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58797         instead of just sed_transform_lib_file. Determine two variables
58798         main_files and testsrelated_files. Compute 'files' as the union of
58799         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58800         func_add_or_update. In the generated gnulib-comp.m4, collect the
58801         object files for tests/ in different variables than those for lib/.
58802         Substitute LIBTESTS_LIBDEPS.
58803         (func_create_testdir): Combine the uses_subdirs results from
58804         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58805
58806 2007-12-09  Bruno Haible  <bruno@clisp.org>
58807
58808         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58809         the build-aux directory.
58810
58811 2007-12-09  Bruno Haible  <bruno@clisp.org>
58812
58813         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58814         introduced on 2006-09-09.
58815
58816 2007-12-07  Jim Meyering  <meyering@redhat.com>
58817
58818         Let these macros work also with autoconf-2.59.
58819         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58820         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58821         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58822
58823 2007-12-06  Jim Meyering  <meyering@redhat.com>
58824
58825         Avoid a configure-time syntax error in gl_FUNC_ACL.
58826         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58827         function in each branch, before testing the cache variable.
58828
58829 2007-12-04  Eric Blake  <ebb9@byu.net>
58830
58831         Make scripts executable.
58832         * build-aux/config.guess: Add execute permissions.
58833         * build-aux/config.sub: Likewise.
58834         * build-aux/gendocs.sh: Likewise.
58835
58836         Fix frexp on mingw.
58837         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58838         cross-compiling.
58839         * doc/functions/frexp.texi (frexp): Document the bug.
58840
58841         Make cygwin fseeko check more reliable.
58842         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58843         version numbers, rather than unrelated feature check.
58844         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58845         * doc/functions/ftello.texi (ftello): Likewise.
58846         Reported by Bruno Haible.
58847
58848         * m4/strerror.m4: Bump version number.
58849
58850 2007-12-03  Bruno Haible  <bruno@clisp.org>
58851
58852         * doc/functions/mprotect.texi: Mention the mingw problem.
58853
58854 2007-12-03  Eric Blake  <ebb9@byu.net>
58855
58856         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58857         REPLACE_STRERROR is initialized before this macro.
58858
58859 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58860
58861         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58862         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58863         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58864         put -lsec in even for programs other than 'ls'.  This fixes a problem
58865         for gettext reported by Bruno Haible in
58866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58867         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58868         Add support for Solaris 10.  This isn't efficient, but should get the
58869         job done for now.
58870
58871 2007-12-03  James Youngman  <jay@gnu.org>
58872
58873         * doc/regexprops-generic.texi: change "an close-group" to "a
58874         close-group" and "illegal" to "not allowed".
58875
58876 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58877
58878         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58879         pr_byname.h. Needed for the rare case when the maintainer has done
58880         "make maintainer-clean" in the source directory and then attempts a
58881         build outside the source directory.
58882         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58883         scripts_byname.h.
58884
58885 2007-12-02  Martin Lambers <marlam@marlam.de>
58886             Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/getpagesize.h: Remove file.
58889         * lib/unistd.in.h: Include declaration of getpagesize here.
58890         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58891         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58892         HAVE_SYS_PARAM_H.
58893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58894         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58895         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58896         (Depends-on): Add unistd.
58897         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58898         (Include): Use <unistd.h> instead of getpagesize.h.
58899         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58900         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58901         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58902         gl_GETPAGESIZE invocation, already handled by module dependency.
58903         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58904
58905 2007-12-02  Bruno Haible  <bruno@clisp.org>
58906
58907         * modules/strings-tests: New file.
58908         * tests/test-strings.c: New file.
58909
58910         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58911         * lib/strings.in.h: New file.
58912         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58913         * m4/strings_h.m4: New file.
58914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58915         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58916         * modules/strings: New file.
58917         * modules/string (Makefile.am): Update.
58918         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58919         Reported by Karl Berry.
58920
58921 2007-12-01  Eric Blake  <ebb9@byu.net>
58922
58923         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58924         accomodate fix in cygwin 1.5.25.
58925
58926 2007-12-01  Jim Meyering  <meyering@redhat.com>
58927
58928         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58929         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58930         that would inhibit utf8-optimization of a regexp containing line-
58931         or buffer-anchors, e.g., `^', `$'.
58932
58933 2007-11-30  Bruno Haible  <bruno@clisp.org>
58934
58935         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58936         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58937         glthread_recursive_lock_init.
58938         * lib/lock.c (glthread_recursive_lock_init)
58939         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58940         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58941
58942 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58943
58944         New function qset_acl, like set_acl but with syscall semantics.
58945         * lib/acl.h (qset_acl): New decl.
58946         * lib/acl.c (qset_acl): New function.
58947         (set_acl): Use new function.  Use more-consistent diagnostics.
58948
58949 2007-11-28  Jim Meyering  <meyering@redhat.com>
58950
58951         * modules/physmem (License): Change from GPL to LGPLv2+.
58952
58953 2007-11-26  Bruno Haible  <bruno@clisp.org>
58954
58955         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58956         'long double' type has excess precision.
58957         Reported by Jim Meyering in
58958         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58959
58960 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58961
58962         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58963         Sync from <http://gnu.org/licenses>.
58964         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58965         with license text from same location.
58966         * doc/maintain.texi, doc/standards.texi:  Sync from
58967         <http://savannah.gnu.org/projects/gnustandards>.
58968
58969 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58970         and Jim Meyering  <meyering@redhat.com>
58971
58972         Adjust getdate' grammar to accept a slightly more regular language.
58973         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58974         Before, the former was rejected.
58975         * lib/getdate.y (digits_to_date_time): New function, factored
58976         out of ...
58977         (number): ...here.  Just call digits_to_date_time.
58978         (hybrid): New non-terminal to handle an <unsigned number,
58979         signed relative offset> sequence consistently.
58980
58981 2007-11-18  Jim Meyering  <meyering@redhat.com>
58982
58983         Pull my changes from coreutils:
58984         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58985         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58986         use of $gnulib_tool_option_extras, so that it's separated from the
58987         preceding argument.
58988
58989         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58990         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58991         parent destination directories before copying a file into place.
58992
58993 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58994
58995         bootstrap: work also with 4-argument variant of AC_INIT
58996         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58997
58998 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58999
59000         Port test-getaddrinfo to Solaris.
59001         Problem reported by Bruno Haible in
59002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59003         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59004         explanation of setting 'hints'.
59005         Don't reject an implementation merely because it returns EAI_SERVICE.
59006         (EAI_SERVICE): Define to 0 if not defined.
59007
59008 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59009
59010         The license of gnu-make and posix-shell is now "GPLed build tool".
59011         * modules/gnu-make (License): Likewise.
59012         * modules/posix-shell (License): Likewise.
59013
59014         New module posix-shell, for determining a POSIX shell
59015         or perhaps something that is close enough to a POSIX shell.
59016         * m4/posix-shell.m4: New file.
59017         * modules/posix-shell: New file.
59018
59019         * MODULES.html.sh: Mention new module.
59020
59021         New module gnu-make, for determining whether we're using GNU Make.
59022         * m4/gnu-make.m4: New file.
59023         * modules/gnu-make: New file.
59024         * MODULES.html.sh: Mention new module.
59025
59026 2007-11-14  Jim Meyering  <meyering@redhat.com>
59027
59028         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59029         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59030         use this macro to create a function _definition_.
59031         Remove useless "#undef ARGMATCH_DIE".
59032
59033 2007-11-14  Bruno Haible  <bruno@clisp.org>
59034
59035         * lib/config.charset: Update for OpenBSD 4.1.
59036         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59037
59038 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         Document 64-bit #if problems in stdint.texi.
59041         * doc/headers/stdint.texi (stdint.h): Mention problems with
59042         64-bit-#if, and how to work around them.
59043
59044         Don't insist on 'long long int' support in the preprocessor.  It
59045         breaks too many things.  For example, PRIdMAX still uses a 'long
59046         long int' format with the latest Sun compiler, even though
59047         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59048         preprocessor problem.  This causes the latest coreutils to dump
59049         core on Solaris 10 sparc with the Sun C compiler.
59050         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59051         the troublesome expressions at configure-time, not at #if-time.
59052         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59053         preprocessor.
59054         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59055         compile-time C checks, done at 'configure'-time.
59056         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59057         * modules/inttypes (Makefile): Substitute the new symbols that
59058         gl_INTTYPES_H now generates.
59059         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59060
59061 2007-11-12  Bruno Haible  <bruno@clisp.org>
59062
59063         Tests for Unicode character classification functions.
59064
59065         * modules/unictype/bidicategory-byname-tests: New file.
59066         * modules/unictype/bidicategory-name-tests: New file.
59067         * modules/unictype/bidicategory-of-tests: New file.
59068         * modules/unictype/bidicategory-test-tests: New file.
59069         * modules/unictype/block-list-tests: New file.
59070         * modules/unictype/block-of-tests: New file.
59071         * modules/unictype/block-test-tests: New file.
59072         * modules/unictype/category-C-tests: New file.
59073         * modules/unictype/category-Cc-tests: New file.
59074         * modules/unictype/category-Cf-tests: New file.
59075         * modules/unictype/category-Cn-tests: New file.
59076         * modules/unictype/category-Co-tests: New file.
59077         * modules/unictype/category-Cs-tests: New file.
59078         * modules/unictype/category-L-tests: New file.
59079         * modules/unictype/category-Ll-tests: New file.
59080         * modules/unictype/category-Lm-tests: New file.
59081         * modules/unictype/category-Lo-tests: New file.
59082         * modules/unictype/category-Lt-tests: New file.
59083         * modules/unictype/category-Lu-tests: New file.
59084         * modules/unictype/category-M-tests: New file.
59085         * modules/unictype/category-Mc-tests: New file.
59086         * modules/unictype/category-Me-tests: New file.
59087         * modules/unictype/category-Mn-tests: New file.
59088         * modules/unictype/category-N-tests: New file.
59089         * modules/unictype/category-Nd-tests: New file.
59090         * modules/unictype/category-Nl-tests: New file.
59091         * modules/unictype/category-No-tests: New file.
59092         * modules/unictype/category-P-tests: New file.
59093         * modules/unictype/category-Pc-tests: New file.
59094         * modules/unictype/category-Pd-tests: New file.
59095         * modules/unictype/category-Pe-tests: New file.
59096         * modules/unictype/category-Pf-tests: New file.
59097         * modules/unictype/category-Pi-tests: New file.
59098         * modules/unictype/category-Po-tests: New file.
59099         * modules/unictype/category-Ps-tests: New file.
59100         * modules/unictype/category-S-tests: New file.
59101         * modules/unictype/category-Sc-tests: New file.
59102         * modules/unictype/category-Sk-tests: New file.
59103         * modules/unictype/category-Sm-tests: New file.
59104         * modules/unictype/category-So-tests: New file.
59105         * modules/unictype/category-Z-tests: New file.
59106         * modules/unictype/category-Zl-tests: New file.
59107         * modules/unictype/category-Zp-tests: New file.
59108         * modules/unictype/category-Zs-tests: New file.
59109         * modules/unictype/category-and-not-tests: New file.
59110         * modules/unictype/category-and-tests: New file.
59111         * modules/unictype/category-byname-tests: New file.
59112         * modules/unictype/category-name-tests: New file.
59113         * modules/unictype/category-none-tests: New file.
59114         * modules/unictype/category-of-tests: New file.
59115         * modules/unictype/category-or-tests: New file.
59116         * modules/unictype/category-test-withtable-tests: New file.
59117         * modules/unictype/combining-class-tests: New file.
59118         * modules/unictype/ctype-alnum-tests: New file.
59119         * modules/unictype/ctype-alpha-tests: New file.
59120         * modules/unictype/ctype-blank-tests: New file.
59121         * modules/unictype/ctype-cntrl-tests: New file.
59122         * modules/unictype/ctype-digit-tests: New file.
59123         * modules/unictype/ctype-graph-tests: New file.
59124         * modules/unictype/ctype-lower-tests: New file.
59125         * modules/unictype/ctype-print-tests: New file.
59126         * modules/unictype/ctype-punct-tests: New file.
59127         * modules/unictype/ctype-space-tests: New file.
59128         * modules/unictype/ctype-upper-tests: New file.
59129         * modules/unictype/ctype-xdigit-tests: New file.
59130         * modules/unictype/decimal-digit-tests: New file.
59131         * modules/unictype/digit-tests: New file.
59132         * modules/unictype/mirror-tests: New file.
59133         * modules/unictype/numeric-tests: New file.
59134         * modules/unictype/property-alphabetic-tests: New file.
59135         * modules/unictype/property-ascii-hex-digit-tests: New file.
59136         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59137         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59138         * modules/unictype/property-bidi-block-separator-tests: New file.
59139         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59140         * modules/unictype/property-bidi-common-separator-tests: New file.
59141         * modules/unictype/property-bidi-control-tests: New file.
59142         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59143         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59144         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59145         * modules/unictype/property-bidi-european-digit-tests: New file.
59146         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59147         * modules/unictype/property-bidi-left-to-right-tests: New file.
59148         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59149         * modules/unictype/property-bidi-other-neutral-tests: New file.
59150         * modules/unictype/property-bidi-pdf-tests: New file.
59151         * modules/unictype/property-bidi-segment-separator-tests: New file.
59152         * modules/unictype/property-bidi-whitespace-tests: New file.
59153         * modules/unictype/property-byname-tests: New file.
59154         * modules/unictype/property-combining-tests: New file.
59155         * modules/unictype/property-composite-tests: New file.
59156         * modules/unictype/property-currency-symbol-tests: New file.
59157         * modules/unictype/property-dash-tests: New file.
59158         * modules/unictype/property-decimal-digit-tests: New file.
59159         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59160         * modules/unictype/property-deprecated-tests: New file.
59161         * modules/unictype/property-diacritic-tests: New file.
59162         * modules/unictype/property-extender-tests: New file.
59163         * modules/unictype/property-format-control-tests: New file.
59164         * modules/unictype/property-grapheme-base-tests: New file.
59165         * modules/unictype/property-grapheme-extend-tests: New file.
59166         * modules/unictype/property-grapheme-link-tests: New file.
59167         * modules/unictype/property-hex-digit-tests: New file.
59168         * modules/unictype/property-hyphen-tests: New file.
59169         * modules/unictype/property-id-continue-tests: New file.
59170         * modules/unictype/property-id-start-tests: New file.
59171         * modules/unictype/property-ideographic-tests: New file.
59172         * modules/unictype/property-ids-binary-operator-tests: New file.
59173         * modules/unictype/property-ids-trinary-operator-tests: New file.
59174         * modules/unictype/property-ignorable-control-tests: New file.
59175         * modules/unictype/property-iso-control-tests: New file.
59176         * modules/unictype/property-join-control-tests: New file.
59177         * modules/unictype/property-left-of-pair-tests: New file.
59178         * modules/unictype/property-line-separator-tests: New file.
59179         * modules/unictype/property-logical-order-exception-tests: New file.
59180         * modules/unictype/property-lowercase-tests: New file.
59181         * modules/unictype/property-math-tests: New file.
59182         * modules/unictype/property-non-break-tests: New file.
59183         * modules/unictype/property-not-a-character-tests: New file.
59184         * modules/unictype/property-numeric-tests: New file.
59185         * modules/unictype/property-other-alphabetic-tests: New file.
59186         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59187         * modules/unictype/property-other-grapheme-extend-tests: New file.
59188         * modules/unictype/property-other-id-continue-tests: New file.
59189         * modules/unictype/property-other-id-start-tests: New file.
59190         * modules/unictype/property-other-lowercase-tests: New file.
59191         * modules/unictype/property-other-math-tests: New file.
59192         * modules/unictype/property-other-uppercase-tests: New file.
59193         * modules/unictype/property-paired-punctuation-tests: New file.
59194         * modules/unictype/property-paragraph-separator-tests: New file.
59195         * modules/unictype/property-pattern-syntax-tests: New file.
59196         * modules/unictype/property-pattern-white-space-tests: New file.
59197         * modules/unictype/property-private-use-tests: New file.
59198         * modules/unictype/property-punctuation-tests: New file.
59199         * modules/unictype/property-quotation-mark-tests: New file.
59200         * modules/unictype/property-radical-tests: New file.
59201         * modules/unictype/property-sentence-terminal-tests: New file.
59202         * modules/unictype/property-soft-dotted-tests: New file.
59203         * modules/unictype/property-space-tests: New file.
59204         * modules/unictype/property-terminal-punctuation-tests: New file.
59205         * modules/unictype/property-test-tests: New file.
59206         * modules/unictype/property-titlecase-tests: New file.
59207         * modules/unictype/property-unassigned-code-value-tests: New file.
59208         * modules/unictype/property-unified-ideograph-tests: New file.
59209         * modules/unictype/property-uppercase-tests: New file.
59210         * modules/unictype/property-variation-selector-tests: New file.
59211         * modules/unictype/property-white-space-tests: New file.
59212         * modules/unictype/property-xid-continue-tests: New file.
59213         * modules/unictype/property-xid-start-tests: New file.
59214         * modules/unictype/property-zero-width-tests: New file.
59215         * modules/unictype/scripts-tests: New file.
59216         * modules/unictype/syntax-c-ident-tests: New file.
59217         * modules/unictype/syntax-c-whitespace-tests: New file.
59218         * modules/unictype/syntax-java-ident-tests: New file.
59219         * modules/unictype/syntax-java-whitespace-tests: New file.
59220         * tests/unictype/test-bidi_byname.c: New file.
59221         * tests/unictype/test-bidi_name.c: New file.
59222         * tests/unictype/test-bidi_of.c: New file.
59223         * tests/unictype/test-bidi_test.c: New file.
59224         * tests/unictype/test-block_list.c: New file.
59225         * tests/unictype/test-block_of.c: New file.
59226         * tests/unictype/test-block_test.c: New file.
59227         * tests/unictype/test-categ_and.c: New file.
59228         * tests/unictype/test-categ_and_not.c: New file.
59229         * tests/unictype/test-categ_byname.c: New file.
59230         * tests/unictype/test-categ_name.c: New file.
59231         * tests/unictype/test-categ_none.c: New file.
59232         * tests/unictype/test-categ_of.c: New file.
59233         * tests/unictype/test-categ_or.c: New file.
59234         * tests/unictype/test-categ_test_withtable.c: New file.
59235         * tests/unictype/test-combining.c: New file.
59236         * tests/unictype/test-decdigit.c: New file.
59237         * tests/unictype/test-digit.c: New file.
59238         * tests/unictype/test-mirror.c: New file.
59239         * tests/unictype/test-numeric.c: New file.
59240         * tests/unictype/test-pr_byname.c: New file.
59241         * tests/unictype/test-pr_test.c: New file.
59242         * tests/unictype/test-predicate-part1.h: New file.
59243         * tests/unictype/test-predicate-part2.h: New file.
59244         * tests/unictype/test-scripts.c: New file.
59245         * tests/unictype/test-sy_c_ident.c: New file.
59246         * tests/unictype/test-sy_java_ident.c: New file.
59247
59248         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59249         for Unicode 5.0.0.
59250         * tests/unictype/test-categ_Cc.c: Likewise.
59251         * tests/unictype/test-categ_Cf.c: Likewise.
59252         * tests/unictype/test-categ_Cn.c: Likewise.
59253         * tests/unictype/test-categ_Co.c: Likewise.
59254         * tests/unictype/test-categ_Cs.c: Likewise.
59255         * tests/unictype/test-categ_L.c: Likewise.
59256         * tests/unictype/test-categ_Ll.c: Likewise.
59257         * tests/unictype/test-categ_Lm.c: Likewise.
59258         * tests/unictype/test-categ_Lo.c: Likewise.
59259         * tests/unictype/test-categ_Lt.c: Likewise.
59260         * tests/unictype/test-categ_Lu.c: Likewise.
59261         * tests/unictype/test-categ_M.c: Likewise.
59262         * tests/unictype/test-categ_Mc.c: Likewise.
59263         * tests/unictype/test-categ_Me.c: Likewise.
59264         * tests/unictype/test-categ_Mn.c: Likewise.
59265         * tests/unictype/test-categ_N.c: Likewise.
59266         * tests/unictype/test-categ_Nd.c: Likewise.
59267         * tests/unictype/test-categ_Nl.c: Likewise.
59268         * tests/unictype/test-categ_No.c: Likewise.
59269         * tests/unictype/test-categ_P.c: Likewise.
59270         * tests/unictype/test-categ_Pc.c: Likewise.
59271         * tests/unictype/test-categ_Pd.c: Likewise.
59272         * tests/unictype/test-categ_Pe.c: Likewise.
59273         * tests/unictype/test-categ_Pf.c: Likewise.
59274         * tests/unictype/test-categ_Pi.c: Likewise.
59275         * tests/unictype/test-categ_Po.c: Likewise.
59276         * tests/unictype/test-categ_Ps.c: Likewise.
59277         * tests/unictype/test-categ_S.c: Likewise.
59278         * tests/unictype/test-categ_Sc.c: Likewise.
59279         * tests/unictype/test-categ_Sk.c: Likewise.
59280         * tests/unictype/test-categ_Sm.c: Likewise.
59281         * tests/unictype/test-categ_So.c: Likewise.
59282         * tests/unictype/test-categ_Z.c: Likewise.
59283         * tests/unictype/test-categ_Zl.c: Likewise.
59284         * tests/unictype/test-categ_Zp.c: Likewise.
59285         * tests/unictype/test-categ_Zs.c: Likewise.
59286         * tests/unictype/test-ctype_alnum.c: Likewise.
59287         * tests/unictype/test-ctype_alpha.c: Likewise.
59288         * tests/unictype/test-ctype_blank.c: Likewise.
59289         * tests/unictype/test-ctype_cntrl.c: Likewise.
59290         * tests/unictype/test-ctype_digit.c: Likewise.
59291         * tests/unictype/test-ctype_graph.c: Likewise.
59292         * tests/unictype/test-ctype_lower.c: Likewise.
59293         * tests/unictype/test-ctype_print.c: Likewise.
59294         * tests/unictype/test-ctype_punct.c: Likewise.
59295         * tests/unictype/test-ctype_space.c: Likewise.
59296         * tests/unictype/test-ctype_upper.c: Likewise.
59297         * tests/unictype/test-ctype_xdigit.c: Likewise.
59298         * tests/unictype/test-decdigit.h: Likewise.
59299         * tests/unictype/test-digit.h: Likewise.
59300         * tests/unictype/test-numeric.h: Likewise.
59301         * tests/unictype/test-pr_alphabetic.c: Likewise.
59302         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59303         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59304         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59305         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59306         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59307         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59308         * tests/unictype/test-pr_bidi_control.c: Likewise.
59309         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59310         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59311         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59312         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59313         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59314         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59315         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59316         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59317         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59318         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59319         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59320         * tests/unictype/test-pr_combining.c: Likewise.
59321         * tests/unictype/test-pr_composite.c: Likewise.
59322         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59323         * tests/unictype/test-pr_dash.c: Likewise.
59324         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59325         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59326         * tests/unictype/test-pr_deprecated.c: Likewise.
59327         * tests/unictype/test-pr_diacritic.c: Likewise.
59328         * tests/unictype/test-pr_extender.c: Likewise.
59329         * tests/unictype/test-pr_format_control.c: Likewise.
59330         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59331         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59332         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59333         * tests/unictype/test-pr_hex_digit.c: Likewise.
59334         * tests/unictype/test-pr_hyphen.c: Likewise.
59335         * tests/unictype/test-pr_id_continue.c: Likewise.
59336         * tests/unictype/test-pr_id_start.c: Likewise.
59337         * tests/unictype/test-pr_ideographic.c: Likewise.
59338         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59339         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59340         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59341         * tests/unictype/test-pr_iso_control.c: Likewise.
59342         * tests/unictype/test-pr_join_control.c: Likewise.
59343         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59344         * tests/unictype/test-pr_line_separator.c: Likewise.
59345         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59346         * tests/unictype/test-pr_lowercase.c: Likewise.
59347         * tests/unictype/test-pr_math.c: Likewise.
59348         * tests/unictype/test-pr_non_break.c: Likewise.
59349         * tests/unictype/test-pr_not_a_character.c: Likewise.
59350         * tests/unictype/test-pr_numeric.c: Likewise.
59351         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59352         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59353         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59354         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59355         * tests/unictype/test-pr_other_id_start.c: Likewise.
59356         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59357         * tests/unictype/test-pr_other_math.c: Likewise.
59358         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59359         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59360         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59361         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59362         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59363         * tests/unictype/test-pr_private_use.c: Likewise.
59364         * tests/unictype/test-pr_punctuation.c: Likewise.
59365         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59366         * tests/unictype/test-pr_radical.c: Likewise.
59367         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59368         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59369         * tests/unictype/test-pr_space.c: Likewise.
59370         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59371         * tests/unictype/test-pr_titlecase.c: Likewise.
59372         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59373         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59374         * tests/unictype/test-pr_uppercase.c: Likewise.
59375         * tests/unictype/test-pr_variation_selector.c: Likewise.
59376         * tests/unictype/test-pr_white_space.c: Likewise.
59377         * tests/unictype/test-pr_xid_continue.c: Likewise.
59378         * tests/unictype/test-pr_xid_start.c: Likewise.
59379         * tests/unictype/test-pr_zero_width.c: Likewise.
59380         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59381         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59382
59383 2007-11-12  Bruno Haible  <bruno@clisp.org>
59384
59385         Unicode character classification functions.
59386         * lib/unictype.h: New file.
59387         * modules/unictype/base: New file.
59388         * modules/unictype/category-L: New file.
59389         * modules/unictype/category-Lu: New file.
59390         * modules/unictype/category-Ll: New file.
59391         * modules/unictype/category-Lt: New file.
59392         * modules/unictype/category-Lm: New file.
59393         * modules/unictype/category-Lo: New file.
59394         * modules/unictype/category-M: New file.
59395         * modules/unictype/category-Mn: New file.
59396         * modules/unictype/category-Mc: New file.
59397         * modules/unictype/category-Me: New file.
59398         * modules/unictype/category-N: New file.
59399         * modules/unictype/category-Nd: New file.
59400         * modules/unictype/category-Nl: New file.
59401         * modules/unictype/category-No: New file.
59402         * modules/unictype/category-P: New file.
59403         * modules/unictype/category-Pc: New file.
59404         * modules/unictype/category-Pd: New file.
59405         * modules/unictype/category-Ps: New file.
59406         * modules/unictype/category-Pe: New file.
59407         * modules/unictype/category-Pi: New file.
59408         * modules/unictype/category-Pf: New file.
59409         * modules/unictype/category-Po: New file.
59410         * modules/unictype/category-S: New file.
59411         * modules/unictype/category-Sm: New file.
59412         * modules/unictype/category-Sc: New file.
59413         * modules/unictype/category-Sk: New file.
59414         * modules/unictype/category-So: New file.
59415         * modules/unictype/category-Z: New file.
59416         * modules/unictype/category-Zs: New file.
59417         * modules/unictype/category-Zl: New file.
59418         * modules/unictype/category-Zp: New file.
59419         * modules/unictype/category-C: New file.
59420         * modules/unictype/category-Cc: New file.
59421         * modules/unictype/category-Cf: New file.
59422         * modules/unictype/category-Cs: New file.
59423         * modules/unictype/category-Co: New file.
59424         * modules/unictype/category-Cn: New file.
59425         * modules/unictype/category-or: New file.
59426         * modules/unictype/category-of: New file.
59427         * modules/unictype/category-test: New file.
59428         * modules/unictype/category-test-withtable: New file.
59429         * modules/unictype/category-byname: New file.
59430         * modules/unictype/category-none: New file.
59431         * modules/unictype/category-and: New file.
59432         * modules/unictype/category-and-not: New file.
59433         * modules/unictype/category-name: New file.
59434         * modules/unictype/combining-class: New file.
59435         * modules/unictype/category-all: New file.
59436         * modules/unictype/bidicategory-all: New file.
59437         * modules/unictype/bidicategory-byname: New file.
59438         * modules/unictype/bidicategory-name: New file.
59439         * modules/unictype/bidicategory-of: New file.
59440         * modules/unictype/bidicategory-test: New file.
59441         * modules/unictype/decimal-digit: New file.
59442         * modules/unictype/digit: New file.
59443         * modules/unictype/numeric: New file.
59444         * modules/unictype/mirror: New file.
59445         * modules/unictype/property-white-space: New file.
59446         * modules/unictype/property-alphabetic: New file.
59447         * modules/unictype/property-other-alphabetic: New file.
59448         * modules/unictype/property-not-a-character: New file.
59449         * modules/unictype/property-default-ignorable-code-point: New file.
59450         * modules/unictype/property-other-default-ignorable-code-point: New
59451         file.
59452         * modules/unictype/property-deprecated: New file.
59453         * modules/unictype/property-logical-order-exception: New file.
59454         * modules/unictype/property-variation-selector: New file.
59455         * modules/unictype/property-private-use: New file.
59456         * modules/unictype/property-unassigned-code-value: New file.
59457         * modules/unictype/property-uppercase: New file.
59458         * modules/unictype/property-other-uppercase: New file.
59459         * modules/unictype/property-lowercase: New file.
59460         * modules/unictype/property-other-lowercase: New file.
59461         * modules/unictype/property-titlecase: New file.
59462         * modules/unictype/property-soft-dotted: New file.
59463         * modules/unictype/property-id-start: New file.
59464         * modules/unictype/property-other-id-start: New file.
59465         * modules/unictype/property-id-continue: New file.
59466         * modules/unictype/property-other-id-continue: New file.
59467         * modules/unictype/property-xid-start: New file.
59468         * modules/unictype/property-xid-continue: New file.
59469         * modules/unictype/property-pattern-white-space: New file.
59470         * modules/unictype/property-pattern-syntax: New file.
59471         * modules/unictype/property-join-control: New file.
59472         * modules/unictype/property-grapheme-base: New file.
59473         * modules/unictype/property-grapheme-extend: New file.
59474         * modules/unictype/property-other-grapheme-extend: New file.
59475         * modules/unictype/property-grapheme-link: New file.
59476         * modules/unictype/property-bidi-control: New file.
59477         * modules/unictype/property-bidi-left-to-right: New file.
59478         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59479         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59480         * modules/unictype/property-bidi-european-digit: New file.
59481         * modules/unictype/property-bidi-eur-num-separator: New file.
59482         * modules/unictype/property-bidi-eur-num-terminator: New file.
59483         * modules/unictype/property-bidi-arabic-digit: New file.
59484         * modules/unictype/property-bidi-common-separator: New file.
59485         * modules/unictype/property-bidi-block-separator: New file.
59486         * modules/unictype/property-bidi-segment-separator: New file.
59487         * modules/unictype/property-bidi-whitespace: New file.
59488         * modules/unictype/property-bidi-non-spacing-mark: New file.
59489         * modules/unictype/property-bidi-boundary-neutral: New file.
59490         * modules/unictype/property-bidi-pdf: New file.
59491         * modules/unictype/property-bidi-embedding-or-override: New file.
59492         * modules/unictype/property-bidi-other-neutral: New file.
59493         * modules/unictype/property-hex-digit: New file.
59494         * modules/unictype/property-ascii-hex-digit: New file.
59495         * modules/unictype/property-ideographic: New file.
59496         * modules/unictype/property-unified-ideograph: New file.
59497         * modules/unictype/property-radical: New file.
59498         * modules/unictype/property-ids-binary-operator: New file.
59499         * modules/unictype/property-ids-trinary-operator: New file.
59500         * modules/unictype/property-zero-width: New file.
59501         * modules/unictype/property-space: New file.
59502         * modules/unictype/property-non-break: New file.
59503         * modules/unictype/property-iso-control: New file.
59504         * modules/unictype/property-format-control: New file.
59505         * modules/unictype/property-dash: New file.
59506         * modules/unictype/property-hyphen: New file.
59507         * modules/unictype/property-punctuation: New file.
59508         * modules/unictype/property-line-separator: New file.
59509         * modules/unictype/property-paragraph-separator: New file.
59510         * modules/unictype/property-quotation-mark: New file.
59511         * modules/unictype/property-sentence-terminal: New file.
59512         * modules/unictype/property-terminal-punctuation: New file.
59513         * modules/unictype/property-currency-symbol: New file.
59514         * modules/unictype/property-math: New file.
59515         * modules/unictype/property-other-math: New file.
59516         * modules/unictype/property-paired-punctuation: New file.
59517         * modules/unictype/property-left-of-pair: New file.
59518         * modules/unictype/property-combining: New file.
59519         * modules/unictype/property-composite: New file.
59520         * modules/unictype/property-decimal-digit: New file.
59521         * modules/unictype/property-numeric: New file.
59522         * modules/unictype/property-diacritic: New file.
59523         * modules/unictype/property-extender: New file.
59524         * modules/unictype/property-ignorable-control: New file.
59525         * modules/unictype/property-test: New file.
59526         * modules/unictype/property-byname: New file.
59527         * modules/unictype/property-all: New file.
59528         * modules/unictype/scripts: New file.
59529         * modules/unictype/scripts-all: New file.
59530         * modules/unictype/block-of: New file.
59531         * modules/unictype/block-test: New file.
59532         * modules/unictype/block-list: New file.
59533         * modules/unictype/block-all: New file.
59534         * modules/unictype/syntax-c-whitespace: New file.
59535         * modules/unictype/syntax-java-whitespace: New file.
59536         * modules/unictype/syntax-c-ident: New file.
59537         * modules/unictype/syntax-java-ident: New file.
59538         * modules/unictype/ctype-alnum: New file.
59539         * modules/unictype/ctype-alpha: New file.
59540         * modules/unictype/ctype-cntrl: New file.
59541         * modules/unictype/ctype-digit: New file.
59542         * modules/unictype/ctype-graph: New file.
59543         * modules/unictype/ctype-lower: New file.
59544         * modules/unictype/ctype-print: New file.
59545         * modules/unictype/ctype-punct: New file.
59546         * modules/unictype/ctype-space: New file.
59547         * modules/unictype/ctype-upper: New file.
59548         * modules/unictype/ctype-xdigit: New file.
59549         * modules/unictype/ctype-blank: New file.
59550         * lib/unictype/bidi_byname.c: New file.
59551         * lib/unictype/bidi_name.c: New file.
59552         * lib/unictype/bidi_of.c: New file.
59553         * lib/unictype/bidi_test.c: New file.
59554         * lib/unictype/bitmap.h: New file.
59555         * lib/unictype/block_test.c: New file.
59556         * lib/unictype/blocks.c: New file.
59557         * lib/unictype/categ_C.c: New file.
59558         * lib/unictype/categ_Cc.c: New file.
59559         * lib/unictype/categ_Cf.c: New file.
59560         * lib/unictype/categ_Cn.c: New file.
59561         * lib/unictype/categ_Co.c: New file.
59562         * lib/unictype/categ_Cs.c: New file.
59563         * lib/unictype/categ_L.c: New file.
59564         * lib/unictype/categ_Ll.c: New file.
59565         * lib/unictype/categ_Lm.c: New file.
59566         * lib/unictype/categ_Lo.c: New file.
59567         * lib/unictype/categ_Lt.c: New file.
59568         * lib/unictype/categ_Lu.c: New file.
59569         * lib/unictype/categ_M.c: New file.
59570         * lib/unictype/categ_Mc.c: New file.
59571         * lib/unictype/categ_Me.c: New file.
59572         * lib/unictype/categ_Mn.c: New file.
59573         * lib/unictype/categ_N.c: New file.
59574         * lib/unictype/categ_Nd.c: New file.
59575         * lib/unictype/categ_Nl.c: New file.
59576         * lib/unictype/categ_No.c: New file.
59577         * lib/unictype/categ_P.c: New file.
59578         * lib/unictype/categ_Pc.c: New file.
59579         * lib/unictype/categ_Pd.c: New file.
59580         * lib/unictype/categ_Pe.c: New file.
59581         * lib/unictype/categ_Pf.c: New file.
59582         * lib/unictype/categ_Pi.c: New file.
59583         * lib/unictype/categ_Po.c: New file.
59584         * lib/unictype/categ_Ps.c: New file.
59585         * lib/unictype/categ_S.c: New file.
59586         * lib/unictype/categ_Sc.c: New file.
59587         * lib/unictype/categ_Sk.c: New file.
59588         * lib/unictype/categ_Sm.c: New file.
59589         * lib/unictype/categ_So.c: New file.
59590         * lib/unictype/categ_Z.c: New file.
59591         * lib/unictype/categ_Zl.c: New file.
59592         * lib/unictype/categ_Zp.c: New file.
59593         * lib/unictype/categ_Zs.c: New file.
59594         * lib/unictype/categ_and.c: New file.
59595         * lib/unictype/categ_and_not.c: New file.
59596         * lib/unictype/categ_byname.c: New file.
59597         * lib/unictype/categ_name.c: New file.
59598         * lib/unictype/categ_none.c: New file.
59599         * lib/unictype/categ_of.c: New file.
59600         * lib/unictype/categ_or.c: New file.
59601         * lib/unictype/categ_test.c: New file.
59602         * lib/unictype/combining.c: New file.
59603         * lib/unictype/ctype_alnum.c: New file.
59604         * lib/unictype/ctype_alpha.c: New file.
59605         * lib/unictype/ctype_blank.c: New file.
59606         * lib/unictype/ctype_cntrl.c: New file.
59607         * lib/unictype/ctype_digit.c: New file.
59608         * lib/unictype/ctype_graph.c: New file.
59609         * lib/unictype/ctype_lower.c: New file.
59610         * lib/unictype/ctype_print.c: New file.
59611         * lib/unictype/ctype_punct.c: New file.
59612         * lib/unictype/ctype_space.c: New file.
59613         * lib/unictype/ctype_upper.c: New file.
59614         * lib/unictype/ctype_xdigit.c: New file.
59615         * lib/unictype/decdigit.c: New file.
59616         * lib/unictype/digit.c: New file.
59617         * lib/unictype/identsyntaxmap.h: New file.
59618         * lib/unictype/mirror.c: New file.
59619         * lib/unictype/numeric.c: New file.
59620         * lib/unictype/pr_alphabetic.c: New file.
59621         * lib/unictype/pr_ascii_hex_digit.c: New file.
59622         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59623         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59624         * lib/unictype/pr_bidi_block_separator.c: New file.
59625         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59626         * lib/unictype/pr_bidi_common_separator.c: New file.
59627         * lib/unictype/pr_bidi_control.c: New file.
59628         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59629         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59630         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59631         * lib/unictype/pr_bidi_european_digit.c: New file.
59632         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59633         * lib/unictype/pr_bidi_left_to_right.c: New file.
59634         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59635         * lib/unictype/pr_bidi_other_neutral.c: New file.
59636         * lib/unictype/pr_bidi_pdf.c: New file.
59637         * lib/unictype/pr_bidi_segment_separator.c: New file.
59638         * lib/unictype/pr_bidi_whitespace.c: New file.
59639         * lib/unictype/pr_byname.c: New file.
59640         * lib/unictype/pr_byname.gperf: New file.
59641         * lib/unictype/pr_combining.c: New file.
59642         * lib/unictype/pr_composite.c: New file.
59643         * lib/unictype/pr_currency_symbol.c: New file.
59644         * lib/unictype/pr_dash.c: New file.
59645         * lib/unictype/pr_decimal_digit.c: New file.
59646         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59647         * lib/unictype/pr_deprecated.c: New file.
59648         * lib/unictype/pr_diacritic.c: New file.
59649         * lib/unictype/pr_extender.c: New file.
59650         * lib/unictype/pr_format_control.c: New file.
59651         * lib/unictype/pr_grapheme_base.c: New file.
59652         * lib/unictype/pr_grapheme_extend.c: New file.
59653         * lib/unictype/pr_grapheme_link.c: New file.
59654         * lib/unictype/pr_hex_digit.c: New file.
59655         * lib/unictype/pr_hyphen.c: New file.
59656         * lib/unictype/pr_id_continue.c: New file.
59657         * lib/unictype/pr_id_start.c: New file.
59658         * lib/unictype/pr_ideographic.c: New file.
59659         * lib/unictype/pr_ids_binary_operator.c: New file.
59660         * lib/unictype/pr_ids_trinary_operator.c: New file.
59661         * lib/unictype/pr_ignorable_control.c: New file.
59662         * lib/unictype/pr_iso_control.c: New file.
59663         * lib/unictype/pr_join_control.c: New file.
59664         * lib/unictype/pr_left_of_pair.c: New file.
59665         * lib/unictype/pr_line_separator.c: New file.
59666         * lib/unictype/pr_logical_order_exception.c: New file.
59667         * lib/unictype/pr_lowercase.c: New file.
59668         * lib/unictype/pr_math.c: New file.
59669         * lib/unictype/pr_non_break.c: New file.
59670         * lib/unictype/pr_not_a_character.c: New file.
59671         * lib/unictype/pr_numeric.c: New file.
59672         * lib/unictype/pr_other_alphabetic.c: New file.
59673         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59674         * lib/unictype/pr_other_grapheme_extend.c: New file.
59675         * lib/unictype/pr_other_id_continue.c: New file.
59676         * lib/unictype/pr_other_id_start.c: New file.
59677         * lib/unictype/pr_other_lowercase.c: New file.
59678         * lib/unictype/pr_other_math.c: New file.
59679         * lib/unictype/pr_other_uppercase.c: New file.
59680         * lib/unictype/pr_paired_punctuation.c: New file.
59681         * lib/unictype/pr_paragraph_separator.c: New file.
59682         * lib/unictype/pr_pattern_syntax.c: New file.
59683         * lib/unictype/pr_pattern_white_space.c: New file.
59684         * lib/unictype/pr_private_use.c: New file.
59685         * lib/unictype/pr_punctuation.c: New file.
59686         * lib/unictype/pr_quotation_mark.c: New file.
59687         * lib/unictype/pr_radical.c: New file.
59688         * lib/unictype/pr_sentence_terminal.c: New file.
59689         * lib/unictype/pr_soft_dotted.c: New file.
59690         * lib/unictype/pr_space.c: New file.
59691         * lib/unictype/pr_terminal_punctuation.c: New file.
59692         * lib/unictype/pr_test.c: New file.
59693         * lib/unictype/pr_titlecase.c: New file.
59694         * lib/unictype/pr_unassigned_code_value.c: New file.
59695         * lib/unictype/pr_unified_ideograph.c: New file.
59696         * lib/unictype/pr_uppercase.c: New file.
59697         * lib/unictype/pr_variation_selector.c: New file.
59698         * lib/unictype/pr_white_space.c: New file.
59699         * lib/unictype/pr_xid_continue.c: New file.
59700         * lib/unictype/pr_xid_start.c: New file.
59701         * lib/unictype/pr_zero_width.c: New file.
59702         * lib/unictype/scripts.c: New file.
59703         * lib/unictype/sy_c_ident.c: New file.
59704         * lib/unictype/sy_c_whitespace.c: New file.
59705         * lib/unictype/sy_java_ident.c: New file.
59706         * lib/unictype/sy_java_whitespace.c: New file.
59707
59708         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59709         Unicode 5.0.0.
59710         * lib/unictype/blocks.h: Likewise.
59711         * lib/unictype/categ_C.h: Likewise.
59712         * lib/unictype/categ_Cc.h: Likewise.
59713         * lib/unictype/categ_Cf.h: Likewise.
59714         * lib/unictype/categ_Cn.h: Likewise.
59715         * lib/unictype/categ_Co.h: Likewise.
59716         * lib/unictype/categ_Cs.h: Likewise.
59717         * lib/unictype/categ_L.h: Likewise.
59718         * lib/unictype/categ_Ll.h: Likewise.
59719         * lib/unictype/categ_Lm.h: Likewise.
59720         * lib/unictype/categ_Lo.h: Likewise.
59721         * lib/unictype/categ_Lt.h: Likewise.
59722         * lib/unictype/categ_Lu.h: Likewise.
59723         * lib/unictype/categ_M.h: Likewise.
59724         * lib/unictype/categ_Mc.h: Likewise.
59725         * lib/unictype/categ_Me.h: Likewise.
59726         * lib/unictype/categ_Mn.h: Likewise.
59727         * lib/unictype/categ_N.h: Likewise.
59728         * lib/unictype/categ_Nd.h: Likewise.
59729         * lib/unictype/categ_Nl.h: Likewise.
59730         * lib/unictype/categ_No.h: Likewise.
59731         * lib/unictype/categ_P.h: Likewise.
59732         * lib/unictype/categ_Pc.h: Likewise.
59733         * lib/unictype/categ_Pd.h: Likewise.
59734         * lib/unictype/categ_Pe.h: Likewise.
59735         * lib/unictype/categ_Pf.h: Likewise.
59736         * lib/unictype/categ_Pi.h: Likewise.
59737         * lib/unictype/categ_Po.h: Likewise.
59738         * lib/unictype/categ_Ps.h: Likewise.
59739         * lib/unictype/categ_S.h: Likewise.
59740         * lib/unictype/categ_Sc.h: Likewise.
59741         * lib/unictype/categ_Sk.h: Likewise.
59742         * lib/unictype/categ_Sm.h: Likewise.
59743         * lib/unictype/categ_So.h: Likewise.
59744         * lib/unictype/categ_Z.h: Likewise.
59745         * lib/unictype/categ_Zl.h: Likewise.
59746         * lib/unictype/categ_Zp.h: Likewise.
59747         * lib/unictype/categ_Zs.h: Likewise.
59748         * lib/unictype/categ_of.h: Likewise.
59749         * lib/unictype/combining.h: Likewise.
59750         * lib/unictype/ctype_alnum.h: Likewise.
59751         * lib/unictype/ctype_alpha.h: Likewise.
59752         * lib/unictype/ctype_blank.h: Likewise.
59753         * lib/unictype/ctype_cntrl.h: Likewise.
59754         * lib/unictype/ctype_digit.h: Likewise.
59755         * lib/unictype/ctype_graph.h: Likewise.
59756         * lib/unictype/ctype_lower.h: Likewise.
59757         * lib/unictype/ctype_print.h: Likewise.
59758         * lib/unictype/ctype_punct.h: Likewise.
59759         * lib/unictype/ctype_space.h: Likewise.
59760         * lib/unictype/ctype_upper.h: Likewise.
59761         * lib/unictype/ctype_xdigit.h: Likewise.
59762         * lib/unictype/decdigit.h: Likewise.
59763         * lib/unictype/digit.h: Likewise.
59764         * lib/unictype/mirror.h: Likewise.
59765         * lib/unictype/numeric.h: Likewise.
59766         * lib/unictype/pr_alphabetic.h: Likewise.
59767         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59768         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59769         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59770         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59771         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59772         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59773         * lib/unictype/pr_bidi_control.h: Likewise.
59774         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59775         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59776         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59777         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59778         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59779         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59780         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59781         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59782         * lib/unictype/pr_bidi_pdf.h: Likewise.
59783         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59784         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59785         * lib/unictype/pr_combining.h: Likewise.
59786         * lib/unictype/pr_composite.h: Likewise.
59787         * lib/unictype/pr_currency_symbol.h: Likewise.
59788         * lib/unictype/pr_dash.h: Likewise.
59789         * lib/unictype/pr_decimal_digit.h: Likewise.
59790         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59791         * lib/unictype/pr_deprecated.h: Likewise.
59792         * lib/unictype/pr_diacritic.h: Likewise.
59793         * lib/unictype/pr_extender.h: Likewise.
59794         * lib/unictype/pr_format_control.h: Likewise.
59795         * lib/unictype/pr_grapheme_base.h: Likewise.
59796         * lib/unictype/pr_grapheme_extend.h: Likewise.
59797         * lib/unictype/pr_grapheme_link.h: Likewise.
59798         * lib/unictype/pr_hex_digit.h: Likewise.
59799         * lib/unictype/pr_hyphen.h: Likewise.
59800         * lib/unictype/pr_id_continue.h: Likewise.
59801         * lib/unictype/pr_id_start.h: Likewise.
59802         * lib/unictype/pr_ideographic.h: Likewise.
59803         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59804         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59805         * lib/unictype/pr_ignorable_control.h: Likewise.
59806         * lib/unictype/pr_iso_control.h: Likewise.
59807         * lib/unictype/pr_join_control.h: Likewise.
59808         * lib/unictype/pr_left_of_pair.h: Likewise.
59809         * lib/unictype/pr_line_separator.h: Likewise.
59810         * lib/unictype/pr_logical_order_exception.h: Likewise.
59811         * lib/unictype/pr_lowercase.h: Likewise.
59812         * lib/unictype/pr_math.h: Likewise.
59813         * lib/unictype/pr_non_break.h: Likewise.
59814         * lib/unictype/pr_not_a_character.h: Likewise.
59815         * lib/unictype/pr_numeric.h: Likewise.
59816         * lib/unictype/pr_other_alphabetic.h: Likewise.
59817         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59818         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59819         * lib/unictype/pr_other_id_continue.h: Likewise.
59820         * lib/unictype/pr_other_id_start.h: Likewise.
59821         * lib/unictype/pr_other_lowercase.h: Likewise.
59822         * lib/unictype/pr_other_math.h: Likewise.
59823         * lib/unictype/pr_other_uppercase.h: Likewise.
59824         * lib/unictype/pr_paired_punctuation.h: Likewise.
59825         * lib/unictype/pr_paragraph_separator.h: Likewise.
59826         * lib/unictype/pr_pattern_syntax.h: Likewise.
59827         * lib/unictype/pr_pattern_white_space.h: Likewise.
59828         * lib/unictype/pr_private_use.h: Likewise.
59829         * lib/unictype/pr_punctuation.h: Likewise.
59830         * lib/unictype/pr_quotation_mark.h: Likewise.
59831         * lib/unictype/pr_radical.h: Likewise.
59832         * lib/unictype/pr_sentence_terminal.h: Likewise.
59833         * lib/unictype/pr_soft_dotted.h: Likewise.
59834         * lib/unictype/pr_space.h: Likewise.
59835         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59836         * lib/unictype/pr_titlecase.h: Likewise.
59837         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59838         * lib/unictype/pr_unified_ideograph.h: Likewise.
59839         * lib/unictype/pr_uppercase.h: Likewise.
59840         * lib/unictype/pr_variation_selector.h: Likewise.
59841         * lib/unictype/pr_white_space.h: Likewise.
59842         * lib/unictype/pr_xid_continue.h: Likewise.
59843         * lib/unictype/pr_xid_start.h: Likewise.
59844         * lib/unictype/pr_zero_width.h: Likewise.
59845         * lib/unictype/scripts.h: Likewise.
59846         * lib/unictype/scripts_byname.gperf: Likewise.
59847         * lib/unictype/sy_c_ident.h: Likewise.
59848         * lib/unictype/sy_c_whitespace.h: Likewise.
59849         * lib/unictype/sy_java_ident.h: Likewise.
59850         * lib/unictype/sy_java_whitespace.h: Likewise.
59851
59852         * lib/unictype/Makefile: New file.
59853         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59854         glibc.
59855         * lib/unictype/3level.h: New file, copied from glibc.
59856         * lib/unictype/3levelbit.h: New file.
59857
59858 2007-11-11  Bruno Haible  <bruno@clisp.org>
59859
59860         * modules/gperf: New file.
59861         * modules/iconv_open (Depends-on): Add it.
59862         (Makefile.am): Remove the GPERF definition.
59863
59864 2007-11-11  Bruno Haible  <bruno@clisp.org>
59865
59866         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59867         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59868
59869 2007-11-11  Bruno Haible  <bruno@clisp.org>
59870
59871         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59872         (usage): Remove function.
59873
59874 2007-11-11  Bruno Haible  <bruno@clisp.org>
59875
59876         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59877         gl_FUNC_CEILF_LIBS.
59878         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59879         gl_FUNC_CEIL_LIBS.
59880         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59881         gl_FUNC_CEILL_LIBS.
59882         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59883         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59884         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59885
59886 2007-11-11  Bruno Haible  <bruno@clisp.org>
59887
59888         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59889         roundf were declared but do not exist on functions.
59890         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59891         roundl were declared but do not exist on functions.
59892         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59893         HAVE_FLOORL_AND_CEILL, respectively.
59894         Needed for Sun C on Solaris 10.
59895
59896 2007-11-11  Bruno Haible  <bruno@clisp.org>
59897
59898         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59899         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59900         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59901         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59902         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59903         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59904         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59905         HAVE_DECL_ROUNDF.
59906         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59907         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59909         of HAVE_DECL_ROUND*.
59910         * modules/math (Makefile.am): Update.
59911
59912 2007-11-10  Bruno Haible  <bruno@clisp.org>
59913
59914         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59915         ptrdiff_t as m4/intl.m4.
59916
59917 2007-11-10  Jim Meyering  <meyering@redhat.com>
59918
59919         Avoid link failure for the argmatch test.
59920         * tests/test-argmatch.c (usage): Define function to avoid a link
59921         failure: argmatch_die requires a usage function.
59922
59923 2007-11-09  Bruno Haible  <bruno@clisp.org>
59924
59925         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59926         * doc/functions/vsnprintf.texi: Likewise.
59927         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59928         with a size argument < 2.
59929
59930 2007-11-09  Bruno Haible  <bruno@clisp.org>
59931
59932         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59933         buffer. Fixes an inefficiency introduced on 2007-11-03.
59934
59935 2007-11-09  Bruno Haible  <bruno@clisp.org>
59936
59937         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59938         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59939
59940 2007-11-08  Jim Meyering  <meyering@redhat.com>
59941
59942         Change cache variable name prefix "jm_" to "gl_" everywhere.
59943         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59944         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59945         * m4/uptime.m4: s/gl_/jm_/
59946
59947 2007-11-07  Bruno Haible  <bruno@clisp.org>
59948
59949         Update to GNU gettext 0.17.
59950         * m4/intl.m4: Update to GNU gettext 0.17.
59951         * m4/po.m4: Likewise.
59952         * modules/gettext (Files): Remove m4/ulonglong.m4.
59953         (configure.ac): Require gettext infrastructure from version 0.17.
59954
59955 2007-11-06  Bruno Haible  <bruno@clisp.org>
59956
59957         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59958         symbolic values are not defined in a public header.
59959         * lib/freadable.c (freadable) [QNX]: Likewise.
59960         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59961         * lib/freading.c (freading) [QNX]: Likewise.
59962         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59963         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59964         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59965         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59966         Reported by Alain Magloire.
59967
59968         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59969
59970 2007-11-05  Bruno Haible  <bruno@clisp.org>
59971
59972         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59973         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59974         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59975         Reported by Eric Blake.
59976
59977 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59978             Bruno Haible  <bruno@clisp.org>
59979
59980         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59981         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59982         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59983         (malloc): Undefine also before including <stdlib.h>.
59984         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59985         Needed on OSF/1 4.0.
59986
59987 2007-11-05  Jim Meyering  <meyering@redhat.com>
59988
59989         git-version-gen: sync from coreutils.
59990         * build-aux/git-version-gen: Add comments.
59991         Change the first '-' to '.' in the snapshot version string,
59992         e.g., 6.9-377-08144 -> 6.9.377-08144
59993         Remove first parameter.
59994         Don't declare a version "-dirty" merely because a time
59995         stamp has changed.
59996
59997 2007-11-04  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/lock.h: Protect all macro definitions containing an 'if'
60000         statement through a "do { ... } while (0)".
60001         * lib/tls.h: Likewise.
60002
60003 2007-11-04  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60006
60007 2007-11-04  Bruno Haible  <bruno@clisp.org>
60008
60009         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60010         * modules/fprintf-posix (Depends-on): Add nocrash.
60011         * modules/snprintf-posix (Depends-on): Likewise.
60012         * modules/sprintf-posix (Depends-on): Likewise.
60013         * modules/vasnprintf-posix (Depends-on): Likewise.
60014         * modules/vasprintf-posix (Depends-on): Likewise.
60015         * modules/vfprintf-posix (Depends-on): Likewise.
60016         * modules/vsnprintf-posix (Depends-on): Likewise.
60017         * modules/vsprintf-posix (Depends-on): Likewise.
60018         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60019         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60020         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60021         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60022         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60023         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60024         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60025
60026 2007-11-04  Bruno Haible  <bruno@clisp.org>
60027
60028         * modules/nocrash: New file.
60029         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60030         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60031
60032 2007-11-04  Bruno Haible  <bruno@clisp.org>
60033
60034         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60035         precision handling.
60036         * tests/test-vasprintf-posix.c (test_function): Likewise.
60037         * tests/test-snprintf-posix.h (test_function): Likewise.
60038         * tests/test-sprintf-posix.h (test_function): Likewise.
60039
60040         Fix *printf behaviour for large precisions on mingw and BeOS.
60041         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60042         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60044         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60045         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60046         gl_PRINTF_PRECISION and test its result. Invoke
60047         gl_PREREQ_VASNPRINTF_PRECISION.
60048         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60049         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60051         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60052         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60053         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60054         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60055         * doc/functions/fprintf.texi: Update.
60056         * doc/functions/printf.texi: Update.
60057         * doc/functions/snprintf.texi: Update.
60058         * doc/functions/sprintf.texi: Update.
60059         * doc/functions/vfprintf.texi: Update.
60060         * doc/functions/vprintf.texi: Update.
60061         * doc/functions/vsnprintf.texi: Update.
60062         * doc/functions/vsprintf.texi: Update.
60063
60064 2007-11-04  Bruno Haible  <bruno@clisp.org>
60065
60066         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60067
60068 2007-11-04  Bruno Haible  <bruno@clisp.org>
60069
60070         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60071         Reported by Sylvain Beucler <beuc@gnu.org>.
60072
60073 2007-11-03  Bruno Haible  <bruno@clisp.org>
60074
60075         * tests/test-fprintf-posix2.sh: New file.
60076         * tests/test-fprintf-posix2.c: New file.
60077         * modules/fprintf-posix-tests (Files): Add them.
60078         (TESTS): Add test-fprintf-posix2.sh.
60079         (configure.ac): Check for getrlimit and setrlimit.
60080         (check_PROGRAMS): Add test-fprintf-posix2.
60081
60082         * tests/test-printf-posix2.sh: New file.
60083         * tests/test-printf-posix2.c: New file.
60084         * modules/printf-posix-tests (Files): Add them.
60085         (TESTS): Add test-printf-posix2.sh.
60086         (configure.ac): Check for getrlimit and setrlimit.
60087         (check_PROGRAMS): Add test-printf-posix2.
60088
60089         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60090         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60091         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60092         (decode_double): New function, copied from decode_long_double.
60093         (scale10_round_decimal_decoded): New function, extracted from
60094         scale10_round_decimal_long_double.
60095         (scale10_round_decimal_long_double): Use it.
60096         (scale10_round_decimal_double): New function.
60097         (floorlog10): New function.
60098         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60100         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60101         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60102         gl_PRINTF_ENOMEM and test its result. Invoke
60103         gl_PREREQ_VASNPRINTF_ENOMEM.
60104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60111         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60112         * modules/snprintf-posix (Depends-on): Likewise.
60113         * modules/sprintf-posix (Depends-on): Likewise.
60114         * modules/vasnprintf-posix (Depends-on): Likewise.
60115         * modules/vasprintf-posix (Depends-on): Likewise.
60116         * modules/vfprintf-posix (Depends-on): Likewise.
60117         * modules/vsnprintf-posix (Depends-on): Likewise.
60118         * modules/vsprintf-posix (Depends-on): Likewise.
60119         * doc/functions/fprintf.texi: Update.
60120         * doc/functions/printf.texi: Update.
60121         * doc/functions/snprintf.texi: Update.
60122         * doc/functions/sprintf.texi: Update.
60123         * doc/functions/vfprintf.texi: Update.
60124         * doc/functions/vprintf.texi: Update.
60125         * doc/functions/vsnprintf.texi: Update.
60126         * doc/functions/vsprintf.texi: Update.
60127
60128 2007-11-03  Bruno Haible  <bruno@clisp.org>
60129
60130         * modules/frexp-nolibm-tests: New file.
60131
60132         * modules/frexp-nolibm: New file.
60133         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60134
60135 2007-11-03  Bruno Haible  <bruno@clisp.org>
60136
60137         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60138         value is C99 compliant.
60139         Needed for OSF/1 5.1.
60140
60141 2007-11-03  Bruno Haible  <bruno@clisp.org>
60142
60143         Fix out-of-memory handling of vasnprintf.
60144         * lib/printf-parse.c: Include <errno.h>.
60145         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60146         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60147         is already set.
60148
60149 2007-11-02  Eric Blake  <ebb9@byu.net>
60150
60151         Fix tests on cygwin.
60152         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60153
60154 2007-11-01  Bruno Haible  <bruno@clisp.org>
60155
60156         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60157         warning.
60158         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60159         needed for POSIX compatibility.
60160
60161 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60162
60163         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60164         for compatibility with GNU.
60165
60166 2007-11-01  Bruno Haible  <bruno@clisp.org>
60167
60168         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60169         (putenv): Renamed from rpl_putenv. Change argument type from
60170         'const char *' to 'char *'.
60171         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60172         of defining putenv in config.h, just set REPLACE_PUTENV.
60173         * modules/putenv (Depends-on): Add stdlib.
60174         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60175         (Include): Use <stdlib.h>.
60176         * lib/stdlib.in.h (putenv): New declaration.
60177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60178         REPLACE_PUTENV.
60179         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60180         REPLACE_PUTENV.
60181         Needed for MacOS X 10.5.0.
60182         Reported by Peter O'Gorman <peter@pogma.com>.
60183
60184 2007-11-01  Jim Meyering  <meyering@redhat.com>
60185
60186         Treat an empty date string exactly like "0".
60187         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60188         if the remaining date string (to be parsed) is empty, use "0".
60189         Reported by Mischa Molhoek and discussed in this thread:
60190         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60191
60192 2007-10-31  Bruno Haible  <bruno@clisp.org>
60193
60194         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60195         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60196         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60197         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60198         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60199         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60200
60201 2007-10-31  Bruno Haible  <bruno@clisp.org>
60202
60203         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60204         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60205         (AC_TYPE_LONG_LONG_INT): Use it.
60206         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60207         it as well.
60208         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60209         to m4/longlong.m4.
60210         * modules/stdint (Files): Remove m4/ulonglong.m4.
60211         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60212         m4/ulonglong.m4.
60213         * modules/strtoumax (Files): Likewise.
60214
60215 2007-10-30  Bruno Haible  <bruno@clisp.org>
60216
60217         * modules/xvasprintf-posix: New file.
60218         Suggested by Eric Blake.
60219
60220 2007-10-30  Bruno Haible  <bruno@clisp.org>
60221
60222         * modules/xprintf-posix-tests: New file.
60223         * tests/test-xprintf-posix.sh: New file.
60224         * tests/test-xprintf-posix.c: New file.
60225         * tests/test-xfprintf-posix.c: New file.
60226
60227         * modules/xprintf-posix: New file.
60228
60229 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60230
60231         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60232         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60233         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60234
60235 2007-10-29  Bruno Haible  <bruno@clisp.org>
60236
60237         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60238         contain the special marker '_cv_'.
60239         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60240         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60241         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60242         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60243         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60244         Reported by Ralf Wildenhues.
60245
60246 2007-10-29  Bruno Haible  <bruno@clisp.org>
60247
60248         * gnulib-tool (func_import): When --lgpl is not specified, set
60249         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60250         GPLv3.
60251         Reported by Simon Josefsson.
60252
60253 2007-10-28  Bruno Haible  <bruno@clisp.org>
60254
60255         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60256         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60257         HAVE_DECL_ISFINITE.
60258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60259         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60260         HAVE_DECL_ISFINITE.
60261
60262 2007-10-28  Bruno Haible  <bruno@clisp.org>
60263
60264         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60265         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60266
60267 2007-10-28  Bruno Haible  <bruno@clisp.org>
60268
60269         Fix link errors with Sun C 5.0 on Solaris 10.
60270         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60271         function is declared but not present in the compiler's libm.
60272         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60273         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60274         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60275         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60276         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60277         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60278         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60280         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60281         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60282         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60283         HAVE_DECL_FLOORL.
60284
60285 2007-10-28  Bruno Haible  <bruno@clisp.org>
60286
60287         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60288         gl_FUNC_FLOORL. Cache the result.
60289         (gl_FUNC_FLOORL): Use it.
60290         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60291         gl_FUNC_CEILL. Cache the result.
60292         (gl_FUNC_CEILL): Use it.
60293
60294         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60295         gl_FUNC_FLOOR. Cache the result.
60296         (gl_FUNC_FLOOR): Use it.
60297         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60298         gl_FUNC_CEIL. Cache the result.
60299         (gl_FUNC_CEIL): Use it.
60300
60301         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60302         gl_FUNC_FLOORF. Cache the result.
60303         (gl_FUNC_FLOORF): Use it.
60304         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60305         gl_FUNC_CEILF. Cache the result.
60306         (gl_FUNC_CEILF): Use it.
60307
60308 2007-10-28  Bruno Haible  <bruno@clisp.org>
60309
60310         * gnulib-tool: Allow specifying the LGPL version number through
60311         --lgpl=2 or --lgpl=3.
60312         (func_usage): Document --lgpl with argument.
60313         Handle --lgpl=... arguments.
60314         (func_import): Recognize also gl_LGPL calls with an argument. When
60315         --lgpl=2 is used and the module's license is just LGPL, report an
60316         error. Set sed_transform_lib_file according to the lgpl variable. In
60317         the generated files, use --lgpl or gl_LGPL invocations with argument,
60318         if necessary.
60319         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60320         an LGPv2+ license.
60321         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60322         gl_LGPL macro.
60323
60324 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60325             Bruno Haible  <bruno@clisp.org>
60326
60327         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60328         (u16_uctomb_aux): Likewise.
60329         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60330         !HAVE_INLINE.
60331         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60332
60333 2007-10-28  Bruno Haible  <bruno@clisp.org>
60334
60335         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60336         Invoke AM_GETTEXT_OPTION if it exists.
60337         * modules/vasprintf: Likewise.
60338         * modules/verror: Likewise.
60339         * modules/xprintf: Likewise.
60340         * modules/xvasprintf: Likewise.
60341
60342 2007-10-27  Ben Pfaff  <blp@gnu.org>
60343
60344         * lib/math.in.h: Define isfinite macro and prototypes for
60345         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60346         implementations.
60347         * m4/math_h.m4: New substitutions for isfinite module.
60348         * lib/isfinite.c: New file.
60349         * m4/isfinite.m4: New file.
60350         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60351         * modules/isfinite: New file.
60352         * modules/isfinite-tests: New file.
60353         * tests/tests-isfinite.c: New file.
60354         * doc/functions/isfinite.texi: Mention isfinite module.
60355         * MODULES.html.sh: Mention new module.
60356
60357 2007-10-27  Ben Pfaff  <blp@gnu.org>
60358
60359         Ralf Wildenhues reported that Tru64 4.0D declares the round
60360         functions but does not have definitions.
60361         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60362         cannot be found in any library, set the output variable to
60363         "missing" instead of "".
60364         * m4/round.m4: Also use our substitute if we cannot find round in
60365         any library, even if it is declared.
60366         * m4/roundf.m4: Likewise for roundf.
60367         * m4/roundl.m4: Likewise for roundl.
60368         * lib/math.in.h: Undefine roundf, round, roundl before defining
60369         their replacements, to allow for hypothetical systems where these
60370         may be defined as macros but not available in libraries.
60371
60372 2007-10-27  Bruno Haible  <bruno@clisp.org>
60373
60374         * doc/gnulib.texi: Invoke @firstparagraphindent.
60375         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60376         changes in gnulib.
60377         (Source changes): New section.
60378
60379 2007-10-26  Bruno Haible  <bruno@clisp.org>
60380
60381         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60382         borrowed from autoconf.
60383
60384 2007-10-26  Bruno Haible  <bruno@clisp.org>
60385
60386         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60387         strerror returned the empty string. Needed on HP-UX 11.00.
60388
60389 2007-10-24  Micah Cowan  <micah@cowan.name>
60390
60391         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60392         * build-aux/bootstrap: Remove support for now-unnecessary option,
60393         --cvs-user, and envvars CVS_USER, CVS_RSH.
60394
60395 2007-10-24  Jim Meyering  <meyering@redhat.com>
60396
60397         Avoid diagnostics from sha1sum when there is no cached checksum.
60398         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60399         if the po.s1 file hasn't been created yet.
60400
60401         * build-aux/bootstrap: Sync from coreutils:
60402         2007-10-24  Jim Meyering  <meyering@redhat.com>
60403         Get gnulib from the git repository, not from an obsolete cvs one.
60404         * build-aux/bootstrap: Suggestion from Micah Cowan.
60405         2007-10-04  Jim Meyering  <jim@meyering.net>
60406         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60407         (update_po_files): Work also when there are no .po files in po/.
60408
60409 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60410
60411         * README: Append ".git" to git and cg examples.
60412         Problem reported by Benoit Sigoure.
60413
60414 2007-10-23  Micah Cowan  <micah@cowan.name>
60415
60416         * users.txt: Add wget.
60417
60418 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60419
60420         Fix linking of some unistdio tests on FreeBSD.
60421         * modules/unistdio/u16-vsnprintf-tests
60422         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60423         * modules/unistdio/u16-vsprintf-tests
60424         (test_u16_vsnprintf1_LDADD): Likewise.
60425         * modules/unistdio/u32-vsnprintf-tests
60426         (test_u32_vsnprintf1_LDADD): Likewise.
60427         * modules/unistdio/u32-vsprintf-tests
60428         (test_u32_vsprintf1_LDADD): Likewise.
60429         * modules/unistdio/u8-vsnprintf-tests
60430         (test_u8_vsnprintf1_LDADD): Likewise.
60431         * modules/unistdio/u8-vsprintf-tests
60432         (test_u8_vsprintf1_LDADD): Likewise.
60433         * modules/unistdio/ulc-vsnprintf-tests
60434         (test_ulc_vsnprintf1_LDADD): Likewise.
60435         * modules/unistdio/ulc-vsprintf-tests
60436         (test_ulc_vsprintf1_LDADD): Likewise.
60437
60438         Fix linking of some uniconv tests on FreeBSD.
60439         * modules/uniconv/u16-conv-from-enc-tests
60440         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60441         * modules/uniconv/u16-conv-to-enc-tests
60442         (test_u16_conv_to_enc_LDADD): Likewise.
60443         * modules/uniconv/u16-strconv-from-enc-tests
60444         (test_u16_strconv_from_enc_LDADD): Likewise.
60445         * modules/uniconv/u16-strconv-to-enc-tests
60446         (test_u16_strconv_to_enc_LDADD): Likewise.
60447         * modules/uniconv/u32-conv-from-enc-tests
60448         (test_u32_conv_from_enc_LDADD): Likewise.
60449         * modules/uniconv/u32-conv-to-enc-tests
60450         (test_u32_conv_to_enc_LDADD): Likewise.
60451         * modules/uniconv/u32-strconv-from-enc-tests
60452         (test_u32_strconv_from_enc_LDADD): Likewise.
60453         * modules/uniconv/u32-strconv-to-enc-tests
60454         (test_u32_strconv_to_enc_LDADD): Likewise.
60455         * modules/uniconv/u8-conv-from-enc-tests
60456         (test_u8_conv_from_enc_LDADD): Likewise.
60457         * modules/uniconv/u8-conv-to-enc-tests
60458         (test_u8_conv_to_enc_LDADD): Likewise.
60459         * modules/uniconv/u8-strconv-from-enc-tests
60460         (test_u8_strconv_from_enc_LDADD): Likewise.
60461         * modules/uniconv/u8-strconv-to-enc-tests
60462         (test_u8_strconv_to_enc_LDADD): Likewise.
60463
60464 2007-10-22  Bruno Haible  <bruno@clisp.org>
60465
60466         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60467         size.
60468
60469 2007-10-22  Eric Blake  <ebb9@byu.net>
60470
60471         Tweak x*printf documentation.
60472         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60473         variable name and comments.
60474         Suggested by Bruno Haible.
60475
60476 2007-10-22  Bruno Haible  <bruno@clisp.org>
60477
60478         * lib/acl.c (copy_acl): Fix file name in comment.
60479
60480 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60481
60482         Fix Tru64 problem with stdbool.h.
60483         * lib/stdbool.in.h (false, true):
60484         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60485         Don't declare as an enum in this situation; it runs afoul of Tru64.
60486         Problem reported by Steven M. Schweda in
60487         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60488
60489 2007-10-22  Eric Blake  <ebb9@byu.net>
60490
60491         Also wrap vf?printf.
60492         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60493         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60494         (xvprintf, xvfprintf): New functions.
60495
60496 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60497
60498         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60499         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60500
60501         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60502         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60503
60504 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60505
60506         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60507         by Bruno Haible.
60508
60509 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60510
60511         * lib/getloadavg.c
60512         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60513         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60514
60515         * tests/test-i-ring.c: Work for C89.
60516
60517 2007-10-22  Bruno Haible  <bruno@clisp.org>
60518
60519         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60520         -1u, in preprocessor expression, so that we don't test for the bug
60521         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60522         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60523
60524 2007-10-22  Eric Blake  <ebb9@byu.net>
60525
60526         * tests/test-yesno.sh: Silence stderr during test.
60527
60528 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60529
60530         * modules/crypto/gc-camellia: New file.
60531
60532         * m4/gc-camellia.m4: New file.
60533
60534         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60535
60536         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60537
60538 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60539
60540         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60541         --help to stdout.  Reported by sms@antinode.org (Steven
60542         M. Schweda).
60543
60544 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60545
60546         * users.txt: Fix link to libksba.
60547
60548 2007-10-21  Ben Pfaff  <blp@gnu.org>
60549
60550         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60551         round.c roundf implementation that depends on floorf and ceilf to
60552         be tested unconditionally.
60553
60554 2007-10-21  Ben Pfaff  <blp@gnu.org>
60555
60556         * m4/check-libm-func.m4: Removed.
60557         * m4/check-math-lib.m4: New file.
60558         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60559         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60560         definition and lack of AC_LIBOBJ([roundf]).
60561         * m4/roundl.m4: Ditto, and similarly for roundl.
60562         * modules/round: Reference new m4 file.
60563         * modules/roundf: Ditto.
60564         * modules/roundl: Ditto.
60565         * tests/test-round2.c (main): Use ROUND instead of round.
60566         Bug report from Bruno Haible.
60567
60568 2007-10-21  Bruno Haible  <bruno@clisp.org>
60569
60570         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60571         context.
60572
60573 2007-10-21  Bruno Haible  <bruno@clisp.org>
60574
60575         * tests/test-wcwidth.c (main): Allow negative result for some control
60576         characters.
60577
60578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60579         Needed on OSF/1 5.1.
60580
60581 2007-10-21  Bruno Haible  <bruno@clisp.org>
60582
60583         * tests/test-floorf1.c: Include isnanf.h.
60584         (main): Use isnanf() instead of isnan().
60585         * tests/test-ceilf1.c: Include isnanf.h.
60586         (main): Use isnanf() instead of isnan().
60587         * tests/test-truncf1.c: Include isnanf.h.
60588         (main): Use isnanf() instead of isnan().
60589         * tests/test-roundf1.c: Include isnanf.h.
60590         (main): Use isnanf() instead of isnan().
60591
60592 2007-10-21  Eric Blake  <ebb9@byu.net>
60593
60594         * users.txt: Update URL for m4.
60595
60596 2007-10-21  Bruno Haible  <bruno@clisp.org>
60597
60598         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60599
60600 2007-10-21  Bruno Haible  <bruno@clisp.org>
60601
60602         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60603         Git's management files if the CVS files are not present.
60604
60605 2007-10-20  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60608         gcc-3.4.x.
60609
60610 2007-10-20  Ben Pfaff  <blp@gnu.org>
60611
60612         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60613         implementations.
60614         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60615         * lib/round.c: New file.
60616         * lib/roundf.c: New file.
60617         * lib/roundl.c: New file.
60618         * m4/round.m4: New file.
60619         * m4/roundf.m4: New file.
60620         * m4/roundl.m4: New file.
60621         * m4/check-libm-func-m4: New file.
60622         * modules/math: Replace round, roundf, roundl related @VARS@ in
60623         math.in.h.
60624         * modules/round: New file.
60625         * modules/round-tests: New file.
60626         * modules/roundf: New file.
60627         * modules/roundf-tests: New file.
60628         * modules/roundl: New file.
60629         * modules/roundl-tests: New file.
60630         * tests/test-round1.c: New file.
60631         * tests/test-round2.c: New file.
60632         * tests/test-roundf1.c: New file.
60633         * tests/test-roundf2.c: New file.
60634         * tests/test-roundl.c: New file.
60635         * doc/functions/round.texi: Mention round module.
60636         * doc/functions/roundf.texi: Mention roundf module.
60637         * doc/functions/roundl.texi: Mention roundl module.
60638         * MODULES.html.sh: Mention new modules.
60639         Thanks to Bruno Haible for suggestions.
60640
60641 2007-10-20  Jim Meyering  <meyering@redhat.com>
60642
60643         * lib/xprintf.c: Include <config.h> unconditionally.
60644
60645         Change xprintf's license to GPL.
60646         * modules/xprintf (License): s/LGPL/GPL/, since this module
60647         depends on modules (exit and exitfail) which are GPL.
60648         Suggestion from Bruno Haible.
60649
60650         xprintf fixes.
60651         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60652         Use a clearer diagnostic.
60653         Patch from Bruno Haible.
60654
60655 2007-10-20  Bruno Haible  <bruno@clisp.org>
60656
60657         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60658         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60659         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60660
60661 2007-10-20  Bruno Haible  <bruno@clisp.org>
60662
60663         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60664         precision in the comparison result > x - 1 or similar.
60665         * tests/test-ceilf2.c (correct_result_p): Likewise.
60666         * tests/test-truncf2.c (correct_result_p): Likewise.
60667         * tests/test-trunc2.c (correct_result_p): Likewise.
60668         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60669
60670 2007-10-20  Bruno Haible  <bruno@clisp.org>
60671
60672         * modules/ceil: New file.
60673         * m4/ceil.m4: New file.
60674         * doc/functions/ceil.texi: Mention the 'ceil' module.
60675
60676 2007-10-20  Bruno Haible  <bruno@clisp.org>
60677
60678         * modules/floor: New file.
60679         * m4/floor.m4: New file.
60680         * doc/functions/floor.texi: Mention the 'floor' module.
60681
60682 2007-10-20  Bruno Haible  <bruno@clisp.org>
60683
60684         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60685         of %a.
60686         * modules/floorf-tests (Depends-on): Likewise.
60687         * modules/truncf-tests (Depends-on): Likewise.
60688         * modules/trunc-tests (Depends-on): Likewise.
60689         Reported by Ben Pfaff.
60690
60691 2007-10-19  Jim Meyering  <meyering@redhat.com>
60692
60693         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60694         Don't bother testing specific errno values.  Just test ferror.
60695
60696         New module: xprintf
60697         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60698
60699 2007-10-19  Bruno Haible  <bruno@clisp.org>
60700
60701         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60702         syntax.
60703         * modules/javaexec (Makefile.am): Likewise.
60704         * modules/relocatable-prog (Makefile.am): Likewise.
60705         Suggested by Jim Meyering.
60706
60707 2007-10-18  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60710         Reported by Jim Meyering.
60711
60712 2007-10-18  Eric Blake  <ebb9@byu.net>
60713
60714         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60715
60716 2007-10-18  Bruno Haible  <bruno@clisp.org>
60717
60718         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60719         the format string into writable memory. Needed in Fortify conditions.
60720
60721 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60722             Bruno Haible  <bruno@clisp.org>
60723
60724         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60725         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60726         * modules/trim (Depends-on): Add mbchar.
60727         (configure.ac): Add gl_FUNC_MBRTOWC.
60728         (Makefile.am): Augment lib_SOURCES.
60729
60730 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60731
60732         Modify glob.c to use fstatat and dirfd, to simplify it.
60733         Suggested by Eric Blake.
60734         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60735         Don't include <stdbool.h>; not used.
60736         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60737         (link_exists_p): Simplify implementation, since we can now assume
60738         dirfd and fstatat.
60739         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60740
60741 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60742
60743         * gnulib-tool (func_get_dependencies): Fix sed script to
60744         match only tests.
60745
60746 2007-10-17  Bruno Haible  <bruno@clisp.org>
60747
60748         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60749         allow locale names without encoding suffix.
60750         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60751         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60752
60753 2007-10-16  Bruno Haible  <bruno@clisp.org>
60754
60755         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60756         * lib/getgroups.c (getgroups): Likewise.
60757         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60758
60759 2007-10-16  Bruno Haible  <bruno@clisp.org>
60760
60761         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60762         * modules/malloc-posix (License): Likewise.
60763         * modules/realloc-posix (License): Likewise.
60764         * modules/calloc-posix (License): Likewise.
60765         * modules/intprops (License): Change from GPL to LGPL, with
60766         Paul Eggert's approval.
60767
60768 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60769
60770         Merge glibc changes into lib/glob.c.
60771
60772         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60773         2007-10-15 04:59:03 UTC.  Here are the changes:
60774
60775         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60776
60777         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60778
60779         * lib/glob.c: Add some branch prediction throughout.
60780
60781         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60782
60783         [BZ #5103]
60784         * lib/glob.c (glob): Recognize patterns starting \/.
60785
60786         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60787
60788         [BZ #3996]
60789         * lib/glob.c (attribute_hidden): Define if not defined.
60790         (glob): Unescape dirname, filename or username when needed and not
60791         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60792         is NULL.  Handle unescaped [ in pattern without closing ].
60793         Don't pass GLOB_CHECK down to recursive glob for directories.
60794         (__glob_pattern_type): New function.
60795         (__glob_pattern_p): Implement using __glob_pattern_type.
60796         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60797         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60798         Remove unreachable code.
60799
60800         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60801
60802         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60803         explain why there are no leaks.
60804
60805         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60806
60807         [BZ #3253]
60808         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60809         time, rather allocate increasingly bigger arrays of pointers, if
60810         possible with alloca, if too large with malloc.
60811
60812 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60813
60814         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60815         Problem reported by H.Merijn Brand in
60816         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60817         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60818         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60819
60820 2007-10-15  Bruno Haible  <bruno@clisp.org>
60821
60822         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60823         with explicit rpl_ prefix.
60824         * lib/fopen.c (fopen): Likewise.
60825         * lib/freopen.c (freopen): Likewise.
60826         * lib/iconv.c (iconv): Likewise.
60827         * lib/iconv_close.c (iconv_close): Likewise.
60828
60829 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60830
60831         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60832
60833 2007-10-15  Bruno Haible  <bruno@clisp.org>
60834
60835         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60836         <stddef.h> instead of <stdlib.h> since we only need NULL.
60837         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60838
60839 2007-10-15  Bruno Haible  <bruno@clisp.org>
60840
60841         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60842         Replace paragraph talking about LIBOBJS.
60843         Reported by Colin Watson <cjwatson@debian.org>.
60844
60845 2007-10-15  Bruno Haible  <bruno@clisp.org>
60846
60847         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60848         <stdlib.h> before using NULL.
60849
60850 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60851
60852         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60853         Reported by Albert Chin <china@thewrittenword.com>.
60854
60855 2007-10-14  Bruno Haible  <bruno@clisp.org>
60856
60857         * modules/iconv_open-utf-tests: New file.
60858         * tests/test-iconv-utf.c: New file.
60859
60860         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60861         * modules/iconv_open-utf: New file.
60862         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60863         (iconv, iconv_close): New declarations.
60864         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60865         be defined.
60866         (iconv_open): Add special handling of conversion between UTF-8 and
60867         UTF-{16,32}{BE,LE}.
60868         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60869         * lib/iconv_close.c: New file.
60870         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60871         gl_FUNC_ICONV_OPEN.
60872         (gl_FUNC_ICONV_OPEN): Use it.
60873         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60874         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60875         and REPLACE_ICONV_UTF.
60876         * modules/iconv_open (Depends-on): Add c-strcase.
60877         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60878         ICONV_CONST.
60879         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60880
60881 2007-10-13  Albert Chin  <china@thewrittenword.com>
60882             Bruno Haible  <bruno@clisp.org>
60883
60884         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60885         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60886
60887 2007-10-13  Bruno Haible  <bruno@clisp.org>
60888
60889         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60890         defined, use the ISO C99 inline semantics.
60891         * lib/argp.h (ARGP_EI): Likewise.
60892
60893 2007-10-13  Bruno Haible  <bruno@clisp.org>
60894
60895         Handle 'inline' change in gcc 4.3.0.
60896         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60897         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60898         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60899         argp_fmtstream_point): Disable 'extern' declaration if the function
60900         definition is going to be provided inline.
60901         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60902         semantics, not the ISO C99 inline semantics.
60903         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60904         'extern' declaration if the function definition is going to be provided
60905         inline.
60906         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60907         the GNU C inline semantics, not the ISO C99 inline semantics. With
60908         GCC 4.2, avoid a warning.
60909
60910 2007-10-13  Bruno Haible  <bruno@clisp.org>
60911
60912         * lib/freading.h (freading): Enable the use of __freading for
60913         glibc >= 2.7.
60914         * lib/freading.c (freading): Likewise.
60915
60916 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60917
60918         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60919         "warning: C99 inline functions are not supported; using GNU89".
60920
60921 2007-10-12  Bruno Haible  <bruno@clisp.org>
60922
60923         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60924         of 2.
60925         * tests/test-ceilf2.c: New file.
60926         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60927
60928         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60929         * modules/ceilf-tests: Update.
60930
60931 2007-10-12  Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60934         of 2.
60935         * tests/test-floorf2.c: New file.
60936         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60937
60938         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60939         * modules/floorf-tests: Update.
60940
60941 2007-10-12  Bruno Haible  <bruno@clisp.org>
60942
60943         * tests/test-trunc2.c: New file.
60944         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60945
60946         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60947         * modules/trunc-tests: Update.
60948
60949 2007-10-12  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60952         of 2.
60953         * tests/test-truncf2.c: New file.
60954         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60955
60956         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60957         * modules/truncf-tests: Update.
60958
60959 2007-10-11  Eric Blake  <ebb9@byu.net>
60960
60961         Don't claim strerror is broken on Interix.
60962         * doc/functions/strerror.texi (strerror): Known broken systems are
60963         now Solaris 8, and not Interix.
60964         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60965         Interix on cross-compile.
60966         Reported by Martin Koeppe in
60967         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60968
60969 2007-10-11  Bruno Haible  <bruno@clisp.org>
60970
60971         * modules/i-ring-tests: New file.
60972         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60973         instead of assert.
60974
60975 2007-10-11  Bruno Haible  <bruno@clisp.org>
60976
60977         * modules/filenamecat-tests: New file.
60978         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60979         * lib/filenamecat.c: Remove test code.
60980
60981 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60984
60985         * lib/strerror.c: Include <string.h> always, to test interface,
60986         and to remove the need for the dummy.
60987         Include intprops.h to compute width instead of doing it ourselves
60988         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60989         (strerror): Define it to return NULL if there's no system strerror.
60990         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60991         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60992         ancient pre-strerror Unix systems well any more.  Saying "unknown
60993         system error" is enough.
60994         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60995         simpler strerror.c implementation.
60996         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60997         Simplify the tests to reflect the simpler strerror implementation.
60998         * modules/strerror (Depends-on): Add intprops.
60999
61000 2007-10-09  Eric Blake  <ebb9@byu.net>
61001
61002         Silence test-fpending.
61003         * modules/fpending-tests (Files): Add wrapper script.
61004         * tests/test-fpending.sh: New file.
61005
61006 2007-10-09  Bruno Haible  <bruno@clisp.org>
61007
61008         * MODULES.html.sh (func_module): Don't create a hyperlink for
61009         function names like 'printf_frexp'.
61010         (Misc): Add crc, memxor.
61011         (Characteristics of floating types): New section.
61012         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61013         isnanf-nolibm, signbit, trunc, truncf, truncl.
61014         (Enhancements for ISO C 99 functions): New subsection Input/output.
61015         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61016         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61017         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61018         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61019         (Enhancements for POSIX:2001 functions): Add chdir-long.
61020         (File system functions): Add areadlink, chdir-safer, read-file.
61021         Remove cycle-check.
61022         (File system as inode set): New section.
61023         (Date and time): Add gethrxtime.
61024         (Multithreading): Add openmp.
61025         (Internationalization functions): Add localename.
61026         (Unicode string functions): Add unistr/u*-mbsnlen.
61027         (Support for maintaining and releasing projects): Add git-version-gen.
61028         (Lone files): Remove directories.
61029
61030 2007-10-08  Ben Pfaff  <blp@gnu.org>
61031
61032         * lib/xmalloca.h: Fix typo in comment.
61033
61034 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61035
61036         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61037         when avoiding problems with integer overflow.  Use a portable test
61038         instead.
61039
61040 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61041
61042         * modules/dummy (License): Change to LGPLv2+.
61043         * modules/float (License): Likewise
61044         * modules/realloc (License): Likewise
61045         * modules/stdlib (License): Likewise
61046
61047 2007-10-07  Bruno Haible  <bruno@clisp.org>
61048
61049         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61050         * floor.c (TWO_MANT_DIG): Likewise.
61051         * ceil.c (TWO_MANT_DIG): Likewise.
61052         Reported by Ben Pfaff.
61053
61054 2007-10-07  Bruno Haible  <bruno@clisp.org>
61055
61056         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61057         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61058         * lib/frexp.c (FUNC): Likewise.
61059         * lib/printf-frexp.h (printf_frexp): Likewise.
61060         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61061         * lib/printf-frexp.c (FUNC): Likewise.
61062         Suggested by Jim Meyering.
61063
61064 2007-10-07  Jim Meyering  <meyering@redhat.com>
61065
61066         Make xnanosleep's integer overflow test more robust.
61067         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61068         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61069
61070 2007-10-07  Bruno Haible  <bruno@clisp.org>
61071
61072         * NEWS: Mention the license change.
61073
61074         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61075         abbreviations in the modules files.
61076
61077         Change copyright notice from GPLv2+ to GPLv3+.
61078         * README: Change copyright notice.
61079         * MODULES.html.sh: Likewise.
61080         * build-aux/bootstrap.conf: Likewise.
61081         * build-aux/config.libpath: Likewise.
61082         * build-aux/csharpcomp.sh.in: Likewise.
61083         * build-aux/csharpexec.sh.in: Likewise.
61084         * build-aux/install-reloc: Likewise.
61085         * build-aux/javacomp.sh.in: Likewise.
61086         * build-aux/javaexec.sh.in: Likewise.
61087         * build-aux/ldd.sh.in: Likewise.
61088         * build-aux/reloc-ldflags: Likewise.
61089         * build-aux/relocatable.sh.in: Likewise.
61090         * build-aux/x-to-1.in: Likewise.
61091         * check-module: Likewise.
61092         * config/srclistvars.sh: Likewise.
61093         * gnulib-tool: Likewise.
61094         * lib/acl-internal.h: Likewise.
61095         * lib/acl.c: Likewise.
61096         * lib/acl.h: Likewise.
61097         * lib/acl_entries.c: Likewise.
61098         * lib/areadlink-with-size.c: Likewise.
61099         * lib/areadlink.c: Likewise.
61100         * lib/areadlink.h: Likewise.
61101         * lib/argmatch.c: Likewise.
61102         * lib/argmatch.h: Likewise.
61103         * lib/argp-ba.c: Likewise.
61104         * lib/argp-eexst.c: Likewise.
61105         * lib/argp-fmtstream.c: Likewise.
61106         * lib/argp-fmtstream.h: Likewise.
61107         * lib/argp-fs-xinl.c: Likewise.
61108         * lib/argp-help.c: Likewise.
61109         * lib/argp-namefrob.h: Likewise.
61110         * lib/argp-parse.c: Likewise.
61111         * lib/argp-pin.c: Likewise.
61112         * lib/argp-pv.c: Likewise.
61113         * lib/argp-pvh.c: Likewise.
61114         * lib/argp-xinl.c: Likewise.
61115         * lib/argp.h: Likewise.
61116         * lib/at-func.c: Likewise.
61117         * lib/atanl.c: Likewise.
61118         * lib/backupfile.c: Likewise.
61119         * lib/backupfile.h: Likewise.
61120         * lib/basename.c: Likewise.
61121         * lib/binary-io.h: Likewise.
61122         * lib/byteswap.in.h: Likewise.
61123         * lib/c-stack.c: Likewise.
61124         * lib/c-stack.h: Likewise.
61125         * lib/c-strcasestr.c: Likewise.
61126         * lib/c-strcasestr.h: Likewise.
61127         * lib/c-strstr.c: Likewise.
61128         * lib/c-strstr.h: Likewise.
61129         * lib/c-strtod.c: Likewise.
61130         * lib/calloc.c: Likewise.
61131         * lib/canon-host.c: Likewise.
61132         * lib/canon-host.h: Likewise.
61133         * lib/canonicalize-lgpl.c: Likewise.
61134         * lib/canonicalize.c: Likewise.
61135         * lib/canonicalize.h: Likewise.
61136         * lib/ceil.c: Likewise.
61137         * lib/ceilf.c: Likewise.
61138         * lib/ceill.c: Likewise.
61139         * lib/chdir-long.c: Likewise.
61140         * lib/chdir-long.h: Likewise.
61141         * lib/chdir-safer.c: Likewise.
61142         * lib/chdir-safer.h: Likewise.
61143         * lib/chown.c: Likewise.
61144         * lib/classpath.c: Likewise.
61145         * lib/classpath.h: Likewise.
61146         * lib/clean-temp.c: Likewise.
61147         * lib/clean-temp.h: Likewise.
61148         * lib/cloexec.c: Likewise.
61149         * lib/close-stream.c: Likewise.
61150         * lib/closein.c: Likewise.
61151         * lib/closein.h: Likewise.
61152         * lib/closeout.c: Likewise.
61153         * lib/closeout.h: Likewise.
61154         * lib/concat-filename.c: Likewise.
61155         * lib/copy-file.c: Likewise.
61156         * lib/copy-file.h: Likewise.
61157         * lib/count-one-bits.h: Likewise.
61158         * lib/crc.c: Likewise.
61159         * lib/crc.h: Likewise.
61160         * lib/creat-safer.c: Likewise.
61161         * lib/csharpcomp.c: Likewise.
61162         * lib/csharpcomp.h: Likewise.
61163         * lib/csharpexec.c: Likewise.
61164         * lib/csharpexec.h: Likewise.
61165         * lib/cycle-check.c: Likewise.
61166         * lib/cycle-check.h: Likewise.
61167         * lib/diacrit.c: Likewise.
61168         * lib/diacrit.h: Likewise.
61169         * lib/diffseq.h: Likewise.
61170         * lib/dirchownmod.c: Likewise.
61171         * lib/dirent.in.h: Likewise.
61172         * lib/dirfd.c: Likewise.
61173         * lib/dirfd.h: Likewise.
61174         * lib/dirname.c: Likewise.
61175         * lib/dirname.h: Likewise.
61176         * lib/dummy.c: Likewise.
61177         * lib/dup-safer.c: Likewise.
61178         * lib/dup2.c: Likewise.
61179         * lib/eealloc.h: Likewise.
61180         * lib/error.c: Likewise.
61181         * lib/error.h: Likewise.
61182         * lib/euidaccess.c: Likewise.
61183         * lib/exclude.c: Likewise.
61184         * lib/exclude.h: Likewise.
61185         * lib/execute.c: Likewise.
61186         * lib/execute.h: Likewise.
61187         * lib/exitfail.c: Likewise.
61188         * lib/exitfail.h: Likewise.
61189         * lib/expl.c: Likewise.
61190         * lib/fatal-signal.c: Likewise.
61191         * lib/fatal-signal.h: Likewise.
61192         * lib/fbufmode.c: Likewise.
61193         * lib/fbufmode.h: Likewise.
61194         * lib/fchdir.c: Likewise.
61195         * lib/fchmodat.c: Likewise.
61196         * lib/fchownat.c: Likewise.
61197         * lib/fcntl--.h: Likewise.
61198         * lib/fcntl-safer.h: Likewise.
61199         * lib/fcntl.in.h: Likewise.
61200         * lib/fd-safer.c: Likewise.
61201         * lib/fflush.c: Likewise.
61202         * lib/file-has-acl.c: Likewise.
61203         * lib/file-set.c: Likewise.
61204         * lib/file-type.c: Likewise.
61205         * lib/file-type.h: Likewise.
61206         * lib/fileblocks.c: Likewise.
61207         * lib/filemode.c: Likewise.
61208         * lib/filemode.h: Likewise.
61209         * lib/filename.h: Likewise.
61210         * lib/filenamecat.c: Likewise.
61211         * lib/filenamecat.h: Likewise.
61212         * lib/findprog.c: Likewise.
61213         * lib/findprog.h: Likewise.
61214         * lib/float.in.h: Likewise.
61215         * lib/floor.c: Likewise.
61216         * lib/floorf.c: Likewise.
61217         * lib/floorl.c: Likewise.
61218         * lib/fopen-safer.c: Likewise.
61219         * lib/fopen.c: Likewise.
61220         * lib/fpending.c: Likewise.
61221         * lib/fpending.h: Likewise.
61222         * lib/fprintf.c: Likewise.
61223         * lib/fprintftime.h: Likewise.
61224         * lib/fpucw.h: Likewise.
61225         * lib/fpurge.c: Likewise.
61226         * lib/fpurge.h: Likewise.
61227         * lib/freadable.c: Likewise.
61228         * lib/freadable.h: Likewise.
61229         * lib/freadahead.c: Likewise.
61230         * lib/freadahead.h: Likewise.
61231         * lib/freading.c: Likewise.
61232         * lib/freading.h: Likewise.
61233         * lib/free.c: Likewise.
61234         * lib/freopen.c: Likewise.
61235         * lib/frexp.c: Likewise.
61236         * lib/frexpl.c: Likewise.
61237         * lib/fseek.c: Likewise.
61238         * lib/fseterr.c: Likewise.
61239         * lib/fseterr.h: Likewise.
61240         * lib/fstatat.c: Likewise.
61241         * lib/fstrcmp.c: Likewise.
61242         * lib/fstrcmp.h: Likewise.
61243         * lib/fsusage.c: Likewise.
61244         * lib/fsusage.h: Likewise.
61245         * lib/ftell.c: Likewise.
61246         * lib/ftello.c: Likewise.
61247         * lib/fts-cycle.c: Likewise.
61248         * lib/fts.c: Likewise.
61249         * lib/fts_.h: Likewise.
61250         * lib/full-read.c: Likewise.
61251         * lib/full-read.h: Likewise.
61252         * lib/full-write.c: Likewise.
61253         * lib/full-write.h: Likewise.
61254         * lib/fwritable.c: Likewise.
61255         * lib/fwritable.h: Likewise.
61256         * lib/fwriteerror.c: Likewise.
61257         * lib/fwriteerror.h: Likewise.
61258         * lib/fwriting.c: Likewise.
61259         * lib/fwriting.h: Likewise.
61260         * lib/gcd.c: Likewise.
61261         * lib/gcd.h: Likewise.
61262         * lib/getcwd.c: Likewise.
61263         * lib/getdate.h: Likewise.
61264         * lib/getdate.y: Likewise.
61265         * lib/getdomainname.c: Likewise.
61266         * lib/getdomainname.h: Likewise.
61267         * lib/getgroups.c: Likewise.
61268         * lib/gethostname.c: Likewise.
61269         * lib/gethrxtime.c: Likewise.
61270         * lib/gethrxtime.h: Likewise.
61271         * lib/getloadavg.c: Likewise.
61272         * lib/getndelim2.c: Likewise.
61273         * lib/getndelim2.h: Likewise.
61274         * lib/getnline.c: Likewise.
61275         * lib/getnline.h: Likewise.
61276         * lib/getopt.c: Likewise.
61277         * lib/getopt.in.h: Likewise.
61278         * lib/getopt1.c: Likewise.
61279         * lib/getopt_int.h: Likewise.
61280         * lib/getpagesize.h: Likewise.
61281         * lib/getsubopt.c: Likewise.
61282         * lib/gettime.c: Likewise.
61283         * lib/getugroups.c: Likewise.
61284         * lib/getugroups.h: Likewise.
61285         * lib/getusershell.c: Likewise.
61286         * lib/gl_anyavltree_list1.h: Likewise.
61287         * lib/gl_anyavltree_list2.h: Likewise.
61288         * lib/gl_anyhash_list1.h: Likewise.
61289         * lib/gl_anyhash_list2.h: Likewise.
61290         * lib/gl_anylinked_list1.h: Likewise.
61291         * lib/gl_anylinked_list2.h: Likewise.
61292         * lib/gl_anyrbtree_list1.h: Likewise.
61293         * lib/gl_anyrbtree_list2.h: Likewise.
61294         * lib/gl_anytree_list1.h: Likewise.
61295         * lib/gl_anytree_list2.h: Likewise.
61296         * lib/gl_anytree_oset.h: Likewise.
61297         * lib/gl_anytreehash_list1.h: Likewise.
61298         * lib/gl_anytreehash_list2.h: Likewise.
61299         * lib/gl_array_list.c: Likewise.
61300         * lib/gl_array_list.h: Likewise.
61301         * lib/gl_array_oset.c: Likewise.
61302         * lib/gl_array_oset.h: Likewise.
61303         * lib/gl_avltree_list.c: Likewise.
61304         * lib/gl_avltree_list.h: Likewise.
61305         * lib/gl_avltree_oset.c: Likewise.
61306         * lib/gl_avltree_oset.h: Likewise.
61307         * lib/gl_avltreehash_list.c: Likewise.
61308         * lib/gl_avltreehash_list.h: Likewise.
61309         * lib/gl_carray_list.c: Likewise.
61310         * lib/gl_carray_list.h: Likewise.
61311         * lib/gl_linked_list.c: Likewise.
61312         * lib/gl_linked_list.h: Likewise.
61313         * lib/gl_linkedhash_list.c: Likewise.
61314         * lib/gl_linkedhash_list.h: Likewise.
61315         * lib/gl_list.c: Likewise.
61316         * lib/gl_list.h: Likewise.
61317         * lib/gl_oset.c: Likewise.
61318         * lib/gl_oset.h: Likewise.
61319         * lib/gl_rbtree_list.c: Likewise.
61320         * lib/gl_rbtree_list.h: Likewise.
61321         * lib/gl_rbtree_oset.c: Likewise.
61322         * lib/gl_rbtree_oset.h: Likewise.
61323         * lib/gl_rbtreehash_list.c: Likewise.
61324         * lib/gl_rbtreehash_list.h: Likewise.
61325         * lib/gl_sublist.c: Likewise.
61326         * lib/gl_sublist.h: Likewise.
61327         * lib/group-member.c: Likewise.
61328         * lib/group-member.h: Likewise.
61329         * lib/hard-locale.c: Likewise.
61330         * lib/hard-locale.h: Likewise.
61331         * lib/hash-pjw.c: Likewise.
61332         * lib/hash-pjw.h: Likewise.
61333         * lib/hash-triple.c: Likewise.
61334         * lib/hash.c: Likewise.
61335         * lib/hash.h: Likewise.
61336         * lib/human.c: Likewise.
61337         * lib/human.h: Likewise.
61338         * lib/i-ring.c: Likewise.
61339         * lib/i-ring.h: Likewise.
61340         * lib/idcache.c: Likewise.
61341         * lib/imaxabs.c: Likewise.
61342         * lib/imaxdiv.c: Likewise.
61343         * lib/inet_pton.c: Likewise.
61344         * lib/inet_pton.h: Likewise.
61345         * lib/intprops.h: Likewise.
61346         * lib/inttostr.c: Likewise.
61347         * lib/inttostr.h: Likewise.
61348         * lib/inttypes.in.h: Likewise.
61349         * lib/isapipe.c: Likewise.
61350         * lib/isdir.c: Likewise.
61351         * lib/isnan.c: Likewise.
61352         * lib/isnan.h: Likewise.
61353         * lib/isnanf.c: Likewise.
61354         * lib/isnanf.h: Likewise.
61355         * lib/isnanl-nolibm.h: Likewise.
61356         * lib/isnanl.c: Likewise.
61357         * lib/isnanl.h: Likewise.
61358         * lib/javacomp.c: Likewise.
61359         * lib/javacomp.h: Likewise.
61360         * lib/javaexec.c: Likewise.
61361         * lib/javaexec.h: Likewise.
61362         * lib/javaversion.c: Likewise.
61363         * lib/javaversion.h: Likewise.
61364         * lib/javaversion.java: Likewise.
61365         * lib/lbrkprop.h: Likewise.
61366         * lib/lchmod.h: Likewise.
61367         * lib/lchown.c: Likewise.
61368         * lib/ldexpl.c: Likewise.
61369         * lib/linebreak.c: Likewise.
61370         * lib/linebreak.h: Likewise.
61371         * lib/linebuffer.c: Likewise.
61372         * lib/linebuffer.h: Likewise.
61373         * lib/locale.in.h: Likewise.
61374         * lib/logl.c: Likewise.
61375         * lib/long-options.c: Likewise.
61376         * lib/long-options.h: Likewise.
61377         * lib/lstat.c: Likewise.
61378         * lib/lstat.h: Likewise.
61379         * lib/math.in.h: Likewise.
61380         * lib/mbchar.c: Likewise.
61381         * lib/mbchar.h: Likewise.
61382         * lib/mbfile.h: Likewise.
61383         * lib/mbiter.h: Likewise.
61384         * lib/mbscasecmp.c: Likewise.
61385         * lib/mbscasestr.c: Likewise.
61386         * lib/mbschr.c: Likewise.
61387         * lib/mbscspn.c: Likewise.
61388         * lib/mbslen.c: Likewise.
61389         * lib/mbsncasecmp.c: Likewise.
61390         * lib/mbsnlen.c: Likewise.
61391         * lib/mbspbrk.c: Likewise.
61392         * lib/mbspcasecmp.c: Likewise.
61393         * lib/mbsrchr.c: Likewise.
61394         * lib/mbssep.c: Likewise.
61395         * lib/mbsspn.c: Likewise.
61396         * lib/mbsstr.c: Likewise.
61397         * lib/mbstok_r.c: Likewise.
61398         * lib/mbswidth.c: Likewise.
61399         * lib/mbswidth.h: Likewise.
61400         * lib/mbuiter.h: Likewise.
61401         * lib/memcasecmp.c: Likewise.
61402         * lib/memcasecmp.h: Likewise.
61403         * lib/memchr.c: Likewise.
61404         * lib/memcmp.c: Likewise.
61405         * lib/memcoll.c: Likewise.
61406         * lib/memcoll.h: Likewise.
61407         * lib/memcpy.c: Likewise.
61408         * lib/memrchr.c: Likewise.
61409         * lib/mkancesdirs.c: Likewise.
61410         * lib/mkdir-p.c: Likewise.
61411         * lib/mkdir-p.h: Likewise.
61412         * lib/mkdir.c: Likewise.
61413         * lib/mkdirat.c: Likewise.
61414         * lib/mkdtemp.c: Likewise.
61415         * lib/mkstemp-safer.c: Likewise.
61416         * lib/mkstemp.c: Likewise.
61417         * lib/modechange.c: Likewise.
61418         * lib/modechange.h: Likewise.
61419         * lib/mountlist.c: Likewise.
61420         * lib/mountlist.h: Likewise.
61421         * lib/mpsort.c: Likewise.
61422         * lib/nanosleep.c: Likewise.
61423         * lib/obstack.c: Likewise.
61424         * lib/obstack.h: Likewise.
61425         * lib/open-safer.c: Likewise.
61426         * lib/open.c: Likewise.
61427         * lib/openat-die.c: Likewise.
61428         * lib/openat-priv.h: Likewise.
61429         * lib/openat-proc.c: Likewise.
61430         * lib/openat.c: Likewise.
61431         * lib/openat.h: Likewise.
61432         * lib/pagealign_alloc.c: Likewise.
61433         * lib/pagealign_alloc.h: Likewise.
61434         * lib/physmem.c: Likewise.
61435         * lib/physmem.h: Likewise.
61436         * lib/pipe-safer.c: Likewise.
61437         * lib/pipe.c: Likewise.
61438         * lib/pipe.h: Likewise.
61439         * lib/posixtm.c: Likewise.
61440         * lib/posixtm.h: Likewise.
61441         * lib/posixver.c: Likewise.
61442         * lib/printf-frexp.c: Likewise.
61443         * lib/printf-frexp.h: Likewise.
61444         * lib/printf-frexpl.c: Likewise.
61445         * lib/printf-frexpl.h: Likewise.
61446         * lib/printf.c: Likewise.
61447         * lib/progname.c: Likewise.
61448         * lib/progname.h: Likewise.
61449         * lib/progreloc.c: Likewise.
61450         * lib/putenv.c: Likewise.
61451         * lib/quote.c: Likewise.
61452         * lib/quote.h: Likewise.
61453         * lib/quotearg.c: Likewise.
61454         * lib/quotearg.h: Likewise.
61455         * lib/raise.c: Likewise.
61456         * lib/readline.c: Likewise.
61457         * lib/readline.h: Likewise.
61458         * lib/readlink.c: Likewise.
61459         * lib/readtokens.c: Likewise.
61460         * lib/readtokens.h: Likewise.
61461         * lib/readtokens0.c: Likewise.
61462         * lib/readtokens0.h: Likewise.
61463         * lib/readutmp.c: Likewise.
61464         * lib/readutmp.h: Likewise.
61465         * lib/realloc.c: Likewise.
61466         * lib/relocwrapper.c: Likewise.
61467         * lib/rename-dest-slash.c: Likewise.
61468         * lib/rename.c: Likewise.
61469         * lib/rmdir.c: Likewise.
61470         * lib/rpmatch.c: Likewise.
61471         * lib/safe-read.c: Likewise.
61472         * lib/safe-read.h: Likewise.
61473         * lib/safe-write.c: Likewise.
61474         * lib/safe-write.h: Likewise.
61475         * lib/same-inode.h: Likewise.
61476         * lib/same.c: Likewise.
61477         * lib/same.h: Likewise.
61478         * lib/save-cwd.c: Likewise.
61479         * lib/save-cwd.h: Likewise.
61480         * lib/savedir.c: Likewise.
61481         * lib/savedir.h: Likewise.
61482         * lib/savewd.c: Likewise.
61483         * lib/savewd.h: Likewise.
61484         * lib/search.in.h: Likewise.
61485         * lib/setenv.c: Likewise.
61486         * lib/setenv.h: Likewise.
61487         * lib/settime.c: Likewise.
61488         * lib/sh-quote.c: Likewise.
61489         * lib/sh-quote.h: Likewise.
61490         * lib/sig2str.c: Likewise.
61491         * lib/sig2str.h: Likewise.
61492         * lib/signal.in.h: Likewise.
61493         * lib/signbitd.c: Likewise.
61494         * lib/signbitf.c: Likewise.
61495         * lib/signbitl.c: Likewise.
61496         * lib/sigprocmask.c: Likewise.
61497         * lib/sincosl.c: Likewise.
61498         * lib/sleep.c: Likewise.
61499         * lib/sprintf.c: Likewise.
61500         * lib/sqrtl.c: Likewise.
61501         * lib/stat-time.h: Likewise.
61502         * lib/stdio--.h: Likewise.
61503         * lib/stdio-safer.h: Likewise.
61504         * lib/stdlib--.h: Likewise.
61505         * lib/stdlib-safer.h: Likewise.
61506         * lib/stdlib.in.h: Likewise.
61507         * lib/stpcpy.c: Likewise.
61508         * lib/stpncpy.c: Likewise.
61509         * lib/strchrnul.c: Likewise.
61510         * lib/strcspn.c: Likewise.
61511         * lib/strerror.c: Likewise.
61512         * lib/strftime.c: Likewise.
61513         * lib/strftime.h: Likewise.
61514         * lib/striconveh.c: Likewise.
61515         * lib/striconveh.h: Likewise.
61516         * lib/striconveha.c: Likewise.
61517         * lib/striconveha.h: Likewise.
61518         * lib/stripslash.c: Likewise.
61519         * lib/strnlen1.c: Likewise.
61520         * lib/strnlen1.h: Likewise.
61521         * lib/strtod.c: Likewise.
61522         * lib/strtoimax.c: Likewise.
61523         * lib/strtok_r.c: Likewise.
61524         * lib/strtol.c: Likewise.
61525         * lib/strtoll.c: Likewise.
61526         * lib/strtoul.c: Likewise.
61527         * lib/strtoull.c: Likewise.
61528         * lib/sysexits.in.h: Likewise.
61529         * lib/tempname.c: Likewise.
61530         * lib/tempname.h: Likewise.
61531         * lib/timespec.h: Likewise.
61532         * lib/tls.c: Likewise.
61533         * lib/tls.h: Likewise.
61534         * lib/tmpdir.c: Likewise.
61535         * lib/tmpdir.h: Likewise.
61536         * lib/tmpfile-safer.c: Likewise.
61537         * lib/tmpfile.c: Likewise.
61538         * lib/trigl.c: Likewise.
61539         * lib/trigl.h: Likewise.
61540         * lib/trim.c: Likewise.
61541         * lib/trim.h: Likewise.
61542         * lib/trunc.c: Likewise.
61543         * lib/truncf.c: Likewise.
61544         * lib/truncl.c: Likewise.
61545         * lib/tsearch.c: Likewise.
61546         * lib/unicodeio.c: Likewise.
61547         * lib/unicodeio.h: Likewise.
61548         * lib/unistd--.h: Likewise.
61549         * lib/unistd-safer.h: Likewise.
61550         * lib/unistdio/ulc-fprintf.c: Likewise.
61551         * lib/unistdio/ulc-vfprintf.c: Likewise.
61552         * lib/unlinkdir.c: Likewise.
61553         * lib/unlinkdir.h: Likewise.
61554         * lib/unlocked-io.h: Likewise.
61555         * lib/unsetenv.c: Likewise.
61556         * lib/userspec.c: Likewise.
61557         * lib/utime.c: Likewise.
61558         * lib/utimecmp.c: Likewise.
61559         * lib/utimecmp.h: Likewise.
61560         * lib/utimens.c: Likewise.
61561         * lib/verify.h: Likewise.
61562         * lib/verror.c: Likewise.
61563         * lib/verror.h: Likewise.
61564         * lib/version-etc-fsf.c: Likewise.
61565         * lib/version-etc.c: Likewise.
61566         * lib/version-etc.h: Likewise.
61567         * lib/vfprintf.c: Likewise.
61568         * lib/vprintf.c: Likewise.
61569         * lib/vsprintf.c: Likewise.
61570         * lib/w32spawn.h: Likewise.
61571         * lib/wait-process.c: Likewise.
61572         * lib/wait-process.h: Likewise.
61573         * lib/wcwidth.c: Likewise.
61574         * lib/write-any-file.c: Likewise.
61575         * lib/xalloc-die.c: Likewise.
61576         * lib/xalloc.h: Likewise.
61577         * lib/xasprintf.c: Likewise.
61578         * lib/xgetcwd.c: Likewise.
61579         * lib/xgetcwd.h: Likewise.
61580         * lib/xgetdomainname.c: Likewise.
61581         * lib/xgetdomainname.h: Likewise.
61582         * lib/xgethostname.c: Likewise.
61583         * lib/xmalloc.c: Likewise.
61584         * lib/xmalloca.c: Likewise.
61585         * lib/xmalloca.h: Likewise.
61586         * lib/xmemcoll.c: Likewise.
61587         * lib/xnanosleep.c: Likewise.
61588         * lib/xreadlink.c: Likewise.
61589         * lib/xreadlink.h: Likewise.
61590         * lib/xsetenv.c: Likewise.
61591         * lib/xsetenv.h: Likewise.
61592         * lib/xstriconv.c: Likewise.
61593         * lib/xstriconv.h: Likewise.
61594         * lib/xstrndup.c: Likewise.
61595         * lib/xstrndup.h: Likewise.
61596         * lib/xstrtod.c: Likewise.
61597         * lib/xstrtod.h: Likewise.
61598         * lib/xstrtol-error.c: Likewise.
61599         * lib/xstrtol.c: Likewise.
61600         * lib/xstrtol.h: Likewise.
61601         * lib/xtime.h: Likewise.
61602         * lib/xvasprintf.c: Likewise.
61603         * lib/xvasprintf.h: Likewise.
61604         * lib/yesno.c: Likewise.
61605         * lib/yesno.h: Likewise.
61606         * posix-modules: Likewise.
61607         * tests/test-alloca-opt.c: Likewise.
61608         * tests/test-arcfour.c: Likewise.
61609         * tests/test-arctwo.c: Likewise.
61610         * tests/test-argmatch.c: Likewise.
61611         * tests/test-argp-2.sh: Likewise.
61612         * tests/test-argp.c: Likewise.
61613         * tests/test-arpa_inet.c: Likewise.
61614         * tests/test-array_list.c: Likewise.
61615         * tests/test-array_oset.c: Likewise.
61616         * tests/test-atexit.c: Likewise.
61617         * tests/test-avltree_list.c: Likewise.
61618         * tests/test-avltree_oset.c: Likewise.
61619         * tests/test-avltreehash_list.c: Likewise.
61620         * tests/test-base64.c: Likewise.
61621         * tests/test-binary-io.c: Likewise.
61622         * tests/test-byteswap.c: Likewise.
61623         * tests/test-c-ctype.c: Likewise.
61624         * tests/test-c-strcasecmp.c: Likewise.
61625         * tests/test-c-strcasestr.c: Likewise.
61626         * tests/test-c-strncasecmp.c: Likewise.
61627         * tests/test-c-strstr.c: Likewise.
61628         * tests/test-canonicalize-lgpl.c: Likewise.
61629         * tests/test-canonicalize.c: Likewise.
61630         * tests/test-carray_list.c: Likewise.
61631         * tests/test-ceilf.c: Likewise.
61632         * tests/test-ceill.c: Likewise.
61633         * tests/test-count-one-bits.c: Likewise.
61634         * tests/test-crc.c: Likewise.
61635         * tests/test-dirname.c: Likewise.
61636         * tests/test-fbufmode.c: Likewise.
61637         * tests/test-fcntl.c: Likewise.
61638         * tests/test-fflush.c: Likewise.
61639         * tests/test-floorf.c: Likewise.
61640         * tests/test-floorl.c: Likewise.
61641         * tests/test-fopen.c: Likewise.
61642         * tests/test-fprintf-posix.c: Likewise.
61643         * tests/test-fprintf-posix.h: Likewise.
61644         * tests/test-fpurge.c: Likewise.
61645         * tests/test-freadable.c: Likewise.
61646         * tests/test-freadahead.c: Likewise.
61647         * tests/test-freading.c: Likewise.
61648         * tests/test-freopen.c: Likewise.
61649         * tests/test-frexp.c: Likewise.
61650         * tests/test-frexpl.c: Likewise.
61651         * tests/test-fseek.c: Likewise.
61652         * tests/test-fseeko.c: Likewise.
61653         * tests/test-fseterr.c: Likewise.
61654         * tests/test-fstrcmp.c: Likewise.
61655         * tests/test-ftell.c: Likewise.
61656         * tests/test-ftello.c: Likewise.
61657         * tests/test-fwritable.c: Likewise.
61658         * tests/test-fwriting.c: Likewise.
61659         * tests/test-getaddrinfo.c: Likewise.
61660         * tests/test-getpass.c: Likewise.
61661         * tests/test-gettimeofday.c: Likewise.
61662         * tests/test-hmac-md5.c: Likewise.
61663         * tests/test-hmac-sha1.c: Likewise.
61664         * tests/test-iconv.c: Likewise.
61665         * tests/test-iconvme.c: Likewise.
61666         * tests/test-inttypes.c: Likewise.
61667         * tests/test-isnan.c: Likewise.
61668         * tests/test-isnanf.c: Likewise.
61669         * tests/test-isnanl-nolibm.c: Likewise.
61670         * tests/test-isnanl.c: Likewise.
61671         * tests/test-isnanl.h: Likewise.
61672         * tests/test-ldexpl.c: Likewise.
61673         * tests/test-linked_list.c: Likewise.
61674         * tests/test-linkedhash_list.c: Likewise.
61675         * tests/test-locale.c: Likewise.
61676         * tests/test-localename.c: Likewise.
61677         * tests/test-lock.c: Likewise.
61678         * tests/test-lseek.c: Likewise.
61679         * tests/test-malloca.c: Likewise.
61680         * tests/test-math.c: Likewise.
61681         * tests/test-mbscasecmp.c: Likewise.
61682         * tests/test-mbscasestr1.c: Likewise.
61683         * tests/test-mbscasestr2.c: Likewise.
61684         * tests/test-mbscasestr3.c: Likewise.
61685         * tests/test-mbscasestr4.c: Likewise.
61686         * tests/test-mbschr.c: Likewise.
61687         * tests/test-mbscspn.c: Likewise.
61688         * tests/test-mbsncasecmp.c: Likewise.
61689         * tests/test-mbspbrk.c: Likewise.
61690         * tests/test-mbspcasecmp.c: Likewise.
61691         * tests/test-mbsrchr.c: Likewise.
61692         * tests/test-mbsspn.c: Likewise.
61693         * tests/test-mbsstr1.c: Likewise.
61694         * tests/test-mbsstr2.c: Likewise.
61695         * tests/test-mbsstr3.c: Likewise.
61696         * tests/test-md5.c: Likewise.
61697         * tests/test-memmem.c: Likewise.
61698         * tests/test-netinet_in.c: Likewise.
61699         * tests/test-open.c: Likewise.
61700         * tests/test-printf-frexp.c: Likewise.
61701         * tests/test-printf-frexpl.c: Likewise.
61702         * tests/test-printf-posix.c: Likewise.
61703         * tests/test-printf-posix.h: Likewise.
61704         * tests/test-rbtree_list.c: Likewise.
61705         * tests/test-rbtree_oset.c: Likewise.
61706         * tests/test-rbtreehash_list.c: Likewise.
61707         * tests/test-read-file.c: Likewise.
61708         * tests/test-rijndael.c: Likewise.
61709         * tests/test-search.c: Likewise.
61710         * tests/test-signbit.c: Likewise.
61711         * tests/test-sleep.c: Likewise.
61712         * tests/test-snprintf-posix.c: Likewise.
61713         * tests/test-snprintf-posix.h: Likewise.
61714         * tests/test-snprintf.c: Likewise.
61715         * tests/test-sprintf-posix.c: Likewise.
61716         * tests/test-sprintf-posix.h: Likewise.
61717         * tests/test-stat-time.c: Likewise.
61718         * tests/test-stdbool.c: Likewise.
61719         * tests/test-stdint.c: Likewise.
61720         * tests/test-stdio.c: Likewise.
61721         * tests/test-stdlib.c: Likewise.
61722         * tests/test-stpncpy.c: Likewise.
61723         * tests/test-strcasestr.c: Likewise.
61724         * tests/test-striconv.c: Likewise.
61725         * tests/test-striconveh.c: Likewise.
61726         * tests/test-striconveha.c: Likewise.
61727         * tests/test-string.c: Likewise.
61728         * tests/test-sys_select.c: Likewise.
61729         * tests/test-sys_socket.c: Likewise.
61730         * tests/test-sys_stat.c: Likewise.
61731         * tests/test-sys_time.c: Likewise.
61732         * tests/test-sysexits.c: Likewise.
61733         * tests/test-time.c: Likewise.
61734         * tests/test-tls.c: Likewise.
61735         * tests/test-trunc.c: Likewise.
61736         * tests/test-truncf.c: Likewise.
61737         * tests/test-truncl.c: Likewise.
61738         * tests/test-unistd.c: Likewise.
61739         * tests/test-vasnprintf-posix.c: Likewise.
61740         * tests/test-vasnprintf-posix2.c: Likewise.
61741         * tests/test-vasnprintf.c: Likewise.
61742         * tests/test-vasprintf-posix.c: Likewise.
61743         * tests/test-vasprintf.c: Likewise.
61744         * tests/test-verify.c: Likewise.
61745         * tests/test-vfprintf-posix.c: Likewise.
61746         * tests/test-vprintf-posix.c: Likewise.
61747         * tests/test-vsnprintf-posix.c: Likewise.
61748         * tests/test-vsnprintf.c: Likewise.
61749         * tests/test-vsprintf-posix.c: Likewise.
61750         * tests/test-wchar.c: Likewise.
61751         * tests/test-wctype.c: Likewise.
61752         * tests/test-wcwidth.c: Likewise.
61753         * tests/test-xstrtol.c: Likewise.
61754         * tests/test-xvasprintf.c: Likewise.
61755         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61756         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61757         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61758         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61759         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61760         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61761         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61762         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61763         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61764         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61765         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61766         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61767         * tests/uniname/test-uninames.c: Likewise.
61768         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61769         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61770         * tests/unistdio/test-u16-printf1.h: Likewise.
61771         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61772         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61773         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61774         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61775         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61776         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61777         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61778         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61779         * tests/unistdio/test-u32-printf1.h: Likewise.
61780         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61781         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61782         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61783         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61784         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61785         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61786         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61787         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61788         * tests/unistdio/test-u8-printf1.h: Likewise.
61789         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61790         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61791         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61792         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61793         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61794         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61795         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61796         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61797         * tests/unistdio/test-ulc-printf1.h: Likewise.
61798         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61799         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61800         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61801         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61802         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61803         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61804         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61805         * tests/uniwidth/test-u16-width.c: Likewise.
61806         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61807         * tests/uniwidth/test-u32-width.c: Likewise.
61808         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61809         * tests/uniwidth/test-u8-width.c: Likewise.
61810         * tests/uniwidth/test-uc_width.c: Likewise.
61811         * config/srclist-update: Likewise.
61812         (fixlicense): Update to GPLv3+.
61813
61814         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61815         * tests/test-tsearch.c: Change copyright notice.
61816
61817         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61818         * lib/c-strcaseeq.h: Change copyright notice.
61819         * lib/streq.h: Likewise.
61820         * lib/uniconv.h: Likewise.
61821         * lib/uniconv/u-conv-from-enc.h: Likewise.
61822         * lib/uniconv/u-conv-to-enc.h: Likewise.
61823         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61824         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61825         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61826         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61827         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61828         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61829         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61830         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61831         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61832         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61833         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61834         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61835         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61836         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61837         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61838         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61839         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61840         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61841         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61842         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61843         * lib/uniname.h: Likewise.
61844         * lib/uniname/uniname.c: Likewise.
61845         * lib/unistdio.h: Likewise.
61846         * lib/unistdio/u-asnprintf.h: Likewise.
61847         * lib/unistdio/u-asprintf.h: Likewise.
61848         * lib/unistdio/u-printf-args.c: Likewise.
61849         * lib/unistdio/u-printf-args.h: Likewise.
61850         * lib/unistdio/u-printf-parse.h: Likewise.
61851         * lib/unistdio/u-snprintf.h: Likewise.
61852         * lib/unistdio/u-sprintf.h: Likewise.
61853         * lib/unistdio/u-vasprintf.h: Likewise.
61854         * lib/unistdio/u-vsnprintf.h: Likewise.
61855         * lib/unistdio/u-vsprintf.h: Likewise.
61856         * lib/unistdio/u16-asnprintf.c: Likewise.
61857         * lib/unistdio/u16-asprintf.c: Likewise.
61858         * lib/unistdio/u16-printf-parse.c: Likewise.
61859         * lib/unistdio/u16-snprintf.c: Likewise.
61860         * lib/unistdio/u16-sprintf.c: Likewise.
61861         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61862         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61863         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61864         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61865         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61866         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61867         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61868         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61869         * lib/unistdio/u16-vasnprintf.c: Likewise.
61870         * lib/unistdio/u16-vasprintf.c: Likewise.
61871         * lib/unistdio/u16-vsnprintf.c: Likewise.
61872         * lib/unistdio/u16-vsprintf.c: Likewise.
61873         * lib/unistdio/u32-asnprintf.c: Likewise.
61874         * lib/unistdio/u32-asprintf.c: Likewise.
61875         * lib/unistdio/u32-printf-parse.c: Likewise.
61876         * lib/unistdio/u32-snprintf.c: Likewise.
61877         * lib/unistdio/u32-sprintf.c: Likewise.
61878         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61879         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61880         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61881         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61882         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61883         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61884         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61885         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61886         * lib/unistdio/u32-vasnprintf.c: Likewise.
61887         * lib/unistdio/u32-vasprintf.c: Likewise.
61888         * lib/unistdio/u32-vsnprintf.c: Likewise.
61889         * lib/unistdio/u32-vsprintf.c: Likewise.
61890         * lib/unistdio/u8-asnprintf.c: Likewise.
61891         * lib/unistdio/u8-asprintf.c: Likewise.
61892         * lib/unistdio/u8-printf-parse.c: Likewise.
61893         * lib/unistdio/u8-snprintf.c: Likewise.
61894         * lib/unistdio/u8-sprintf.c: Likewise.
61895         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61896         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61897         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61898         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61899         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61900         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61901         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61902         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61903         * lib/unistdio/u8-vasnprintf.c: Likewise.
61904         * lib/unistdio/u8-vasprintf.c: Likewise.
61905         * lib/unistdio/u8-vsnprintf.c: Likewise.
61906         * lib/unistdio/u8-vsprintf.c: Likewise.
61907         * lib/unistdio/ulc-asnprintf.c: Likewise.
61908         * lib/unistdio/ulc-asprintf.c: Likewise.
61909         * lib/unistdio/ulc-printf-parse.c: Likewise.
61910         * lib/unistdio/ulc-snprintf.c: Likewise.
61911         * lib/unistdio/ulc-sprintf.c: Likewise.
61912         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61913         * lib/unistdio/ulc-vasprintf.c: Likewise.
61914         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61915         * lib/unistdio/ulc-vsprintf.c: Likewise.
61916         * lib/unistr.h: Likewise.
61917         * lib/unistr/u-cpy-alloc.h: Likewise.
61918         * lib/unistr/u-cpy.h: Likewise.
61919         * lib/unistr/u-endswith.h: Likewise.
61920         * lib/unistr/u-move.h: Likewise.
61921         * lib/unistr/u-set.h: Likewise.
61922         * lib/unistr/u-startswith.h: Likewise.
61923         * lib/unistr/u-stpcpy.h: Likewise.
61924         * lib/unistr/u-stpncpy.h: Likewise.
61925         * lib/unistr/u-strcat.h: Likewise.
61926         * lib/unistr/u-strcpy.h: Likewise.
61927         * lib/unistr/u-strcspn.h: Likewise.
61928         * lib/unistr/u-strdup.h: Likewise.
61929         * lib/unistr/u-strlen.h: Likewise.
61930         * lib/unistr/u-strncat.h: Likewise.
61931         * lib/unistr/u-strncpy.h: Likewise.
61932         * lib/unistr/u-strnlen.h: Likewise.
61933         * lib/unistr/u-strpbrk.h: Likewise.
61934         * lib/unistr/u-strspn.h: Likewise.
61935         * lib/unistr/u-strstr.h: Likewise.
61936         * lib/unistr/u-strtok.h: Likewise.
61937         * lib/unistr/u16-check.c: Likewise.
61938         * lib/unistr/u16-chr.c: Likewise.
61939         * lib/unistr/u16-cmp.c: Likewise.
61940         * lib/unistr/u16-cpy-alloc.c: Likewise.
61941         * lib/unistr/u16-cpy.c: Likewise.
61942         * lib/unistr/u16-endswith.c: Likewise.
61943         * lib/unistr/u16-mblen.c: Likewise.
61944         * lib/unistr/u16-mbsnlen.c: Likewise.
61945         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61946         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61947         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61948         * lib/unistr/u16-mbtouc.c: Likewise.
61949         * lib/unistr/u16-mbtoucr.c: Likewise.
61950         * lib/unistr/u16-move.c: Likewise.
61951         * lib/unistr/u16-next.c: Likewise.
61952         * lib/unistr/u16-prev.c: Likewise.
61953         * lib/unistr/u16-set.c: Likewise.
61954         * lib/unistr/u16-startswith.c: Likewise.
61955         * lib/unistr/u16-stpcpy.c: Likewise.
61956         * lib/unistr/u16-stpncpy.c: Likewise.
61957         * lib/unistr/u16-strcat.c: Likewise.
61958         * lib/unistr/u16-strchr.c: Likewise.
61959         * lib/unistr/u16-strcmp.c: Likewise.
61960         * lib/unistr/u16-strcpy.c: Likewise.
61961         * lib/unistr/u16-strcspn.c: Likewise.
61962         * lib/unistr/u16-strdup.c: Likewise.
61963         * lib/unistr/u16-strlen.c: Likewise.
61964         * lib/unistr/u16-strmblen.c: Likewise.
61965         * lib/unistr/u16-strmbtouc.c: Likewise.
61966         * lib/unistr/u16-strncat.c: Likewise.
61967         * lib/unistr/u16-strncmp.c: Likewise.
61968         * lib/unistr/u16-strncpy.c: Likewise.
61969         * lib/unistr/u16-strnlen.c: Likewise.
61970         * lib/unistr/u16-strpbrk.c: Likewise.
61971         * lib/unistr/u16-strrchr.c: Likewise.
61972         * lib/unistr/u16-strspn.c: Likewise.
61973         * lib/unistr/u16-strstr.c: Likewise.
61974         * lib/unistr/u16-strtok.c: Likewise.
61975         * lib/unistr/u16-to-u32.c: Likewise.
61976         * lib/unistr/u16-to-u8.c: Likewise.
61977         * lib/unistr/u16-uctomb-aux.c: Likewise.
61978         * lib/unistr/u16-uctomb.c: Likewise.
61979         * lib/unistr/u32-check.c: Likewise.
61980         * lib/unistr/u32-chr.c: Likewise.
61981         * lib/unistr/u32-cmp.c: Likewise.
61982         * lib/unistr/u32-cpy-alloc.c: Likewise.
61983         * lib/unistr/u32-cpy.c: Likewise.
61984         * lib/unistr/u32-endswith.c: Likewise.
61985         * lib/unistr/u32-mblen.c: Likewise.
61986         * lib/unistr/u32-mbsnlen.c: Likewise.
61987         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61988         * lib/unistr/u32-mbtouc.c: Likewise.
61989         * lib/unistr/u32-mbtoucr.c: Likewise.
61990         * lib/unistr/u32-move.c: Likewise.
61991         * lib/unistr/u32-next.c: Likewise.
61992         * lib/unistr/u32-prev.c: Likewise.
61993         * lib/unistr/u32-set.c: Likewise.
61994         * lib/unistr/u32-startswith.c: Likewise.
61995         * lib/unistr/u32-stpcpy.c: Likewise.
61996         * lib/unistr/u32-stpncpy.c: Likewise.
61997         * lib/unistr/u32-strcat.c: Likewise.
61998         * lib/unistr/u32-strchr.c: Likewise.
61999         * lib/unistr/u32-strcmp.c: Likewise.
62000         * lib/unistr/u32-strcpy.c: Likewise.
62001         * lib/unistr/u32-strcspn.c: Likewise.
62002         * lib/unistr/u32-strdup.c: Likewise.
62003         * lib/unistr/u32-strlen.c: Likewise.
62004         * lib/unistr/u32-strmblen.c: Likewise.
62005         * lib/unistr/u32-strmbtouc.c: Likewise.
62006         * lib/unistr/u32-strncat.c: Likewise.
62007         * lib/unistr/u32-strncmp.c: Likewise.
62008         * lib/unistr/u32-strncpy.c: Likewise.
62009         * lib/unistr/u32-strnlen.c: Likewise.
62010         * lib/unistr/u32-strpbrk.c: Likewise.
62011         * lib/unistr/u32-strrchr.c: Likewise.
62012         * lib/unistr/u32-strspn.c: Likewise.
62013         * lib/unistr/u32-strstr.c: Likewise.
62014         * lib/unistr/u32-strtok.c: Likewise.
62015         * lib/unistr/u32-to-u16.c: Likewise.
62016         * lib/unistr/u32-to-u8.c: Likewise.
62017         * lib/unistr/u32-uctomb.c: Likewise.
62018         * lib/unistr/u8-check.c: Likewise.
62019         * lib/unistr/u8-chr.c: Likewise.
62020         * lib/unistr/u8-cmp.c: Likewise.
62021         * lib/unistr/u8-cpy-alloc.c: Likewise.
62022         * lib/unistr/u8-cpy.c: Likewise.
62023         * lib/unistr/u8-endswith.c: Likewise.
62024         * lib/unistr/u8-mblen.c: Likewise.
62025         * lib/unistr/u8-mbsnlen.c: Likewise.
62026         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62027         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62028         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62029         * lib/unistr/u8-mbtouc.c: Likewise.
62030         * lib/unistr/u8-mbtoucr.c: Likewise.
62031         * lib/unistr/u8-move.c: Likewise.
62032         * lib/unistr/u8-next.c: Likewise.
62033         * lib/unistr/u8-prev.c: Likewise.
62034         * lib/unistr/u8-set.c: Likewise.
62035         * lib/unistr/u8-startswith.c: Likewise.
62036         * lib/unistr/u8-stpcpy.c: Likewise.
62037         * lib/unistr/u8-stpncpy.c: Likewise.
62038         * lib/unistr/u8-strcat.c: Likewise.
62039         * lib/unistr/u8-strchr.c: Likewise.
62040         * lib/unistr/u8-strcmp.c: Likewise.
62041         * lib/unistr/u8-strcpy.c: Likewise.
62042         * lib/unistr/u8-strcspn.c: Likewise.
62043         * lib/unistr/u8-strdup.c: Likewise.
62044         * lib/unistr/u8-strlen.c: Likewise.
62045         * lib/unistr/u8-strmblen.c: Likewise.
62046         * lib/unistr/u8-strmbtouc.c: Likewise.
62047         * lib/unistr/u8-strncat.c: Likewise.
62048         * lib/unistr/u8-strncmp.c: Likewise.
62049         * lib/unistr/u8-strncpy.c: Likewise.
62050         * lib/unistr/u8-strnlen.c: Likewise.
62051         * lib/unistr/u8-strpbrk.c: Likewise.
62052         * lib/unistr/u8-strrchr.c: Likewise.
62053         * lib/unistr/u8-strspn.c: Likewise.
62054         * lib/unistr/u8-strstr.c: Likewise.
62055         * lib/unistr/u8-strtok.c: Likewise.
62056         * lib/unistr/u8-to-u16.c: Likewise.
62057         * lib/unistr/u8-to-u32.c: Likewise.
62058         * lib/unistr/u8-uctomb-aux.c: Likewise.
62059         * lib/unistr/u8-uctomb.c: Likewise.
62060         * lib/unitypes.h: Likewise.
62061         * lib/uniwidth.h: Likewise.
62062         * lib/uniwidth/cjk.h: Likewise.
62063         * lib/uniwidth/u16-strwidth.c: Likewise.
62064         * lib/uniwidth/u16-width.c: Likewise.
62065         * lib/uniwidth/u32-strwidth.c: Likewise.
62066         * lib/uniwidth/u32-width.c: Likewise.
62067         * lib/uniwidth/u8-strwidth.c: Likewise.
62068         * lib/uniwidth/u8-width.c: Likewise.
62069         * lib/uniwidth/width.c: Likewise.
62070
62071 2007-10-07  Bruno Haible  <bruno@clisp.org>
62072
62073         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62074         The file is still under LGPL (see modules/inttypes).
62075
62076 2007-10-06  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/trunc (Dependencies): Add 'extensions'.
62079         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62080         Reported by Ben Pfaff <blp@gnu.org>.
62081
62082 2007-10-06  Bruno Haible  <bruno@clisp.org>
62083
62084         * modules/freopen-tests: New file.
62085         * tests/test-freopen.c: New file.
62086
62087         * modules/fopen-tests: New file.
62088         * tests/test-fopen.c: New file.
62089
62090         * modules/fopen: New file.
62091         * lib/fopen.c: New file.
62092         * m4/fopen.m4: New file.
62093         * modules/freopen: New file.
62094         * lib/freopen.c: New file.
62095         * m4/freopen.m4: New file.
62096         * lib/stdio.in.h (fopen, freopen): New declarations.
62097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62098         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62099         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62100         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62101         * doc/functions/fopen.texi: Mention the 'fopen' module.
62102         * doc/functions/freopen.texi: Mention the 'freopen' module.
62103
62104 2007-10-06  Bruno Haible  <bruno@clisp.org>
62105
62106         * modules/open-tests: New file.
62107         * tests/test-open.c: New file.
62108
62109         * modules/open: New file.
62110         * lib/open.c: New file.
62111         * m4/open.m4: New file.
62112         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62113         lib/open.c does.
62114         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62115         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62116         macros.
62117         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62118         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62119         REPLACE_OPEN.
62120         * doc/functions/open.texi: Mention the 'open' module.
62121
62122 2007-10-04  Bruno Haible  <bruno@clisp.org>
62123
62124         * modules/ceill-tests: New file.
62125         * tests/test-ceill.c: New file.
62126
62127         * modules/ceill: New file.
62128         * lib/ceill.c: Replace entire file.
62129         * m4/ceill.m4: New file.
62130         * lib/math.in.h (ceill): Replace declaration.
62131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62132         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62133         * doc/functions/ceill.texi: Mention the 'ceill' module.
62134         * modules/mathl (Files): Remove lib/ceill.c.
62135         (Depends-on): Add ceill.
62136
62137 2007-10-04  Bruno Haible  <bruno@clisp.org>
62138
62139         * modules/ceilf-tests: New file.
62140         * tests/test-ceilf.c: New file.
62141
62142         * modules/ceilf: New file.
62143         * lib/ceil.c: New file.
62144         * lib/ceilf.c: New file.
62145         * m4/ceilf.m4: New file.
62146         * lib/math.in.h (ceilf): New declaration.
62147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62148         HAVE_DECL_CEILF.
62149         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62150         HAVE_DECL_CEILF.
62151         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62152
62153 2007-10-04  Bruno Haible  <bruno@clisp.org>
62154
62155         * modules/floorl-tests: New file.
62156         * tests/test-floorl.c: New file.
62157
62158         * modules/floorl: New file.
62159         * lib/floorl.c: Replace entire file.
62160         * m4/floorl.m4: New file.
62161         * lib/math.in.h (floorl): Replace declaration.
62162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62163         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62164         * doc/functions/floorl.texi: Mention the 'floorl' module.
62165         * modules/mathl (Files): Remove lib/floorl.c.
62166         (Depends-on): Add floorl.
62167
62168 2007-10-04  Bruno Haible  <bruno@clisp.org>
62169
62170         * modules/floorf-tests: New file.
62171         * tests/test-floorf.c: New file.
62172
62173         * modules/floorf: New file.
62174         * lib/floor.c: New file.
62175         * lib/floorf.c: New file.
62176         * m4/floorf.m4: New file.
62177         * lib/math.in.h (floorf): New declaration.
62178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62179         HAVE_DECL_FLOORF.
62180         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62181         HAVE_DECL_FLOORF.
62182         * doc/functions/floorf.texi: Mention the 'floorf' module.
62183
62184 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62185             Bruno Haible  <bruno@clisp.org>
62186
62187         Advertise for the Git server instead of the CVS server.
62188         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62189         repository instead of the CVS one.
62190         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62191         about all VCS systems generically.
62192         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62193
62194 2007-10-04  Bruno Haible  <bruno@clisp.org>
62195
62196         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62197         means.
62198         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62199
62200 2007-10-04  Bruno Haible  <bruno@clisp.org>
62201
62202         * modules/truncl-tests: New file.
62203         * tests/test-truncl.c: New file.
62204
62205         * modules/truncl: New file.
62206         * lib/truncl.c: New file.
62207         * m4/truncl.m4: New file.
62208         * lib/math.in.h (truncl): New declaration.
62209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62210         HAVE_DECL_TRUNCL.
62211         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62212         HAVE_DECL_TRUNCL.
62213         * doc/functions/truncl.texi: Mention the 'truncl' module.
62214
62215 2007-10-04  Bruno Haible  <bruno@clisp.org>
62216
62217         * modules/truncf-tests: New file.
62218         * tests/test-truncf.c: New file.
62219
62220         * modules/truncf: New file.
62221         * lib/trunc.c: Make paramerizable through USE_* macros.
62222         * lib/truncf.c: New file.
62223         * m4/truncf.m4: New file.
62224         * lib/math.in.h (truncf): New declaration.
62225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62226         HAVE_DECL_TRUNCF.
62227         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62228         HAVE_DECL_TRUNCF.
62229         * doc/functions/truncf.texi: Mention the 'truncf' module.
62230
62231 2007-10-03  Bruno Haible  <bruno@clisp.org>
62232
62233         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62234         augmentation also for tests modules.
62235         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62236         * modules/atexit-tests (Makefile.am): Likewise.
62237         * modules/binary-io-tests (Makefile.am): Likewise.
62238         * modules/c-strcase-tests (Makefile.am): Likewise.
62239         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62240         * modules/canonicalize-tests (Makefile.am): Likewise.
62241         * modules/closein-tests (Makefile.am): Likewise.
62242         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62243         * modules/freadahead-tests (Makefile.am): Likewise.
62244         * modules/fseek-tests (Makefile.am): Likewise.
62245         * modules/fseeko-tests (Makefile.am): Likewise.
62246         * modules/ftell-tests (Makefile.am): Likewise.
62247         * modules/ftello-tests (Makefile.am): Likewise.
62248         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62249         * modules/isnanl-tests (Makefile.am): Likewise.
62250         * modules/lseek-tests (Makefile.am): Likewise.
62251         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62252         * modules/mbscasestr-tests (Makefile.am): Likewise.
62253         * modules/mbschr-tests (Makefile.am): Likewise.
62254         * modules/mbscspn-tests (Makefile.am): Likewise.
62255         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62256         * modules/mbspbrk-tests (Makefile.am): Likewise.
62257         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62258         * modules/mbsrchr-tests (Makefile.am): Likewise.
62259         * modules/mbsspn-tests (Makefile.am): Likewise.
62260         * modules/mbsstr-tests (Makefile.am): Likewise.
62261         * modules/printf-posix-tests (Makefile.am): Likewise.
62262         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62263         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62264         * modules/tsearch-tests (Makefile.am): Likewise.
62265         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62266         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62267         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62268         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62269         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62270         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62271         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62272         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62273         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62274         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62275         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62276         * modules/xstrtol-tests (Makefile.am): Likewise.
62277         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62278         * modules/yesno-tests (Makefile.am): Likewise.
62279
62280 2007-10-03  Bruno Haible  <bruno@clisp.org>
62281
62282         * modules/trunc-tests: New file.
62283         * tests/test-trunc.c: New file.
62284
62285         * modules/trunc: New file.
62286         * lib/trunc.c: New file.
62287         * m4/trunc.m4: New file.
62288         * lib/math.in.h (trunc): New declaration.
62289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62290         HAVE_DECL_TRUNC.
62291         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62292         HAVE_DECL_TRUNC.
62293         * doc/functions/trunc.texi: Mention the 'trunc' module.
62294
62295 2007-10-03  Bruno Haible  <bruno@clisp.org>
62296
62297         * tests/test-fpending.c: New file, mostly copied
62298         from coreutils/lib/t-fpending.c.
62299         * modules/fpending-tests: New file.
62300
62301 2007-10-03  Bruno Haible  <bruno@clisp.org>
62302
62303         Port the stdio extensions to QNX (untested).
62304         * lib/fseterr.c (fseterr): Add support for QNX.
62305         * lib/fbufmode.c (fbufmode): Likewise.
62306         * lib/freadable.c (freadable): Likewise.
62307         * lib/fwritable.c (fwritable): Likewise.
62308         * lib/freading.c (freading): Likewise.
62309         * lib/fwriting.c (fwriting): Likewise.
62310         * lib/freadahead.c (freadahed): Likewise.
62311         * lib/fpurge.c (fpurge): Likewise.
62312         * lib/fseeko.c (rpl_fseeko): Likewise.
62313
62314 2007-10-03  Bruno Haible  <bruno@clisp.org>
62315             Jim Meyering  <jim@meyering.net>
62316             Eric Blake  <ebb9@byu.net>
62317
62318         * doc/relocatable.texi: Use @command instead of @program.
62319
62320 2007-10-02  Jim Meyering  <jim@meyering.net>
62321
62322         Perform one more "_.h" -> ".in.h" substitution.
62323         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62324         instead of unistd_.h here, too.
62325
62326 2007-10-01  Bruno Haible  <bruno@clisp.org>
62327
62328         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62329         Needed for the alloca-opt module.
62330
62331 2007-09-30  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62334         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62335         alloca_.h.
62336         * lib/argz.in.h: Renamed from lib/argz_.h.
62337         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62338         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62339         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62340         byteswap_.h.
62341         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62342         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62343         dirent_.h.
62344         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62345         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62346         fcntl_.h.
62347         * lib/float.in.h: Renamed from lib/float_.h.
62348         * modules/float (Files, Makefile.am): Use float.in.h instead of
62349         float_.h.
62350         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62351         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62352         fnmatch_.h.
62353         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62354         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62355         getopt_.h.
62356         * lib/glob.in.h: Renamed from lib/glob_.h.
62357         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62358         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62359         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62360         iconv_.h.
62361         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62362         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62363         inttypes_.h.
62364         * lib/locale.in.h: Renamed from lib/locale_.h.
62365         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62366         locale_.h.
62367         * lib/math.in.h: Renamed from lib/math_.h.
62368         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62369         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62370         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62371         of netinet_in_.h. Add dependency.
62372         * lib/poll.in.h: Renamed from lib/poll_.h.
62373         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62374         * lib/search.in.h: Renamed from lib/search_.h.
62375         * modules/search (Files, Makefile.am): Use search.in.h instead of
62376         search_.h.
62377         * lib/signal.in.h: Renamed from lib/signal_.h.
62378         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62379         _signal.h.
62380         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62381         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62382         stdbool_.h.
62383         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62384         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62385         stdint_.h.
62386         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62387         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62388         stdio_.h.
62389         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62390         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62391         stdlib_.h.
62392         * lib/string.in.h: Renamed from lib/string_.h.
62393         * modules/string (Files, Makefile.am): Use string.in.h instead of
62394         string_.h.
62395         * doc/gnulib-tool.texi (Initial import): Update.
62396         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62397         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62398         of sys_select_.h. Add dependency.
62399         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62400         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62401         of sys_socket_.h.
62402         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62403         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62404         sys_stat_.h.
62405         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62406         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62407         sys_time_.h.
62408         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62409         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62410         sysexits_.h.
62411         * lib/time.in.h: Renamed from lib/time_.h.
62412         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62413         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62414         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62415         unistd_.h.
62416         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62417         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62418         wchar_.h.
62419         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62420         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62421         wctype_.h.
62422         * build-aux/bootstrap (slurp): Update.
62423         * lib/.cppi-disable: Update.
62424
62425 2007-09-30  Bruno Haible  <bruno@clisp.org>
62426
62427         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62428         Needed on BeOS.
62429
62430 2007-09-30  Bruno Haible  <bruno@clisp.org>
62431
62432         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62433
62434 2007-09-29  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62437
62438 2007-09-29  Bruno Haible  <bruno@clisp.org>
62439
62440         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62441         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62442         * build-aux/install-reloc: Compile also areadlink.c.
62443         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62444
62445 2007-09-29  Bruno Haible  <bruno@clisp.org>
62446
62447         * gnulib-tool (func_emit_initmacro_done): Indentation.
62448
62449 2007-09-29  Bruno Haible  <bruno@clisp.org>
62450
62451         * README: Add CVS checkout update instructions.
62452         Info from Bob Proulx <bob@proulx.com>.
62453
62454 2007-09-28  Eric Blake  <ebb9@byu.net>
62455
62456         Provide move-if-change.
62457         * build-aux/move-if-change: New file, based on best practice
62458         rather than any canonical upstream location.
62459
62460 2007-09-28  Jim Meyering  <jim@meyering.net>
62461
62462         Fix canonicalize loop-detection corner case.
62463         Do not attempt to stat the symlink values stored via seen_triple.
62464         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62465         on linux-2.6.18, (but not 2.6.22).
62466         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62467         triple_compare.  The former compares dev,ino,filename, while the latter
62468         would actually stat dirname(filename) when dev and ino were equal.
62469         * lib/hash-triple.c: Install <string.h>.
62470         (STREQ): Define.
62471         (triple_compare_ino_str): New function.
62472         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62473
62474 2007-09-28  Eric Blake  <ebb9@byu.net>
62475
62476         Enforce that AC_REPLACE_FUNCS files exist.
62477         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62478         override check for typos.
62479
62480         Fix test-closein on Solaris 10.
62481         * tests/test-closein.c (main): Don't assume stdin can be inherited
62482         closed on all systems.
62483         * tests/test-closein.sh: Likewise.
62484         Reported by Piotr Tarnowski.
62485
62486 2007-09-28  Jim Meyering  <jim@meyering.net>
62487
62488         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62489
62490 2007-09-27  Jim Meyering  <jim@meyering.net>
62491
62492         canonicalize: Avoid a false-positive cycle failure.
62493         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62494         Sort.  Remove cycle-check.
62495         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62496         not cycle-check.h.
62497         (seen_triple): New function.
62498         (canonicalize_filename_mode): Use it instead of cycle-check.
62499         * tests/test-canonicalize.c: Add a test for this bug.
62500         * tests/test-canonicalize.sh: Set up and run the test.
62501
62502         New module, file-set, from coreutils.
62503         * modules/file-set: Define it.
62504         * lib/file-set.c, lib/file-set.h: Implement.
62505
62506         New module, hash-triple, from coreutils.
62507         * modules/hash-triple: Define it.
62508         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62509
62510 2007-09-25  Eric Blake  <ebb9@byu.net>
62511
62512         Fix strerror on Interix.
62513         * lib/string_.h (strerror): Declare replacement.
62514         * doc/functions/strerror.texi (strerror): Document the Interix
62515         shortcoming.
62516         * modules/string (Makefile.am): Support new hooks.
62517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62518         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62519         gl_FUNC_STRERROR_SEPARATE.
62520         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62521         * lib/strerror.c (rpl_strerror): Provide replacement.
62522         * modules/strerror (Depends-on): Add string.
62523         (configure.ac): Detect use of module.
62524         * tests/test-strerror.c: New file.
62525         * modules/strerror-tests: New test module.
62526         * modules/argp (Depends-on): Add strerror.
62527         * modules/error (Depends-on): Likewise.
62528         Reported by Martin Koeppe.
62529
62530 2007-09-24  Bruno Haible  <bruno@clisp.org>
62531
62532         * README: Update git instructions.
62533
62534 2007-09-24  Eric Blake  <ebb9@byu.net>
62535
62536         Revert fpending breakage from 2007-09-08.
62537         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62538         __fpending.c.
62539
62540 2007-09-24  Jim Meyering  <jim@meyering.net>
62541
62542         filenamecat.c: Add a test.
62543         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62544         showing how the function works when DIR is the empty string.
62545
62546 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62547
62548         * tests/test-canonicalize.sh: Turn on executable bit.
62549
62550 2007-09-19  Eric Blake  <ebb9@byu.net>
62551
62552         * README: Update CVS instructions.
62553
62554 2007-09-18  Bruno Haible  <bruno@clisp.org>
62555
62556         * modules/areadlink: New file.
62557         * lib/areadlink.h (areadlink): New declaration.
62558         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62559
62560 2007-09-17  Jim Meyering  <jim@meyering.net>
62561
62562         * lib/savewd.c (ESTALE) [!defined]: Define.
62563         Reported to be required on Interix by Martin Koeppe.
62564
62565 2007-09-17  Bruno Haible  <bruno@clisp.org>
62566
62567         * gnulib-tool (func_version): Use $version.
62568
62569 2007-09-16  Bruno Haible  <bruno@clisp.org>
62570
62571         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62572         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62573         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62574         Reported by Greg Schafer <gschafer@zip.com.au>.
62575
62576 2007-09-15  Bruno Haible  <bruno@clisp.org>
62577
62578         * gnulib-tool (sed): Try a little harder to make bash understand the
62579         alias.
62580         Reported by Bruce Korb <bruce.korb@gmail.com>.
62581
62582 2007-09-13  Eric Blake  <ebb9@byu.net>
62583
62584         * ChangeLog: Remove conflict markers.
62585
62586 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62587
62588         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62589         Reported by Bruno Haible <bruno@clisp.org>.
62590
62591 2007-09-12  Bruno Haible  <bruno@clisp.org>
62592
62593         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62594         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62595         is not defined.
62596
62597 2007-09-12  Eric Blake  <ebb9@byu.net>
62598
62599         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62600         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62601         Autoconf definition.
62602         * modules/euidaccess (Depends-on): Add extensions, for
62603         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62604         * modules/fnmatch (Depends-on): Likewise.
62605         * modules/getaddrinfo (Depends-on): Likewise.
62606         * modules/getdelim (Depends-on): Likewise.
62607         * modules/getline (Depends-on): Likewise.
62608         * modules/getsubopt (Depends-on): Likewise.
62609         * modules/gettext (Depends-on): Likewise.
62610         * modules/group-member (Depends-on): Likewise.
62611         * modules/mbchar (Depends-on): Likewise.
62612         * modules/memmem (Depends-on): Likewise.
62613         * modules/mempcpy (Depends-on): Likewise.
62614         * modules/memrchr (Depends-on): Likewise.
62615         * modules/pagealign_alloc (Depends-on): Likewise.
62616         * modules/readutmp (Depends-on): Likewise.
62617         * modules/stpcpy (Depends-on): Likewise.
62618         * modules/stpncpy (Depends-on): Likewise.
62619         * modules/strchrnul (Depends-on): Likewise.
62620         * modules/strndup (Depends-on): Likewise.
62621         * modules/strsep (Depends-on): Likewise.
62622         * modules/strverscmp (Depends-on): Likewise.
62623         * modules/vasprintf (Depends-on): Likewise.
62624         * modules/wcwidth (Depends-on): Likewise.
62625         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62626         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62627         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62628         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62629         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62630         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62631         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62632         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62633         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62634         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62635         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62636         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62637         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62638         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62639         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62640         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62641         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62642         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62644         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62645         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62646         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62647         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62648         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62649         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62651         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62652         so that lock.m4 can be used in gettext without extensions module.
62653
62654 2007-09-11  Bruno Haible  <bruno@clisp.org>
62655
62656         * m4/isc-posix.m4: Remove file.
62657         Suggested by Eric Blake.
62658
62659 2007-09-11  Eric Blake  <ebb9@byu.net>
62660
62661         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62662
62663 2007-09-10  Bruno Haible  <bruno@clisp.org>
62664
62665         * posix-modules: Fix typo in error message.
62666         Reported by Matt <mkraai@beckman.com>.
62667
62668 2007-09-09  Bruno Haible  <bruno@clisp.org>
62669
62670         * doc/functions/getdelim.texi: Update list of platforms lacking the
62671         function.
62672         * doc/functions/getline.texi: Likewise.
62673
62674 2007-09-09  Jim Meyering  <jim@meyering.net>
62675
62676         * lib/hash.c (hash_initialize): Detect calloc failure.
62677         Reported by Bruno Haible.
62678
62679 2007-09-09  Bruno Haible  <bruno@clisp.org>
62680
62681         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62682         malloc or realloc fails.
62683
62684 2007-09-09  Bruno Haible  <bruno@clisp.org>
62685
62686         * modules/getcwd (Depends-on): Add malloc-posix.
62687         * modules/glob (Depends-on): Likewise.
62688         * modules/putenv (Depends-on): Likewise.
62689         * modules/strdup (Depends-on): Likewise.
62690         * modules/getdelim (Depends-on): Add realloc-posix.
62691         * modules/read-file (Depends-on): Likewise.
62692
62693 2007-09-09  Bruno Haible  <bruno@clisp.org>
62694
62695         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62696         (gl_FUNC_MALLOC_POSIX): Require it.
62697         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62698         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62699         * modules/realloc (Files): Add m4/malloc.m4.
62700         * modules/calloc (Files): Likewise.
62701
62702 2007-09-09  Bruno Haible  <bruno@clisp.org>
62703
62704         * modules/malloc-posix: New file.
62705         * modules/malloc (Depends-on): Add malloc-posix.
62706         * lib/malloc.c: Include errno.h.
62707         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62708         and a POSIX-compatible malloc into a single function. Set ENOMEM
62709         when returning NULL.
62710         * m4/malloc.m4: New file.
62711         * doc/functions/malloc.texi: Mention the malloc-posix module.
62712         * lib/stdlib_.h (malloc): New declaration.
62713         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62714         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62715         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62716         and HAVE_MALLOC_POSIX.
62717
62718 2007-09-09  Bruno Haible  <bruno@clisp.org>
62719
62720         * modules/realloc-posix: New file.
62721         * modules/realloc (Depends-on): Add realloc-posix.
62722         * lib/realloc.c: Include errno.h.
62723         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62724         and a POSIX-compatible realloc into a single function. Set ENOMEM
62725         when returning NULL.
62726         * m4/realloc.m4: New file.
62727         * doc/functions/realloc.texi: Mention the realloc-posix module.
62728         * lib/stdlib_.h (realloc): New declaration.
62729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62730         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62731         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62732         and HAVE_REALLOC_POSIX.
62733
62734 2007-09-09  Bruno Haible  <bruno@clisp.org>
62735
62736         * modules/calloc-posix: New file.
62737         * modules/calloc (Depends-on): Add calloc-posix.
62738         * lib/calloc.c: Include errno.h.
62739         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62740         and a POSIX-compatible calloc into a single function. Set ENOMEM
62741         when returning NULL.
62742         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62743         * doc/functions/calloc.texi: Mention the calloc-posix module.
62744         * lib/stdlib_.h (calloc): New declaration.
62745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62746         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62747         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62748         and HAVE_CALLOC_POSIX.
62749
62750 2007-09-09  Bruno Haible  <bruno@clisp.org>
62751
62752         Allow for modules to show an arbitrary notice.
62753         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62754         * gnulib-tool: New option --extract-notice.
62755         (func_usage): Document it.
62756         (sed_extract_prog): Update.
62757         (func_get_notice): New function.
62758         (func_modules_notice): New function.
62759         (func_import, func_create_testdir): Invoke it.
62760         Suggested by Jim Meyering.
62761
62762 2007-09-09  Bruno Haible  <bruno@clisp.org>
62763
62764         * gnulib-tool: New options --verbose, --quiet.
62765         (func_usage): Document them.
62766         (verbose): New variable.
62767         (func_execute_command): New function.
62768         (func_import): Don't show the module list and the file list if
62769         $verbose < 0.
62770         (func_create_testdir): Likewise. Use func_execute_command.
62771         (func_create_megatestdir): Use func_execute_command.
62772
62773 2007-09-08  Bruno Haible  <bruno@clisp.org>
62774
62775         * gnulib-tool (func_import): Prefer rsync over wget when available,
62776         for fetching the PO files.
62777
62778 2007-09-08  Bruno Haible  <bruno@clisp.org>
62779
62780         * posix-modules: New file. Portions copied from gnulib-tool.
62781         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62782
62783 2007-09-08  Jim Meyering  <jim@meyering.net>
62784
62785         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62786         * lib/fpending.h: Rename from __fpending.h.
62787         * lib/fpending.c: Rename from __fpending.c.
62788         Include "fpending.h", not "__fpending.h".
62789         * lib/__fpending.h, lib/__fpending.c: Remove files.
62790         * modules/fpending (Files): Reflect new file names.
62791         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62792
62793 2007-09-08  Bruno Haible  <bruno@clisp.org>
62794
62795         * m4/inttypes-h.m4: Remove stub file.
62796
62797 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62798
62799         * doc/headers/stdint.texi: Discuss #include_next issue.
62800
62801 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62802
62803         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62804
62805 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62806
62807         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62808         in variable name.
62809
62810 2007-09-03  Jim Meyering  <jim@meyering.net>
62811
62812         New module: git-version-gen.
62813         * modules/git-version-gen: New file.
62814
62815         Import changes from coreutils for bootstrap script.
62816
62817         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62818
62819         bootstrap: uses rsync to download the .po files
62820         * build-aux/bootstrap (po_download_command_format): New global.
62821         (download_po_files): Use rsync.
62822         (update_po_files): Don't remove .po files after download,
62823         so future rsync runs can take advantage of the copies.
62824
62825         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62826
62827         Solve the unnecessary-.po-file-regeneration problem once and for all.
62828         * build-aux/bootstrap (download_po_files): New function, renamed from
62829         get_translations.  Now, downloads, but doesn't update LINGUAS.
62830         (update_po_files): New function.
62831
62832         bootstrap: Ignore more.
62833         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62834         uniwidth to e.g., lib/.gitignore.
62835         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62836
62837         * build-aux/bootstrap: New setting: vc_ignore.
62838         (insert_sorted_if_absent): Create $file if absent.
62839         Adapt to new, possibly empty, list: $vc_ignore.
62840
62841         bootstrap: generate more ignorable names
62842         * build-aux/bootstrap (slurp): When generating ignorable names,
62843         also map .sin to .sed, .gperf to .c, and .y to .c.
62844
62845 2007-09-03  Jim Meyering  <jim@meyering.net>
62846
62847         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62848         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62849
62850 2007-09-02  Bruno Haible  <bruno@clisp.org>
62851
62852         Fix mis-recognition of 'mcs' on QNX 6.
62853         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62854         output contains the string "Mono".
62855         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62856         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62857
62858 2007-09-01  Bruno Haible  <bruno@clisp.org>
62859
62860         Fix collision between uniwidth/* and linebreak modules.
62861         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62862         u32_width): Remove declarations.
62863         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62864         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62865         streq3, streq2, streq1, streq0): Remove functions.
62866         (STREQ): Remove macro.
62867         (is_cjk_encoding): Remove function.
62868         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62869         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62870         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62871         * NEWS: Document the change.
62872
62873 2007-09-01  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/streq.h: Add double-inclusion guard.
62876
62877 2007-09-01  Karl Berry  <karl@gnu.org>
62878
62879         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62880
62881 2007-08-28  Jim Meyering  <jim@meyering.net>
62882
62883         Rename mreadlink_with_size to areadlink_with_size.
62884         * NEWS: Document the change.
62885         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62886         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62887         * lib/mreadlink.h: Rename this to...
62888         * lib/areadlink.h: ...this.
62889         * modules/mreadlink-with-size: Rename this to...
62890         * modules/areadlink-with-size: ...this.
62891         * lib/canonicalize.c: Reflect the renaming.
62892         * modules/canonicalize: Likewise.
62893
62894 2007-08-26  Bruno Haible  <bruno@clisp.org>
62895
62896         * gnulib-tool (func_import): When deciding which files to remove,
62897         consider also dangling symbolic links.
62898         Reported by Eric Blake.
62899
62900 2007-08-26  Bruno Haible  <bruno@clisp.org>
62901
62902         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62903
62904 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62905
62906         * lib/readline.c: Don't include getline.h, the prototype is now
62907         found in stdio.h.
62908
62909 2007-08-23  Jim Meyering  <jim@meyering.net>
62910
62911         Getdelim touchup.
62912         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62913         around the funlockfile call, since funlockfile never sets errno.
62914         Don't set errno upon failed realloc.
62915
62916 2007-08-22  Eric Blake  <ebb9@byu.net>
62917
62918         Getline touchups.
62919         * lib/getdelim.c (getdelim): Revert regression that required *n to
62920         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62921         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62922         getdelim, rather than whether implementation is missing.
62923         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62924         * lib/stdio_.h (getline): Also declare if replacement is
62925         required.
62926         * doc/functions/getdelim.texi: New file.
62927         * doc/functions/getline.texi: Likewise.
62928         * doc/gnulib.texi (Function Substitutes): Add new files.
62929         Reported by Bruno Haible.
62930
62931 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62932
62933         * users.txt: Add Guile.
62934
62935 2007-08-22  Eric Blake  <ebb9@byu.net>
62936
62937         * tests/test-getdelim.c (main): Use remove, not unlink.
62938         * tests/test-getline.c (main): Likewise.
62939
62940         Move getline and getdelim into stdio.h, per POSIX 200x.
62941         * modules/getline (Files): Remove getline.h.
62942         (Depends-on): Add stdio.
62943         (configure.ac): Add module indicator.
62944         * modules/getdelim (Files): Remove getdelim.h.
62945         (Depends-on): Add stdio.
62946         (configure.ac): Add module indicator.
62947         * modules/stdio (Makefile.am): Work with new indicators.
62948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62949         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62950         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62951         * lib/getdelim.h: Delete.
62952         * lib/getline.h: Delete.
62953         * lib/stdio_.h (getdelim, getline): Declare.
62954         * modules/getdelim-tests: New module.
62955         * modules/getline-tests: Likewise.
62956         * tests/test-getdelim.c: New file.
62957         * tests/test-getline.c: Likewise.
62958         * NEWS: Document the change.
62959         * lib/getline.c: Update choice of header.
62960         * lib/csharpcomp.c: Likewise.
62961         * lib/getpass.c: Likewise.
62962         * lib/javacomp.c: Likewise.
62963         * lib/javaversion.c: Likewise.
62964         * lib/yesno.c: Likewise.
62965         * lib/getdelim.c: Likewise.
62966         (getdelim): Set errno on failure, and avoid memory leak.
62967
62968 2007-08-19  Bruno Haible  <bruno@clisp.org>
62969
62970         * modules/closein (Depends-on): Add freadahead.
62971         * lib/closein.c: Include freadahead.h.
62972         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62973         is zero.
62974
62975 2007-08-19  Bruno Haible  <bruno@clisp.org>
62976
62977         * modules/freadahead-tests: New file.
62978         * tests/test-freadahead.sh: New file.
62979         * tests/test-freadahead.c: New file.
62980
62981         * modules/freadahead: New file.
62982         * lib/freadahead.h: New file.
62983         * lib/freadahead.c: New file.
62984         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62985         fbufmode, fpurge, freadable, fwritable.
62986
62987 2007-08-19  Eric Blake  <ebb9@byu.net>
62988
62989         Test yesno in combination with closein.
62990         * lib/yesno.c (yesno): Document use of stdin.
62991         * modules/yesno-tests (Files): New module.
62992         * tests/test-yesno.c (main): New file.
62993         * tests/test-yesno.sh: Likewise.
62994
62995 2007-08-19  Bruno Haible  <bruno@clisp.org>
62996
62997         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62998         * lib/fseeko.c (rpl_fseeko): Likewise.
62999         * lib/fseterr.c (fseterr): Likewise.
63000
63001 2007-08-19  Bruno Haible  <bruno@clisp.org>
63002
63003         * tests/test-lseek.c (main): Disable a test for BeOS.
63004         * doc/functions/lseek.texi: Document the BeOS bug.
63005
63006 2007-08-19  Bruno Haible  <bruno@clisp.org>
63007             Eric Blake  <ebb9@byu.net>
63008
63009         * lib/lseek.c: Include <sys/stat.h>.
63010         (rpl_lseek): Add workaround code also for Unix platforms.
63011         Needed for BeOS.
63012         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63013         * doc/functions/lseek.texi: Document BeOS definiency.
63014
63015 2007-08-18  Bruno Haible  <bruno@clisp.org>
63016
63017         * modules/fstrcmp-tests: New file.
63018         * tests/test-fstrcmp.c: New file.
63019
63020 2007-08-18  Bruno Haible  <bruno@clisp.org>
63021
63022         * modules/fstrcmp: New file, from GNU gettext with modifications.
63023         * lib/fstrcmp.h: New file, from GNU gettext.
63024         * lib/fstrcmp.c: New file, from GNU gettext.
63025         * MODULES.html.sh (String handling): Add fstrcmp.
63026
63027 2007-08-18  Bruno Haible  <bruno@clisp.org>
63028
63029         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63030         'bool'.
63031         (diag, compareseq): Remove const from the ctxt argument.
63032         (USE_HEURISTIC): Undefine at the end.
63033
63034 2007-08-18  Jim Meyering  <jim@meyering.net>
63035
63036         New file: lib/idcache.h
63037         * NEWS: Mention the addition.
63038         * modules/idcache (Files): Add lib/idcache.h
63039         * lib/idcache.c: Include "idcache.h".
63040         Don't include <sys/types.h>.
63041         Add a FIXME comment.
63042         Move file-scoped "static" declarations to the top.
63043         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63044
63045 2007-08-17  Bruno Haible  <bruno@clisp.org>
63046         and Paul Eggert  <eggert@cs.ucla.edu>
63047
63048         * MODULES.html.sh: Add diffseq.
63049         * modules/diffseq: New file.
63050         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63051         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63052
63053 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63054
63055         Import changes from coreutils for bootstrap script.
63056
63057         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63058
63059         * build-aux/bootstrap (slurp): Work even in environments where
63060         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63061         current code does not slurp files whose names start with ".", and
63062         this looks like it might be a troublesome area.
63063
63064         2007-07-11  Jim Meyering  <jim@meyering.net>
63065
63066         If there's a GPL vN copyright comment, require that N == 3.
63067
63068         2007-07-08  Jim Meyering  <jim@meyering.net>
63069
63070         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63071         * build-aux/bootstrap (mam_template): Move definition out of loop.
63072
63073         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63074
63075         * build-aux/bootstrap (symlink_to_dir): Rename function from
63076         symlink_to_gnulib.  Add a directory parameter.  Update all
63077         callers.
63078         (cp_mark_as_generated): Also check for -- and link to -- files in
63079         gl/.
63080
63081         2007-07-08  Jim Meyering  <jim@meyering.net>
63082
63083         Adapt to deeper hierarchy in gnulib.
63084         * build-aux/bootstrap (symlink_to_dir): If the destination
63085         directory doesn't exist, create it. This is required at least for
63086         "lib/uniwidth/cjk.h".
63087
63088         2007-05-15  Jim Meyering  <jim@meyering.net>
63089
63090         * build-aux/bootstrap: Now that generated Makefile.am files
63091         are no longer under version control, they must be created at
63092         bootstrap time.
63093
63094 2007-08-14  Ben Pfaff  <blp@gnu.org>
63095
63096         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63097
63098 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63099
63100         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63101         given the changes below.
63102         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63103         even on hosts that have padding bits beyond the supported 64.
63104
63105 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63108         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63109         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63110         depends on it.
63111         (xstrtol_error): Remove.
63112         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63113         but with a different signature.
63114         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63115         * lib/xstrtol-error.c: Include exitfail.h.
63116         (xstrtol_fatal): New function, with a different signature from the
63117         old xstrtol_error, so that the caller need not worry about passing
63118         in an exit status, or about storage management of the option argument.
63119         (xstrtol_error): Now a static function.  Redo signature to
63120         implement xstrtol_fatal.  Output the correct number of hyphens in
63121         front of the option so that the caller need not worry about
63122         storage management.
63123         (N_): New macro.
63124         (_): Remove; not used now.
63125         * modules/xstrtol: Depend on getopt.
63126         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63127         of old STRTOL_FATAL_ERROR macro.
63128         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63129         of test program.
63130         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63131         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63132
63133 2007-08-08  Eric Blake  <ebb9@byu.net>
63134
63135         * lib/xstrtol-error.c: Add missing include.
63136
63137         Move xstrtol messages into gnulib domain, when --pobase is used.
63138         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63139         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63140         * modules/xstrtol (Files): Distribute new file.
63141         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63142         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63143         * tests/test-xstrtol.c: ...into new file.
63144         * tests/test-xstrtoul.c: Also test xstrtoul.
63145         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63146         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63147         * tests/test-xstrtol.sh: Drive the tests.
63148         * tests/test-xstrtoimax.sh: Likewise.
63149         * tests/test-xstrtoumax.sh: Likewise.
63150         * modules/xstrtol-tests: New module.
63151         * modules/xstrtoimax-tests: Likewise.
63152         * modules/xstrtoumax-tests: Likewise.
63153
63154 2007-08-08  Jim Meyering  <jim@meyering.net>
63155
63156         New function: mfile_name_concat.
63157         * lib/filenamecat.c (mfile_name_concat): New function, just like
63158         file_name_concat, but return NULL upon failure rather than exiting
63159         with a diagnostic.
63160         * lib/filenamecat.h: Declare it.
63161
63162 2007-08-07  Bruno Haible  <bruno@clisp.org>
63163
63164         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63165         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63166         warning from gcc.
63167         Reported by Eric Blake.
63168
63169 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63170
63171         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63172         * modules/crypto/arcfour (License): Likewise.
63173         * modules/crypto/des-tests (License): Likewise.
63174         * modules/crypto/gc-arctwo-tests (License): Likewise.
63175         * modules/crypto/gc-des-tests (License): Likewise.
63176         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63177         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63178         * modules/crypto/gc-md2-tests (License): Likewise.
63179         * modules/crypto/gc-md4-tests (License): Likewise.
63180         * modules/crypto/gc-md5-tests (License): Likewise.
63181         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63182         * modules/crypto/gc-rijndael-tests (License): Likewise.
63183         * modules/crypto/gc-sha1-tests (License): Likewise.
63184         * modules/crypto/gc-tests (License): Likewise.
63185         * modules/crypto/hmac-md5 (License): Likewise.
63186         * modules/crypto/hmac-sha1 (License): Likewise.
63187         * modules/crypto/md2-tests (License): Likewise.
63188         * modules/crypto/md4-tests (License): Likewise.
63189         * modules/crypto/md5 (License): Likewise.
63190         * modules/crypto/rijndael (License): Likewise.
63191         * modules/crypto/sha1 (License): Likewise.
63192         * modules/memxor (License): Likewise.
63193
63194 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63195         and Bruno Haible  <bruno@clisp.org>
63196
63197         * NEWS: Describe interface changes to human, xstrtol.
63198         * lib/human.h: Include <xstrtol.h>.
63199         (human_options): Return enum strtol_error, not int.  Remove
63200         bool arg; take int * instead.
63201         * lib/human.c: Don't include "gettext.h".
63202         (_): Remove; no longer used.
63203         Don't include <xstrtol.h>, since human.h does it.
63204         (human_options): Adjust to abovementioned interface changes.
63205         Do not report error to stderr; that's now the caller's
63206         responsibility.
63207         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63208         interface change.
63209         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63210         Str, Argument_type_string.  All uses changed.  Put " argument"
63211         in diagnostics to make them clearer.  Change wording of suffix
63212         message for clarity.
63213         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63214         Argument_type_string.
63215         (STRTOL_FATAL_WARN): Remove; no longer used.
63216         * modules/human (Depends-on): Remove gettext-h.
63217
63218 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63219
63220         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63221
63222 2007-07-31  Bruno Haible  <bruno@clisp.org>
63223
63224         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63225         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63226         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63227
63228 2007-07-31  Bruno Haible  <bruno@clisp.org>
63229
63230         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63231         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63232
63233 2007-07-30  Bruno Haible  <bruno@clisp.org>
63234
63235         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63236         * modules/c-ctype (License): Likewise.
63237         * modules/c-strcase (License): Likewise.
63238         * modules/check-version (License): Likewise.
63239         * modules/iconv (License): Likewise.
63240         * modules/iconv_open (License): Likewise.
63241         * modules/read-file (License): Likewise.
63242         * modules/striconv (License): Likewise.
63243         * modules/strverscmp (License): Likewise.
63244         * modules/vasprintf (License): Likewise.
63245         * modules/crypto/des (License): Likewise.
63246         * modules/crypto/gc (License): Likewise.
63247         * modules/crypto/gc-arcfour (License): Likewise.
63248         * modules/crypto/gc-arctwo (License): Likewise.
63249         * modules/crypto/gc-des (License): Likewise.
63250         * modules/crypto/gc-hmac-md5 (License): Likewise.
63251         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63252         * modules/crypto/gc-md2 (License): Likewise.
63253         * modules/crypto/gc-md4 (License): Likewise.
63254         * modules/crypto/gc-md5 (License): Likewise.
63255         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63256         * modules/crypto/gc-random (License): Likewise.
63257         * modules/crypto/gc-rijndael (License): Likewise.
63258         * modules/crypto/gc-sha1 (License): Likewise.
63259         * modules/crypto/md2 (License): Likewise.
63260         * modules/crypto/md4 (License): Likewise.
63261
63262 2007-07-30  Jim Meyering  <jim@meyering.net>
63263
63264         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63265         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63266         it has valid stat data.  This bug would cause du not to count the
63267         sizes of inaccessible directories.
63268         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63269         in <http://bugzilla.redhat.com/250077>.
63270
63271 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63272             Bruno Haible  <bruno@clisp.org>
63273
63274         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63275         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63276         #include_next, gives a diagnostic about it, but reports no error in
63277         the exit code.
63278         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63279
63280 2007-07-24  Ben Pfaff  <blp@gnu.org>
63281
63282         Improve name: "count-one-bits" is better than "popcount".
63283         * MODULES.html.sh: Update name.
63284         * lib/popcount.h: Renamed lib/count-one-bits.h.
63285         (popcount): Renamed count_one_bits.
63286         (popcountl): Renamed count_one_bits_l.
63287         (popcountll): Renamed count_one_bits_ll.
63288         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63289         * modules/popcount: Renamed module/count-one-bits.
63290         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63291         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63292
63293 2007-07-23  Ben Pfaff  <blp@gnu.org>
63294
63295         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63296         better code generation, and add U to large constants to avoid
63297         warnings, in non-GCC case.
63298         Suggested by Bruno Haible.
63299
63300 2007-07-23  Ben Pfaff  <blp@gnu.org>
63301
63302         * lib/popcount.h: Use verify_true instead of if...abort.
63303         * modules/popcount: Depend on verify module.
63304         Suggested by Jim Meyering.
63305
63306 2007-07-23  Bruno Haible  <bruno@clisp.org>
63307
63308         * gnulib-tool (func_import): Create a .cvsignore file also when the
63309         directory is not yet in CVS but the toplevel directory is. When
63310         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63311         Reported by Karl Berry.
63312
63313 2007-07-22  Ben Pfaff  <blp@gnu.org>
63314
63315         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63316         case.
63317         Suggested by Eric Blake.
63318
63319 2007-07-22  Ben Pfaff  <blp@gnu.org>
63320
63321         New module: popcount.
63322         * MODULES.html.sh: Add popcount.
63323         * modules/popcount: New file.
63324         * modules/popcount-tests: New file.
63325         * tests/test-popcount.c: New file.
63326         * lib/popcount.h: New file.
63327         * m4/popcount.m4: New file.
63328
63329 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63330
63331         * build-aux/announce-gen: Update to GPLv3.
63332
63333         * build-aux/config.guess: Update from config.
63334
63335 2007-07-21  Bruno Haible  <bruno@clisp.org>
63336
63337         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63338         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63339
63340 2007-07-20  Jim Meyering  <jim@meyering.net>
63341
63342         * check-module: Diagnose a self-dependency.
63343
63344 2007-07-19  Bruno Haible  <bruno@clisp.org>
63345
63346         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63347         empty.
63348         Reported by Eric Blake.
63349
63350 2007-07-18  Bruno Haible  <bruno@clisp.org>
63351
63352         * gnulib-tool: New options --po-base, --po-domain.
63353         (func_usage): Document them.
63354         (pobase, po_domain): New variables.
63355         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63356         DEFAULT_TEXT_DOMAIN.
63357         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63358         (func_import): Consider pobase and po_domain. Create a po/ directory.
63359         (func_create_testdir): Set pobase and po_domain to empty.
63360         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63361         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63362
63363 2007-07-18  Bruno Haible  <bruno@clisp.org>
63364
63365         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63366         EXTRA_DIST augmentation for files in build-aux/.
63367
63368 2007-07-16  Bruno Haible  <bruno@clisp.org>
63369
63370         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63371         * modules/getdelim (License): Likewise.
63372
63373 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63374
63375         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63376         * modules/d-type (License): Likewise.
63377         * modules/extensions (License): Likewise.
63378         * modules/fnmatch (License): Likewise.
63379         * modules/fseeko (License): Likewise.
63380         * modules/getaddrinfo (License): Likewise.
63381         * modules/getline (License): Likewise.
63382         * modules/getlogin_r (License): Likewise.
63383         * modules/getpass (License): Likewise.
63384         * modules/gettimeofday (License): Likewise.
63385         * modules/glob (License): Likewise.
63386         * modules/inet_ntop (License): Likewise.
63387         * modules/malloc (License): Likewise.
63388         * modules/malloca (License): Likewise.
63389         * modules/memmem (License): Likewise.
63390         * modules/mempcpy (License): Likewise.
63391         * modules/memset (License): Likewise.
63392         * modules/minmax (License): Likewise.
63393         * modules/mktime (License): Likewise.
63394         * modules/netinet_in (License): Likewise.
63395         * modules/pathmax (License): Likewise.
63396         * modules/poll (License): Likewise.
63397         * modules/regex (License): Likewise.
63398         * modules/snprintf (License): Likewise.
63399         * modules/stdbool (License): Likewise.
63400         * modules/stdint (License): Likewise.
63401         * modules/stdio (License): Likewise.
63402         * modules/strcase (License): Likewise.
63403         * modules/strcasestr (License): Likewise.
63404         * modules/strdup (License): Likewise.
63405         * modules/string (License): Likewise.
63406         * modules/strndup (License): Likewise.
63407         * modules/strnlen (License): Likewise.
63408         * modules/strpbrk (License): Likewise.
63409         * modules/strptime (License): Likewise.
63410         * modules/strsep (License): Likewise.
63411         * modules/sys_select (License): Likewise.
63412         * modules/sys_socket (License): Likewise.
63413         * modules/sys_stat (License): Likewise.
63414         * modules/sys_time (License): Likewise.
63415         * modules/time (License): Likewise.
63416         * modules/time_r (License): Likewise.
63417         * modules/timegm (License): Likewise.
63418         * modules/unistd (License): Likewise.
63419         * modules/vsnprintf (License): Likewise.
63420         * modules/wctype (License): Likewise.
63421
63422 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63423
63424         * modules/argz (License): LGPLv2+.
63425
63426 2007-07-15  Karl Berry  <karl@gnu.org>
63427
63428         * doc/gnulib.texi: revise node structure per new fdl.texi.
63429
63430 2007-07-14  Bruno Haible  <bruno@clisp.org>
63431
63432         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63433         the output file.
63434         * lib/uniname/uninames.h: Regenerated.
63435
63436 2007-07-14  Karl Berry  <karl@gnu.org>
63437
63438         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63439         omitting sectioning and index commands.
63440
63441 2007-07-13  Bruno Haible  <bruno@clisp.org>
63442
63443         New gnulib-tool option --more-symlinks.
63444         * gnulib-tool (func_usage): Document --more-symlinks.
63445         (do_copyrights): New variable.
63446         Recognize option --more-symlinks.
63447         (func_import): Don't add a copyright notice transform to
63448         sed_transform_lib_file if do_copyrights is empty.
63449
63450 2007-07-13  Bruno Haible  <bruno@clisp.org>
63451
63452         * lib/vasnprintf.c (decimal_point_char): Define also if
63453         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63454         && !NEED_PRINTF_DIRECTIVE_A.
63455         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63456         Gary V. Vaughan <gary@gnu.org>.
63457
63458 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * lib/inttypes_.h: Undo previous change, since it was fixed
63461         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63462
63463 2007-07-13  Bruno Haible  <bruno@clisp.org>
63464
63465         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63466         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63467
63468 2007-07-13  Jim Meyering  <jim@meyering.net>
63469
63470         df: Don't fail for Tru64's "file-on-file mount".
63471         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63472         so we fall through and use statfs instead.  Details here:
63473         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63474         Reported by Albert Chin.
63475
63476 2007-07-13  Bruno Haible  <bruno@clisp.org>
63477
63478         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63479         * modules/configmake (License): Likewise.
63480         * modules/gettext (License): Likewise.
63481         * modules/gettext-h (License): Likewise.
63482         * modules/include_next (License): Likewise.
63483         * modules/link-warning (License): Likewise.
63484         * modules/localcharset (License): Likewise.
63485         * modules/localename (License): Likewise.
63486         * modules/lock (License): Likewise.
63487         * modules/relocatable-lib-lgpl (License): Likewise.
63488         * modules/size_max (License): Likewise.
63489         * modules/vasnprintf (License): Likewise.
63490         * modules/wchar (License): Likewise.
63491         * modules/xsize (License): Likewise.
63492
63493 2007-07-13  Bruno Haible  <bruno@clisp.org>
63494
63495         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63496         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63497
63498 2007-07-12  Bruno Haible  <bruno@clisp.org>
63499
63500         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63501         in the modules files.
63502
63503 2007-07-11  Karl Berry  <karl@gnu.org>
63504
63505         * MODULES.html.sh (func_module): use
63506          sed -e '\|^'"${includefile}"'$|d'
63507          instead of /.../d, to avoid errors on $includefile's containing /.
63508
63509 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63510
63511         * gnulib-tool (func_import): Avoid duplication of --avoid
63512         statements
63513         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63514         names to `_' in variable names.
63515
63516 2007-07-10  Eric Blake  <ebb9@byu.net>
63517
63518         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63519         * NEWS: Document this change.
63520
63521 2007-07-08  Bruno Haible  <bruno@clisp.org>
63522
63523         Update to Unicode 5.0.
63524         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63525         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63526         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63527         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63528         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63529         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63530         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63531         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63532         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63533         U+10A3F, U+1D242..U+1D244.
63534         (nonspacing_table_ind): Update.
63535         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63536         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63537
63538 2007-07-08  Bruno Haible  <bruno@clisp.org>
63539
63540         Update to Unicode 5.0.
63541         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63542         code transform. Extend the name index field of unicode_name_to_code and
63543         unicode_code_to_name from 16 to 24 bits.
63544         * lib/uniname/uniname.c (unicode_character_name,
63545         unicode_name_character): Add the range 0x12xxx to the code transform.
63546         * lib/uniname/uninames.h: Regenerated.
63547         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63548
63549 2007-07-07  Bruno Haible  <bruno@clisp.org>
63550
63551         * modules/wcwidth-tests: New file.
63552         * tests/test-wcwidth.c: New file.
63553
63554         Work around MacOS X wcwidth() bug.
63555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63556         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63557         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63558         original wcwidth in non-UTF-8 locales.
63559         * modules/wcwidth (Depends-on): Add localcharset, streq,
63560         uniwidth/width.
63561         * doc/functions/wcwidth.texi: Update.
63562
63563 2007-07-07  Bruno Haible  <bruno@clisp.org>
63564
63565         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63566         (wcwidth): New declaration.
63567         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63568         macros.
63569         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63570         here. Prepare for creating <wchar.h> unconditionally.
63571         * modules/wchar (Depends-on): Add link-warning.
63572         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63573         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63574         * lib/wcwidth.h: Remove file.
63575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63576         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63577         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63578         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63579         (Include): Replace wcwidth.h with <wchar.h>.
63580         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63581         * lib/mbchar.h: Don't include wcwidth.h.
63582         * lib/mbswidth.c: Likewise.
63583         * NEWS: Mention the change.
63584
63585 2007-07-07  Bruno Haible  <bruno@clisp.org>
63586
63587         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63588         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63589         definition with an external declaration.
63590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63591         defined as a function. Remove AC_C_INLINE requirement.
63592         * modules/wcwidth (Files): Add lib/wcwidth.c.
63593         (Makefile.am): Remove redundant statement.
63594
63595 2007-07-07  Bruno Haible  <bruno@clisp.org>
63596
63597         * MODULES.html.sh (Unicode string functions): Add the new modules.
63598
63599         * tests/uniwidth/test-u32-strwidth.c: New file.
63600         * modules/uniwidth/u32-strwidth-tests: New file.
63601
63602         * lib/uniwidth/u32-strwidth.c: New file.
63603         * modules/uniwidth/u32-strwidth: New file.
63604
63605         * tests/uniwidth/test-u16-strwidth.c: New file.
63606         * modules/uniwidth/u16-strwidth-tests: New file.
63607
63608         * lib/uniwidth/u16-strwidth.c: New file.
63609         * modules/uniwidth/u16-strwidth: New file.
63610
63611         * tests/uniwidth/test-u8-strwidth.c: New file.
63612         * modules/uniwidth/u8-strwidth-tests: New file.
63613
63614         * lib/uniwidth/u8-strwidth.c: New file.
63615         * modules/uniwidth/u8-strwidth: New file.
63616
63617         * tests/uniwidth/test-u32-width.c: New file.
63618         * modules/uniwidth/u32-width-tests: New file.
63619
63620         * lib/uniwidth/u32-width.c: New file.
63621         * modules/uniwidth/u32-width: New file.
63622
63623         * tests/uniwidth/test-u16-width.c: New file.
63624         * modules/uniwidth/u16-width-tests: New file.
63625
63626         * lib/uniwidth/u16-width.c: New file.
63627         * modules/uniwidth/u16-width: New file.
63628
63629         * tests/uniwidth/test-u8-width.c: New file.
63630         * modules/uniwidth/u8-width-tests: New file.
63631
63632         * lib/uniwidth/u8-width.c: New file.
63633         * modules/uniwidth/u8-width: New file.
63634
63635         * tests/uniwidth/test-uc_width.c: New file.
63636         * modules/uniwidth/width-tests: New file.
63637
63638         * lib/uniwidth/width.c: New file, from GNU libiconv.
63639         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63640         * modules/uniwidth/width: New file.
63641
63642         * lib/uniwidth.h: New file, from GNU libiconv.
63643         * modules/uniwidth/base: New file.
63644
63645 2007-07-07  Bruno Haible  <bruno@clisp.org>
63646
63647         * lib/uniname.h: New file, from GNU gettext.
63648         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63649         * lib/uniname/uninames.h: New file, from GNU gettext.
63650         * lib/uniname/uniname.c: New file, from GNU gettext.
63651         * tests/uniname/test-uninames.sh: New file.
63652         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63653         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63654         * modules/uniname/base: New file.
63655         * modules/uniname/uniname: New file.
63656         * modules/uniname/uniname-tests: New file.
63657         * MODULES.html.sh (Unicode string functions): Add the new modules.
63658
63659 2007-07-06  Bruno Haible  <bruno@clisp.org>
63660
63661         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63662
63663 2007-07-06  Bruno Haible  <bruno@clisp.org>
63664
63665         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63666         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63667         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63668         include <sys/time.h>.
63669         Reported by Eric Blake.
63670
63671 2007-07-06  Eric Blake  <ebb9@byu.net>
63672
63673         Fix testing canonicalize on cygwin.
63674         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63675         Revert patch from 2007-06-19.
63676         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63677         canonicalize module is also in use.
63678         * tests/test-canonicalize.c: New file.
63679         * tests/test-canonicalize.sh: Likewise.
63680         * modules/canonicalize-tests: Likewise.
63681
63682 2007-07-06  Jim Meyering  <jim@meyering.net>
63683
63684         * lib/getugroups.c (getugroups): Detect getgrent failure.
63685         Adjust comment to reflect reality: this function may return -1.
63686
63687 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63688
63689         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63690         the new TP address.
63691         (usage): Fix typo
63692         (gnulib_mk): New variable.
63693
63694 2007-07-05  Jim Meyering  <jim@meyering.net>
63695
63696         Don't let endgrent clobber errno, no matter how improbable.
63697         * lib/getugroups.c (getugroups): Save and restore errno around
63698         endgrent call.
63699
63700         Close the group DB even when failing with 2^31 or more members.
63701         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63702
63703 2007-07-04  Jim Meyering  <jim@meyering.net>
63704
63705         * lib/getugroups.h: New file.
63706         * lib/getugroups.c: Include "getugroups.h".
63707         Remove uses of "register" keyword.
63708         Move local variable, "cp", down into scope where used.
63709         Give "username" parameter the "const" attribute.
63710         * modules/getugroups (Files): Add lib/getugroups.h
63711
63712 2007-07-04  Karl Berry  <karl@gnu.org>
63713
63714         * MODULES.html.sh (func_all_modules): Complete rename of
63715         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63716
63717 2007-07-02  Bruno Haible  <bruno@clisp.org>
63718
63719         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63720         mode, when inttypes.h comes from gnulib.
63721         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63722
63723 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63724
63725         * NEWS: Mention lgpl module name change.
63726
63727         * modules/lgpl-2.1: Renamed from lgpl.
63728
63729         * NEWS: Mention gpl module name change.
63730
63731         * modules/gpl-3.0: New file, based on gpl-2.0.
63732
63733         * modules/gpl-2.0: Renamed from gpl.
63734
63735         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63736         doc/gpl-2.0.texi.
63737
63738 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63739
63740         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63741         #define __STDC_LIMIT_MACROS temporarily while including
63742         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63743         Problem reported by Joel E. Denny in
63744         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63745
63746 2007-07-01  Bruno Haible  <bruno@clisp.org>
63747
63748         * lib/unistdio.h: New file.
63749         * lib/unistdio/u-asnprintf.h: New file.
63750         * lib/unistdio/u-asprintf.h: New file.
63751         * lib/unistdio/u-printf-args.c: New file.
63752         * lib/unistdio/u-printf-args.h: New file.
63753         * lib/unistdio/u-printf-parse.h: New file.
63754         * lib/unistdio/u-snprintf.h: New file.
63755         * lib/unistdio/u-sprintf.h: New file.
63756         * lib/unistdio/u-vasprintf.h: New file.
63757         * lib/unistdio/u-vsnprintf.h: New file.
63758         * lib/unistdio/u-vsprintf.h: New file.
63759         * lib/unistdio/ulc-asnprintf.c: New file.
63760         * lib/unistdio/ulc-asprintf.c: New file.
63761         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63762         * lib/unistdio/ulc-printf-parse.c: New file.
63763         * lib/unistdio/ulc-snprintf.c: New file.
63764         * lib/unistdio/ulc-sprintf.c: New file.
63765         * lib/unistdio/ulc-vasnprintf.c: New file.
63766         * lib/unistdio/ulc-vasprintf.c: New file.
63767         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63768         * lib/unistdio/ulc-vsnprintf.c: New file.
63769         * lib/unistdio/ulc-vsprintf.c: New file.
63770         * lib/unistdio/u8-asnprintf.c: New file.
63771         * lib/unistdio/u8-asprintf.c: New file.
63772         * lib/unistdio/u8-printf-parse.c: New file.
63773         * lib/unistdio/u8-snprintf.c: New file.
63774         * lib/unistdio/u8-sprintf.c: New file.
63775         * lib/unistdio/u8-vasnprintf.c: New file.
63776         * lib/unistdio/u8-vasprintf.c: New file.
63777         * lib/unistdio/u8-vsnprintf.c: New file.
63778         * lib/unistdio/u8-vsprintf.c: New file.
63779         * lib/unistdio/u8-u8-asnprintf.c: New file.
63780         * lib/unistdio/u8-u8-asprintf.c: New file.
63781         * lib/unistdio/u8-u8-snprintf.c: New file.
63782         * lib/unistdio/u8-u8-sprintf.c: New file.
63783         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63784         * lib/unistdio/u8-u8-vasprintf.c: New file.
63785         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63786         * lib/unistdio/u8-u8-vsprintf.c: New file.
63787         * lib/unistdio/u16-asnprintf.c: New file.
63788         * lib/unistdio/u16-asprintf.c: New file.
63789         * lib/unistdio/u16-printf-parse.c: New file.
63790         * lib/unistdio/u16-snprintf.c: New file.
63791         * lib/unistdio/u16-sprintf.c: New file.
63792         * lib/unistdio/u16-vasnprintf.c: New file.
63793         * lib/unistdio/u16-vasprintf.c: New file.
63794         * lib/unistdio/u16-vsnprintf.c: New file.
63795         * lib/unistdio/u16-vsprintf.c: New file.
63796         * lib/unistdio/u16-u16-asnprintf.c: New file.
63797         * lib/unistdio/u16-u16-asprintf.c: New file.
63798         * lib/unistdio/u16-u16-snprintf.c: New file.
63799         * lib/unistdio/u16-u16-sprintf.c: New file.
63800         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63801         * lib/unistdio/u16-u16-vasprintf.c: New file.
63802         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63803         * lib/unistdio/u16-u16-vsprintf.c: New file.
63804         * lib/unistdio/u32-asnprintf.c: New file.
63805         * lib/unistdio/u32-asprintf.c: New file.
63806         * lib/unistdio/u32-printf-parse.c: New file.
63807         * lib/unistdio/u32-snprintf.c: New file.
63808         * lib/unistdio/u32-sprintf.c: New file.
63809         * lib/unistdio/u32-vasnprintf.c: New file.
63810         * lib/unistdio/u32-vasprintf.c: New file.
63811         * lib/unistdio/u32-vsnprintf.c: New file.
63812         * lib/unistdio/u32-vsprintf.c: New file.
63813         * lib/unistdio/u32-u32-asnprintf.c: New file.
63814         * lib/unistdio/u32-u32-asprintf.c: New file.
63815         * lib/unistdio/u32-u32-snprintf.c: New file.
63816         * lib/unistdio/u32-u32-sprintf.c: New file.
63817         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63818         * lib/unistdio/u32-u32-vasprintf.c: New file.
63819         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63820         * lib/unistdio/u32-u32-vsprintf.c: New file.
63821         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63822         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63823         * tests/unistdio/test-ulc-printf1.h: New file.
63824         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63825         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63826         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63827         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63828         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63829         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63830         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63831         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63832         * tests/unistdio/test-u8-asnprintf1.c: New file.
63833         * tests/unistdio/test-u8-asnprintf1.h: New file.
63834         * tests/unistdio/test-u8-printf1.h: New file.
63835         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63836         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63837         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63838         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63839         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63840         * tests/unistdio/test-u8-vasprintf1.c: New file.
63841         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63842         * tests/unistdio/test-u8-vsprintf1.c: New file.
63843         * tests/unistdio/test-u16-asnprintf1.c: New file.
63844         * tests/unistdio/test-u16-asnprintf1.h: New file.
63845         * tests/unistdio/test-u16-printf1.h: New file.
63846         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63847         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63848         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63849         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63850         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63851         * tests/unistdio/test-u16-vasprintf1.c: New file.
63852         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63853         * tests/unistdio/test-u16-vsprintf1.c: New file.
63854         * tests/unistdio/test-u32-asnprintf1.c: New file.
63855         * tests/unistdio/test-u32-asnprintf1.h: New file.
63856         * tests/unistdio/test-u32-printf1.h: New file.
63857         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63858         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63859         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63860         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63861         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63862         * tests/unistdio/test-u32-vasprintf1.c: New file.
63863         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63864         * tests/unistdio/test-u32-vsprintf1.c: New file.
63865         * modules/unistdio/base: New file.
63866         * modules/unistdio/u-printf-args: New file.
63867         * modules/unistdio/ulc-asnprintf: New file.
63868         * modules/unistdio/ulc-asprintf: New file.
63869         * modules/unistdio/ulc-fprintf: New file.
63870         * modules/unistdio/ulc-printf-parse: New file.
63871         * modules/unistdio/ulc-snprintf: New file.
63872         * modules/unistdio/ulc-sprintf: New file.
63873         * modules/unistdio/ulc-vasnprintf: New file.
63874         * modules/unistdio/ulc-vasprintf: New file.
63875         * modules/unistdio/ulc-vfprintf: New file.
63876         * modules/unistdio/ulc-vsnprintf: New file.
63877         * modules/unistdio/ulc-vsprintf: New file.
63878         * modules/unistdio/u8-asnprintf: New file.
63879         * modules/unistdio/u8-asprintf: New file.
63880         * modules/unistdio/u8-printf-parse: New file.
63881         * modules/unistdio/u8-snprintf: New file.
63882         * modules/unistdio/u8-sprintf: New file.
63883         * modules/unistdio/u8-vasnprintf: New file.
63884         * modules/unistdio/u8-vasprintf: New file.
63885         * modules/unistdio/u8-vsnprintf: New file.
63886         * modules/unistdio/u8-vsprintf: New file.
63887         * modules/unistdio/u8-u8-asnprintf: New file.
63888         * modules/unistdio/u8-u8-asprintf: New file.
63889         * modules/unistdio/u8-u8-snprintf: New file.
63890         * modules/unistdio/u8-u8-sprintf: New file.
63891         * modules/unistdio/u8-u8-vasnprintf: New file.
63892         * modules/unistdio/u8-u8-vasprintf: New file.
63893         * modules/unistdio/u8-u8-vsnprintf: New file.
63894         * modules/unistdio/u8-u8-vsprintf: New file.
63895         * modules/unistdio/u16-asnprintf: New file.
63896         * modules/unistdio/u16-asprintf: New file.
63897         * modules/unistdio/u16-printf-parse: New file.
63898         * modules/unistdio/u16-snprintf: New file.
63899         * modules/unistdio/u16-sprintf: New file.
63900         * modules/unistdio/u16-vasnprintf: New file.
63901         * modules/unistdio/u16-vasprintf: New file.
63902         * modules/unistdio/u16-vsnprintf: New file.
63903         * modules/unistdio/u16-vsprintf: New file.
63904         * modules/unistdio/u16-u16-asnprintf: New file.
63905         * modules/unistdio/u16-u16-asprintf: New file.
63906         * modules/unistdio/u16-u16-snprintf: New file.
63907         * modules/unistdio/u16-u16-sprintf: New file.
63908         * modules/unistdio/u16-u16-vasnprintf: New file.
63909         * modules/unistdio/u16-u16-vasprintf: New file.
63910         * modules/unistdio/u16-u16-vsnprintf: New file.
63911         * modules/unistdio/u16-u16-vsprintf: New file.
63912         * modules/unistdio/u32-asnprintf: New file.
63913         * modules/unistdio/u32-asprintf: New file.
63914         * modules/unistdio/u32-printf-parse: New file.
63915         * modules/unistdio/u32-snprintf: New file.
63916         * modules/unistdio/u32-sprintf: New file.
63917         * modules/unistdio/u32-vasnprintf: New file.
63918         * modules/unistdio/u32-vasprintf: New file.
63919         * modules/unistdio/u32-vsnprintf: New file.
63920         * modules/unistdio/u32-vsprintf: New file.
63921         * modules/unistdio/u32-u32-asnprintf: New file.
63922         * modules/unistdio/u32-u32-asprintf: New file.
63923         * modules/unistdio/u32-u32-snprintf: New file.
63924         * modules/unistdio/u32-u32-sprintf: New file.
63925         * modules/unistdio/u32-u32-vasnprintf: New file.
63926         * modules/unistdio/u32-u32-vasprintf: New file.
63927         * modules/unistdio/u32-u32-vsnprintf: New file.
63928         * modules/unistdio/u32-u32-vsprintf: New file.
63929         * modules/unistdio/ulc-asnprintf-tests: New file.
63930         * modules/unistdio/ulc-vasnprintf-tests: New file.
63931         * modules/unistdio/ulc-vasprintf-tests: New file.
63932         * modules/unistdio/ulc-vsnprintf-tests: New file.
63933         * modules/unistdio/ulc-vsprintf-tests: New file.
63934         * modules/unistdio/u8-asnprintf-tests: New file.
63935         * modules/unistdio/u8-vasnprintf-tests: New file.
63936         * modules/unistdio/u8-vasprintf-tests: New file.
63937         * modules/unistdio/u8-vsnprintf-tests: New file.
63938         * modules/unistdio/u8-vsprintf-tests: New file.
63939         * modules/unistdio/u16-asnprintf-tests: New file.
63940         * modules/unistdio/u16-vasnprintf-tests: New file.
63941         * modules/unistdio/u16-vasprintf-tests: New file.
63942         * modules/unistdio/u16-vsnprintf-tests: New file.
63943         * modules/unistdio/u16-vsprintf-tests: New file.
63944         * modules/unistdio/u32-asnprintf-tests: New file.
63945         * modules/unistdio/u32-vasnprintf-tests: New file.
63946         * modules/unistdio/u32-vasprintf-tests: New file.
63947         * modules/unistdio/u32-vsnprintf-tests: New file.
63948         * modules/unistdio/u32-vsprintf-tests: New file.
63949         * MODULES.html.sh (Unicode string functions): Add the new modules.
63950
63951 2007-07-01  Bruno Haible  <bruno@clisp.org>
63952
63953         * lib/sprintf.c (sprintf): Limit the available length estimation,
63954         to avoid address wraparound.
63955         * lib/vsprintf.c (vsprintf): Likewise.
63956         * modules/sprintf-posix (Dependencies): Add stdint.
63957         * modules/vsprintf-posix (Dependencies): Likewise.
63958
63959 2007-07-01  Bruno Haible  <bruno@clisp.org>
63960
63961         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63962         Windows PATH as well. Conservative double-quoting. Comments.
63963
63964 2007-07-01  Bruno Haible  <bruno@clisp.org>
63965             Eric Blake  <ebb9@byu.net>
63966             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63967
63968         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63969         empty components in $PATH, denoting '.'.
63970
63971 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63972
63973         * gnulib-tool: Fix indentation.
63974         (func_create_megatestdir): Likewise.
63975         Report by Bruno Haible.
63976
63977 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63978
63979         Sync from Automake.
63980         * build-aux/gnupload: Fix shell portability issues with for loops.
63981         Report by Karl Berry.
63982
63983 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63984
63985         * build-aux/maint.mk (POURL): Use translationproject.org.
63986
63987 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63988             Bruno Haible  <bruno@clisp.org>
63989
63990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63991         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63992         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63993         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63994         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63995
63996 2007-06-27  Bruno Haible  <bruno@clisp.org>
63997
63998         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63999         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64000
64001 2007-06-26  Karl Berry  <karl@gnu.org>
64002
64003         * MODULES.html.sh: remove xreadlink-with-size.
64004
64005 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64006
64007         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64008         method that I hope also handles the double-include problem noted
64009         by Bruno Haible in
64010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64011
64012 2007-06-23  Bruno Haible  <bruno@clisp.org>
64013
64014         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64015         Don't let the 'mostlyclean' target fail if the last subdirectory could
64016         not be removed.
64017         Reported by Karl Berry.
64018
64019 2007-06-23  Bruno Haible  <bruno@clisp.org>
64020
64021         * gnulib-tool (echo): Add a speedier workaround for ksh.
64022         * tests/test-echo.sh: Likewise.
64023
64024 2007-06-23  Bruno Haible  <bruno@clisp.org>
64025
64026         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64027         * tests/test-echo.sh: Likewise.
64028
64029 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64030
64031         * gnulib-tool (IFS): Initialize early, so we don't set it to
64032         empty later.
64033         (self_abspathname): Rewrite algorithm to set it, reindent.
64034         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64035         (func_create_megatestdir): Merge some sed scripts.
64036
64037 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64038
64039         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64040         exposed by Sun Studio 11 cc on Solaris 8.
64041
64042 2007-06-22  Bruno Haible  <bruno@clisp.org>
64043
64044         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64045         backslashes.
64046         * tests/test-echo.sh: New file.
64047
64048 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64049
64050         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64051         simplify `sed_replace_build_aux' scripts, they are portable but
64052         echoing them with `echo' is not.
64053         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64054
64055 2007-06-21  Karl Berry  <karl@gnu.org>
64056
64057         * config/srclist.txt: guess we can't handle the licenses via
64058         srclist at the moment.
64059
64060 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64061
64062         * MODULES.html.sh: Add include_next.
64063         * modules/include_next: New file.
64064
64065 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64066
64067         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64068         INCLUDE_NEXT.
64069         (gl_CHECK_NEXT_HEADERS): New macro.
64070         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64071         the obsolescent gl_ABSOLUTE_HEADER.
64072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64073         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64074         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64075         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64076         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64077         * m4/math_h.m4 (gl_MATH_H): Likewise.
64078         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64079         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64080         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64081         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64082         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64083         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64084         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64085         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64086         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64087         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64088         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64089         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64090         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64091         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64092         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64093         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64094         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64095         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64096         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64097         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64098         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64099         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64100         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64101         * lib/float_.h: Likewise.
64102         * lib/inttypes_.h: Likewise.
64103         * lib/math_.h: Likewise.
64104         * lib/search_.h: Likewise.
64105         * lib/signal_.h: Likewise.
64106         * lib/stdint_.h: Likewise.
64107         * lib/stdio_.h: Likewise.
64108         * lib/stdlib_.h: Likewise.
64109         * lib/string_.h: Likewise.
64110         * lib/sys_stat_.h: Likewise.
64111         * lib/sys_time_.h: Likewise.
64112         * lib/time_.h: Likewise.
64113         * lib/unistd_.h: Likewise.
64114         * lib/wchar_.h: Likewise.
64115         * lib/wctype_.h: Likewise.
64116         * lib/dirent_.h: Likewise.
64117         * lib/iconv_.h: Likewise.
64118         * lib/locale_.h: Likewise.
64119         * lib/netinet_in_.h: Likewise.
64120         * lib/sys_select_.h: Likewise.
64121         * lib/sys_socket_.h: Likewise.
64122         * lib/sysexits_.h: Likewise.
64123         * modules/fcntl (Depends-on): Depend on include_next, not
64124         absolute_header.
64125         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64126         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64127         * modules/fchdir: Likewise.
64128         * modules/float: Likewise.
64129         * modules/iconv_open: Likewise.
64130         * modules/inttypes: Likewise.
64131         * modules/locale: Likewise.
64132         * modules/math: Likewise.
64133         * modules/netinet_in: Likewise.
64134         * modules/search: Likewise.
64135         * modules/signal: Likewise.
64136         * modules/stdint: Likewise.
64137         * modules/stdio: Likewise.
64138         * modules/stdlib: Likewise.
64139         * modules/string: Likewise.
64140         * modules/sys_select: Likewise.
64141         * modules/sys_socket: Likewise.
64142         * modules/sys_stat: Likewise.
64143         * modules/sys_time: Likewise.
64144         * modules/sysexits: Likewise.
64145         * modules/time: Likewise.
64146         * modules/unistd: Likewise.
64147         * modules/wchar: Likewise.
64148         * modules/wctype: Likewise.
64149         * modules/sys_stat: Change maintainer to "all".
64150         * modules/unistd: Likewise.
64151
64152 2007-06-20  Karl Berry  <karl@gnu.org>
64153
64154         * config/srclist.txt: track www changes in license files.
64155
64156 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64157
64158         * build-aux/bootstrap: Remove stray dot.
64159         Make sure build_aux settings are honored when linking
64160         gnulib_extra_files.
64161
64162 2007-06-19  Eric Blake  <ebb9@byu.net>
64163
64164         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64165         Allow compilation on cygwin.
64166
64167 2007-06-19  Jim Meyering  <jim@meyering.net>
64168
64169         xreadlink-with-size: Remove module.  No longer used.
64170         Ex-callers now use xreadlink or mreadlink-with-size.
64171         * modules/xreadlink-with-size: Remove module.
64172         * lib/xreadlink-with-size.c: Remove file.
64173         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64174         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64175         just before the function definition *is* accurate.
64176
64177         Eliminate one way canonicalize_filename_mode could exit.
64178         * lib/canonicalize.c (canonicalize_filename_mode):
64179         Use mreadlink_with_size, not xreadlink_with_size.
64180
64181 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64182
64183         Detect porting problems to FreeBSD/arm, which has time_t wider than
64184         long int.  Original problem reported for GNU diff by Xin Li in
64185         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64186         * modules/getdate (Depends-on): Add intprops, verify.
64187         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64188         is an integer type no wider than long int.
64189
64190 2007-06-18  Jim Meyering  <jim@meyering.net>
64191
64192         New module: mreadlink-with-size.
64193         * MODULES.html.sh: Add mreadlink-with-size.
64194         * modules/mreadlink-with-size: New module
64195         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64196         not xreadlink-with-size.
64197         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64198
64199 2007-06-16  Bruno Haible  <bruno@clisp.org>
64200
64201         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64202         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64203         Reported by Gary V. Vaughan <gary@gnu.org>.
64204
64205 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64206
64207         Revamp lchown so that it lives in unistd.h where it belongs.
64208         * lib/lchown.h: Remove.
64209         * lib/dirchownmod.c: Don't include lib/lchown.h.
64210         * lib/fchownat.c: Likewise.
64211         * lib/openat.c: Likewise.
64212         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64213         does not follow symlinks.
64214         (EOPNOTSUPP): Define if not defined.
64215         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64216         is defined to 0.
64217         (lchown): New decl.
64218         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64219         Do not check for lchown decl.
64220         Set REPLACE_LCHOWN.
64221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64222         REPLACE_LCHOWN.
64223         * modules/chown: Make it clear it follows symlinks.
64224         * modules/lchown: Make it clear it doesn't follow symlinks.
64225         (Files): Remove lib/lchown.h
64226         (Depends-on): Add unistd.
64227         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64228         (Include): Include <unistd.h>, not "lchown.h".
64229         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64230         REPLACE_LCHOWN.
64231
64232 2007-06-15  Jim Meyering  <jim@meyering.net>
64233
64234         Change license (GPL to LGPL) of fsusage and dependents.
64235         * modules/fsusage (License): Change to LGPL.
64236         * modules/full-read (License): Likewise.
64237         * modules/full-write (License): Likewise.
64238         * modules/safe-read (License): Likewise.
64239         * modules/safe-write (License): Likewise.
64240
64241 2007-06-14  Ben Pfaff  <blp@gnu.org>
64242
64243         Missing part of allocsa -> malloca transition.
64244         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64245         gl_MALLOCA.
64246
64247 2007-06-12  Bruno Haible  <bruno@clisp.org>
64248
64249         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64250         to ia64, x86_64, i386.
64251         Reported by Eric Blake.
64252
64253 2007-06-12  Bruno Haible  <bruno@clisp.org>
64254
64255         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64256         cross-compiling to x86_64.
64257
64258 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64259
64260         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64261         glitch reported by Ralf Wildenhues in
64262         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64263
64264         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64265         Vin Shelton.
64266
64267 2007-06-11  Bruno Haible  <bruno@clisp.org>
64268
64269         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64270         replacement string.
64271         Reported by Eric Blake.
64272
64273 2007-06-10  Bruno Haible  <bruno@clisp.org>
64274
64275         Prepare vasnprintf code for use with Unicode strings.
64276         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64277         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64278         TYPE_U32_STRING.
64279         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64280         a_u32_string variants.
64281         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64282         * lib/printf-args.c: Don't include config.h and the specification
64283         header if PRINTF_FETCHARGS is already defined.
64284         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64285         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64286         TYPE_U16_STRING, TYPE_U32_STRING.
64287         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64288         u16_directive, u16_directives, u32_directive, u32_directives): New
64289         types.
64290         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64291         New declarations.
64292         * lib/printf-parse.c: Don't include config.h and the specification
64293         header if PRINTF_PARSE is already defined. Eliminate the set of
64294         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64295         them now. Include c-ctype.h.
64296         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64297         directive and CHAR_T_ONLY_ASCII.
64298         * lib/vasnprintf.c: Don't include config.h and the specification header
64299         if VASNPRINTF is already defined.
64300         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64301         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64302         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64303         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64304         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64305         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64306         code accordingly.
64307         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64308         pad_ourselves also in this case, with the 'c' and 's' directives, and
64309         with a different notion of "width".
64310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64311
64312 2007-06-10  Bruno Haible  <bruno@clisp.org>
64313
64314         * modules/unistr/u32-mbsnlen: New file.
64315         * lib/unistr/u32-mbsnlen.c: New file.
64316
64317         * modules/unistr/u16-mbsnlen: New file.
64318         * lib/unistr/u16-mbsnlen.c: New file.
64319
64320         * modules/unistr/u8-mbsnlen: New file.
64321         * lib/unistr/u8-mbsnlen.c: New file.
64322
64323         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64324         declarations.
64325
64326 2007-06-10  Bruno Haible  <bruno@clisp.org>
64327
64328         * lib/string_.h (mbsnlen): New declaration.
64329         * lib/mbsnlen.c: New file.
64330         * m4/mbsnlen.m4: New file.
64331         * modules/mbsnlen: New file.
64332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64333         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64334         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64335
64336 2007-06-10  Bruno Haible  <bruno@clisp.org>
64337
64338         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64339
64340 2007-06-10  Bruno Haible  <bruno@clisp.org>
64341
64342         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64343         * lib/mbuiter.h: Likewise.
64344
64345 2007-06-10  Bruno Haible  <bruno@clisp.org>
64346
64347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64348         declaration.
64349
64350 2007-06-10  Karl Berry  <karl@gnu.org>
64351
64352         * config/srclist.txt: remove gettext entries, Bruno prefers
64353         to update individually.
64354
64355 2007-06-10  Bruno Haible  <bruno@clisp.org>
64356
64357         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64358         'maxlen'. Ensure only length + width bytes are allocated, not
64359         length + 1 + width.
64360
64361 2007-06-09  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64364         (CHAR_T): Remove macro.
64365         (VASNPRINTF): Update.
64366
64367 2007-06-09  Bruno Haible  <bruno@clisp.org>
64368
64369         * MODULES.html.sh (Unicode string functions): Add the new modules.
64370
64371         * modules/uniconv/u32-conv-to-enc: New file.
64372         * lib/uniconv/u32-conv-to-enc.c: New file.
64373         * modules/uniconv/u32-conv-to-enc-tests: New file.
64374         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64375
64376         * modules/uniconv/u16-conv-to-enc: New file.
64377         * lib/uniconv/u16-conv-to-enc.c: New file.
64378         * lib/uniconv/u-conv-to-enc.h: New file.
64379         * modules/uniconv/u16-conv-to-enc-tests: New file.
64380         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64381
64382         * modules/uniconv/u8-conv-to-enc: New file.
64383         * lib/uniconv/u8-conv-to-enc.c: New file.
64384         * modules/uniconv/u8-conv-to-enc-tests: New file.
64385         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64386
64387         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64388         u32_conv_to_encoding): New declarations.
64389
64390 2007-06-09  Bruno Haible  <bruno@clisp.org>
64391
64392         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64393
64394 2007-06-09  Bruno Haible  <bruno@clisp.org>
64395
64396         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64397         * modules/malloca: Renamed from modules/allocsa, updated.
64398         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64399         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64400         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64401         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64402         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64403         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64404         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64405         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64406         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64407         * modules/c-strcasestr (Depends-on): Update.
64408         * lib/c-strcasestr.c: Update.
64409         * modules/c-strstr (Depends-on): Update.
64410         * lib/c-strstr.c: Update.
64411         * modules/canonicalize-lgpl (Depends-on): Update.
64412         * lib/canonicalize-lgpl.c: Update.
64413         * modules/clean-temp (Depends-on): Update.
64414         * lib/clean-temp.c: Update.
64415         * modules/csharpcomp (Depends-on): Update.
64416         * lib/csharpcomp.c: Update.
64417         * modules/csharpexec (Depends-on): Update.
64418         * lib/csharpexec.c: Update.
64419         * modules/javacomp (Depends-on): Update.
64420         * lib/javacomp.c: Update.
64421         * modules/javaexec (Depends-on): Update.
64422         * lib/javaexec.c: Update.
64423         * modules/mbscasestr (Depends-on): Update.
64424         * lib/mbscasestr.c: Update.
64425         * modules/mbsstr (Depends-on): Update.
64426         * lib/mbsstr.c: Update.
64427         * modules/setenv (Depends-on): Update.
64428         * lib/setenv.c: Update.
64429         * modules/strcasestr (Depends-on): Update.
64430         * lib/strcasestr.c: Update.
64431         * modules/striconveha (Depends-on): Update.
64432         * lib/striconveha.c: Update.
64433         * modules/relocatable-prog-wrapper (Files): Update.
64434         * lib/relocwrapper.c: Update.
64435         * build-aux/install-reloc: Update.
64436         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64437
64438 2007-06-08  Bruno Haible  <bruno@clisp.org>
64439
64440         Port to uClibc.
64441         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64442         * lib/fpurge.c (fpurge): Likewise.
64443         * lib/freading.c (freading): Likewise.
64444         * lib/fseeko.c (rpl_fseeko): Likewise.
64445         * lib/fseterr.c (fseterr): Likewise.
64446         * lib/fwriting.c (fwriting): Likewise.
64447         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64448
64449 2007-06-08  Bruno Haible  <bruno@clisp.org>
64450
64451         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64452         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64453         * modules/gettext (Files): Add m4/intlmacosx.m4.
64454
64455 2007-06-07  Bruno Haible  <bruno@clisp.org>
64456
64457         * modules/localename-tests: New file.
64458         * tests/test-localename.c: New file.
64459
64460         New module 'localename'.
64461         * lib/localename.h: New file.
64462         * lib/localename.c: New file, from GNU gettext.
64463         * m4/localename.m4: New file.
64464         * modules/localename: New file.
64465
64466 2007-06-07  Bruno Haible  <bruno@clisp.org>
64467
64468         Work around the lack of <wchar.h> on some builds of uClibc.
64469         * doc/headers/wchar.texi: Update.
64470         * lib/wchar_.h: Include <wchar.h> only if it exists.
64471         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64472         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64473         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64474         doesn't exist.
64475         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64476         * modules/mbfile (Depends-on): Add wchar.
64477         * modules/mbiter (Depends-on): Likewise.
64478         * modules/mbuiter (Depends-on): Likewise.
64479         Reported by Simon Josefsson.
64480
64481 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64482
64483         Work around problem reported by Steven M. Schweda in
64484         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64485         Tru64 5.1B with the Compaq compiler environment installed declares
64486         an 'isblank' function but does not define it in the C library.
64487         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64488         * lib/regex_internal.h (isblank): Likewise.
64489         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64490         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64491
64492 2007-06-05  Bruno Haible  <bruno@clisp.org>
64493
64494         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64495         ia64.
64496         * modules/printf-safe: New file.
64497         * modules/fprintf-posix (Depends-on): Add printf-safe.
64498         * modules/printf-posix (Depends-on): Likewise.
64499         * modules/snprintf-posix (Depends-on): Likewise.
64500         * modules/sprintf-posix (Depends-on): Likewise.
64501         * modules/vasnprintf-posix (Depends-on): Likewise.
64502         * modules/vasprintf-posix (Depends-on): Likewise.
64503         * modules/vfprintf-posix (Depends-on): Likewise.
64504         * modules/vprintf-posix (Depends-on): Likewise.
64505         * modules/vsnprintf-posix (Depends-on): Likewise.
64506         * modules/vsprintf-posix (Depends-on): Likewise.
64507         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64508         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64509         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64510         "no" on i386, x86_64, ia64.
64511         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64512         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64513         on i386, x86_64, ia64.
64514         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64515         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64516         on i386, x86_64, ia64.
64517         * tests/test-vasnprintf-posix.c: Include float.h.
64518         (LDBL80_WORDS): New macro.
64519         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64520         on i386, x86_64, ia64.
64521         * tests/test-vasprintf-posix.c: Include float.h.
64522         (LDBL80_WORDS): New macro.
64523         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64524         on i386, x86_64, ia64.
64525         * tests/test-snprintf-posix.c: Include float.h.
64526         * tests/test-sprintf-posix.c: Likewise.
64527         * tests/test-vsnprintf-posix.c: Likewise.
64528         * tests/test-vsprintf-posix.c: Likewise.
64529
64530 2007-06-05  Bruno Haible  <bruno@clisp.org>
64531
64532         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64533         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64534         non-IEEE numbers on i386, x86_64, ia64.
64535         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64536         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64537         * tests/test-isnanl.h: Include float.h.
64538         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64539
64540 2007-06-05  Bruno Haible  <bruno@clisp.org>
64541
64542         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64543         also the %a / %A. Handle the %a / %A code before this extra handling.
64544
64545 2007-06-05  Bruno Haible  <bruno@clisp.org>
64546
64547         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64548         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64549
64550 2007-06-05  Bruno Haible  <bruno@clisp.org>
64551
64552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64553         typo in variable name.
64554
64555 2007-06-05  Eric Blake  <ebb9@byu.net>
64556
64557         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64558         Reported by Simon Josefsson.
64559
64560 2007-06-04  Bruno Haible  <bruno@clisp.org>
64561
64562         Avoid test failures on some PowerPC platforms.
64563         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64564         Define differently for PowerPC.
64565         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64566         Reported by Gary V. Vaughan <gary@gnu.org>.
64567
64568 2007-06-02  Bruno Haible  <bruno@clisp.org>
64569
64570         Fix test-stdint failure on FreeBSD/ia64.
64571         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64572         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64573         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64574         * doc/headers/stdint.texi: Update.
64575
64576 2007-06-01  Bruno Haible  <bruno@clisp.org>
64577
64578         * tests/test-binary-io.c (main): Pass a third argument to open().
64579         Reported by Gary V. Vaughan <gary@gnu.org>.
64580
64581 2007-06-01  Bruno Haible  <bruno@clisp.org>
64582
64583         * doc/functions/frexpl.texi: Update for mingw.
64584
64585 2007-06-01  Bruno Haible  <bruno@clisp.org>
64586
64587         * tests/test-lseek.c (main): Disable test of errno for invalid third
64588         argument.
64589         * doc/functions/lseek.texi: Update.
64590         Reported by Gary V. Vaughan <gary@gnu.org>.
64591
64592 2007-05-28  Bruno Haible  <bruno@clisp.org>
64593
64594         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64595
64596 2007-05-31  Eric Blake  <ebb9@byu.net>
64597
64598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64599         cross compiling.
64600
64601 2007-05-30  Eric Blake  <ebb9@byu.net>
64602         and Bruno Haible  <bruno@clisp.org>
64603
64604         Work around mingw test failures exposed by m4-1.4.9b.
64605         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64606         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64607         moment.
64608
64609 2007-05-30  Bruno Haible  <bruno@clisp.org>
64610
64611         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64612         assuming that they are closed. Needed on HP-UX 11.
64613
64614 2007-05-29  Bruno Haible  <bruno@clisp.org>
64615
64616         Fix a problem with #include_next.
64617         * lib/dirent_.h: Split the double-inclusion guard.
64618         * lib/fcntl_.h: Likewise.
64619         * lib/float_.h: Likewise.
64620         * lib/iconv_.h: Likewise.
64621         * lib/inttypes_.h: Likewise.
64622         * lib/locale_.h: Likewise.
64623         * lib/math_.h: Likewise.
64624         * lib/netinet_in_.h: Likewise.
64625         * lib/search_.h: Likewise.
64626         * lib/signal_.h: Likewise.
64627         * lib/stdint_.h: Likewise.
64628         * lib/stdio_.h: Likewise.
64629         * lib/stdlib_.h: Likewise.
64630         * lib/string_.h: Likewise.
64631         * lib/sys_select_.h: Likewise.
64632         * lib/sys_socket_.h: Likewise.
64633         * lib/sys_stat_.h: Likewise.
64634         * lib/sys_time_.h: Likewise.
64635         * lib/sysexits_.h: Likewise.
64636         * lib/time_.h: Likewise.
64637         * lib/unistd_.h: Likewise.
64638         * lib/wchar_.h: Likewise.
64639         * lib/wctype_.h: Likewise.
64640
64641 2007-05-29  Bruno Haible  <bruno@clisp.org>
64642
64643         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64644         for the moment.
64645
64646 2007-05-29  Bruno Haible  <bruno@clisp.org>
64647
64648         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64649         invocation.
64650         Reported by Eric Blake.
64651
64652 2007-05-29  Bruno Haible  <bruno@clisp.org>
64653
64654         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64655         compiling case.
64656
64657 2007-05-29  Eric Blake  <ebb9@byu.net>
64658             Bruno Haible  <bruno@clisp.org>
64659
64660         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64661         cross compiles.
64662
64663 2007-05-28  Eric Blake  <ebb9@byu.net>
64664
64665         * modules/closein-tests (test_closein_LDADD): Support test on
64666         cygwin with libtool.
64667
64668 2007-05-28  Bruno Haible  <bruno@clisp.org>
64669
64670         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64671         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64672         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64673         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64674         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64675         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64676         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64677         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64678         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64679
64680 2007-05-28  Eric Blake  <ebb9@byu.net>
64681
64682         Unconditionally include <config.h> in unit tests.
64683         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64684         * tests/test-allocsa.c, tests/test-arcfour.c,
64685         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64686         tests/test-array_list.c, tests/test-array_oset.c,
64687         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64688         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64689         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64690         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64691         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64692         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64693         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64694         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64695         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64696         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64697         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64698         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64699         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64700         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64701         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64702         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64703         test-md5.c, test-memmem.c, test-printf-posix.c,
64704         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64705         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64706         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64707         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64708         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64709         test-vasnprintf-posix2.c, test-vasnprintf.c,
64710         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64711         test-vfprintf-posix.c, test-vprintf-posix.c,
64712         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64713         test-xvasprintf.c: Likewise.
64714
64715 2007-05-28  Bruno Haible  <bruno@clisp.org>
64716
64717         * gnulib-tool (func_import): Remember the --with-tests command-line
64718         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64719         Reported by Eric Blake.
64720
64721 2007-05-28  Bruno Haible  <bruno@clisp.org>
64722
64723         * modules/ftell-tests: New file.
64724         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64725         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64726
64727         * lib/ftell.c: New file.
64728         * modules/ftell: New file.
64729         * m4/ftell.m4: New file.
64730         * doc/functions/ftell.texi: Update.
64731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64732         REPLACE_FTELL.
64733         * lib/stdio_.h (rpl_ftell): New declaration.
64734         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64735         REPLACE_FTELL.
64736
64737 2007-05-28  Eric Blake  <ebb9@byu.net>
64738
64739         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64740
64741 2007-05-28  Bruno Haible  <bruno@clisp.org>
64742
64743         * modules/fseek-tests: New file.
64744         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64745         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64746
64747         * lib/fseek.c: New file.
64748         * modules/fseek: New file.
64749         * m4/fseek.m4: New file.
64750         * doc/functions/fseek.texi: Update.
64751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64752         REPLACE_FSEEK.
64753         * lib/stdio_.h (rpl_fseek): New declaration.
64754         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64755         REPLACE_FSEEK.
64756
64757 2007-05-28  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/stdio_.h (fflush): More comments.
64760
64761 2007-05-28  Bruno Haible  <bruno@clisp.org>
64762
64763         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64764         runtime test.
64765
64766 2007-05-28  Eric Blake  <ebb9@byu.net>
64767
64768         Improve lseek module.
64769         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64770         * lib/unistd_.h (lseek): Scale back link warning message.
64771         * tests/test-lseek.c: Beef up test.
64772         * tests/test-lseek.sh: Exercise more facets of lseek.
64773         Reported by Bruno Haible.
64774
64775 2007-05-28  Bruno Haible  <bruno@clisp.org>
64776
64777         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64778         to define.
64779
64780 2007-05-27  Bruno Haible  <bruno@clisp.org>
64781
64782         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64783
64784 2007-05-27  Bruno Haible  <bruno@clisp.org>
64785
64786         * modules/openmp: New file.
64787         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64788         Noah Misch.
64789
64790 2007-05-26  Bruno Haible  <bruno@clisp.org>
64791
64792         * modules/chdir-long (Depends-on): Add fchdir.
64793         * modules/chdir-safer (Depends-on): Likewise.
64794         * modules/fts (Depends-on): Likewise.
64795         * modules/fts-lgpl (Depends-on): Likewise.
64796         * modules/openat (Depends-on): Likewise.
64797         * modules/savewd (Depends-on): Likewise.
64798
64799 2007-05-24  Eric Blake  <ebb9@byu.net>
64800
64801         Fix lseek on mingw.
64802         * modules/lseek: New module.
64803         * m4/lseek.m4: New file.
64804         * lib/lseek.c: New file.
64805         * modules/lseek-tests: New file.
64806         * tests/test-lseek.c: New file.
64807         * tests/test-lseek.sh: New file.
64808         * MODULES.html.sh: Document lseek module.
64809         * modules/fflush (Depends-on): Add lseek, fseeko.
64810         * modules/fseeko (Depends-on): Likewise.
64811         * modules/ftello (Depends-on): Likewise.
64812         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64813         broken.
64814         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64815         broken.
64816         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64817         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64818         * lib/ftello.c (rpl_ftello): Likewise.
64819         * tests/test-fseeko.c (main): Test this.
64820         * tests/test-fseeko.sh: Likewise.
64821         * tests/test-ftello.c (main): Likewise.
64822         * tests/test-ftello.sh: Likewise.
64823         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64824         implies replacing fseek.
64825         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64826         HAVE_FTELLO.
64827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64828         * modules/unistd (Makefile.am): Likewise.
64829         * lib/unistd_.h (lseek): Declare a replacement.
64830         * doc/functions/lseek.texi (lseek): Document this fix.
64831         * doc/functions/fseek.texi (fseek): Likewise.
64832         * doc/functions/ftell.texi (ftell): Likewise.
64833
64834 2007-05-24  Bruno Haible  <bruno@clisp.org>
64835
64836         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64837         in the printed representation of a NaN.
64838         * tests/test-vasprintf-posix.c (test_function): Likewise.
64839         * tests/test-snprintf-posix.h (test_function): Likewise.
64840         * tests/test-sprintf-posix.h (test_function): Likewise.
64841         Reported by Eric Blake.
64842
64843 2007-05-23  Eric Blake  <ebb9@byu.net>
64844
64845         Fix fseeko/ftello on cygwin 1.5.24.
64846         * doc/functions/fseeko.texi (fseeko): Document the fix.
64847         * doc/functions/ftello.texi (ftello): Document the fix.
64848         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64849         * doc/functions/stdout.text (stdout): New file.
64850         * doc/functions/stderr.text (stderr): New file.
64851         * doc/gnulib.texi (Function Substitutes): Use new files.
64852         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64853         prior to 1.7.0.
64854         * tests/test-ftello.c (main): Likewise for ftello.
64855         * tests/test-fseeko.sh: New file.
64856         * tests/test-ftello.sh: New file.
64857         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64858         with seekable stdin.
64859         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64861         (gl_REPLACE_FSEEKO): New macro.
64862         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64863         * modules/fseeko (Files): Distribute fseeko.c.
64864         * modules/ftello (Files): Distribute ftello.c.
64865         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64866         mode.
64867         * lib/ftello.c (rpl_ftello): New file.
64868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64869         fseeko, ftello.
64870         (gl_STDIN_LARGE_OFFSET): New macro.
64871         * modules/stdio (Makefile.am): Perform the replacement.
64872         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64873
64874 2007-05-23  Bruno Haible  <bruno@clisp.org>
64875
64876         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64877         GNULIB_POSIXCHECK is defined.
64878
64879 2007-05-21  Bruno Haible  <bruno@clisp.org>
64880
64881         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64882         Check also the output for NaN arguments. When cross-compiling, guess
64883         no on IRIX.
64884         * lib/vasnprintf.c: Update comments.
64885         * tests/test-vasnprintf-posix.c (strisnan): New function.
64886         (test_function): Use it.
64887         * tests/test-vasprintf-posix.c (strisnan): New function.
64888         (test_function): Use it.
64889         * tests/test-snprintf-posix.h (strisnan): New function.
64890         (test_function): Use it.
64891         * tests/test-sprintf-posix.h (strisnan): New function.
64892         (test_function): Use it.
64893         Reported by Eric Blake.
64894
64895 2007-05-20  Bruno Haible  <bruno@clisp.org>
64896
64897         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64898         numbers that fails on BeOS.
64899         * doc/functions/frexpl.texi: Update.
64900
64901 2007-05-20  Jim Meyering  <jim@meyering.net>
64902
64903         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64904         forced upon us by glibc-2.6.
64905
64906 2007-05-20  Bruno Haible  <bruno@clisp.org>
64907
64908         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64909         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64910         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64911         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64912         NEED_PRINTF_INFINITE.
64913         (is_infinitel): New function.
64914         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64916         gl_PREREQ_VASNPRINTF_INFINITE.
64917         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64918         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64919         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64920         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64921         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64922         gl_PREREQ_VASNPRINTF_INFINITE.
64923         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64924         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64925         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64926         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64927         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64928         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64929         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64930         * doc/functions/fprintf.texi: Update.
64931         * doc/functions/printf.texi: Update.
64932         * doc/functions/snprintf.texi: Update.
64933         * doc/functions/sprintf.texi: Update.
64934         * doc/functions/vfprintf.texi: Update.
64935         * doc/functions/vprintf.texi: Update.
64936         * doc/functions/vsnprintf.texi: Update.
64937         * doc/functions/vsprintf.texi: Update.
64938
64939 2007-05-20  Bruno Haible  <bruno@clisp.org>
64940
64941         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64942         was not found in libc.
64943         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64944
64945 2007-05-20  Bruno Haible  <bruno@clisp.org>
64946
64947         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64948         printed as "-nan" instead of "nan".
64949         * tests/test-vasprintf-posix.c (test_function): Likewise.
64950         * tests/test-snprintf-posix.h (test_function): Likewise.
64951         * tests/test-sprintf-posix.h (test_function): Likewise.
64952         Needed for HP-UX 11.
64953
64954 2007-05-20  Jim Meyering  <jim@meyering.net>
64955
64956         Fix buggy test for the fchownat-deref bug.
64957         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64958         symlink required for the run-test.  Without it, this test would
64959         always declare that fchownat doesn't work, and client code would
64960         unnecessarily use the replacement function with fixed libc.
64961         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64962         Reported by Greg Schafer.
64963
64964 2007-05-19  Bruno Haible  <bruno@clisp.org>
64965
64966         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64967         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64968         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64969         Needed for IRIX 6.5 and Solaris 2.5.1.
64970
64971 2007-05-19  Bruno Haible  <bruno@clisp.org>
64972
64973         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64974         (test_function): Skip tests involving -0.0 on platforms where
64975         -0.0 = 0.0.
64976         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64977         (test_function): Skip tests involving -0.0 on platforms where
64978         -0.0 = 0.0.
64979         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64980         (test_function): Skip tests involving -0.0 on platforms where
64981         -0.0 = 0.0.
64982         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64983         (test_function): Skip tests involving -0.0 on platforms where
64984         -0.0 = 0.0.
64985         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64986         tests.
64987         * tests/test-printf-posix.h (test_function): Likewise.
64988         * tests/test-printf-posix.output: Remove all -0.0 related results.
64989         Needed for IRIX 6.5.
64990
64991 2007-05-19  Bruno Haible  <bruno@clisp.org>
64992
64993         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64994         printed as "nan0x7fffffff" instead of "nan".
64995         * tests/test-vasprintf-posix.c (test_function): Likewise.
64996         * tests/test-snprintf-posix.h (test_function): Likewise.
64997         * tests/test-sprintf-posix.h (test_function): Likewise.
64998         * tests/test-fprintf-posix.h (NaN): Remove macro.
64999         (test_function): Remove all NaN related tests.
65000         * tests/test-printf-posix.h (NaN): Remove macro.
65001         (test_function): Remove all NaN related tests.
65002         * tests/test-printf-posix.output: Remove all NaN related results.
65003         Needed for IRIX 6.5.
65004
65005 2007-05-19  Bruno Haible  <bruno@clisp.org>
65006
65007         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65009
65010 2007-05-19  Bruno Haible  <bruno@clisp.org>
65011
65012         * lib/float_.h: New file.
65013         * m4/float_h.m4: New file.
65014         * modules/float: New file.
65015         * modules/isnanl (Dependencies): Add float.
65016         * modules/isnanl-nolibm (Dependencies): Likewise.
65017         * modules/mathl (Dependencies): Likewise.
65018         * modules/printf-frexpl (Dependencies): Likewise.
65019         * modules/signbit (Dependencies): Likewise.
65020         * modules/vasnprintf (Dependencies): Likewise.
65021         * doc/headers/float.texi: Update.
65022
65023 2007-05-19  Jim Meyering  <jim@meyering.net>
65024
65025         * lib/utimens.c (gl_futimens): Rename from futimens,
65026         now that glibc-2.6 declares futimens.
65027         * lib/utimens.h: Likewise.
65028
65029 2007-05-19  Bruno Haible  <bruno@clisp.org>
65030
65031         Avoid test failures on mingw.
65032         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65033         * tests/test-printf-posix.sh: Likewise.
65034         * tests/test-vfprintf-posix.sh: Likewise.
65035         * tests/test-vprintf-posix.sh: Likewise.
65036
65037 2007-05-19  Bruno Haible  <bruno@clisp.org>
65038
65039         Fix *printf result for NaN, Inf, -0.0 on mingw.
65040         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65041         * lib/vasnprintf.c: Include math.h and isnan.h.
65042         (is_infinite_or_zero): New function.
65043         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65044         values in the %f, %F, %e, %E, %g, %G directives.
65045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65046         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65047         gl_PRINTF_INFINITE and test its result. Invoke
65048         gl_PREREQ_VASNPRINTF_INFINITE.
65049         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65050         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65051         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65052         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65053         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65054         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65055         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65056         * doc/functions/fprintf.texi: Update.
65057         * doc/functions/printf.texi: Update.
65058         * doc/functions/snprintf.texi: Update.
65059         * doc/functions/sprintf.texi: Update.
65060         * doc/functions/vfprintf.texi: Update.
65061         * doc/functions/vprintf.texi: Update.
65062         * doc/functions/vsnprintf.texi: Update.
65063         * doc/functions/vsprintf.texi: Update.
65064
65065 2007-05-19  Bruno Haible  <bruno@clisp.org>
65066
65067         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65068         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65069         Instead of multiplying with 10^k, set extra_zeroes to k.
65070         (scale10_round_long_double): Remove function.
65071
65072 2007-05-18  Bruno Haible  <bruno@clisp.org>
65073
65074         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65075         introduced on 2007-05-06.
65076
65077 2007-05-18  Bruno Haible  <bruno@clisp.org>
65078
65079         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65080         %g directives.
65081         * tests/test-vasprintf-posix.c (test_function): Likewise.
65082         * tests/test-snprintf-posix.h (test_function): Likewise.
65083         * tests/test-sprintf-posix.h (test_function): Likewise.
65084
65085 2007-05-18  Bruno Haible  <bruno@clisp.org>
65086
65087         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65088         (strmatch): New function.
65089         (test_function): Test the %f directive on numbers of various exponents.
65090         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65091         (strmatch): New function.
65092         (test_function): Test the %f directive on numbers of various exponents.
65093         * tests/test-snprintf-posix.h (strmatch): New function.
65094         (test_function): Test the %f directive on numbers of various exponents.
65095         * tests/test-sprintf-posix.h (strmatch): New function.
65096         (test_function): Test the %f directive on numbers of various exponents.
65097         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65098         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65099         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65100         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65101
65102 2007-05-18  Bruno Haible  <bruno@clisp.org>
65103
65104         Add support for 'long double' number output.
65105         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65106         * lib/vasnprintf.c: Include math.h and float+.h.
65107         (mp_limb_t): New type.
65108         (GMP_LIMB_BITS): New macro.
65109         (mp_twolimb_t): New type.
65110         (GMP_TWOLIMB_BITS): New macro.
65111         (mpn_t): New type.
65112         (multiply, divide, convert_to_decimal, decode_long_double,
65113         scale10_round_long_double, scale10_round_decimal_long_double,
65114         floorlog10l): New functions.
65115         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65116         for the %f, %F, %e, %E, %g, %G directives.
65117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65118         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65119         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65120         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65122         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65123         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65125         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65127         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65128         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65129         * modules/snprintf-posix (Depends-on): Likewise.
65130         * modules/sprintf-posix (Depends-on): Likewise.
65131         * modules/vasnprintf-posix (Depends-on): Likewise.
65132         * modules/vasprintf-posix (Depends-on): Likewise.
65133         * modules/vfprintf-posix (Depends-on): Likewise.
65134         * modules/vsnprintf-posix (Depends-on): Likewise.
65135         * modules/vsprintf-posix (Depends-on): Likewise.
65136         * modules/vasnprintf (Files): Add lib/float+.h.
65137         * doc/functions/fprintf.texi: Update.
65138         * doc/functions/printf.texi: Update.
65139         * doc/functions/snprintf.texi: Update.
65140         * doc/functions/sprintf.texi: Update.
65141         * doc/functions/vfprintf.texi: Update.
65142         * doc/functions/vprintf.texi: Update.
65143         * doc/functions/vsnprintf.texi: Update.
65144         * doc/functions/vsprintf.texi: Update.
65145
65146 2007-05-18  Bruno Haible  <bruno@clisp.org>
65147
65148         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65149
65150 2007-05-18  Bruno Haible  <bruno@clisp.org>
65151
65152         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65153         for printing 64-bit integers. Needed for mingw.
65154
65155 2007-05-18  Bruno Haible  <bruno@clisp.org>
65156
65157         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65158         gl_FUNC_FREXPL_WORKS.
65159         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65160
65161 2007-05-18  Bruno Haible  <bruno@clisp.org>
65162
65163         * modules/frexpl-nolibm-tests: New file.
65164
65165         * modules/frexpl-nolibm: New file.
65166         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65167
65168 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65169
65170         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65171         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65172         GCC 4.2, which otherwise issues a lot of warnings.
65173         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65174         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65175         Likewise.
65176         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65177         * modules/iconv_open (iconv.h): Likewise.
65178         * modules/locale (locale.h): Likewise.
65179         * modules/netinet_in (netinet/in.h): Likewise.
65180         * modules/sys_select (sys_select.h): Likewise.
65181         * modules/sys_socket (sys/socket.h): Likewise.
65182         * modules/sys_stat (sys/stat.h): Likewise.
65183         * modules/sysexits (sysexits.h): Likewise.
65184         * modules/unistd (unistd.h): Likewise.
65185
65186 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65187
65188         * modules/closein-tests (Makefile.am): Distribute
65189         `test-closein.sh'.
65190
65191 2007-05-17  Bruno Haible  <bruno@clisp.org>
65192
65193         * tests/test-printf-posix.output: Renamed from
65194         tests/test-fprintf-posix.out.
65195         * modules/fprintf-posix-tests: Update.
65196         * modules/printf-posix-tests: Update.
65197         * modules/vfprintf-posix-tests: Update.
65198         * modules/vprintf-posix-tests: Update.
65199         * tests/test-fprintf-posix.sh: Update.
65200         * tests/test-printf-posix.sh: Update.
65201         * tests/test-vfprintf-posix.sh: Update.
65202         * tests/test-vprintf-posix.sh: Update.
65203         Reported by Ralf Wildenhues.
65204
65205 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65206
65207         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65208         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65209         GCC 4.2, which otherwise issues a lot of warnings.
65210         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65211         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65212         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65213         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65214         it should no longer be needed.
65215         * lib/string_.h: Likewise.
65216         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65217         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65218         * modules/inttypes (inttypes.h): Likewise.
65219         * modules/math (math.h): Likewise.
65220         * modules/search (search.h): Likewise.
65221         * modules/signal (signal.h): Likewise.
65222         * modules/stdint (stdint.h): Likewise.
65223         * modules/stdio (stdio.h): Likewise.
65224         * modules/stdlib (stdlib.h): Likewise.
65225         * modules/string (string.h): Likewise.
65226         * modules/sys_time (sys/time.h): Likewise.
65227         * modules/time (time.h): Likewise.
65228         * modules/wchar (wchar.h): Likewise.
65229         * modules/wctype (wtype.h): Likewise.
65230
65231 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65232
65233         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65234
65235 2007-05-13  Bruno Haible  <bruno@clisp.org>
65236
65237         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65238         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65239         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65240         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65241         (gl_PREREQ_STRTOK_R): Don't require it here.
65242
65243 2007-05-13  Bruno Haible  <bruno@clisp.org>
65244
65245         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65246         when used in C++ mode.
65247
65248 2007-05-12  Bruno Haible  <bruno@clisp.org>
65249
65250         * lib/linebuffer.h: Tweak doc.
65251         * lib/linebuffer.c: Likewise.
65252
65253 2007-05-12  James Youngman  <jay@gnu.org>
65254
65255         * lib/linebuffer.c (readlinebuffer_delim): New function,
65256         like readlinebuffer, but use a caller-specified delimiter.
65257         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65258         as the delimiter.
65259         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65260
65261 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65262
65263         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65264         * modules/openat (Files): Remove openat-die.c.
65265         (Depends-on): Add openat-die.
65266         * modules/openat-die: New module.
65267
65268 2007-05-06  Bruno Haible  <bruno@clisp.org>
65269
65270         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65271         Update with info about Cygwin.
65272         * doc/functions/fprintf.texi: Update.
65273         * doc/functions/printf.texi: Update.
65274         * doc/functions/snprintf.texi: Update.
65275         * doc/functions/sprintf.texi: Update.
65276         * doc/functions/vfprintf.texi: Update.
65277         * doc/functions/vprintf.texi: Update.
65278         * doc/functions/vsnprintf.texi: Update.
65279         * doc/functions/vsprintf.texi: Update.
65280         Reported by Eric Blake.
65281
65282 2007-05-06  Bruno Haible  <bruno@clisp.org>
65283
65284         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65285         padding ourselves for the floating-point directives.
65286         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65288         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65289         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65290         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65292         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65293         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65294         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65295         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65296         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65297         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65298         * tests/test-snprintf-posix.h (test_function): Also check the width
65299         and some flags in the %f directive.
65300         * tests/test-sprintf-posix.h (test_function): Likewise.
65301         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65302         * tests/test-vasprintf-posix.c (test_function): Likewise.
65303         * doc/functions/fprintf.texi: Update.
65304         * doc/functions/printf.texi: Update.
65305         * doc/functions/snprintf.texi: Update.
65306         * doc/functions/sprintf.texi: Update.
65307         * doc/functions/vfprintf.texi: Update.
65308         * doc/functions/vprintf.texi: Update.
65309         * doc/functions/vsnprintf.texi: Update.
65310         * doc/functions/vsprintf.texi: Update.
65311
65312 2007-05-06  Bruno Haible  <bruno@clisp.org>
65313
65314         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65315         pass the ' flag character to sprintf or snprintf.
65316         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65318         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65319         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65320         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65328         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65329         flag.
65330         * tests/test-sprintf-posix.h (test_function): Likewise.
65331         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65332         * tests/test-vasprintf-posix.c (test_function): Likewise.
65333         * doc/functions/fprintf.texi: Update.
65334         * doc/functions/printf.texi: Update.
65335         * doc/functions/snprintf.texi: Update.
65336         * doc/functions/sprintf.texi: Update.
65337         * doc/functions/vfprintf.texi: Update.
65338         * doc/functions/vprintf.texi: Update.
65339         * doc/functions/vsnprintf.texi: Update.
65340         * doc/functions/vsprintf.texi: Update.
65341
65342 2007-05-01  Bruno Haible  <bruno@clisp.org>
65343
65344         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65345
65346 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65347
65348         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65349         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65350
65351 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65352
65353         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65354         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65356
65357 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65358
65359         * lib/argp-help.c (struct hol_entry): New member `ord'.
65360         (HOL_ENTRY_PTRCMP): Use ord for comparison
65361         (hol_sort): Initialize ord.
65362
65363 2007-05-01  Bruno Haible  <bruno@clisp.org>
65364
65365         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65366         Reported by Eric Blake.
65367         * doc/gnulib.texi (Function Substitutes): Update.
65368
65369 2007-05-01  Bruno Haible  <bruno@clisp.org>
65370
65371         * doc/functions.texi: Remove file, now redundant through
65372         doc/functions/*.texi.
65373
65374 2007-05-01  Bruno Haible  <bruno@clisp.org>
65375
65376         * modules/argp (Depends-on): Add sleep.
65377
65378 2007-05-01  Bruno Haible  <bruno@clisp.org>
65379
65380         * modules/sleep-tests: New file.
65381         * tests/test-sleep.c: New file.
65382
65383         * modules/sleep: New file.
65384         * lib/sleep.c: New file.
65385         * m4/sleep.m4: New file.
65386         * lib/unistd_.h (sleep): New declaration.
65387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65388         HAVE_SLEEP.
65389         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65390         * doc/functions/sleep.texi: Document the sleep module.
65391
65392 2007-05-01  Bruno Haible  <bruno@clisp.org>
65393
65394         * lib/sigprocmask.h: Remove file.
65395         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65396         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65397         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65398         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65399         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65400         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65401         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65402         HAVE_SIGSET_T as a shell variable.
65403         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65404         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65405         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65406         (Depends-on): Add signal. Remove verify.
65407         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65408         (Include): Mention <signal.h> instead of sigprocmask.h.
65409         * NEWS: Mention the change.
65410         * lib/fatal-signal.c: Don't include sigprocmask.h.
65411
65412 2007-05-01  Bruno Haible  <bruno@clisp.org>
65413
65414         * modules/signal: New file.
65415         * lib/signal_.h: New file.
65416         * m4/signal_h.m4: New file.
65417
65418 2007-05-01  Bruno Haible  <bruno@clisp.org>
65419
65420         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65421         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65422         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65423         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65424
65425 2007-05-01  Bruno Haible  <bruno@clisp.org>
65426
65427         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65428         configure time.
65429         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65430         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65431         * modules/sys_stat (Makefile.am): Substitute their values into
65432         sys/stat.h.
65433
65434 2007-05-01  Bruno Haible  <bruno@clisp.org>
65435
65436         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65437         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65438         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65439
65440 2007-05-01  Bruno Haible  <bruno@clisp.org>
65441
65442         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65443         'assert' module here.
65444
65445 2007-05-01  Bruno Haible  <bruno@clisp.org>
65446
65447         * doc/functions/*.texi: New files.
65448         * doc/functions/google-ranking.txt: New file.
65449         * doc/gnulib.texi (Function Substitutes): New chapter.
65450         (ctime, inet_ntoa): Remove sections.
65451         * doc/ctime.texi: Remove file.
65452         * doc/inet_ntoa.texi: Remove file.
65453         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65454         dependencies.
65455         (%.info): New rule, specifying a --reference-limit.
65456
65457 2007-05-01  Bruno Haible  <bruno@clisp.org>
65458
65459         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65460
65461 2007-05-01  Bruno Haible  <bruno@clisp.org>
65462
65463         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65464         the portability of 'mkdir' to mingw systems.
65465
65466 2007-05-01  Bruno Haible  <bruno@clisp.org>
65467
65468         * doc/headers/google-ranking.txt: New file.
65469
65470 2007-04-30  Eric Blake  <ebb9@byu.net>
65471
65472         Prefer fseeko to fseek.
65473         * modules/getpass (Depends-on): Add fseeko.
65474         * lib/getpass.c (getpass): Use fseeko, not fseek.
65475
65476 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65477
65478         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65479         assumes the sorting is stable, while most qsort implementations
65480         are not.  Use argument addresses to ensure they never compare as
65481         equal.
65482
65483         * tests/test-argp-2.sh (usage-indent test): Fix output
65484         (func_compare): Restore diff options
65485         * tests/test-argp.c: Restore #include "progname.h"
65486
65487 2007-04-29  Bruno Haible  <bruno@clisp.org>
65488
65489         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65491         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65493         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65494         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65495         (TESTS, check_PROGRAMS): Add test-snprintf.
65496         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65497         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65498         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65499         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65500         assertions that fail on HP-UX, OSF/1, or IRIX.
65501         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65502
65503 2007-04-29  Bruno Haible  <bruno@clisp.org>
65504
65505         * MODULES.html.sh (posix_functions): Remove 'contents'.
65506
65507 2007-04-29  Karl Berry  <karl@gnu.org>
65508
65509         * config/srclist.txt (gendocs_template_min): new entry.
65510
65511 2007-04-29  Bruno Haible  <bruno@clisp.org>
65512
65513         Work around fpurge bug on BSD systems.
65514         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65515         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65516         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65517         fpurge to rpl_fpurge if the system already has this function.
65518         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65519         the case where the system already has this function. Correct invariants
65520         on BSD systems.
65521         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65522         BSD systems.
65523
65524 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65525
65526         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65527         proposed by Sven Verdoolaege.
65528
65529         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65530         options.
65531         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65532         (usage and help tests): Update
65533
65534 2007-04-29  Bruno Haible  <bruno@clisp.org>
65535
65536         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65537         Print more information in case of failure. Disable a test on BeOS.
65538
65539 2007-04-29  Bruno Haible  <bruno@clisp.org>
65540
65541         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65542         This helps debugging on systems on which no gdb is available.
65543
65544 2007-04-29  Bruno Haible  <bruno@clisp.org>
65545
65546         * lib/freading.h: Improve comments.
65547         * lib/fwriting.h: Likewise.
65548         * tests/test-freading.c (main): Don't check freading immediately after
65549         repositioning. Needed for glibc.
65550
65551 2007-04-29  Bruno Haible  <bruno@clisp.org>
65552
65553         * lib/freading.c (freading): Trivial simplification.
65554
65555 2007-04-28  Bruno Haible  <bruno@clisp.org>
65556
65557         * tests/test-fwriting.c (main): Also test the interaction between
65558         fflush and fwriting.
65559         * modules/fwriting-tests (Depends-on): Add fflush.
65560
65561         * tests/test-freading.c (main): Also test the interaction between
65562         fflush and freading.
65563         * modules/freading-tests (Depends-on): Add fflush.
65564
65565 2007-04-28  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65568         fseeko and ftello.
65569         Suggested by Eric Blake.
65570
65571 2007-04-28  Jim Meyering  <jim@meyering.net>
65572
65573         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65574         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65575         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65576
65577 2007-04-27  Eric Blake  <ebb9@byu.net>
65578
65579         * doc/headers/assert.texi (assert.h): Document assert module use.
65580
65581 2007-04-27  Bruno Haible  <bruno@clisp.org>
65582
65583         * doc/headers/*.texi: New files.
65584         * doc/gnulib.texi (Header File Substitutes): New chapter.
65585         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65586         dependencies.
65587         (standards.info ,standards.html, standards.dvi): Update dependencies.
65588         (mostlyclean, clean): New targets.
65589
65590 2007-04-27  Bruno Haible  <bruno@clisp.org>
65591
65592         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65593         * modules/sysexits (Files, Makefile.am): Update.
65594
65595         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65596         * modules/sys_socket (Files, Makefile.am): Update.
65597
65598         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65599         * modules/sys_stat (Files, Makefile.am): Update.
65600
65601 2007-04-27  Eric Blake  <ebb9@byu.net>
65602
65603         * lib/freading.h: Improve comments.
65604         * lib/fwriting.h: Likewise.
65605         * lib/fflush.c: Likewise.
65606
65607         Fix closein for mingw.
65608         * modules/closein-tests: Add tests for closein.
65609         * tests/test-closein.c: New file.
65610         * tests/test-closein.sh: Likewise.
65611         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65612         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65613
65614 2007-04-27  Bruno Haible  <bruno@clisp.org>
65615
65616         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65617         version is < 6.
65618         * lib/math_.h [__DECC]: Likewise.
65619         * lib/stdio_.h [__DECC]: Likewise.
65620         * lib/stdlib_.h [__DECC]: Likewise.
65621         * lib/string_.h [__DECC]: Likewise.
65622         * lib/time_.h [__DECC]: Likewise.
65623         * lib/wchar_.h [__DECC]: Likewise.
65624         * lib/wctype_.h [__DECC]: Likewise.
65625
65626 2007-04-27  Bruno Haible  <bruno@clisp.org>
65627
65628         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65629
65630 2007-04-27  Bruno Haible  <bruno@clisp.org>
65631
65632         * lib/fflush.c: Add comments.
65633         * modules/fpurge-tests (Depends-on): Add fflush.
65634         * modules/freadable-tests (Depends-on): Likewise.
65635         * modules/fwritable-tests (Depends-on): Likewise.
65636
65637 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65638
65639         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65640         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65641         Report by Bruno Haible <bruno@clisp.org>.
65642
65643 2007-04-26  Eric Blake  <ebb9@byu.net>
65644
65645         Fix fflush on mingw.
65646         * modules/fflush (Depends-on): Add freading.
65647         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65648         but unread data.
65649
65650 2007-04-26  Eric Blake  <ebb9@byu.net>
65651         and Bruno Haible  <bruno@clisp.org>
65652
65653         Implement freading and fwriting.
65654         * lib/freading.c: New file.
65655         * lib/freading.h: Likewise.
65656         * m4/freading.m4: Likewise.
65657         * modules/freading: Likewise.
65658         * modules/freading-tests: Likewise.
65659         * tests/test-freading.c: Likewise.
65660         * lib/fwriting.c: New file.
65661         * lib/fwriting.h: Likewise.
65662         * m4/fwriting.m4: Likewise.
65663         * modules/fwriting: Likewise.
65664         * modules/fwriting-tests: Likewise.
65665         * tests/test-fwriting.c: Likewise.
65666         * MODULES.html.sh (File stream based Input/Output): Mention them.
65667
65668 2007-04-26  Bruno Haible  <bruno@clisp.org>
65669
65670         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65671         'long' when we assume it.
65672         Suggested by Eric Blake.
65673
65674 2007-04-26  Bruno Haible  <bruno@clisp.org>
65675
65676         Ensure fseeko, ftello are declared on glibc systems.
65677         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65678         * modules/fseeko (configure.ac-early): Likewise.
65679         * modules/ftello (configure.ac-early): Likewise.
65680         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65681         AC_FUNC_FSEEKO for this.
65682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65683         (gl_CHECK_FSEEKO): Remove macro.
65684
65685 2007-04-26  Bruno Haible  <bruno@clisp.org>
65686
65687         * tests/test-fflush.c (main): Also check the ftell result after
65688         fflush and fseek/fseeko.
65689         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65690         file descriptor position cache in the stream.
65691         * lib/fseeko.c (rpl_fseeko): Likewise.
65692
65693 2007-04-26  Bruno Haible  <bruno@clisp.org>
65694
65695         * modules/fflush-tests (Depends-on): Add fseeko.
65696
65697 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65698             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65699
65700         * lib/argz_.h: ensure error_t definition is obtained in same
65701         mechanism system argz.h would have.
65702         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65703         argz facilities are known bad.  Err on the side of caution if
65704         cross-compiling.
65705
65706 2007-04-25  Eric Blake  <ebb9@byu.net>
65707
65708         * lib/fpurge.c (includes): Use stdlib.h for free.
65709         * tests/test-fflush.c (main): Also test fflush-fseeko.
65710
65711 2007-04-25  Bruno Haible  <bruno@clisp.org>
65712
65713         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65714         * lib/fseeko.c: New file.
65715         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65716         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65717         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65718         gl_FUNC_FSEEKO.
65719         (gl_FUNC_FSEEKO): Invoke it.
65720         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65721         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65722         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65723
65724 2007-04-25  Bruno Haible  <bruno@clisp.org>
65725
65726         * modules/fflush (Depends-on): Add ftello.
65727
65728 2007-04-25  Bruno Haible  <bruno@clisp.org>
65729
65730         * modules/ftello-tests: New file.
65731         * tests/test-ftello.c: New file.
65732
65733         * modules/ftello: New file.
65734         * m4/ftello.m4: New file.
65735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65736         HAVE_FTELLO.
65737         * lib/stdio_.h (ftello): New declaration.
65738         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65739         HAVE_FTELLO.
65740
65741 2007-04-25  Bruno Haible  <bruno@clisp.org>
65742
65743         * modules/fseeko-tests: New file.
65744         * tests/test-fseeko.c: New file.
65745
65746         * modules/fseeko: New file.
65747         * m4/fseeko.m4: New file.
65748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65749         HAVE_FSEEKO.
65750         * lib/stdio_.h (fseeko): New declaration.
65751         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65752         HAVE_FSEEKO.
65753
65754 2007-04-25  Bruno Haible  <bruno@clisp.org>
65755
65756         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65757
65758 2007-04-25  Bruno Haible  <bruno@clisp.org>
65759
65760         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65761         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65762         * tests/test-unistd.c: Likewise.
65763         * tests/test-fcntl.c: Likewise.
65764
65765 2007-04-23  Eric Blake  <ebb9@byu.net>
65766
65767         * lib/fflush.c: Fix missing include.
65768         Reported by Bruno Haible.
65769
65770 2007-04-23  Bruno Haible  <bruno@clisp.org>
65771
65772         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65773         Reported by Eric Blake.
65774
65775 2007-04-23  Bruno Haible  <bruno@clisp.org>
65776
65777         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65778
65779 2007-04-23  Bruno Haible  <bruno@clisp.org>
65780
65781         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65782
65783 2007-04-23  Bruno Haible  <bruno@clisp.org>
65784
65785         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65786         Needed on HP-UX 11.
65787
65788 2007-04-16  Eric Blake  <ebb9@byu.net>
65789
65790         Make fflush rely on fpurge.
65791         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65792         open coding all variants.
65793         * modules/fflush (Depends-on): Add fpurge and unistd.
65794         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65795         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65796
65797         Fix --with-tests compilation on cygwin.
65798         * modules/argmatch-tests (Makefile.am): List gnulib library first
65799         in LDADD.
65800         * modules/argp-tests (Makefile.am): Likewise.
65801         * modules/array-list-tests (Makefile.am): Likewise.
65802         * modules/array-oset-tests (Makefile.am): Likewise.
65803         * modules/avltree-list-tests (Makefile.am): Likewise.
65804         * modules/avltree-oset-tests (Makefile.am): Likewise.
65805         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65806         * modules/carray-list-tests (Makefile.am): Likewise.
65807         * modules/dirname-tests (Makefile.am): Likewise.
65808         * modules/frexp-tests (Makefile.am): Likewise.
65809         * modules/isnanl-tests (Makefile.am): Likewise.
65810         * modules/linked-list-tests (Makefile.am): Likewise.
65811         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65812         * modules/lock-tests (Makefile.am): Likewise.
65813         * modules/rbtree-list-tests (Makefile.am): Likewise.
65814         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65815         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65816         * modules/tls-tests (Makefile.am): Likewise.
65817         * modules/tsearch-tests (Makefile.am): Likewise.
65818         * modules/xvasprintf-tests (Makefile.am): Likewise.
65819
65820         Fix fpurge for cygwin.
65821         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65822         value.
65823         * modules/fpurge-tests (Depends-on): Clean up trash.
65824
65825 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65826
65827         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65828
65829         * m4/autobuild.m4: Re-indent.
65830
65831 2007-04-13  Bruno Haible  <bruno@clisp.org>
65832
65833         * modules/fpurge-tests: New file.
65834         * tests/test-fpurge.c: New file.
65835
65836         * modules/fpurge: New file.
65837         * lib/fpurge.h: New file.
65838         * lib/fpurge.c: New file.
65839         * m4/fpurge.m4: New file.
65840
65841 2007-04-13  Bruno Haible  <bruno@clisp.org>
65842
65843         * modules/fbufmode-tests: New file.
65844         * tests/test-fbufmode.c: New file.
65845
65846         * modules/fbufmode: New file.
65847         * lib/fbufmode.h: New file.
65848         * lib/fbufmode.c: New file.
65849         * m4/fbufmode.m4: New file.
65850
65851 2007-04-13  Bruno Haible  <bruno@clisp.org>
65852
65853         * modules/fwritable-tests: New file.
65854         * tests/test-fwritable.c: New file.
65855
65856         * modules/fwritable: New file.
65857         * lib/fwritable.h: New file.
65858         * lib/fwritable.c: New file.
65859         * m4/fwritable.m4: New file.
65860
65861 2007-04-13  Bruno Haible  <bruno@clisp.org>
65862
65863         * modules/freadable-tests: New file.
65864         * tests/test-freadable.c: New file.
65865
65866         * modules/freadable: New file.
65867         * lib/freadable.h: New file.
65868         * lib/freadable.c: New file.
65869         * m4/freadable.m4: New file.
65870
65871 2007-04-13  Bruno Haible  <bruno@clisp.org>
65872
65873         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65874         MOSTLYCLEANFILES.
65875
65876 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65877
65878         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65879         gzip bootstrap.conf to avoid dragging in i18n machinery.
65880         (gnulib_tool_option): Use it.
65881
65882 2007-04-13  Bruno Haible  <bruno@clisp.org>
65883
65884         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65885         %F directives.
65886         * tests/test-vasprintf-posix.c (test_function): Likewise.
65887         * tests/test-snprintf-posix.h (test_function): Likewise.
65888         * tests/test-sprintf-posix.h (test_function): Likewise.
65889         * tests/test-fprintf-posix.h (test_function): Likewise.
65890         * tests/test-printf-posix.h (test_function): Likewise.
65891         * tests/test-fprintf-posix.out: Likewise.
65892
65893 2007-04-13  Bruno Haible  <bruno@clisp.org>
65894
65895         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65896         * modules/tls-tests (configure.ac): Likewise.
65897         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65898
65899 2007-04-13  Bruno Haible  <bruno@clisp.org>
65900
65901         * lib/tls.c (glthread_tls_get): Fix return type.
65902         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65903
65904 2007-04-12  Eric Blake  <ebb9@byu.net>
65905
65906         * modules/gettime (Depends-on): Remove gettime.
65907         Reported by Dmitry V. Levin.
65908
65909 2007-04-12  Bruno Haible  <bruno@clisp.org>
65910
65911         * modules/fflush (Include): Mention <stdio.h>.
65912         * modules/strtoimax (Include): Mention <inttypes.h>.
65913         * modules/strtoumax (Include): Likewise.
65914
65915 2007-04-12  Eric Blake  <ebb9@byu.net>
65916
65917         * .cvsignore: New file.
65918         * .gitignore: Likewise.
65919
65920 2007-04-12  Bruno Haible  <bruno@clisp.org>
65921
65922         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65923         not before, since $(LDADD) often contains libgnu.a.
65924         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65925         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65926         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65927         Needed on Cygwin.
65928
65929 2007-04-12  Eric Blake  <ebb9@byu.net>
65930
65931         Work around glibc's failure to flush stdin on fclose.
65932         * lib/closein.c (close_stdin): Flush stdin before closing.
65933
65934         Work around glibc's failure to reset seekable stdin on exit.
65935         * modules/closein: New module.
65936         * lib/closein.c: New file.
65937         * lib/closein.h: Likewise.
65938         * m4/closein.m4: Likewise.
65939         * MODULES.html.sh (File stream based Input/Output): Document it.
65940
65941 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65942
65943         * gnulib-tool: Rename generated 'autobuild' script to
65944         'do-autobuild' in --create-megatestdir output.
65945
65946         * doc/gnulib.texi (Build robot for gnulib): Fix.
65947
65948 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65949
65950         * modules/sysexits (Depends-on): Add absolute-header.
65951
65952 2007-04-12  Eric Blake  <ebb9@byu.net>
65953
65954         No need to preserve errno on success.
65955         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65956         Reported by Bruno Haible.
65957
65958 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65959
65960         * MODULES.html.sh (Support for maintaining and releasing
65961         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65962
65963 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65964
65965         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65966
65967 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65968
65969         * modules/autobuild: New module.
65970
65971         * m4/autobuild.m4: New file.
65972
65973 2007-04-11  Bruno Haible  <bruno@clisp.org>
65974
65975         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65976         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65977         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65980         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65981         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65983         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65984         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65985         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65986         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65987         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65988         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65989         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65990         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65991         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65992         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65993         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65994         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65995         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65996         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65998         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65999         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66000         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66001         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66002         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66003         Reported by Eric Blake.
66004
66005 2007-04-11  Bruno Haible  <bruno@clisp.org>
66006
66007         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66008
66009 2007-04-10  Bruno Haible  <bruno@clisp.org>
66010
66011         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66012         for NaN and Infinity. Needed on FreeBSD 6.1.
66013         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66014         regarding results for "%010a" of Infinity and NaN.
66015         * tests/test-vasprintf-posix.c (test_function): Likewise.
66016         * tests/test-snprintf-posix.h (test_function): Likewise.
66017         * tests/test-sprintf-posix.h (test_function): Likewise.
66018         * tests/test-fprintf-posix.h (test_function): Likewise.
66019         * tests/test-printf-posix.h (test_function): Likewise.
66020         * tests/test-fprintf-posix.out: Likewise.
66021
66022 2007-04-10  Bruno Haible  <bruno@clisp.org>
66023
66024         * modules/locale-tests: New file.
66025         * tests/test-locale.c: New file.
66026
66027         * modules/locale: New file.
66028         * lib/locale_.h: New file.
66029         * m4/locale_h.m4: New file.
66030
66031 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66032             Bruno Haible  <bruno@clisp.org>
66033
66034         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66035         be determined, test for availability of the copysignf, copysign,
66036         copysignl functions.
66037         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66038         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66039         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66040
66041 2007-04-09  Eric Blake  <ebb9@byu.net>
66042
66043         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66044         * modules/stdio (Makefile.am): Support fflush.
66045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66046         * modules/fflush: New file.
66047         * lib/fflush.c: Likewise.
66048         * m4/fflush.m4: Likewise.
66049         * modules/fflush-tests: New test.
66050         * tests/test-fflush.c: Likewise.
66051         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66052
66053 2007-04-06  Bruno Haible  <bruno@clisp.org>
66054
66055         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66056         (VASNPRINTF): Use signbit for faster determination whether to print a
66057         minus sign.
66058         * modules/vasnprintf (Files): Remove lib/float+.h.
66059         * modules/fprintf-posix (Depends-on): Add signbit.
66060         * modules/snprintf-posix (Depends-on): Likewise.
66061         * modules/sprintf-posix (Depends-on): Likewise.
66062         * modules/vasnprintf-posix (Depends-on): Likewise.
66063         * modules/vasprintf-posix (Depends-on): Likewise.
66064         * modules/vfprintf-posix (Depends-on): Likewise.
66065         * modules/vsnprintf-posix (Depends-on): Likewise.
66066         * modules/vsprintf-posix (Depends-on): Likewise.
66067
66068 2007-04-06  Bruno Haible  <bruno@clisp.org>
66069
66070         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66071         * tests/test-frexpl.c (main): Likewise.
66072         * tests/test-ldexpl.c (main): Likewise.
66073         * modules/frexp-tests (Depends-on): Add signbit.
66074         * modules/frexpl-tests (Depdends-on): Likewise.
66075         * modules/ldexpl-tests (Depdends-on): Likewise.
66076
66077 2007-04-06  Bruno Haible  <bruno@clisp.org>
66078
66079         * modules/signbit-tests: New file.
66080         * tests/test-signbit.c: New file.
66081
66082         * modules/signbit: New file.
66083         * lib/signbitf.c: New file.
66084         * lib/signbitd.c: New file.
66085         * lib/signbitl.c: New file.
66086         * m4/signbit.m4: New file.
66087         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66088         (signbit): New macro.
66089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66090         REPLACE_SIGNBIT.
66091         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66092         REPLACE_FREXPL into math.h.
66093
66094 2007-04-06  Bruno Haible  <bruno@clisp.org>
66095
66096         * modules/isnanf-nolibm-tests: New file.
66097         * tests/test-isnanf.c: New file.
66098
66099         * modules/isnanf-nolibm: New file.
66100         * lib/isnanf.h: New file.
66101         * lib/isnanf.c: New file.
66102         * lib/isnan.c: Consider the USE_FLOAT macro.
66103         * m4/isnanf.m4: New file.
66104
66105 2007-04-06  Bruno Haible  <bruno@clisp.org>
66106
66107         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66108         (Link): New section.
66109
66110         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66111
66112 2007-04-06  Bruno Haible  <bruno@clisp.org>
66113
66114         Assume the 'long double' type.
66115         * m4/longdouble.m4: Remove file.
66116         * config/srclist.txt: Don't mention longdouble.m4.
66117         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66118         * lib/float+.h: Likewise.
66119         * lib/frexp.c: Likewise.
66120         * lib/printf-args.h: Likewise.
66121         * lib/printf-args.c: Likewise.
66122         * lib/printf-frexp.c: Likewise.
66123         * lib/printf-parse.c: Likewise.
66124         * lib/vasnprintf.c: Likewise.
66125         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66126         * m4/intl.m4: Likewise.
66127         * m4/isnanl.m4: Likewise.
66128         * m4/printf.m4: Likewise.
66129         * m4/printf-frexpl.m4: Likewise.
66130         * m4/vasnprintf.m4: Likewise.
66131         * modules/allocsa (Files): Remove m4/longdouble.m4.
66132         * modules/gettext (Files): Likewise.
66133         * modules/relocatable-prog-wrapper (Files): Likewise.
66134         * modules/vasnprintf (Files): Likewise.
66135         * modules/isnanl (Files): Likewise.
66136         (Include): Simplify.
66137         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66138         (Include): Simplify.
66139         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66140         (Include): Simplify.
66141         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66142         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66143         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66144         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66145         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66146         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66147         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66148         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66149         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66150         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66151         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66152         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66153         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66154         * tests/test-isnanl.c: Likewise.
66155         * tests/test-snprintf-posix.h: Likewise.
66156         * tests/test-sprintf-posix.h: Likewise.
66157         * tests/test-vasnprintf-posix.c: Likewise.
66158         * tests/test-vasnprintf-posix2.c: Likewise.
66159         * tests/test-vasprintf-posix.c: Likewise.
66160
66161 2007-04-06  Bruno Haible  <bruno@clisp.org>
66162
66163         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66164         * lib/math_.h [__DECC]: Include the overridden include file through
66165         #include_next, outside the double-inclusion guard.
66166         * lib/stdio_.h [__DECC]: Likewise.
66167         * lib/stdlib_.h [__DECC]: Likewise.
66168         * lib/string_.h [__DECC]: Likewise.
66169         * lib/time_.h [__DECC]: Likewise.
66170         * lib/wchar_.h [__DECC]: Likewise.
66171         * lib/wctype_.h [__DECC]: Likewise.
66172         * lib/inttypes_.h [__DECC]: Likewise.
66173         Reported by Albert Chin <china@thewrittenword.com> in
66174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66175
66176 2007-04-04  Eric Blake  <ebb9@byu.net>
66177
66178         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66179         1.5.x.
66180
66181 2007-04-04  Bruno Haible  <bruno@clisp.org>
66182
66183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66184         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66185
66186 2007-04-04  Bruno Haible  <bruno@clisp.org>
66187
66188         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66189         results for "%010a" of Infinity and NaN.
66190         * tests/test-vasprintf-posix.c (test_function): Likewise.
66191         * tests/test-snprintf-posix.h (test_function): Likewise.
66192         * tests/test-sprintf-posix.h (test_function): Likewise.
66193         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66194         * tests/test-printf-posix.h (test_function): Likewise.
66195         * tests/test-fprintf-posix.out: Update.
66196         Needed for FreeBSD 6.1.
66197
66198 2007-04-04  Bruno Haible  <bruno@clisp.org>
66199
66200         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66201         directly used by the gnulib modules nor by gnulib-tool.
66202
66203 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * DEPENDENCIES: Give overall description of version dependency
66206         desirability.  Use more-typical names for apps.
66207         Add shell, coreutils, diffutils, grep, tar, gzip.
66208
66209 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66210
66211         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66212
66213 2007-04-04  Karl Berry  <karl@gnu.org>
66214
66215         * MODULES.html.sh (func_module): missing '.
66216
66217 2007-04-03  Bruno Haible  <bruno@clisp.org>
66218
66219         * modules/argmatch-tests (Makefile.am): New variable
66220         test_argmatch_LDADD.
66221         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66222         * modules/array-list-tests (Makefile.am): New variable
66223         test_array_list_LDADD.
66224         * modules/array-oset-tests (Makefile.am): New variable
66225         test_array_oset_LDADD.
66226         * modules/avltree-list-tests (Makefile.am): New variable
66227         test_avltree_list_LDADD.
66228         * modules/avltree-oset-tests (Makefile.am): New variable
66229         test_avltree_oset_LDADD.
66230         * modules/avltreehash-list-tests (Makefile.am): New variable
66231         test_avltreehash_list_LDADD.
66232         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66233         test_canonicalize_lgpl_LDADD.
66234         * modules/carray-list-tests (Makefile.am): New variable
66235         test_carray_list_LDADD.
66236         * modules/dirname-tests (Makefile.am): New variable
66237         test_dirname_LDADD.
66238         * modules/linked-list-tests (Makefile.am): New variable
66239         test_linked_list_LDADD.
66240         * modules/linkedhash-list-tests (Makefile.am): New variable
66241         test_linkedhash_list_LDADD.
66242         * modules/rbtree-list-tests (Makefile.am): New variable
66243         test_rbtree_list_LDADD.
66244         * modules/rbtree-oset-tests (Makefile.am): New variable
66245         test_rbtree_oset_LDADD.
66246         * modules/rbtreehash-list-tests (Makefile.am): New variable
66247         test_rbtreehash_list_LDADD.
66248         * modules/xvasprintf-tests (Makefile.am): New variable
66249         test_xvasprintf_LDADD.
66250         Reported by Eric Blake.
66251
66252 2007-04-03  Eric Blake  <ebb9@byu.net>
66253
66254         * DEPENDENCIES: Weaken m4 requirements.
66255
66256 2007-04-03  Bruno Haible  <bruno@clisp.org>
66257
66258         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66259         * modules/isnanl-tests (configure.ac): Likewise.
66260
66261 2007-04-03  Ben Pfaff  <blp@gnu.org>
66262
66263         * modules/iconv_open: Add $(srcdir)/ to source directory
66264         references in Makefile fragments that call gperf, to fix VPATH
66265         builds.
66266
66267 2007-04-03  Bruno Haible  <bruno@clisp.org>
66268
66269         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66270         * lib/ldexpl.c: Undo last change.
66271
66272 2007-04-03  Bruno Haible  <bruno@clisp.org>
66273
66274         * modules/printf-frexpl (Depends-on): Undo last change.
66275         (Files): Add m4/ldexpl.m4.
66276
66277 2007-04-03  Bruno Haible  <bruno@clisp.org>
66278
66279         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66280         * modules/isnanl (Link): New section.
66281
66282         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66283         * modules/frexp (Link): New section.
66284
66285         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66286         * modules/frexpl (Link): New section.
66287
66288         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66289         * modules/ldexpl (Link): New section.
66290
66291 2007-04-03  Bruno Haible  <bruno@clisp.org>
66292
66293         * modules/TEMPLATE-EXTENDED: New file.
66294         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66295
66296 2007-04-03  Bruno Haible  <bruno@clisp.org>
66297
66298         * DEPENDENCIES: New file.
66299         Suggested by Simon Josefsson.
66300
66301 2007-04-03  Bruno Haible  <bruno@clisp.org>
66302
66303         * doc/gnulib.texi: Escape @.
66304
66305 2007-04-03  James Youngman  <jay@gnu.org>
66306         and Paul Eggert  <eggert@cs.ucla.edu>
66307
66308         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66309         birthtime on all systems that have birthtime, not just those which
66310         use st_birthtimensec rather than st_birthtim.  Putting zero in
66311         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66312         that the birth time is not available for files on an NFS mount.
66313
66314 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66315
66316         * modules/memxor: Move back from crypto/, suggested by Bruno.
66317         * modules/crypto/hmac-sha1: Fix memxor dependency.
66318
66319         * modules/crypto/gc: Moved from ../.
66320
66321 2007-04-02  Eric Blake  <ebb9@byu.net>
66322
66323         * lib/ldexpl.c (includes): Avoid libm.
66324
66325         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66326
66327 2007-04-02  Bruno Haible  <bruno@clisp.org>
66328
66329         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66330         on IRIX.
66331
66332 2007-04-02  Bruno Haible  <bruno@clisp.org>
66333
66334         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66335         x86 or x86_64 platforms running MacOS X.
66336         Reported by Ryan Schmidt <@ryandesign.com>.
66337
66338 2007-04-02  Bruno Haible  <bruno@clisp.org>
66339
66340         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66341         i386.
66342
66343 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66344
66345         * modules/crypto/arcfour: Moved from ../.
66346         * modules/crypto/arcfour-tests: Moved from ../.
66347         * modules/crypto/arctwo: Moved from ../.
66348         * modules/crypto/arctwo-tests: Moved from ../.
66349         * modules/crypto/des: Moved from ../.
66350         * modules/crypto/des-tests: Moved from ../.
66351         * modules/crypto/gc-arcfour: Moved from ../.
66352         * modules/crypto/gc-arcfour-tests: Moved from ../.
66353         * modules/crypto/gc-arctwo: Moved from ../.
66354         * modules/crypto/gc-arctwo-tests: Moved from ../.
66355         * modules/crypto/gc-des: Moved from ../.
66356         * modules/crypto/gc-des-tests: Moved from ../.
66357         * modules/crypto/gc-hmac-md5: Moved from ../.
66358         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66359         * modules/crypto/gc-hmac-sha1: Moved from ../.
66360         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66361         * modules/crypto/gc-md2: Moved from ../.
66362         * modules/crypto/gc-md2-tests: Moved from ../.
66363         * modules/crypto/gc-md4: Moved from ../.
66364         * modules/crypto/gc-md4-tests: Moved from ../.
66365         * modules/crypto/gc-md5: Moved from ../.
66366         * modules/crypto/gc-md5-tests: Moved from ../.
66367         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66368         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66369         * modules/crypto/gc-random: Moved from ../.
66370         * modules/crypto/gc-rijndael: Moved from ../.
66371         * modules/crypto/gc-rijndael-tests: Moved from ../.
66372         * modules/crypto/gc-sha1: Moved from ../.
66373         * modules/crypto/gc-sha1-tests: Moved from ../.
66374         * modules/crypto/gc-tests: Moved from ../.
66375         * modules/crypto/hmac-md5: Moved from ../.
66376         * modules/crypto/hmac-md5-tests: Moved from ../.
66377         * modules/crypto/hmac-sha1: Moved from ../.
66378         * modules/crypto/hmac-sha1-tests: Moved from ../.
66379         * modules/crypto/md2: Moved from ../.
66380         * modules/crypto/md2-tests: Moved from ../.
66381         * modules/crypto/md4: Moved from ../.
66382         * modules/crypto/md4-tests: Moved from ../.
66383         * modules/crypto/md5: Moved from ../.
66384         * modules/crypto/md5-tests: Moved from ../.
66385         * modules/crypto/memxor: Moved from ../.
66386         * modules/crypto/rijndael: Moved from ../.
66387         * modules/crypto/rijndael-tests: Moved from ../.
66388         * modules/crypto/sha1: Moved from ../.
66389
66390 2007-03-30  James Youngman  <jay@gnu.org>
66391
66392         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66393         rename() to change the ctime of a file (because ctime is unaffected
66394         by rename on jfs2 on AIX 5.1).
66395         (main): Start by doing cleanup, in case a previous run failed leaving
66396         test files behind.
66397
66398 2007-03-31  Bruno Haible  <bruno@clisp.org>
66399
66400         Support old proprietary implementations of iconv.
66401         * modules/iconv_open: New file.
66402         * lib/iconv_.h: New file.
66403         * m4/iconv_h.m4: New file.
66404         * lib/iconv_open.c: New file.
66405         * lib/iconv_open-aix.gperf: New file.
66406         * lib/iconv_open-hpux.gperf: New file.
66407         * lib/iconv_open-irix.gperf: New file.
66408         * lib/iconv_open-osf.gperf: New file.
66409         * m4/iconv_open.m4: New file.
66410         * modules/linebreak (Depends-on): Add iconv_open.
66411         * modules/striconv (Depends-on): Likewise.
66412         * modules/striconveh (Depends-on): Likewise.
66413         * modules/unicodeio (Depends-on): Likewise.
66414         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66415         (iconv_t)(-1).
66416         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66417         conversion if cd is (iconv_t)(-1).
66418         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66419         is not possible.
66420
66421 2007-03-31  Bruno Haible  <bruno@clisp.org>
66422
66423         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66424         work on Solaris either. Protect also second use of "autodetect_jp".
66425
66426 2007-03-31  Bruno Haible  <bruno@clisp.org>
66427
66428         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66429         the function is not present.
66430
66431 2007-03-31  Bruno Haible  <bruno@clisp.org>
66432
66433         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66434         the function is not present.
66435
66436 2007-03-31  Bruno Haible  <bruno@clisp.org>
66437
66438         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66439         a bug in HP-UX iconv_open().
66440
66441 2007-03-31  Bruno Haible  <bruno@clisp.org>
66442
66443         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66444         (Mathematics <math.h>): New section, add fpieee.
66445         (Input/output <stdio.h>): Add fseterr.
66446         (Mathematics <math.h>): New section, add printf-frexp.
66447         (Container data structures): Add sublist.
66448         (Core language properties): Add fpucw, inline.
66449         (Functions for greatest-width integer types <inttypes.h>): Add
66450         imaxabs, imaxdiv, inttypes.
66451         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66452         isnanl-nolibm, ldexp.
66453         (Mathematics <math.h>): New section, add printf-frexpl.
66454         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66455         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66456         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66457         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66458         (Unicode string functions): Add unistr/u*-mbtoucr.
66459         (Java): Add javacomp-script, javaexec-script.
66460         (C#): Add csharpcomp-script, csharpexec-script.
66461         (Support for building libraries and executables): Add havelib,
66462         relocatable-*.
66463         (Support for maintaining and releasing projects): Renamed from
66464         'Support for maintaining and release projects'. Add announce-gen.
66465
66466 2007-03-31  Bruno Haible  <bruno@clisp.org>
66467
66468         * README: Talk primarily about git.
66469         (git and CVS): Renamed from CVS.
66470         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66471         gnulib is available through git.
66472         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66473
66474 2007-03-30  Bruno Haible  <bruno@clisp.org>
66475
66476         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66477         * lib/poll_.h: Likewise.
66478         * lib/stat_.h: Likewise.
66479         * lib/sys_time_.h: Likewise.
66480         * lib/sysexit_.h: Likewise.
66481         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66482         * lib/stdbool_.h: Likewise.
66483         * lib/byteswap_.h: Add double-inclusion guard.
66484
66485 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66486
66487         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66488
66489 2007-03-30  Karl Berry  <karl@gnu.org>
66490
66491         * config/srclist-update: double space after USA in the license
66492         substitution, since that's how it's usually (?) written.
66493
66494 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66497         reported by Bruno Haible.
66498
66499 2007-03-29  Bruno Haible  <bruno@clisp.org>
66500
66501         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66502         a bug in AIX iconv().
66503
66504 2007-03-29  Bruno Haible  <bruno@clisp.org>
66505
66506         * modules/ldexpl-tests: New file.
66507         * tests/test-ldexpl.c: New file.
66508
66509 2007-03-29  Bruno Haible  <bruno@clisp.org>
66510
66511         * lib/ldexpl.c: Include fpucw.h.
66512         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66513         multiplication.
66514         * modules/ldexpl (Depends-on): Add fpucw.
66515
66516 2007-03-29  Bruno Haible  <bruno@clisp.org>
66517
66518         * modules/ldexpl: New file.
66519         * m4/ldexpl.m4: New file.
66520         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66521         set.
66522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66523         REPLACE_LDEXPL.
66524         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66525         REPLACE_LDEXPL.
66526         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66527         gl_FUNC_LDEXPL_WORKS.
66528         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66529         * modules/mathl (Files): Remove lib/ldexpl.c.
66530         (Depends-on): Add ldexpl.
66531
66532 2007-03-29  Bruno Haible  <bruno@clisp.org>
66533
66534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66535
66536 2007-03-29  Bruno Haible  <bruno@clisp.org>
66537
66538         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66539         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66540         and possibly also HP-UX.
66541         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66542         work on AIX, IRIX, HP-UX, OSF/1.
66543         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66544         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66545         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66546         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66547         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66548         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66549
66550 2007-03-29  Bruno Haible  <bruno@clisp.org>
66551
66552         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66553
66554 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66555
66556         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66557         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66558
66559 2007-03-29  Eric Blake  <ebb9@byu.net>
66560
66561         * lib/acl-internal.h: Remove redundant include.
66562         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66563         Cygwin when a file is locked.
66564
66565 2007-03-29  Bruno Haible  <bruno@clisp.org>
66566
66567         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66568         file.
66569         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66570
66571 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66572
66573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66574         try to remove a parent directory if the child couldn't be removed
66575         (except for the first rmdir, which could fail because the child
66576         doesn't exist).  Problem reported by Jeff Blaine in
66577         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66578
66579 2007-03-28  Bruno Haible  <bruno@clisp.org>
66580
66581         * lib/striconveh.c (utf8conv_carefully): New function.
66582         (mem_cd_iconveh_internal): Invoke it.
66583
66584 2007-03-28  Bruno Haible  <bruno@clisp.org>
66585
66586         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66587         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66588         input.
66589         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66590         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66591         unistr/u8-uctomb.
66592
66593 2007-03-28  Bruno Haible  <bruno@clisp.org>
66594
66595         * modules/unistr/u8-mbtoucr: New file.
66596         * lib/unistr/u8-mbtoucr.c: New file.
66597         * modules/unistr/u16-mbtoucr: New file.
66598         * lib/unistr/u16-mbtoucr.c: New file.
66599         * modules/unistr/u16-mbtoucr: New file.
66600         * lib/unistr/u16-mbtoucr.c: New file.
66601         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66602
66603 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66604             Bruno Haible  <bruno@clisp.org>
66605
66606         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66607         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66608         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66609
66610         * m4/stdio_h.m4: Add stubs for vasprintf too.
66611
66612         * modules/stdio: Support vasprintf in sed command.
66613
66614         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66615         vasprintf.h.  Add stdio module indicator.
66616
66617         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66618         vasprintf.h.
66619
66620         * lib/vasprintf.h: File removed.
66621
66622         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66623         * lib/vasprintf.c: Ditto.
66624         * lib/xvasprintf.c: Ditto.
66625         * tests/test-vasprintf-posix.c: Ditto.
66626         * tests/test-vasprintf.c: Ditto.
66627
66628 2007-03-27  Bruno Haible  <bruno@clisp.org>
66629
66630         Make vasnprintf multithread-safe.
66631         * lib/vasnprintf.c (decimal_point_char): New function.
66632         (VASNPRINTF): Use it.
66633         Suggested by Simon Josefsson.
66634
66635 2007-03-27  Eric Blake  <ebb9@byu.net>
66636
66637         Support sub-second birthtime on cygwin.
66638         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66639         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66640         (get_stat_birthtime): Also work with st_birthtim.
66641
66642 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66643
66644         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66645         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66646         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66647         (get_stat_birthtime_ns): Simplify compile-time tests.
66648         (get_stat_birthtime): Change the API to look like
66649         get_stat_mtime etc., except return a negative tv_nsec on error.
66650         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66651         Don't check for "spare" fields.
66652         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66653         or for struct stat.st_birthtime, as these tests aren't used.
66654         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66655
66656 2007-03-27  Bruno Haible  <bruno@clisp.org>
66657
66658         * lib/stat-time.h: Include <sys/stat.h>.
66659
66660 2007-03-27  James Youngman  <jay@gnu.org>
66661
66662         * lib/stat-time.h (get_stat_birthtime): New function for
66663           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66664         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66665           and its variants.
66666         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66667         * modules/stat-time-test: New file.
66668         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66669
66670 2007-03-26  Bruno Haible  <bruno@clisp.org>
66671
66672         Better support of signalling NaNs.
66673         * lib/atanl.c: Include isnanl.h.
66674         (atanl): Perform test for NaN at the beginning of the function and
66675         through a call to isnanl.
66676         * lib/cosl.c: Include isnanl.h.
66677         (cosl): Perform test for NaN at the beginning of the function and
66678         through a call to isnanl.
66679         * lib/ldexpl.c: Include isnanl.h.
66680         (ldexpl): Perform test for NaN through a call to isnanl.
66681         * lib/logl.c: Include isnanl.h.
66682         (logl): Perform test for NaN at the beginning of the function and
66683         through a call to isnanl.
66684         * lib/sinl.c: Include isnanl.h.
66685         (sinl): Perform test for NaN at the beginning of the function and
66686         through a call to isnanl.
66687         * lib/sqrtl.c: Include isnanl.h.
66688         (sqrtl): Perform test for NaN at the beginning of the function and
66689         through a call to isnanl.
66690         * lib/tanl.c: Include isnanl.h.
66691         (tanl): Perform test for NaN at the beginning of the function and
66692         through a call to isnanl.
66693         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66694         * modules/mathl (Depends-on): Add isnanl.
66695
66696 2007-03-26  Eric Blake  <ebb9@byu.net>
66697
66698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66699         regression in logic sense of previous patch.
66700
66701 2007-03-26  Bruno Haible  <bruno@clisp.org>
66702
66703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66704         unportable shell command "if ! ...".
66705         Reported by Ralf Wildenhues.
66706
66707 2007-03-25  Bruno Haible  <bruno@clisp.org>
66708
66709         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66710         <sysexits.h> file, and only add EX_CONFIG.
66711         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66712         absolute file name and whether it is sufficient. Substitute also
66713         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66714         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66715         ABSOLUTE_SYSEXITS_H into sysexits.h.
66716
66717 2007-03-25  Bruno Haible  <bruno@clisp.org>
66718
66719         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66720         hints is NULL.
66721
66722 2007-03-25  Bruno Haible  <bruno@clisp.org>
66723
66724         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66725         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66726
66727 2007-03-25  Bruno Haible  <bruno@clisp.org>
66728
66729         * lib/vasnprintf.c: Include langinfo.h.
66730         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66731         multithread-safe.
66732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66734         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66735         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66736         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66737         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66738         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66739         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66740         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66741         Reported by Simon Josefsson.
66742
66743 2007-03-25  Bruno Haible  <bruno@clisp.org>
66744
66745         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66746         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66747         * modules/vasnprintf (Depends-on): Add stdint.
66748
66749 2007-03-25  Bruno Haible  <bruno@clisp.org>
66750
66751         * modules/fpieee: New file.
66752         * m4/fpieee.m4: New file.
66753         * modules/isnan-nolibm (Depends-on): Add fpieee.
66754         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66755         * modules/isnanl (Depends-on): Add fpieee.
66756
66757 2007-03-25  Bruno Haible  <bruno@clisp.org>
66758
66759         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66760
66761 2007-03-25  Bruno Haible  <bruno@clisp.org>
66762
66763         Avoid test failures on IRIX 6.5.
66764         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66765         (main): Use it.
66766         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66767         macros.
66768         (main): Use them.
66769
66770 2007-03-25  Bruno Haible  <bruno@clisp.org>
66771
66772         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66773         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66774         exists but doesn't work.
66775         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66776         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66778         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66779         math.h.
66780
66781 2007-03-25  Bruno Haible  <bruno@clisp.org>
66782
66783         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66784         returns inf. Needed on IRIX 6.5.
66785
66786 2007-03-25  Bruno Haible  <bruno@clisp.org>
66787
66788         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66789         (main): Use isnanl instead of x != x idiom.
66790         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66791
66792         * tests/test-frexp.c: Include isnan.h.
66793         (main): Use isnan instead of x != x idiom.
66794         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66795
66796 2007-03-25  Bruno Haible  <bruno@clisp.org>
66797
66798         * tests/test-frexp.c (NaN): New function/macro.
66799         (main): Use it instead of 0.0 / 0.0.
66800         * tests/test-isnan.c (NaN): New function/macro.
66801         (main): Use it instead of 0.0 / 0.0.
66802         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66803         (test_function): Use it instead of 0.0 / 0.0.
66804         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66805         (test_function): Use it instead of 0.0 / 0.0.
66806         * tests/test-snprintf-posix.h (NaN): New function/macro.
66807         (test_function): Use it instead of 0.0 / 0.0.
66808         * tests/test-sprintf-posix.h (NaN): New function/macro.
66809         (test_function): Use it instead of 0.0 / 0.0.
66810         * tests/test-fprintf-posix.h (NaN): New function/macro.
66811         (test_function): Use it instead of 0.0 / 0.0.
66812         * tests/test-printf-posix.h (NaN): New function/macro.
66813         (test_function): Use it instead of 0.0 / 0.0.
66814
66815         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66816
66817 2007-03-25  Bruno Haible  <bruno@clisp.org>
66818
66819         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66820
66821 2007-03-25  Bruno Haible  <bruno@clisp.org>
66822
66823         * lib/regexec.c (merge_state_with_log): Make static.
66824
66825 2007-03-25  Bruno Haible  <bruno@clisp.org>
66826
66827         * lib/trigl.c (kernel_rem_pio2): Make static.
66828
66829 2007-03-25  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/sincosl.c (sincosl_table): Make static.
66832
66833 2007-03-25  Bruno Haible  <bruno@clisp.org>
66834
66835         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66836         if the compiler does not support C99.
66837
66838 2007-03-25  Bruno Haible  <bruno@clisp.org>
66839
66840         * modules/time (Makefile.am): Ensure all rule action lines start with a
66841         tab.
66842
66843 2007-03-24  Bruno Haible  <bruno@clisp.org>
66844
66845         * modules/tsearch-tests: New file.
66846         * tests/test-tsearch.sh: New file.
66847         * tests/test-tsearch.c: New file, mostly copied from glibc.
66848
66849         * modules/search-tests: New file.
66850         * tests/test-search.c: New file.
66851
66852         * modules/search: New file.
66853         * lib/search_.h: New file, incorporating lib/tsearch.h.
66854         * m4/search_h.m4: New file.
66855         * lib/tsearch.h: Remove file.
66856         * lib/tsearch.c: Include search.h instead of tsearch.h.
66857         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66858         HAVE_TSEARCH.
66859         * modules/tsearch (Files): Remove lib/tsearch.h.
66860         (Depends-on): Add search.
66861         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66862         (Include): Change tsearch.h into search.h.
66863
66864 2007-03-24  Bruno Haible  <bruno@clisp.org>
66865
66866         * modules/fpucw: New file.
66867         * lib/fpucw.h: New file.
66868         * lib/frexp.c: Include fpucw.h.
66869         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66870         (FUNC): Use them.
66871         * lib/printf-frexp.c: Include fpucw.h.
66872         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66873         (FUNC): Use them.
66874         * lib/vasnprintf.c: Include fpucw.h.
66875         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66876         'long double' calculations.
66877         * tests/test-frexpl.c: Include fpucw.h.
66878         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66879         * tests/test-printf-frexpl.c: Include fpucw.h.
66880         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66881         * modules/frexpl (Depends-on): Add fpucw.
66882         * modules/printf-frexpl (Depends-on): Likewise.
66883         * modules/fprintf-posix (Depends-on): Likewise.
66884         * modules/snprintf-posix (Depends-on): Likewise.
66885         * modules/sprintf-posix (Depends-on): Likewise.
66886         * modules/vasnprintf-posix (Depends-on): Likewise.
66887         * modules/vasprintf-posix (Depends-on): Likewise.
66888         * modules/vfprintf-posix (Depends-on): Likewise.
66889         * modules/vsnprintf-posix (Depends-on): Likewise.
66890         * modules/vsprintf-posix (Depends-on): Likewise.
66891         * modules/frexpl-tests (Depends-on): Likewise.
66892         * modules/printf-frexpl-tests (Depends-on): Likewise.
66893
66894 2007-03-24  Bruno Haible  <bruno@clisp.org>
66895
66896         * lib/float+.h: New file.
66897         * lib/isnan.c: Include float+.h.
66898         (SIZE): New macro.
66899         (FUNC): Compare only SIZE bytes of the value.
66900         * lib/vasnprintf.c: Include float+.h.
66901         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66902         SIZEOF_LDBL or SIZEOF_DBL bytes.
66903         * modules/isnan-nolibm (Files): Add lib/float+.h.
66904         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66905         * modules/isnanl (Files): Add lib/float+.h.
66906         * modules/vasnprintf (Files): Add lib/float+.h.
66907
66908 2007-03-24  Bruno Haible  <bruno@clisp.org>
66909
66910         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66911         include isnanl-nolibm.h.
66912
66913 2007-03-24  Bruno Haible  <bruno@clisp.org>
66914
66915         * tests/test-read-file.c (main): Don't produce spurious output for
66916         expected situations. Make the test fail if it encountered unexpected
66917         results.
66918
66919 2007-03-24  Bruno Haible  <bruno@clisp.org>
66920
66921         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66922         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66923
66924 2007-03-24  Bruno Haible  <bruno@clisp.org>
66925
66926         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66927
66928 2007-03-24  Bruno Haible  <bruno@clisp.org>
66929
66930         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66931         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66932
66933         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66934         * modules/utf8-ucs4: Turn into a symbolic link to module
66935         unistr/u8-mbtouc.
66936
66937         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66938         utf8-ucs4-unsafe.
66939         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66940         unistr/u8-mbtouc-unsafe.
66941
66942         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66943         * modules/utf16-ucs4: Turn into a symbolic link to module
66944         unistr/u16-mbtouc.
66945
66946         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66947         utf16-ucs4-unsafe.
66948         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66949         unistr/u16-mbtouc-unsafe.
66950
66951         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66952         * modules/ucs4-utf8: Turn into a symbolic link to module
66953         unistr/u8-ubtomb.
66954
66955         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66956         * modules/ucs4-utf16: Turn into a symbolic link to module
66957         unistr/u16-ubtomb.
66958
66959 2007-03-24  Bruno Haible  <bruno@clisp.org>
66960
66961         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66962         Enable the function only if HAVE_INLINE.
66963         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66964         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66965         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66966         Enable the function only if HAVE_INLINE.
66967         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66968         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66969         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66970         Enable the function only if HAVE_INLINE.
66971         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66972         Enable the function only if HAVE_INLINE.
66973         * modules/utf8-ucs4: Update.
66974         * modules/utf8-ucs4-unsafe: Update.
66975         * modules/utf16-ucs4: Update.
66976         * modules/utf16-ucs4-unsafe: Update.
66977         * modules/ucs4-utf8: Update.
66978         * modules/ucs4-utf16: Update.
66979
66980 2007-03-24  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/utf8-ucs4.h: Remove file.
66983         * lib/utf8-ucs4-unsafe.h: Remove file.
66984         * lib/utf16-ucs4.h: Remove file.
66985         * lib/utf16-ucs4-unsafe.h: Remove file.
66986         * lib/ucs4-utf8.h: Remove file.
66987         * lib/ucs4-utf16.h: Remove file.
66988         * lib/unistr.h: Include their previous contents.
66989         * m4/utf-ucs4.m4: Remove file.
66990         * m4/ucs4-utf.m4: Remove file.
66991         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66992         (Depends-on): Add unistr/base.
66993         (configure.ac): Remove gl_UTF_UCS4.
66994         (Makefile.am): Update.
66995         (Include): Change to unistr.h.
66996         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66997         (Depends-on): Add unistr/base.
66998         (configure.ac): Remove gl_UTF_UCS4.
66999         (Makefile.am): Update.
67000         (Include): Change to unistr.h.
67001         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67002         (Depends-on): Add unistr/base.
67003         (configure.ac): Remove gl_UTF_UCS4.
67004         (Makefile.am): Update.
67005         (Include): Change to unistr.h.
67006         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67007         (Depends-on): Add unistr/base.
67008         (configure.ac): Remove gl_UTF_UCS4.
67009         (Makefile.am): Update.
67010         (Include): Change to unistr.h.
67011         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67012         (Depends-on): Add unistr/base.
67013         (configure.ac): Remove gl_UCS4_UTF.
67014         (Makefile.am): Update.
67015         (Include): Change to unistr.h.
67016         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67017         (Depends-on): Add unistr/base.
67018         (configure.ac): Remove gl_UCS4_UTF.
67019         (Makefile.am): Update.
67020         (Include): Change to unistr.h.
67021         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67022         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67023         utf8-ucs4-unsafe.h.
67024         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67025         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67026         utf16-ucs4-unsafe.h.
67027         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67028         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67029         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67030         * lib/unistr/u8-strchr.c: Likewise.
67031         * lib/unistr/u8-strrchr.c: Likewise.
67032         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67033         * lib/unistr/u16-strchr.c: Likewise.
67034         * lib/unistr/u16-strrchr.c: Likewise.
67035         * lib/striconveh.c: Update.
67036         * lib/linebreak.c: Update.
67037
67038 2007-03-24  Bruno Haible  <bruno@clisp.org>
67039
67040         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67041         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67042
67043 2007-03-22  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67046
67047 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67048
67049         * MODULES.html.sh (File system functions): New module write-any-file.
67050         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67051         * m4/write-any-file.m4: New files.
67052
67053 2007-03-23  Eric Blake  <ebb9@byu.net>
67054
67055         * gnulib-tool: Rearrange space-tab sequences, since some editors
67056         like to eat them.
67057
67058 2007-03-23  Eric Blake  <ebb9@byu.net>
67059
67060         * lib/version-etc.c (version_etc_va): Update license wording to
67061         be more concise.  Recommended by Richard Stallman.
67062
67063 2007-03-22  Bruno Haible  <bruno@clisp.org>
67064
67065         * lib/poll.c (MSG_PEEK): New fallback definition.
67066
67067 2007-03-22  Bruno Haible  <bruno@clisp.org>
67068
67069         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67070         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67071         (main): Update.
67072         Fixes a compilation error on BeOS.
67073
67074 2007-03-22  Bruno Haible  <bruno@clisp.org>
67075
67076         * modules/frexpl-tests: New file.
67077         * tests/test-frexpl.c: New file.
67078
67079         * modules/frexpl: New file.
67080         * m4/frexpl.m4: New file.
67081         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67082         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67084         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67085         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67086         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67087
67088 2007-03-22  Bruno Haible  <bruno@clisp.org>
67089
67090         * lib/frexpl.c: Share code with lib/frexp.c.
67091         * modules/mathl (Files): Add lib/frexp.c.
67092         (Depends-on): Add isnanl-nolibm.
67093
67094 2007-03-22  Bruno Haible  <bruno@clisp.org>
67095
67096         * modules/printf-frexp (Files): Add m4/frexp.m4.
67097         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67098         only if the found frexp function actually works.
67099
67100 2007-03-22  Bruno Haible  <bruno@clisp.org>
67101
67102         * lib/frexp.c: Remove older implementation that uses divisions.
67103
67104 2007-03-21  Bruno Haible  <bruno@clisp.org>
67105
67106         * modules/frexp-tests: New file.
67107         * tests/test-frexp.c: New file.
67108
67109         * modules/frexp: New file.
67110         * lib/frexp.c: New file.
67111         * m4/frexp.m4: New file.
67112         * lib/math_.h (frexp): New declaration.
67113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67114         REPLACE_FREXP.
67115         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67116
67117 2007-03-21  Bruno Haible  <bruno@clisp.org>
67118
67119         * modules/isnanl-tests: New file.
67120         * tests/test-isnanl.c: New file.
67121
67122         * modules/isnanl: New file.
67123         * lib/isnanl.h: New file.
67124         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67125         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67126         gl_FUNC_ISNANL_WORKS.
67127         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67128         New macros.
67129
67130 2007-03-21  Bruno Haible  <bruno@clisp.org>
67131
67132         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67133         lib/isnanl.h.
67134         (Include): Update.
67135         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67136         * lib/vasnprintf.c: Update.
67137         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67138         tests/test-isnanl.h, remove tests/test-isnanl.c.
67139         (Makefile.am): Update.
67140         * tests/test-isnanl-nolibm.c: New file.
67141         * tests/test-isnanl.h: New file.
67142         * tests/test-isnanl.c: Remove file.
67143
67144 2007-03-21  Jim Meyering  <jim@meyering.net>
67145
67146         When trying to open ".", treat ESTALE like EACCES.
67147         * lib/savewd.c (savewd_save): Resort to forking not just upon
67148         failure with EACCES, but also when errno is ESTALE.
67149
67150 2007-03-20  Bruno Haible  <bruno@clisp.org>
67151
67152         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67153         Needed on AIX 5.1. Reported by Matthew Woehlke.
67154
67155 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         Suggestions by Bruno Haible:
67158         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67159         our own.
67160         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67161         * modules/acl (Depends-on): Add gettext.
67162
67163 2007-03-19  Bruno Haible  <bruno@clisp.org>
67164
67165         * modules/iconvme: Remove file.
67166         * lib/iconvme.h: Remove file.
67167         * lib/iconvme.c: Remove file.
67168         * m4/iconvme.m4: Remove file.
67169
67170 2007-03-19  Bruno Haible  <bruno@clisp.org>
67171
67172         * doc/relocatable-maint.texi: Break long shell script line.
67173         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67174
67175 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67176
67177         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67178         handle file_has_acl.
67179         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67180         * lib/acl.c: Move header inclusions and related macro defns into
67181         lib/acl-internal.h.
67182         (S_ISLNK): Remove defn, since that's now done for us.
67183         (file_has_acl): Move to lib/file-has-acl.c.
67184         Call acl_trivial if available.  This is the crucial part of the fix.
67185         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67186         shared within the library.  Rewrite a bit, partly to make it compatible
67187         with the GNU coding style.
67188         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67189         Remove unnecessary double-quotes.
67190         Don't test for acl_to_text; the build will catch that.
67191         Replace acl_entries if it doesn't exist and it is needed.
67192         Check for -lsec and acl_trivial (as used on Solaris 10).
67193         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67194         lib/file-has-acl.c.
67195         (Depends-on): Add sys_stat, for S_ISLNK.
67196
67197 2007-03-19  Ben Pfaff  <blp@gnu.org>
67198
67199         * doc/gnulib.texi: Fix typos.
67200         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67201
67202 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67203
67204         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67205         If size is zero here, buf must be zero.
67206
67207 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67208
67209         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67210         <bruno@clisp.org>.
67211
67212 2007-03-18  Bruno Haible  <bruno@clisp.org>
67213
67214         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67215         Suggested by Eric Blake.
67216
67217 2007-03-18  Ben Pfaff  <blp@gnu.org>
67218
67219         * doc/relocatable.texi: Recommend using as prefix a directory
67220         that does not exist and will never be created.  Based on
67221         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67222         and others.
67223
67224 2007-03-17  Bruno Haible  <bruno@clisp.org>
67225
67226         * lib/fchownat.c: Include lchown.h.
67227
67228 2007-03-17  Bruno Haible  <bruno@clisp.org>
67229
67230         Fix endless loop when the given allocated size was > INT_MAX.
67231         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67232         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67233         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67234         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67235         * lib/sprintf.c (sprintf): Likewise.
67236
67237 2007-03-17  Bruno Haible  <bruno@clisp.org>
67238
67239         * tests/test-argp-2.sh (func_compare): Output a context diff.
67240
67241 2007-03-17  Bruno Haible  <bruno@clisp.org>
67242
67243         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67244         locale's decimal-point character.
67245
67246 2007-03-17  Bruno Haible  <bruno@clisp.org>
67247
67248         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67249         before comparing it. Needed because on some platforms (e.g. x86) a
67250         'long double' occupies less bytes than sizeof (long double).
67251
67252 2007-03-17  Bruno Haible  <bruno@clisp.org>
67253
67254         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67255         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67256         * tests/test-getaddrinfo.c (simple): Likewise.
67257         * tests/test-read-file.c (main): Likewise.
67258
67259 2007-03-17  Bruno Haible  <bruno@clisp.org>
67260
67261         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67262
67263 2007-03-17  Bruno Haible  <bruno@clisp.org>
67264
67265         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67266         unused variable.
67267
67268 2007-03-17  Bruno Haible  <bruno@clisp.org>
67269
67270         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67271         * tests/test-c-strncasecmp.c: Likewise.
67272
67273 2007-03-17  Bruno Haible  <bruno@clisp.org>
67274
67275         * modules/stdlib (Depends-on): Add unistd.
67276         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67277         Needed for MacOS X 10.3.
67278
67279 2007-03-17  Bruno Haible  <bruno@clisp.org>
67280
67281         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67282
67283 2007-03-17  Bruno Haible  <bruno@clisp.org>
67284
67285         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67286
67287 2007-03-17  Bruno Haible  <bruno@clisp.org>
67288
67289         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67290         to reflect files copied from gnulib (with or without modifications).
67291         Suggested by Jim Meyering.
67292
67293 2007-03-17  Eric Blake  <ebb9@byu.net>
67294
67295         * NEWS: Document stdlib change from 2007-02-18.
67296
67297 2007-03-17  Jim Meyering  <jim@meyering.net>
67298
67299         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67300         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67301         someone uses a name containing shell meta-characters.
67302         Reported by Alfred M. Szmidt.
67303
67304         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67305
67306 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67307
67308         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67309         and copy gettext configuration files only if configure.ac contains
67310         a use of AM_GNU_GETTEXT_VERSION.
67311
67312 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67313
67314         * build-aux/bootstrap (gnulib_name): New variable.
67315         (gnulib_tool_options): Use it.
67316
67317 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67318
67319         * tests/test-des.c: Use new namespace.
67320
67321 2007-03-15  Bruno Haible  <bruno@clisp.org>
67322
67323         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67324         Reported by James Youngman <jay@gnu.org>.
67325
67326 2007-03-15  Bruno Haible  <bruno@clisp.org>
67327
67328         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67329         declared prototype. Needed with cc on OSF/1 5.1.
67330
67331 2007-03-15  Bruno Haible  <bruno@clisp.org>
67332
67333         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67334         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67335         (struct gl_list_implementation): Add dispose_fn argument to the
67336         'create_empty', 'create' methods.
67337         (struct gl_list_impl_base): Add field 'dispose_fn'.
67338         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67339         argument.
67340         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67341         dispose_fn argument.
67342         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67343         dispose_fn on the dropped values.
67344         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67345         dispose_fn argument.
67346         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67347         dropped values.
67348         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67349         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67350         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67351         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67352         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67353         argument.
67354         (gl_tree_list_free): Call dispose_fn on the dropped values.
67355         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67356         the dropped values.
67357         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67358         Add dispose_fn argument.
67359         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67360         Call dispose_fn on the dropped values.
67361         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67362         Add dispose_fn argument.
67363         (gl_sublist_create): Initialize the 'dispose_fn' field.
67364         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67365         * tests/test-array_list.c (main): Update.
67366         * tests/test-carray_list.c (main): Update.
67367         * tests/test-avltree_list.c (main): Update.
67368         * tests/test-rbtree_list.c (main): Update.
67369         * tests/test-avltreehash_list.c (main): Update.
67370         * tests/test-rbtreehash_list.c (main): Update.
67371         * tests/test-linked_list.c (main): Update.
67372         * tests/test-linkedhash_list.c (main): Update.
67373         * tests/test-array_oset.c (main): Update.
67374
67375 2007-03-15  Bruno Haible  <bruno@clisp.org>
67376
67377         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67378         (gl_oset_create_empty): Add dispose_fn argument.
67379         (struct gl_oset_implementation): Add dispose_fn argument to
67380         'create_empty' method.
67381         (struct gl_oset_impl_base): Add dispose_fn field.
67382         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67383         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67384         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67385         values.
67386         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67387         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67388         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67389         dropped value.
67390         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67391         dropped value.
67392         * tests/test-array_oset.c (main): Update.
67393         * tests/test-avltree_oset.c (main): Update.
67394         * tests/test-rbtree_oset.c (main): Update.
67395         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67396
67397 2007-03-13  Bruno Haible  <bruno@clisp.org>
67398
67399         * tests/test-stdbool.c (i): Update after last patch.
67400
67401 2007-03-12  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67404         the iswprint macro. Needed on Solaris 2.5.1.
67405
67406 2007-03-12  Bruno Haible  <bruno@clisp.org>
67407
67408         * tests/test-printf-frexp.c (main): Declare x as volatile.
67409
67410 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67411
67412         * doc/gnulib.texi (Build robot for gnulib): New section.
67413
67414 2007-03-12  Jim Meyering  <jim@meyering.net>
67415
67416         * build-aux/bootstrap: New file.
67417         * build-aux/bootstrap.conf: New file, from coreutils.
67418
67419 2007-03-11  Bruno Haible  <bruno@clisp.org>
67420
67421         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67422
67423 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67424
67425         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67426         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67427         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67428
67429 2007-03-11  Bruno Haible  <bruno@clisp.org>
67430
67431         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67432         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67433
67434 2007-03-11  Bruno Haible  <bruno@clisp.org>
67435
67436         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67437         formula. Needed for SunPRO C 5.0.
67438
67439 2007-03-11  Bruno Haible  <bruno@clisp.org>
67440
67441         * modules/long-options (Depends-on): Add getopt.
67442
67443 2007-03-11  Bruno Haible  <bruno@clisp.org>
67444
67445         * modules/modechange (Depends-on): Add stdbool.
67446
67447 2007-03-11  Bruno Haible  <bruno@clisp.org>
67448
67449         * modules/i-ring (Depends-on): Add stdbool.
67450
67451 2007-03-11  Bruno Haible  <bruno@clisp.org>
67452
67453         * modules/gc-des (Depends-on): Add stdbool.
67454
67455 2007-03-11  Bruno Haible  <bruno@clisp.org>
67456
67457         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67458
67459 2007-03-11  Bruno Haible  <bruno@clisp.org>
67460
67461         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67462
67463 2007-03-11  Bruno Haible  <bruno@clisp.org>
67464
67465         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67466
67467 2007-03-11  Bruno Haible  <bruno@clisp.org>
67468
67469         * lib/vasnprintf.c (sprintf): Undefine.
67470
67471 2007-03-11  Bruno Haible  <bruno@clisp.org>
67472
67473         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67474         initializers in SunPRO C and Compaq C compilers.
67475
67476 2007-03-11  Bruno Haible  <bruno@clisp.org>
67477
67478         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67479         decrementing code ANSI C compliant.
67480
67481 2007-03-11  Bruno Haible  <bruno@clisp.org>
67482
67483         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67484         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67485
67486 2007-03-11  Bruno Haible  <bruno@clisp.org>
67487
67488         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67489         <stdbool.h> substitute doesn't pass.
67490
67491 2007-03-11  Bruno Haible  <bruno@clisp.org>
67492
67493         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67494
67495 2007-03-11  Bruno Haible  <bruno@clisp.org>
67496
67497         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67498         script, for submission to autobuild.josefsson.org.
67499
67500 2007-03-10  Bruno Haible  <bruno@clisp.org>
67501
67502         * modules/canonicalize-lgpl-tests: New file.
67503         * tests/test-canonicalize-lgpl.sh: New file.
67504         * tests/test-canonicalize-lgpl.c: New file.
67505
67506         * modules/c-strcase-tests: New file.
67507         * tests/test-c-strcase.sh: New file.
67508         * tests/test-c-strcasecmp.c: New file.
67509         * tests/test-c-strncasecmp.c: New file.
67510
67511         * modules/atexit-tests: New file.
67512         * tests/test-atexit.sh: New file.
67513         * tests/test-atexit.c: New file.
67514
67515 2007-03-10  Bruno Haible  <bruno@clisp.org>
67516
67517         * tests/test-binary-io.sh: Use temporary filenames that are not so
67518         likely to clash with those of other tests (in a parallel make).
67519         * tests/test-binary-io.c: Likewise.
67520
67521 2007-03-10  Bruno Haible  <bruno@clisp.org>
67522
67523         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67524         fallback; use #error instead.
67525         Suggested by Simon Josefsson.
67526
67527 2007-03-10  Bruno Haible  <bruno@clisp.org>
67528
67529         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67530         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67531         first and the last.
67532
67533 2007-03-10  Bruno Haible  <bruno@clisp.org>
67534
67535         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67536
67537 2007-03-10  Bruno Haible  <bruno@clisp.org>
67538
67539         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67540         "make distcheck".
67541         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67542         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67543         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67544
67545 2007-03-10  Bruno Haible  <bruno@clisp.org>
67546
67547         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67548         variable.
67549         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67550         variable.
67551
67552 2007-03-09  Eric Blake  <ebb9@byu.net>
67553         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67554
67555         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67556         types are not being provided by gnulib.
67557         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67558         types are supported.
67559
67560 2007-03-10  Bruno Haible  <bruno@clisp.org>
67561
67562         * lib/stdio_.h (__attribute__): New macro.
67563         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67564         vsprintf): Specify __attribute__ __format__ for GCC.
67565         Suggested by Eric Blake.
67566
67567 2007-03-09  Bruno Haible  <bruno@clisp.org>
67568
67569         * modules/printf-posix-tests: New file.
67570         * tests/test-printf-posix.sh: New file.
67571         * tests/test-printf-posix.c: New file.
67572
67573         * modules/printf-posix: New file.
67574         * lib/printf.c: New file.
67575         * m4/printf-posix-rpl.m4: New file.
67576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67577         REPLACE_PRINTF.
67578         * lib/stdio_.h (printf): New declaration.
67579         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67580         ____strfmon____): New macros.
67581         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67582         REPLACE_PRINTF.
67583
67584 2007-03-09  Bruno Haible  <bruno@clisp.org>
67585
67586         * tests/test-vasnprintf-posix2.sh: New file.
67587         * tests/test-vasnprintf-posix2.c: New file.
67588         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67589         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67590         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67591
67592         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67593         a locale dependent decimal point, rather than always '.'.
67594
67595 2007-03-09  Eric Blake  <ebb9@byu.net>
67596
67597         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67598         spite of platforms like Tandem/NSK that define it to -1.
67599
67600 2007-03-08  Bruno Haible  <bruno@clisp.org>
67601
67602         * modules/vprintf-posix-tests: New file.
67603         * tests/test-vprintf-posix.sh: New file.
67604         * tests/test-vprintf-posix.c: New file.
67605         * tests/test-printf-posix.h: New file.
67606
67607         * modules/vprintf-posix: New file.
67608         * lib/vprintf.c: New file.
67609         * m4/vprintf-posix.m4: New file.
67610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67611         REPLACE_VPRINTF.
67612         * lib/stdio_.h (vprintf): New declaration.
67613         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67614         REPLACE_VPRINTF.
67615
67616 2007-03-08  Bruno Haible  <bruno@clisp.org>
67617
67618         * modules/fprintf-posix-tests: New file.
67619         * tests/test-fprintf-posix.sh: New file.
67620         * tests/test-fprintf-posix.c: New file.
67621
67622         * modules/fprintf-posix: New file.
67623         * lib/fprintf.c: New file.
67624         * m4/fprintf-posix.m4: New file.
67625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67626         REPLACE_FPRINTF.
67627         * lib/stdio_.h (fprintf): New declaration.
67628         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67629         REPLACE_FPRINTF.
67630
67631 2007-03-08  Bruno Haible  <bruno@clisp.org>
67632
67633         * modules/vfprintf-posix-tests: New file.
67634         * tests/test-vfprintf-posix.sh: New file.
67635         * tests/test-vfprintf-posix.c: New file.
67636         * tests/test-fprintf-posix.h: New file.
67637         * tests/test-fprintf-posix.out: New file.
67638
67639         * modules/vfprintf-posix: New file.
67640         * lib/vfprintf.c: New file.
67641         * m4/vfprintf-posix.m4: New file.
67642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67643         REPLACE_VFPRINTF.
67644         * lib/stdio_.h (vfprintf): New declaration.
67645         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67646         REPLACE_VFPRINTF.
67647
67648 2007-03-08  Bruno Haible  <bruno@clisp.org>
67649
67650         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67651
67652 2007-03-08  Bruno Haible  <bruno@clisp.org>
67653
67654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67655         instead of 'expr' invocations.
67656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67659         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67660         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67661         Suggested by Paul Eggert.
67662
67663 2007-03-08  Bruno Haible  <bruno@clisp.org>
67664
67665         * modules/fseterr-tests: New file.
67666         * tests/test-fseterr.c: New file.
67667
67668         * modules/fseterr: New file.
67669         * lib/fseterr.h: New file.
67670         * lib/fseterr.c: New file.
67671
67672 2007-03-08  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67675         * lib/getopt_.h: Likewise.
67676         * lib/mbswidth.h: Likewise.
67677         * lib/setenv.h: Likewise.
67678         * lib/vasnprintf.h: Likewise.
67679         * lib/vasprintf.h: Likewise.
67680         * lib/verror.h: Likewise.
67681         * lib/xsetenv.h: Likewise.
67682         * lib/xvasprintf.h: Likewise.
67683
67684 2007-03-08  Jim Meyering  <jim@meyering.net>
67685
67686         * users.txt: Add parted.
67687
67688         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67689
67690 2007-03-07  Bruno Haible  <bruno@clisp.org>
67691
67692         * m4/printf.m4: Make the shell script snippets copy&pastable.
67693
67694 2007-03-02  Bruno Haible  <bruno@clisp.org>
67695
67696         * lib/netinet_in_.h: New file.
67697         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67698         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67699         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67700         (Depends-on): Add absolute-header.
67701         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67702         into netinet/in.h.
67703
67704 2007-03-03  Bruno Haible  <bruno@clisp.org>
67705
67706         * lib/sys_select_.h: New file.
67707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67708         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67709         * modules/sys_select (Files): Add lib/sys_select_.h.
67710         (Depends-on): Add absolute-header.
67711         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67712         into sys/select.h.
67713
67714 2007-03-02  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67717         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67718         values.
67719         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67720         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67721         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67722         * modules/sys_socket (Depends-on): Add absolute-header.
67723         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67724         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67725         (Include): Remove requirement of inclusion of <sys/types.h>.
67726
67727 2007-03-02  Bruno Haible  <bruno@clisp.org>
67728
67729         * lib/byteswap_.h (bswap_32): Fix formula.
67730
67731 2007-03-06  Bruno Haible  <bruno@clisp.org>
67732
67733         * modules/sprintf-posix-tests: New file.
67734         * tests/test-sprintf-posix.c: New file.
67735
67736         * modules/sprintf-posix: New file.
67737         * lib/sprintf.c: New file.
67738         * m4/sprintf-posix.m4: New file.
67739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67740         REPLACE_SPRINTF.
67741         * lib/stdio_.h (sprintf): New declaration.
67742         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67743         REPLACE_SPRINTF.
67744
67745 2007-03-06  Bruno Haible  <bruno@clisp.org>
67746
67747         * modules/vsprintf-posix-tests: New file.
67748         * tests/test-vsprintf-posix.c: New file.
67749         * tests/test-sprintf-posix.h: New file.
67750
67751         * modules/vsprintf-posix: New file.
67752         * lib/vsprintf.c: New file.
67753         * m4/vsprintf-posix.m4: New file.
67754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67755         REPLACE_VSPRINTF.
67756         * lib/stdio_.h (vsprintf): New declaration.
67757         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67758         REPLACE_VSPRINTF.
67759
67760 2007-03-06  Bruno Haible  <bruno@clisp.org>
67761
67762         * modules/vsnprintf (Depend-on): Remove minmax.
67763
67764 2007-03-06  Bruno Haible  <bruno@clisp.org>
67765
67766         * modules/snprintf-posix-tests: New file.
67767         * tests/test-snprintf-posix.c: New file.
67768
67769         * modules/snprintf-posix: New file.
67770         * m4/snprintf-posix.m4: New file.
67771         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67772         gl_FUNC_SNPRINTF.
67773         (gl_FUNC_SNPRINTF): Invoke it.
67774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67775         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67776         is set.
67777         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67778
67779 2007-03-06  Bruno Haible  <bruno@clisp.org>
67780
67781         * modules/vsnprintf-posix-tests: New file.
67782         * tests/test-vsnprintf-posix.c: New file.
67783         * tests/test-snprintf-posix.h: New file.
67784
67785         * modules/vsnprintf-posix: New file.
67786         * m4/vsnprintf-posix.m4: New file.
67787         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67788         gl_FUNC_VSNPRINTF.
67789         (gl_FUNC_VSNPRINTF): Invoke it.
67790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67791         * lib/stdio_.h (vsnprintf): Define as a replacement if
67792         REPLACE_VSNPRINTF is set.
67793         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67794
67795 2007-03-06  Bruno Haible  <bruno@clisp.org>
67796
67797         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67798         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67799
67800 2007-03-06  Bruno Haible  <bruno@clisp.org>
67801
67802         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67803         (asinl): Declare also if HAVE_DECL_ASINL is set.
67804         (atanl): Declare also if HAVE_DECL_ATANL is set.
67805         (ceill): Declare also if HAVE_DECL_CEILL is set.
67806         (cosl): Declare also if HAVE_DECL_COSL is set.
67807         (expl): Declare also if HAVE_DECL_EXPL is set.
67808         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67809         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67810         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67811         (logl): Declare also if HAVE_DECL_LOGL is set.
67812         (sinl): Declare also if HAVE_DECL_SINL is set.
67813         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67814         (tanl): Declare also if HAVE_DECL_TANL is set.
67815         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67817         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67818         declaration of frexpl, ldexpl.
67819         * modules/printf-frexpl (Depends-on): Add math.
67820         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67821
67822 2007-03-05  Bruno Haible  <bruno@clisp.org>
67823
67824         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67825         frexpl and ldexpl are declared.
67826         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67827
67828 2007-03-05  Bruno Haible  <bruno@clisp.org>
67829
67830         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67831         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67832
67833 2007-03-05  Bruno Haible  <bruno@clisp.org>
67834
67835         * lib/stdio_.h: Include <stddef.h>.
67836
67837 2007-03-05  Bruno Haible  <bruno@clisp.org>
67838
67839         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67840
67841 2007-03-05  Bruno Haible  <bruno@clisp.org>
67842
67843         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67844         NetBSD 4, from Ralf Wildenhues.
67845
67846 2007-03-04  Bruno Haible  <bruno@clisp.org>
67847
67848         * lib/vasprintf.h: Update #if logic for the case when the functions
67849         exist but are overridden.
67850
67851 2007-03-04  Bruno Haible  <bruno@clisp.org>
67852
67853         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67854         implementations: glibc-2.4 and MacOS X 10.3.
67855         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67856         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67857         * tests/test-vasprintf-posix.c (test_function): Likewise.
67858
67859 2007-03-04  Bruno Haible  <bruno@clisp.org>
67860
67861         * modules/vasprintf-posix-tests: New file.
67862         * tests/test-vasprintf-posix.c: New file.
67863
67864         * modules/vasprintf-posix: New file.
67865         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67866         defined.
67867         * m4/vasprintf-posix.m4: New file.
67868         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67869         gl_FUNC_VASPRINTF.
67870         (gl_FUNC_VASPRINTF): Invoke it.
67871         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67872         here.
67873         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67874
67875 2007-03-04  Bruno Haible  <bruno@clisp.org>
67876
67877         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67878         REPLACE_GETTIMEOFDAY.
67879         * modules/sys_time (Makefile.am): Likewise.
67880         * m4/sys_time_h.m4: Likewise.
67881         * m4/gettimeofday.m4: Likewise.
67882
67883 2007-03-04  Bruno Haible  <bruno@clisp.org>
67884
67885         * modules/vasnprintf-posix-tests: New file.
67886         * tests/test-vasnprintf-posix.c: New file.
67887
67888         * modules/vasnprintf-posix: New file.
67889         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67890         printf-frexpl.h.
67891         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67892         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67893         REPLACE_VASNPRINTF is defined.
67894         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67895         gl_FUNC_VASNPRINTF.
67896         (gl_FUNC_VASNPRINTF): Invoke it.
67897         * m4/vasnprintf-posix.m4: New file.
67898         * m4/printf.m4: New file.
67899
67900 2007-03-04  Bruno Haible  <bruno@clisp.org>
67901
67902         Compile progreloc.c only if --enable-relocatable is specified.
67903         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67904         if --enable-relocatable was specified.
67905         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67906         lib_SOURCES.
67907
67908 2007-03-04  Jim Meyering  <jim@meyering.net>
67909
67910         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67911         Use it consistently, rather than enumerating errno constants.
67912
67913 2007-03-04  Bruno Haible  <bruno@clisp.org>
67914
67915         * modules/xvasprintf-tests: New file.
67916         * tests/test-xvasprintf.c: New file.
67917
67918         * modules/vasprintf-tests: New file.
67919         * tests/test-vasprintf.c: New file.
67920
67921         * modules/vasnprintf-tests: New file.
67922         * tests/test-vasnprintf.c: New file.
67923
67924         * modules/vsnprintf-tests: New file.
67925         * tests/test-vsnprintf.c: New file.
67926
67927         * modules/snprintf-tests: New file.
67928         * tests/test-snprintf.c: New file.
67929
67930 2007-03-04  Bruno Haible  <bruno@clisp.org>
67931
67932         Compile relocatable.c only if --enable-relocatable is specified.
67933         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67934         gl_RELOCATABLE_LIBRARY.
67935         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67936         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67937         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67938         gl_RELOCATABLE_LIBRARY.
67939         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67940         (Makefile.am): Remove lib_SOURCES.
67941         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67942         gl_RELOCATABLE_LIBRARY.
67943         (Makefile.am): Remove lib_SOURCES.
67944         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67945         always.
67946         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67947         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67948
67949 2007-03-04  Bruno Haible  <bruno@clisp.org>
67950
67951         * modules/argmatch-tests: New file.
67952         * tests/test-argmatch.c: New file.
67953
67954         * tests/test-allocsa.c (main): Halve the number of loop runs.
67955
67956         * modules/alloca-opt-tests: New file.
67957         * tests/test-alloca-opt.c: New file.
67958
67959 2007-03-04  Jim Meyering  <jim@meyering.net>
67960
67961         Work around difference between Linux ACLs and Solaris 10 ZFS.
67962         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67963         for EINVAL.
67964
67965 2007-03-03  Bruno Haible  <bruno@clisp.org>
67966
67967         * modules/relocatable-prog (Depends-on): Add back progreloc's
67968         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67969
67970 2007-03-03  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67973         * modules/relocatable-lib: New file.
67974
67975 2007-03-03  Bruno Haible  <bruno@clisp.org>
67976
67977         * modules/relocatable-prog: Renamed from modules/relocatable.
67978         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67979
67980 2007-03-03  Bruno Haible  <bruno@clisp.org>
67981
67982         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67983         m4/relocatable-lib.m4.
67984         (Depends-on): Remove 'relocatable'.
67985         (configure.ac): Add gl_RELOCATABLE_NOP.
67986
67987 2007-03-03  Bruno Haible  <bruno@clisp.org>
67988
67989         * modules/relocatable-prog-wrapper: New file.
67990         * modules/relocatable (Depends-on): Add it. Remove all other
67991         dependencies except progname.
67992         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67993
67994         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67995         (gl_FUNC_STRERROR): Nop.
67996         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67997
67998         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67999         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68000
68001         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68002         (gl_FUNC_READLINK): Update.
68003
68004         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68005
68006 2007-03-03  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68009         * modules/xreadlink (Depends-on): Add unistd.
68010         * modules/xreadlink-with-size (Depends-on): Likewise.
68011
68012 2007-03-03  Bruno Haible  <bruno@clisp.org>
68013
68014         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68015         extracted from gt_FUNC_SETENV.
68016         (gt_FUNC_SETENV): Remove macro.
68017         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68018         remove gt_FUNC_SETENV.
68019
68020 2007-03-03  Bruno Haible  <bruno@clisp.org>
68021
68022         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68023         ENABLE_RELOCATABLE here.
68024         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68025
68026 2007-03-03  Bruno Haible  <bruno@clisp.org>
68027
68028         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68029         * tests/test-rbtreehash_list.c: Include progname.h.
68030         (main): Call set_program_name.
68031
68032         * modules/rbtree-oset-tests (Depends-on): Add progname.
68033         * tests/test-rbtree_oset.c: Include progname.h.
68034         (main): Call set_program_name.
68035
68036         * modules/rbtree-list-tests (Depends-on): Add progname.
68037         * tests/test-rbtree_list.c: Include progname.h.
68038         (main): Call set_program_name.
68039
68040         * modules/linked-list-tests (Depends-on): Add progname.
68041         * tests/test-linked_list.c: Include progname.h.
68042         (main): Call set_program_name.
68043
68044 2007-03-03  Bruno Haible  <bruno@clisp.org>
68045
68046         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68047         All uses of __restrict changed to _Restrict_.
68048         * lib/glob_.h (__restrict): Remove macro.
68049
68050 2007-03-02  Bruno Haible  <bruno@clisp.org>
68051
68052         * modules/gettext (configure.ac): Require gettext infrastructure
68053         from version 0.16.1.
68054
68055 2007-03-02  Bruno Haible  <bruno@clisp.org>
68056
68057         * modules/linkedhash-list-tests (Depends-on): Add progname.
68058         * tests/test-linkedhash_list.c: Include progname.h.
68059         (main): Call set_program_name.
68060
68061         * modules/carray-list-tests (Depends-on): Add progname.
68062         * tests/test-carray_list.c: Include progname.h.
68063         (main): Call set_program_name.
68064
68065         * modules/avltreehash-list-tests (Depends-on): Add progname.
68066         * tests/test-avltreehash_list.c: Include progname.h.
68067         (main): Call set_program_name.
68068
68069         * modules/avltree-oset-tests (Depends-on): Add progname.
68070         * tests/test-avltree_oset.c: Include progname.h.
68071         (main): Call set_program_name.
68072
68073         * modules/avltree-list-tests (Depends-on): Add progname.
68074         * tests/test-avltree_list.c: Include progname.h.
68075         (main): Call set_program_name.
68076
68077         * modules/array-oset-tests (Depends-on): Add progname.
68078         * tests/test-array_oset.c: Include progname.h.
68079         (main): Call set_program_name.
68080
68081         * modules/array-list-tests (Depends-on): Add progname.
68082         * tests/test-array_list.c: Include progname.h.
68083         (main): Call set_program_name.
68084
68085         * modules/argp-tests (Depends-on): Add progname.
68086         * tests/test-argp.c: Include argp.h first. Include progname.h.
68087         (main): Call set_program_name.
68088
68089 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68090
68091         * doc/gnulib-tool.texi (Initial import): Reword description of
68092         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68093         limited effect even if defined after the first system include.
68094
68095 2007-03-01  Bruno Haible  <bruno@clisp.org>
68096
68097         * build-aux/config.libpath: Update to libtool-1.5.22.
68098         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68099
68100 2007-03-01  Bruno Haible  <bruno@clisp.org>
68101
68102         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68103         foo_CFLAGS.
68104         Reported by Ralf Wildenhues.
68105
68106 2007-03-01  Bruno Haible  <bruno@clisp.org>
68107
68108         * build-aux/install-reloc: Remove object files left over by some
68109         compilers.
68110         Reported by Ralf Wildenhues.
68111
68112 2007-03-01  Bruno Haible  <bruno@clisp.org>
68113
68114         * build-aux/install-reloc: Break long lines.
68115
68116 2007-03-01  Bruno Haible  <bruno@clisp.org>
68117
68118         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68119         Reported by Ralf Wildenhues.
68120
68121 2007-03-01  Bruno Haible  <bruno@clisp.org>
68122
68123         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68124         include ordering constraints.
68125
68126 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68127
68128         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68130         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68131         as another example.
68132         * lib/time_.h: Fix misspelling.
68133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68134         Require gl_HEADER_TIME_H_DEFAULTS.
68135         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68136         * m4/time_r.m4 (gl_TIME_R): Likewise.
68137         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68138
68139 2007-03-01  Bruno Haible  <bruno@clisp.org>
68140
68141         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68142         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68143
68144 2007-03-01  Jim Meyering  <jim@meyering.net>
68145
68146         * modules/xreadlink (Maintainer): Add my name.
68147         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68148
68149 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68150             Bruno Haible  <bruno@clisp.org>
68151
68152         * build-aux/install-reloc: Compile also c-ctype.c.
68153         * build-aux/relocatable.sh.in: New file.
68154         * doc/relocatable.texi: New file.
68155         * doc/relocatable-maint.texi: New file.
68156         * doc/gnulib.texi: Include relocatable-maint.texi.
68157         * lib/progreloc.c: Include unistd.h unconditionally.
68158         * lib/relocwrapper.c: Include unistd.h unconditionally.
68159         Include c-ctype.h.
68160         (add_dotbin): Use c_tolower.
68161         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68162         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68163         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68164         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68165         to m4/relocatable-lib.m4.
68166         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68167         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68168         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68169         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68170         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68171         * modules/relocatable: New file.
68172         * modules/relocatable-lib: New file.
68173         * modules/relocatable-script: New file.
68174
68175 2007-02-28  Bruno Haible  <bruno@clisp.org>
68176
68177         Import --enable-relocatable infrastructure.
68178         * build-aux/config.libpath: New file, from GNU gettext.
68179         * build-aux/install-reloc: New file, from GNU gettext.
68180         * build-aux/reloc-ldflags: New file, from GNU gettext.
68181         * lib/relocatable.h: New file, from GNU gettext.
68182         * lib/relocatable.c: New file, from GNU gettext.
68183         * lib/relocwrapper.c: New file, from GNU gettext.
68184         * m4/relocatable.m4: New file, from GNU gettext.
68185
68186 2007-02-28  Bruno Haible  <bruno@clisp.org>
68187
68188         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68189
68190         * modules/xreadlink: New file, from GNU gettext with modifications.
68191         * lib/xreadlink.c: New file, from GNU gettext.
68192         * lib/xreadlink.h: Add comments.
68193         (xreadlink): New declaration.
68194
68195         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68196         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68197         lib/xreadlink-with-size.c.
68198         (configure.ac): Remove gl_XREADLINK invocation.
68199         (Makefile.am): Augment lib_SOURCES.
68200         * m4/xreadlink.m4: Remove file.
68201         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68202         (xreadlink_with_size): Renamed from xreadink.
68203         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68204         * modules/canonicalize (Depends-on): Replace xreadlink with
68205         xreadlink-with-size.
68206         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68207
68208 2007-02-25  Jim Meyering  <jim@meyering.net>
68209
68210         * build-aux/announce-gen: When complaining about excess arguments,
68211         list them.
68212
68213 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * README: Document signed integer overflow situation more
68216         accurately.
68217
68218 2007-02-25  Bruno Haible  <bruno@clisp.org>
68219
68220         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68221         'a' or 'A' conversion.
68222
68223 2007-02-25  Bruno Haible  <bruno@clisp.org>
68224
68225         * modules/filename: Renamed from modules/pathname.
68226         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68227         lib/concatpath.c with lib/concat-filename.c.
68228         (Makefile.am): Update.
68229         (Include): Replace pathname.h with filename.h.
68230         * lib/filename.h: Renamed from lib/pathname.h.
68231         (concatenated_filename): Renamed from concatenated_pathname.
68232         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68233         (concatenated_filename): Renamed from concatenated_pathname.
68234         * lib/findprog.c: Include filename.h instead of pathname.h.
68235         (find_in_path): Update.
68236         * lib/javacomp.c: Include filename.h instead of pathname.h.
68237         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68238         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68239         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68240         is_oldgcj_14_13_usable, is_javac_usable): Update.
68241         * lib/javaexec.c: Include filename.h instead of pathname.h.
68242         (execute_java_class): Update.
68243         * modules/findprog: Update.
68244         * modules/javacomp: Update.
68245         * modules/javaexec: Update.
68246         * MODULES.html.sh (File system functions): Add 'filename', remove
68247         'pathname'.
68248
68249 2007-02-25  Bruno Haible  <bruno@clisp.org>
68250
68251         * modules/printf-frexpl-tests: New file.
68252         * tests/test-printf-frexpl.c: New file.
68253
68254         * modules/printf-frexpl: New file.
68255         * lib/printf-frexpl.h: New file.
68256         * lib/printf-frexpl.c: New file.
68257         * m4/printf-frexpl.m4: New file.
68258
68259 2007-02-25  Bruno Haible  <bruno@clisp.org>
68260
68261         * modules/printf-frexp-tests: New file.
68262         * tests/test-printf-frexp.c: New file.
68263
68264         * modules/printf-frexp: New file.
68265         * lib/printf-frexp.h: New file.
68266         * lib/printf-frexp.c: New file.
68267         * m4/printf-frexp.m4: New file.
68268
68269 2007-02-25  Bruno Haible  <bruno@clisp.org>
68270
68271         Assume automake >= 1.10 for the tests.
68272         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68273         * modules/arctwo-tests: Likewise.
68274         * modules/argp-tests: Likewise.
68275         * modules/avltree-list-tests: Likewise.
68276         * modules/avltree-oset-tests: Likewise.
68277         * modules/avltreehash-list-tests: Likewise.
68278         * modules/carray-list-tests: Likewise.
68279         * modules/crc-tests: Likewise.
68280         * modules/des-tests: Likewise.
68281         * modules/gc-arcfour-tests: Likewise.
68282         * modules/gc-arctwo-tests: Likewise.
68283         * modules/gc-des-tests: Likewise.
68284         * modules/gc-hmac-md5-tests: Likewise.
68285         * modules/gc-hmac-sha1-tests: Likewise.
68286         * modules/gc-md2-tests: Likewise.
68287         * modules/gc-md4-tests: Likewise.
68288         * modules/gc-md5-tests: Likewise.
68289         * modules/gc-pbkdf2-sha1-tests: Likewise.
68290         * modules/gc-rijndael-tests: Likewise.
68291         * modules/gc-sha1-tests: Likewise.
68292         * modules/gc-tests: Likewise.
68293         * modules/getaddrinfo-tests: Likewise.
68294         * modules/hmac-md5-tests: Likewise.
68295         * modules/hmac-sha1-tests: Likewise.
68296         * modules/linked-list-tests: Likewise.
68297         * modules/linkedhash-list-tests: Likewise.
68298         * modules/lock-tests: Likewise.
68299         * modules/md2-tests: Likewise.
68300         * modules/md4-tests: Likewise.
68301         * modules/md5-tests: Likewise.
68302         * modules/rbtree-list-tests: Likewise.
68303         * modules/rbtree-oset-tests: Likewise.
68304         * modules/rbtreehash-list-tests: Likewise.
68305         * modules/read-file-tests: Likewise.
68306         * modules/rijndael-tests: Likewise.
68307         * modules/stdint-tests: Likewise.
68308         * modules/tls-tests: Likewise.
68309
68310 2007-02-24  Bruno Haible  <bruno@clisp.org>
68311
68312         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68313         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68314         function; instead check whether isnan with a double argument links.
68315         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68316         function; instead check whether isnan with a 'long double' argument
68317         links.
68318         Reported by Eric Blake <ebb9@byu.net>.
68319
68320 2007-02-24  Bruno Haible  <bruno@clisp.org>
68321
68322         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68323         defined.
68324         * lib/isnanl.c: Remove all code. Just include isnan.c.
68325         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68326
68327 2007-02-25  Jim Meyering  <jim@meyering.net>
68328
68329         Avoid conflicting types for 'unsetenv' on FreeBSD.
68330         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68331         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68332         in stdlib.h.
68333
68334 2007-02-24  Bruno Haible  <bruno@clisp.org>
68335
68336         * modules/isnanl-nolibm-tests: New file.
68337         * tests/test-isnanl.c: New file.
68338
68339         * modules/isnanl-nolibm: New file.
68340         * lib/isnanl.h: New file.
68341         * lib/isnanl.c: New file.
68342         * m4/isnanl.m4: New file.
68343
68344 2007-02-24  Bruno Haible  <bruno@clisp.org>
68345
68346         * modules/isnan-nolibm-tests: New file.
68347         * tests/test-isnan.c: New file.
68348
68349         * modules/isnan-nolibm: New file.
68350         * lib/isnan.h: New file.
68351         * lib/isnan.c: New file.
68352         * m4/isnan.m4: New file.
68353
68354 2007-02-24  Bruno Haible  <bruno@clisp.org>
68355
68356         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68357         assume that an exponent fits in 20 bits.
68358
68359 2007-02-24  Jim Meyering  <jim@meyering.net>
68360
68361         * m4/regex.m4: Update the description of the configure-time option,
68362         --without-included-regex, to state accurately what the defaults are,
68363         and perhaps to give people an idea why using this option is risky.
68364
68365 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68368         loops on small arguments.  This attempts to avoid the problem
68369         Bruno Haible reported for AIX 4.3.2 in
68370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68371
68372 2007-02-23  Bruno Haible  <bruno@clisp.org>
68373
68374         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68375         Needed for help2man.
68376
68377 2007-02-23  Karl Berry  <karl@gnu.org>
68378
68379         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68380         exists, foo.h should be cvs-ignored, not committed.
68381
68382 2007-02-23  Eric Blake  <ebb9@byu.net>
68383
68384         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68385         * lib/stat-time.h (includes): Likewise.
68386         * lib/utimecmp.c (includes): Likewise.
68387         * lib/utimens.h (includes): Likewise.
68388         * lib/getdate.y (includes): Also include "timespec.h" for use
68389         internal to the module.
68390         * modules/utimens (Depends-on): Revert yesterday's patch.
68391         * modules/nanosleep (Depends-on): Add missing dependency.
68392
68393 2007-02-22  Bruno Haible  <bruno@clisp.org>
68394
68395         * lib/glob.c: Don't include getlogin_r.h.
68396
68397 2007-02-22  Jim Meyering  <jim@meyering.net>
68398
68399         * modules/utimens (Depends-on): Add timespec, required for
68400         utimens.h's inclusion of timespec.h.
68401
68402 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68403
68404         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68405         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68406         Schwab in
68407         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68408         I'll try to think of a better way to fix the Solaris problem.
68409
68410         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68411         like glibc; on Solaris 10, it fails with errno == EINVAL.
68412         POSIX says the behavior is unspecified if the first argument is NULL,
68413         so play it safe and never pass NULL to the system getcwd.
68414
68415 2007-02-21  Jim Meyering  <jim@meyering.net>
68416
68417         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68418         of gettimeofday.  It would conflict with the one now always
68419         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68420         an IRIX 6.5 build failure.
68421
68422 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68423
68424         Minor fixups to port to Solaris 10 with Sun C 5.8.
68425         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68426         * modules/getcwd (Depends-on): Add dirfd.
68427         * lib/putenv.c (putenv): #undef it.
68428         (rpl_putenv): New decl.
68429         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68430
68431 2007-02-20  Bruno Haible  <bruno@clisp.org>
68432
68433         * modules/stdio-tests: New file.
68434         * tests/test-stdio.c: New file.
68435
68436         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68437         (Depends-on): Add stdio.
68438         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68439         (Include): Use <stdio.h> instead of vsnprintf.h.
68440         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68441         HAVE_DECL_VSNPRINTF.
68442         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68443
68444         * modules/snprintf (Files): Remove lib/snprintf.h.
68445         (Depends-on): Add stdio.
68446         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68447         (Include): Use <stdio.h> instead of snprintf.h.
68448         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68449         HAVE_DECL_SNPRINTF.
68450         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68451         * lib/getaddrinfo.c: Likewise.
68452
68453         * modules/stdio: New file.
68454         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68455         * lib/snprintf.h: Remove file.
68456         * lib/vsnprintf.h: Remove file.
68457         * lib/.cppi-disable: Remove snprintf.h.
68458         * m4/stdio_h.m4: New file.
68459         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68460
68461 2007-02-20  Jim Meyering  <jim@meyering.net>
68462
68463         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68464         used by e.g., mingw.  From Bruno Haible.
68465
68466 2007-02-19  Bruno Haible  <bruno@clisp.org>
68467
68468         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68469         warnings.
68470         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68471
68472 2007-02-19  Bruno Haible  <bruno@clisp.org>
68473
68474         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68475         from mingw users.
68476
68477 2007-02-19  Bruno Haible  <bruno@clisp.org>
68478
68479         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68480         warnings.
68481         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68482
68483 2007-02-19  Jim Meyering  <jim@meyering.net>
68484
68485         Don't use FD after a successful "fdopendir (fd)".
68486         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68487         Reset it by calling dirfd on the just-obtained DIR*.
68488
68489         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68490         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68491
68492 2007-02-18  Bruno Haible  <bruno@clisp.org>
68493
68494         * lib/readlink.c: Include <unistd.h>.
68495         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68496         HAVE_READLINK.
68497         * modules/readlink (Depends-on): Add unistd.
68498         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68499         (Include): Add <unistd.h>.
68500
68501         * lib/getlogin_r.h: Remove file.
68502         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68503         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68504         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68505         HAVE_DECL_GETLOGIN_R.
68506         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68508         (Include): Use <unistd.h> instead of getlogin_r.h.
68509
68510         * lib/getcwd.h: Remove file.
68511         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68512         * lib/xgetcwd.c: Likewise.
68513         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68514         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68515         * modules/getcwd (Files): Remove lib/getcwd.h.
68516         (Depends-on): Add unistd.
68517         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68518         (Include): Use <unistd.h> instad of getcwd.h.
68519
68520         * lib/ftruncate.c: Include <unistd.h> first.
68521         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68522         Set HAVE_FTRUNCATE.
68523         * modules/ftruncate (Depends-on): Add unistd.
68524         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68525
68526         * lib/fchdir.c: Include <unistd.h> first.
68527         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68528         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68529         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68530         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68531         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68532
68533         * lib/dup2.c: Include <unistd.h> first.
68534         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68535         HAVE_DUP2.
68536         * modules/dup2 (Depends-on): Add unistd.
68537         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68538
68539         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68540         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68541         REPLACE_CHOWN. Don't define chown as a macro here.
68542         * modules/chown (Depends-on): Add unistd.
68543         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68544
68545         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68546         Add definition for GL_LINK_WARNING.
68547         (chown, dup2): New declarations.
68548         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68549         link warning.
68550         (ftruncate): New declaration.
68551         (getcwd): New declaration, taken from old getcwd.h.
68552         (getlogin_r): New declaration, taken from old getlogin_r.h.
68553         (readlink): New declaration.
68554         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68555         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68556         (gl_PREREQ_UNISTD): Remove macro.
68557         (gl_UNISTD_MODULE_INDICATOR): New macro.
68558         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68559         many new variables. Don't set UNISTD_H.
68560         * modules/unistd (Description): Change.
68561         (Depends-on): Add link-warning.
68562         (configure.ac): Update.
68563         (Makefile.am): Create unistd.h always. Substitute many new variables
68564         into it.
68565
68566 2007-02-18  Bruno Haible  <bruno@clisp.org>
68567
68568         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68569         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68570         HAVE_GETSUBOPT.
68571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68572         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68573         * lib/getsubopt.h: Remove file.
68574         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68575         (Depends-on): Add stdlib.
68576         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68577         (Includes): Use <stdlib.h> instead of getsubopt.h.
68578         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68579         Set HAVE_GETSUBOPT.
68580         * lib/getsubopt.c: Don't include getsubopt.h.
68581
68582 2007-02-18  Bruno Haible  <bruno@clisp.org>
68583
68584         * modules/fchdir (Depends-on): Add dup2.
68585
68586 2007-02-18  Bruno Haible  <bruno@clisp.org>
68587
68588         * lib/stdlib_.h: Handle glibc's special invocation convention
68589         specially.
68590
68591 2007-02-18  Bruno Haible  <bruno@clisp.org>
68592
68593         * modules/stdlib-tests: New file.
68594         * tests/test-stdlib.c: New file.
68595
68596         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68597         (Depends-on): Add stdlib.
68598         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68599         (Includes): Use <stdlib.h> instead of mkstemp.h.
68600         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68601         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68602         * lib/mkstemp.c: Don't include mkstemp.h.
68603         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68604         * lib/stdlib--.h: Don't include mkstemp.h.
68605
68606         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68607         (Depends-on): Add stdlib.
68608         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68609         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68610         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68611         HAVE_MKDTEMP.
68612         * lib/mkdtemp.c: Don't include mkdtemp.h.
68613         * lib/clean-temp.c: Don't include mkdtemp.h.
68614
68615         * modules/exit (Files): Remove lib/exit.h.
68616         (Depends-on): Add stdlib.
68617         (Makefile.am): Remove lib_SOURCES.
68618         (Include): Use <stdlib.h> instead of exit.h.
68619         * lib/argmatch.c: Don't include exit.h.
68620         * lib/execute.c: Likewise.
68621         * lib/pagealign_alloc.c: Likewise.
68622         * lib/pipe.c: Likewise.
68623         * lib/wait-process.c: Likewise.
68624         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68625         * lib/exitfail.c: Likewise.
68626         * lib/savewd.c: Likewise.
68627         * lib/xsetenv.c: Likewise.
68628
68629         * modules/stdlib: New file.
68630         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68631         and extra comments about mkstemp().
68632         * lib/exit.h: Remove file.
68633         * lib/mkdtemp.h: Remove file.
68634         * lib/mkstemp.h: Remove file.
68635         * m4/stdlib_h.m4: New file.
68636         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68637
68638 2007-02-18  Bruno Haible  <bruno@clisp.org>
68639
68640         * modules/math-tests: New file.
68641         * tests/test-math.c: New file.
68642
68643         * modules/math: New file.
68644         * modules/mathl (Files): Remove lib/mathl.h.
68645         (Depends-on): Add math.
68646         (Makefile.am): Don't mention mathl.h.
68647         (Include): Use <math.h> instead of mathl.h.
68648         * lib/math_.h: New file.
68649         * lib/mathl.h: Remove file.
68650         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68651         mathl.h.
68652         * lib/asinl.c: Likewise.
68653         * lib/atanl.c: Likewise.
68654         * lib/ceill.c: Likewise.
68655         * lib/cosl.c: Likewise.
68656         * lib/expl.c: Likewise.
68657         * lib/floorl.c: Likewise.
68658         * lib/frexpl.c: Likewise.
68659         * lib/ldexpl.c: Likewise.
68660         * lib/logl.c: Likewise.
68661         * lib/sincosl.c: Likewise.
68662         * lib/sinl.c: Likewise.
68663         * lib/sqrtl.c: Likewise.
68664         * lib/tanl.c: Likewise.
68665         * lib/trigl.c: Likewise.
68666         * m4/math_h.m4: New file.
68667         * MODULES.html.sh (Mathematics): Add math.
68668
68669 2007-02-17  Bruno Haible  <bruno@clisp.org>
68670
68671         * modules/wctype-tests: New file.
68672         * tests/test-wctype.c: New file.
68673
68674         * modules/wchar-tests: New file.
68675         * tests/test-wchar.c: New file.
68676
68677         * modules/unistd-tests: New file.
68678         * tests/test-unistd.c: New file.
68679
68680         * modules/time-tests: New file.
68681         * tests/test-time.c: New file.
68682
68683         * modules/sysexits-tests: New file.
68684         * tests/test-sysexits.c: New file.
68685
68686         * modules/sys_time-tests: New file.
68687         * tests/test-sys_time.c: New file.
68688
68689         * modules/sys_stat-tests: New file.
68690         * tests/test-sys_stat.c: New file.
68691
68692         * modules/sys_socket-tests: New file.
68693         * tests/test-sys_socket.c: New file.
68694
68695         * modules/sys_select-tests: New file.
68696         * tests/test-sys_select.c: New file.
68697
68698         * modules/string-tests: New file.
68699         * tests/test-string.c: New file.
68700
68701         * modules/stdbool-tests: New file.
68702         * tests/test-stdbool.c: New file.
68703
68704         * modules/netinet_in-tests: New file.
68705         * tests/test-netinet_in.c: New file.
68706
68707         * modules/inttypes-tests: New file.
68708         * tests/test-inttypes.c: New file.
68709
68710         * modules/fcntl-tests: New file.
68711         * tests/test-fcntl.c: New file.
68712
68713         * modules/byteswap-tests: New file.
68714         * tests/test-byteswap.c: New file.
68715
68716         * modules/arpa_inet-tests: New file.
68717         * tests/test-arpa_inet.c: New file.
68718
68719 2007-02-17  Bruno Haible  <bruno@clisp.org>
68720
68721         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68722         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68723         if the corresponding module is not enabled. Emit link warnings if
68724         the function is used nevertheless.
68725         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68726         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68727         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68728         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68729         * modules/inttypes (Depends-on): Add link-warning.
68730         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68731         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68732         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68733         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68734         * modules/imaxdiv (configure.ac): Likewise.
68735         * modules/strtoimax (configure.ac): Likewise.
68736         * modules/strtoumax (configure.ac): Likewise.
68737
68738 2007-02-17  Bruno Haible  <bruno@clisp.org>
68739
68740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68741         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68742         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68743         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68744
68745 2007-02-17  Bruno Haible  <bruno@clisp.org>
68746
68747         * modules/link-warning: New file.
68748         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68749         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68750         * modules/string (Depends-on): Add link-warning.
68751         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68752         string.h.
68753         * MODULES.html.sh (Support for building libraries and executables): Add
68754         link-warning.
68755
68756 2007-02-17  Bruno Haible  <bruno@clisp.org>
68757
68758         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68759         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68760         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68761         long lines.
68762
68763 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68764             Bruno Haible  <bruno@clisp.org>
68765
68766         * modules/tmpfile: New file.
68767         * lib/tmpfile.c: New file.
68768         * m4/tmpfile.m4: New file.
68769         * MODULES.html.sh (func_all_modules): New section "Input/output".
68770
68771 2007-02-15  Bruno Haible  <bruno@clisp.org>
68772
68773         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68774         (supports_delete_on_close): New function.
68775         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68776
68777 2007-02-14  Bruno Haible  <bruno@clisp.org>
68778
68779         * modules/mbspcasecmp-tests: New file.
68780         * tests/test-mbspcasecmp.sh: New file.
68781         * tests/test-mbspcasecmp.c: New file.
68782
68783         New module mbspcasecmp.
68784         * modules/mbspcasecmp: New file.
68785         * lib/mbspcasecmp.c: New file.
68786         * lib/string_.h (strncasecmp): Change warning message.
68787         (mbspcasecmp): New declaration.
68788         * m4/mbspcasecmp.m4: New file.
68789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68790         GNULIB_MBSPCASECMP.
68791         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68792         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68793
68794 2007-02-14  Bruno Haible  <bruno@clisp.org>
68795
68796         * modules/mbsncasecmp-tests: New file.
68797         * tests/test-mbsncasecmp.sh: New file.
68798         * tests/test-mbsncasecmp.c: New file.
68799
68800         New module mbsncasecmp.
68801         * modules/mbsncasecmp: New file.
68802         * lib/mbsncasecmp.c: New file.
68803         * lib/string_.h (mbsncasecmp): New declaration.
68804         * m4/mbsncasecmp.m4: New file.
68805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68806         GNULIB_MBSNCASECMP.
68807         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68808         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68809
68810 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68811
68812         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68813         Verify that it doesn't overlap with our flags.
68814         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68815         do not have the desired effect in multibyte locales; instead, use
68816         mbscasecmp.
68817         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68818         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68819         we don't require GNU fnmatch ourselves (if our users require it, they
68820         should do so explicitly).
68821
68822         Fix regex code so it doesn't rely on strcasecmp.
68823         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68824         Otherwise, include gnulib's langinfo.h.
68825         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68826         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68827         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68828         * modules/regex (FILES): Remove m4/codeset.m4.
68829         (Depends-on): Add localcharset.  Remove strcase.
68830
68831 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68832
68833         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68834         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68835
68836 2007-02-13  Bruno Haible  <bruno@clisp.org>
68837
68838         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68839         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68840
68841 2007-02-12  Bruno Haible  <bruno@clisp.org>
68842
68843         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68844         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68845         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68846         time warning rather than a link error.
68847
68848 2007-02-12  Bruno Haible  <bruno@clisp.org>
68849
68850         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68851         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68853
68854 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68855
68856         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68857         args, not 2.
68858
68859 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68860
68861         New module 'time', so that apps can include <time.h> as per
68862         POSIX and GNU instead of separate include files like time_r.h
68863         and timegm.h.  This implementation tries out a simpler approach
68864         for replacing decls in standard include files (as compared to
68865         the string module), somewhat as an experiment.
68866
68867         * config/srclist.txt: Comment out mktime.c for now.
68868         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68869         since it doesn't apply any more.  Use generic wording instead.
68870         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68871         'time'.
68872         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68873         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68874         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68875         Don't include <sys/types.h>; no longer needed since we assume C89.
68876         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68877         * lib/strftime.c: Likewise.
68878         * lib/time_r.c: Likewise.
68879         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68880         * lib/nanosleep.c: Include <time.h> first, to check interface.
68881         * lib/strptime.c: Likewise.
68882         * lib/time_r.c: Likewise.
68883         * lib/timegm.c: Likewise.
68884         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68885         needed.
68886         * lib/timegm.c: Don't include timegm.h; no longer needed.
68887         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68888         time.h now handles any problems in that area.
68889         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68890         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68891         that time.h defines struct timespec.
68892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68893         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68894         handles that.
68895         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68896         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68897         needed.  Set REPLACE_LOCALTIME.
68898         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68899         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68900         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68901         nanosleep; time_h.m4 now does that.  Don't require
68902         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68903         module handles this now.
68904         * modules/getdate (Depends-on): Remove timespec.  Add time.
68905         * modules/nanosleep (Depends-on): Likewise.
68906         * modules/stat-time (Depends-on): Likewise.
68907         * modules/nanosleep (Include): Include time.h, not timespec.h.
68908         * modules/strptime (Files): Remove lib/strptime.h.
68909         (Depends-on): Add extensions, time.
68910         (Include): Include time.h, not strptime.h.
68911         * modules/time_r (Files): Remove lib/time_r.h.
68912         (Depends-on): Add time.
68913         (Include): Include time.h, not time_r.h.
68914         * modules/timegm: Likewise.
68915         * modules/timespec (Description): Now does timespec-related decls
68916         of our own, instead of struct timespec itself.
68917         (Depends-on): Add time; remove extensions.
68918         (Maintainer): Add self.
68919         * modules/utimecmp (Depends-on): Add time; remove timespec.
68920         * modules/utimens (Depends-on): Likewise.
68921         * modules/xnanosleep (Depends-on): Likewise.
68922
68923 2007-02-11  Bruno Haible  <bruno@clisp.org>
68924
68925         * lib/c-strstr.c: Include allocsa.h.
68926         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68927         * lib/c-strcasestr.c: Include allocsa.h.
68928         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68929         * lib/strcasestr.c: Include allocsa.h.
68930         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68931         * lib/mbsstr.c: Include allocsa.h.
68932         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68933         allocsa/freesa instead of malloc/free.
68934         * lib/mbscasestr.c: Include allocsa.h.
68935         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68936         allocsa/freesa instead of malloc/free.
68937         * modules/c-strstr (Depends-on): Add allocsa.
68938         * modules/c-strcasestr (Depends-on): Likewise.
68939         * modules/strcasestr (Depends-on): Likewise.
68940         * modules/mbsstr (Depends-on): Likewise.
68941         * modules/mbscasestr (Depends-on): Likewise.
68942
68943 2007-02-11  Bruno Haible  <bruno@clisp.org>
68944
68945         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68946
68947         * modules/mbsspn-tests: New file.
68948         * tests/test-mbsspn.sh: New file.
68949         * tests/test-mbsspn.c: New file.
68950
68951 2007-02-11  Bruno Haible  <bruno@clisp.org>
68952
68953         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68954
68955         * modules/mbspbrk-tests: New file.
68956         * tests/test-mbspbrk.sh: New file.
68957         * tests/test-mbspbrk.c: New file.
68958
68959 2007-02-11  Bruno Haible  <bruno@clisp.org>
68960
68961         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68962         unneeded cast.
68963
68964         * modules/mbscspn-tests: New file.
68965         * tests/test-mbscspn.sh: New file.
68966         * tests/test-mbscspn.c: New file.
68967
68968 2007-02-11  Bruno Haible  <bruno@clisp.org>
68969
68970         * modules/mbscasecmp-tests: New file.
68971         * tests/test-mbscasecmp.sh: New file.
68972         * tests/test-mbscasecmp.c: New file.
68973
68974 2007-02-11  Bruno Haible  <bruno@clisp.org>
68975
68976         Ensure O(n) worst-case complexity of mbscasestr.
68977         * lib/mbscasestr.c: Include stdbool.h.
68978         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68979         functions.
68980         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68981         the bookkeeping indicates that it's worth it.
68982         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68983
68984         * modules/mbscasestr-tests: New file.
68985         * tests/test-mbscasestr1.c: New file.
68986         * tests/test-mbscasestr2.sh: New file.
68987         * tests/test-mbscasestr2.c: New file.
68988         * tests/test-mbscasestr3.sh: New file.
68989         * tests/test-mbscasestr3.c: New file.
68990         * tests/test-mbscasestr4.sh: New file.
68991         * tests/test-mbscasestr4.c: New file.
68992         * m4/locale-tr.m4: New file.
68993
68994 2007-02-11  Bruno Haible  <bruno@clisp.org>
68995
68996         Ensure O(n) worst-case complexity of mbsstr.
68997         * lib/mbsstr.c: Include stdbool.h.
68998         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68999         functions.
69000         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69001         bookkeeping indicates that it's worth it.
69002         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69003
69004         * modules/mbsstr-tests: New file.
69005         * tests/test-mbsstr1.c: New file.
69006         * tests/test-mbsstr2.sh: New file.
69007         * tests/test-mbsstr2.c: New file.
69008         * tests/test-mbsstr3.sh: New file.
69009         * tests/test-mbsstr3.c: New file.
69010         * m4/locale-fr.m4: New file.
69011
69012 2007-02-11  Bruno Haible  <bruno@clisp.org>
69013
69014         * lib/mbsrchr.c (mbsrchr): Fix bug.
69015
69016         * modules/mbsrchr-tests: New file.
69017         * tests/test-mbsrchr.sh: New file.
69018         * tests/test-mbsrchr.c: New file.
69019
69020 2007-02-11  Bruno Haible  <bruno@clisp.org>
69021
69022         * lib/mbschr.c (mbschr): Fix bug.
69023
69024         * modules/mbschr-tests: New file.
69025         * tests/test-mbschr.sh: New file.
69026         * tests/test-mbschr.c: New file.
69027         * m4/locale-zh.m4: New file.
69028
69029 2007-02-11  Bruno Haible  <bruno@clisp.org>
69030
69031         Support for copying multibyte string iterators.
69032         * lib/mbiter.h: Include <string.h>.
69033         (mbiter_multi_copy): New function.
69034         (mbi_copy): New macro.
69035         * lib/mbuiter.h: Include <string.h>.
69036         (mbuiter_multi_copy): New function.
69037         (mbui_copy): New macro.
69038
69039 2007-02-11  Bruno Haible  <bruno@clisp.org>
69040
69041         New module mbslen.
69042         * modules/mbslen: New file.
69043         * lib/mbslen.c: New file.
69044         * lib/string_.h (mbslen): New declaration.
69045         * m4/mbslen.m4: New file.
69046         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69047         GNULIB_MBSLEN.
69048         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69049         * MODULES.html.sh (Internationalization functions): Add mbslen.
69050
69051 2007-02-11  Bruno Haible  <bruno@clisp.org>
69052
69053         Ensure O(n) worst-case complexity of strcasestr substitute.
69054         * lib/strcasestr.c: Include stdbool.h.
69055         (knuth_morris_pratt): New function.
69056         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69057         bookkeeping indicates that it's worth it.
69058         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69059
69060         * modules/strcasestr-tests: New file.
69061         * tests/test-strcasestr.c: New file.
69062
69063 2007-02-11  Bruno Haible  <bruno@clisp.org>
69064
69065         Ensure O(n) worst-case complexity of c_strcasestr.
69066         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69067         (knuth_morris_pratt): New function.
69068         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69069         the bookkeeping indicates that it's worth it.
69070         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69071
69072         * modules/c-strcasestr-tests: New file.
69073         * tests/test-c-strcasestr.c: New file.
69074
69075 2007-02-11  Bruno Haible  <bruno@clisp.org>
69076
69077         Ensure O(n) worst-case complexity of c_strstr.
69078         * lib/c-strstr.c: Include stdbool.h, string.h.
69079         (knuth_morris_pratt): New function.
69080         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69081         bookkeeping indicates that it's worth it.
69082         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69083
69084         * lib/c-strstr.c: Complete rewrite for maintainability.
69085
69086         * modules/c-strstr-tests: New file.
69087         * tests/test-c-strstr.c: New file.
69088
69089 2007-02-11  Bruno Haible  <bruno@clisp.org>
69090
69091         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69092         5.2.1 and earlier, whereby \055 was treated just like the range
69093         delimiter '-'.
69094         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69095
69096 2007-02-08  Bruno Haible  <bruno@clisp.org>
69097
69098         * modules/regex (Depends-on): Add stdbool.
69099         Reported by Dalibor Topic <robilad@kaffe.org>.
69100
69101 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69104         Prefer returning from main to exiting from it.
69105         Remove unnecessary parens after sizeof.
69106
69107 2007-02-05  Bruno Haible  <bruno@clisp.org>
69108
69109         New module mbssep.
69110         * modules/mbssep: New file.
69111         * lib/mbssep.c: New file.
69112         * lib/string_.h (strsep): Add a conditional link warning.
69113         (mbssep): New declaration.
69114         * m4/mbssep.m4: New file.
69115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69116         GNULIB_MBSSEP.
69117         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69118         * MODULES.html.sh (Internationalization functions): Add mbssep.
69119
69120 2007-02-05  Bruno Haible  <bruno@clisp.org>
69121
69122         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69123         Optimize search in case of 1 delimiter.
69124
69125 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69126
69127         * lib/acl.h: Include sys/types.h before sys/acl.h.
69128
69129 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69130
69131         Merge upstream fix for glibc bugzilla #3957:
69132
69133         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69134
69135         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69136         bit for RE_HAT_LISTS_NOT_NEWLINE.
69137         (build_charclass_op): Remove bogus comment.
69138
69139 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69140
69141         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69142
69143 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69144
69145         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69146         * lib/memmem.c [!defined _LIBC]: Include config.h.
69147
69148 2007-02-04  Bruno Haible  <bruno@clisp.org>
69149
69150         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69151         warning message.
69152
69153 2007-02-04  Bruno Haible  <bruno@clisp.org>
69154
69155         New module mbstok_r.
69156         * modules/mbstok_r: New file.
69157         * lib/mbstok_r.c: New file.
69158         * lib/string_.h (strtok_r): Change argument names to match the
69159         comments. Add a conditional link warning.
69160         (mbstok_r): New declaration.
69161         * m4/mbstok_r.m4: New file.
69162         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69163         GNULIB_MBSTOK_R.
69164         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69165         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69166
69167 2007-02-04  Bruno Haible  <bruno@clisp.org>
69168
69169         New module mbsspn.
69170         * modules/mbsspn: New file.
69171         * lib/mbsspn.c: New file.
69172         * lib/string_.h (strspn): Add a conditional link warning.
69173         (mbsspn): New declaration.
69174         * m4/mbsspn.m4: New file.
69175         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69176         GNULIB_MBSSPN.
69177         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69178         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69179
69180 2007-02-04  Bruno Haible  <bruno@clisp.org>
69181
69182         New module mbspbrk.
69183         * modules/mbspbrk: New file.
69184         * lib/mbspbrk.c: New file.
69185         * lib/string_.h (strpbrk): Add a conditional link warning.
69186         (mbspbrk): New declaration.
69187         * m4/mbspbrk.m4: New file.
69188         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69189         GNULIB_MBSPBRK.
69190         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69191         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69192
69193 2007-02-04  Bruno Haible  <bruno@clisp.org>
69194
69195         New module mbscspn.
69196         * modules/mbscspn: New file.
69197         * lib/mbscspn.c: New file.
69198         * lib/string_.h (strcspn): Add a conditional link warning.
69199         (mbscspn): New declaration.
69200         * m4/mbscspn.m4: New file.
69201         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69202         GNULIB_MBSCSPN.
69203         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69204         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69205
69206 2007-02-04  Bruno Haible  <bruno@clisp.org>
69207
69208         New module mbscasestr, reduced goal of strcasestr.
69209         * modules/mbscasestr: New file.
69210         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69211         (mbscasestr): Renamed from strcasestr.
69212         * lib/strcasestr.c: Don't include mbuiter.h.
69213         (strcasestr): Remove support for multibyte locales.
69214         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69215         Change the conditional link warning.
69216         (mbscasestr): New declaration.
69217         * m4/mbscasestr.m4: New file.
69218         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69219         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69220         REPLACE_STRCASESTR.
69221         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69223         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69224         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69225         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69226         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69227         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69228         (Depends-on): Remove mbuiter.
69229         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69230
69231 2007-02-04  Bruno Haible  <bruno@clisp.org>
69232
69233         Simplify handling of strncasecmp.
69234         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69235         the conditional link warning.
69236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69237         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69238         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69239         * modules/strcase (configure.ac): Don't invoke
69240         gl_STRING_MODULE_INDICATOR.
69241         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69242
69243 2007-02-04  Bruno Haible  <bruno@clisp.org>
69244
69245         New module mbscasecmp, reduced goal of strcasecmp.
69246         * modules/mbscasecmp: New file.
69247         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69248         (mbscasecmp): Renamed from strcasecmp.
69249         * lib/strcasecmp.c: Don't include mbuiter.h.
69250         (strcasecmp): Remove support for multibyte locales.
69251         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69252         Change the conditional link warning.
69253         (mbscasecmp): New declaration.
69254         * m4/mbscasecmp.m4: New file.
69255         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69256         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69257         REPLACE_STRCASECMP.
69258         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69260         GNULIB_MBSCASECMP.
69261         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69262         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69263         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69264         (Depends-on): Remove mbuiter.
69265         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69266
69267 2007-02-04  Bruno Haible  <bruno@clisp.org>
69268
69269         New module mbsstr. Remove module strstr.
69270         * modules/mbsstr: New file.
69271         * modules/strstr: Remove file.
69272         * lib/mbsstr.c: Renamed from lib/strstr.c.
69273         (mbsstr): Renamed from strstr.
69274         * lib/string_.h (strstr): Remove declaration. Change the conditional
69275         link warning.
69276         (mbsstr): New declaration.
69277         * m4/mbsstr.m4: New file.
69278         * m4/strstr.m4: Remove file.
69279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69280         REPLACE_STRSTR.
69281         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69282         Don't initialize GNULIB_STRSTR.
69283         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69284         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69285         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69286         (Support for systems lacking ANSI C 89): Remove strstr.
69287
69288 2007-02-04  Bruno Haible  <bruno@clisp.org>
69289
69290         New module mbsrchr.
69291         * modules/mbsrchr: New file.
69292         * lib/mbsrchr.c: New file.
69293         * lib/string_.h (strrchr): Add a conditional link warning.
69294         (mbsrchr): New declaration.
69295         * m4/mbsrchr.m4: New file.
69296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69297         GNULIB_MBSRCHR.
69298         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69299         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69300
69301 2007-02-04  Bruno Haible  <bruno@clisp.org>
69302
69303         New module mbschr.
69304         * modules/mbschr: New file.
69305         * lib/mbschr.c: New file.
69306         * lib/string_.h (strchr): Add a conditional link warning.
69307         (mbschr): New declaration.
69308         * m4/mbschr.m4: New file.
69309         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69310         GNULIB_MBSCHR.
69311         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69312         * MODULES.html.sh (Internationalization functions): Add mbschr.
69313
69314 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69315
69316         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69317
69318         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69319
69320 2007-02-04  Bruno Haible  <bruno@clisp.org>
69321
69322         New module description section 'configure.ac-early'.
69323         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69324         (func_get_autoconf_early_snippet): New function.
69325         (func_import, func_create_testdir): Use it. Remove special cases for
69326         modules 'extensions' and 'lock'.
69327         * modules/extensions (configure.ac-early): Require
69328         gl_USE_SYSTEM_EXTENSIONS.
69329         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69330
69331 2007-02-04  Bruno Haible  <bruno@clisp.org>
69332
69333         Make use of gcj-4.3's -fsource and -ftarget option.
69334         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69335         and if so try the options -fsource and -ftarget.
69336         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69337         source_version, ftarget_option, target_version arguments.
69338         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69339         (is_envjavac_oldgcj_14_14_usable): Renamed from
69340         is_envjavac_gcj_14_14_usable.
69341         (is_envjavac_oldgcj_14_13_usable): Renamed from
69342         is_envjavac_gcj_14_13_usable.
69343         (is_gcj_present): Update.
69344         (is_gcj_43, is_gcj43_usable): New functions.
69345         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69346         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69347         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69348         try the options -fsource and -ftarget.
69349
69350 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69351
69352         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69353         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69354         larger value.
69355
69356 2007-02-03  Jim Meyering  <jim@meyering.net>
69357
69358         Give tools a better chance to allocate space for very large buffers.
69359         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69360
69361         Make pwd and readlink work also when run with an unreadable parent dir
69362         on systems with openat support.
69363         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69364         provided getcwd function, even when we have openat support.
69365         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69366
69367 2007-02-02  Bruno Haible  <bruno@clisp.org>
69368
69369         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69370         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69371         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69372         portability problems if one of these functions is only used on specific
69373         platforms.
69374         Reported by Paul Eggert.
69375
69376 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69379         is causing more trouble than it's curing.
69380         * lib/regex_internal.h (__mempcpy): Remove.
69381         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69382         (and make the code a tad smaller to boot).
69383         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69384
69385 2007-02-02  Jim Meyering  <jim@meyering.net>
69386
69387         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69388         section, not in the Makefile.am: one.
69389
69390 2007-02-02  Eric Blake  <ebb9@byu.net>
69391
69392         * lib/strchrnul.c: Always include config.h first.
69393
69394         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69395         gnulib strstr is not necessary here.
69396
69397 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69398
69399         * m4/socklen.m4: Fix typo.
69400
69401 2007-02-02  Eric Blake  <ebb9@byu.net>
69402
69403         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69404         * modules/netinet_in (Makefile.am): Likewise.
69405
69406 2007-02-01  Bruno Haible  <bruno@clisp.org>
69407
69408         * lib/string_.h (GL_LINK_WARNING): New macro.
69409         (strcasecmp, strstr, strcasestr): If provided by the system,
69410         conditionally define as a macro that leads to a warning instead of to
69411         an error.
69412         (strncasecmp): Conditionally define as a macro that leads to a warning.
69413
69414 2007-02-01  Karl Berry  <karl@gnu.org>
69415
69416         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69417
69418 2007-02-01  Bruno Haible  <bruno@clisp.org>
69419
69420         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69421         renamings.
69422
69423 2007-02-01  Eric Blake  <ebb9@byu.net>
69424
69425         * modules/regex (Depends-on): Revert dependence on mempcpy.
69426         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69427         module's definition of mempcpy.
69428         Reported by Paul Eggert.
69429
69430 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69433         the symbol XYZ before redefining it.  This fixes a problem with
69434         programs that don't use XYZ, when compiled on systems that define
69435         XYZ to something else.
69436
69437 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69438
69439         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69440         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69441         writeable to group or other and (2) is intended to have a special
69442         mode bit that is set or cleared.  In such a case, the directory
69443         should be neither group- nor other-writeable until the special
69444         mode bits are right.
69445
69446 2007-01-31  Eric Blake  <ebb9@byu.net>
69447
69448         * modules/mountlist (Depends-on): Add strstr.
69449
69450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69451         bug.
69452         * modules/string (Makefile.am): Remove redundant replacement.
69453         * modules/regex (Depends-on): Add mempcpy.
69454
69455 2007-01-31  Bruno Haible  <bruno@clisp.org>
69456
69457         New module description field 'Link'.
69458         * gnulib-tool (func_usage): Document --extract-link-directive.
69459         (sed_extract_prog): Recognize 'Link' directive.
69460         (func_get_link_directive): New function.
69461         (func_import): Show summary of link directives.
69462         Handle --extract-link-directive option.
69463         * modules/acl (Link): New section.
69464         * modules/clock-time (Link): New section.
69465         * modules/euidaccess (Link): New section.
69466         * modules/gettext (Link): New section.
69467         * modules/iconv (Link): New section.
69468         * modules/lock (Link): New section.
69469         * modules/nanosleep (Link): New section.
69470         * modules/readline (Link): New section.
69471
69472 2007-01-27  Bruno Haible  <bruno@clisp.org>
69473
69474         Enforce the use of gnulib modules for unportable <string.h> functions.
69475         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69476         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69477         (gl_HEADER_STRING_H_BODY): Require it.
69478         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69479         the symbol XYZ to one that gives a link error.
69480         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69481         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69482         * modules/mempcpy (configure.ac): Likewise.
69483         * modules/memrchr (configure.ac): Likewise.
69484         * modules/stpcpy (configure.ac): Likewise.
69485         * modules/stpncpy (configure.ac): Likewise.
69486         * modules/strcase (configure.ac): Likewise.
69487         * modules/strcasestr (configure.ac): Likewise.
69488         * modules/strchrnul (configure.ac): Likewise.
69489         * modules/strdup (configure.ac): Likewise.
69490         * modules/strndup (configure.ac): Likewise.
69491         * modules/strnlen (configure.ac): Likewise.
69492         * modules/strpbrk (configure.ac): Likewise.
69493         * modules/strsep (configure.ac): Likewise.
69494         * modules/strstr (configure.ac): Likewise.
69495         * modules/strtok_r (configure.ac): Likewise.
69496
69497 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69498
69499         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69500
69501 2007-01-30  Jim Meyering  <jim@meyering.net>
69502
69503         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69504
69505 2007-01-29  Bruno Haible  <bruno@clisp.org>
69506
69507         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69508         * lib/execute.c: Likewise.
69509         * lib/pipe.c: Likewise.
69510         * lib/printf-args.h: Likewise.
69511         * lib/printf-args.c: Likewise.
69512         * lib/printf-parse.c: Likewise.
69513         * lib/vasnprintf.c: Likewise.
69514
69515 2007-01-29  Eric Blake  <ebb9@byu.net>
69516
69517         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69518         declaration.
69519
69520 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * lib/strptime.h (strptime): Use 'restrict' for args where
69523         POSIX requires this.
69524         * lib/strptime.c (strptime): Likewise.
69525         Change license notice from LGPL to GPL, since gnulib-tool will
69526         change this as needed.
69527         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69528         defined.
69529         Include "strptime.h" first, to check interface.
69530         Do not #undef _LIBC and _NL_CURRENT.
69531         Do not include <stdlib.h>; no longer needed.
69532         Include "time_r.h" and declare ptime_locale_status
69533         only if _LIBC is not defined.
69534         (__P): Remove unused macro.
69535         (match_string): Bring back glibc version, but use it only if _LIBC
69536         is defined.
69537         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69538         Remove unnecessary assertion and abort() call.
69539         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69540         * m4/strptime.m4: Fix serial number comment.
69541         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69542         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69543         (Depends-on): Add time_r.
69544
69545 2007-01-29  Bruno Haible  <bruno@clisp.org>
69546
69547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69548         strptime.
69549         * modules/strptime (Depends-on): Add stdbool.
69550         * lib/strptime.h: Include <time.h> always. Add comments.
69551
69552 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69553
69554         * modules/strptime: New file.
69555         * lib/strptime.h: New file.
69556         * lib/strptime.c: New file.
69557         * m4/strptime.m4: New file.
69558
69559 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69560
69561         * MODULES.html.sh: New module mpsort.
69562         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69563
69564         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69565         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69567         All uses changed.
69568         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69569         All uses changed.
69570         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69571         to _Restrict_.
69572         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69573         the parameter matches the prototype.
69574
69575 2007-01-28  Jim Meyering  <jim@meyering.net>
69576
69577         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69578         sys/time.h here, reverting that part of the previous patch:
69579         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69580
69581 2007-01-28  Bruno Haible  <bruno@clisp.org>
69582
69583         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69584         value of $(SYS_TIME_H).
69585         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69586         remove it conditionally, too. [added by Jim Meyering]
69587         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69588         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69589         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69590         GETTIMEOFDAY_REPLACEMENT to 1.
69591
69592 2007-01-28  Bruno Haible  <bruno@clisp.org>
69593
69594         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69595         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69596         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69597         Set UNISTD_H instead of UNISTD_H2.
69598         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69599
69600 2007-01-28  Bruno Haible  <bruno@clisp.org>
69601
69602         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69603         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69604
69605 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69606
69607         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69608         (func_create_testdir): Ensure C locale for `grep' and `tr'
69609         character ranges.
69610         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69611         ACLOCAL_AMFLAGS parsing state machine.
69612
69613 2007-01-27  Bruno Haible  <bruno@clisp.org>
69614
69615         * modules/unistr/base: Update.
69616
69617 2007-01-27  Bruno Haible  <bruno@clisp.org>
69618
69619         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69620         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69621         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69622         modules/unistr/u32-mbtouc.
69623         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69624         * lib/unistr.h: Update.
69625         * lib/linebreak.c: Update.
69626         * modules/unistr/u32-mbtouc: Renamed from
69627         modules/unistr/u32-mbtouc-safe.
69628         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69629         * lib/unistr.h: Update.
69630         * lib/unistr/u32-to-u8.c: Update.
69631         * lib/unistr/u32-to-u16.c: Update.
69632
69633 2007-01-27  Bruno Haible  <bruno@clisp.org>
69634
69635         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69636         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69637         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69638         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69639         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69640         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69641         modules/unistr/u16-mbtouc.
69642         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69643         * lib/unistr.h: Update.
69644         * lib/linebreak.c: Update.
69645         * modules/linebreak: Update.
69646         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69647         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69648         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69649         * modules/unistr/u16-mbtouc: Renamed from
69650         modules/unistr/u16-mbtouc-safe.
69651         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69652         * lib/unistr.h: Update.
69653         * lib/unistr/u16-to-u8.c: Update.
69654         * modules/unistr/u16-to-u8: Update.
69655         * lib/unistr/u16-to-u32.c: Update.
69656         * modules/unistr/u16-to-u32: Update.
69657
69658 2007-01-27  Bruno Haible  <bruno@clisp.org>
69659
69660         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69661         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69662         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69663         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69664         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69665         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69666         modules/unistr/u8-mbtouc.
69667         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69668         * lib/unistr.h: Update.
69669         * lib/striconveh.c: Update.
69670         * modules/striconveh: Update.
69671         * lib/linebreak.c: Update.
69672         * modules/linebreak: Update.
69673         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69674         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69675         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69676         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69677         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69678         * lib/unistr.h: Update.
69679         * lib/striconveh.c: Update.
69680         * modules/striconveh: Update.
69681         * lib/unistr/u8-to-u16.c: Update.
69682         * modules/unistr/u8-to-u16: Update.
69683         * lib/unistr/u8-to-u32.c: Update.
69684         * modules/unistr/u8-to-u32: Update.
69685
69686 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69687
69688         Sync from Libtool.
69689         * lib/argz.c: Do not include strings.h nor memory.h, include
69690         string.h unconditionally.  Patch by Simon Josefsson.
69691
69692 2007-01-27  Bruno Haible  <bruno@clisp.org>
69693
69694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69695         from gl_HEADER_STRING_H_BODY.
69696         (gl_HEADER_STRING_H_BODY): Require it.
69697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69698         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69699         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69700         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69701         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69702         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69703         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69704         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69705         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69706         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69707         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69708         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69709         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69710         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69711         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69712
69713 2007-01-27  Bruno Haible  <bruno@clisp.org>
69714
69715         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69716         check_PROGRAMS into noinst_PROGRAMS.
69717         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69718         check_PROGRAMS in this case.
69719         (func_import): Set for_test to false.
69720         (func_create_testdir): Set for_test to true.
69721
69722 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69723             Bruno Haible  <bruno@clisp.org>
69724
69725         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69726         (Depends-on): Add string.
69727         (Includes): Use <string.h> instead of strcasestr.h.
69728         * modules/string (Makefile.am): Also substitute the value of
69729         REPLACE_STRCASESTR.
69730         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69731         assume strcasestr is declared in <string.h> not <strings.h>. Also
69732         set REPLACE_STRCASESTR.
69733         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69734         REPLACE_STRCASESTR.
69735         * lib/strcasestr.h: Remove file.
69736         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69737         * lib/string_.h (strcasestr): New declaration.
69738
69739 2007-01-27  Bruno Haible  <bruno@clisp.org>
69740
69741         * lib/string_.h: Use 'extern'.
69742
69743 2007-01-27  Jim Meyering  <jim@meyering.net>
69744
69745         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69746         of set-but-not-used local, "q".
69747
69748         * lib/mempcpy.c: Include <config.h> before <string.h>.
69749         This fixes a compilation error on HP-UX, due to the system's
69750         "restrict"-using mempcpy prototype.
69751
69752 2007-01-26  Bruno Haible  <bruno@clisp.org>
69753
69754         Small optimization.
69755         * lib/javacomp.c: Include c-strstr.h.
69756          (is_envjavac_gcj): Use c_strstr instead of strstr.
69757         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69758
69759 2007-01-26  Bruno Haible  <bruno@clisp.org>
69760
69761         * MODULES.html.sh (Unicode string functions): Add the new modules.
69762
69763         * modules/uniconv/u32-strconv-to-locale: New file.
69764         * lib/uniconv/u32-strconv-to-locale.c: New file.
69765
69766         * modules/uniconv/u16-strconv-to-locale: New file.
69767         * lib/uniconv/u16-strconv-to-locale.c: New file.
69768
69769         * modules/uniconv/u8-strconv-to-locale: New file.
69770         * lib/uniconv/u8-strconv-to-locale.c: New file.
69771
69772         * modules/uniconv/u32-strconv-from-locale: New file.
69773         * lib/uniconv/u32-strconv-from-locale.c: New file.
69774
69775         * modules/uniconv/u16-strconv-from-locale: New file.
69776         * lib/uniconv/u16-strconv-from-locale.c: New file.
69777
69778         * modules/uniconv/u8-strconv-from-locale: New file.
69779         * lib/uniconv/u8-strconv-from-locale.c: New file.
69780
69781         * modules/uniconv/u32-strconv-to-enc: New file.
69782         * lib/uniconv/u32-strconv-to-enc.c: New file.
69783         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69784         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69785
69786         * modules/uniconv/u16-strconv-to-enc: New file.
69787         * lib/uniconv/u16-strconv-to-enc.c: New file.
69788         * lib/uniconv/u-strconv-to-enc.h: New file.
69789         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69790         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69791
69792         * modules/uniconv/u8-strconv-to-enc: New file.
69793         * lib/uniconv/u8-strconv-to-enc.c: New file.
69794         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69795         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69796
69797         * modules/uniconv/u32-strconv-from-enc: New file.
69798         * lib/uniconv/u32-strconv-from-enc.c: New file.
69799         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69800         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69801
69802         * modules/uniconv/u16-strconv-from-enc: New file.
69803         * lib/uniconv/u16-strconv-from-enc.c: New file.
69804         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69805         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69806
69807         * modules/uniconv/u8-strconv-from-enc: New file.
69808         * lib/uniconv/u8-strconv-from-enc.c: New file.
69809         * lib/uniconv/u-strconv-from-enc.h: New file.
69810         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69811         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69812
69813         * modules/uniconv/u32-conv-from-enc: New file.
69814         * lib/uniconv/u32-conv-from-enc.c: New file.
69815         * modules/uniconv/u32-conv-from-enc-tests: New file.
69816         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69817
69818         * modules/uniconv/u16-conv-from-enc: New file.
69819         * lib/uniconv/u16-conv-from-enc.c: New file.
69820         * lib/uniconv/u-conv-from-enc.h: New file.
69821         * modules/uniconv/u16-conv-from-enc-tests: New file.
69822         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69823
69824         * modules/uniconv/u8-conv-from-enc: New file.
69825         * lib/uniconv/u8-conv-from-enc.c: New file.
69826         * modules/uniconv/u8-conv-from-enc-tests: New file.
69827         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69828
69829         * modules/uniconv/base: New file.
69830         * lib/uniconv.h: New file.
69831
69832 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         * doc/gnulib-tool.texi (Initial import): Update to match current
69835         behavior with strdup module.
69836         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69837         * lib/memmem.h: Remove; all uses removed.  This is now done
69838         by <string.h>.
69839         * lib/mempcpy.h: Likewise.
69840         * lib/memrchr.h: Likewise.
69841         * lib/stpcpy.h: Likewise.
69842         * lib/stpncpy.h: Likewise.
69843         * lib/strcase.h: Likewise.
69844         * lib/strchrnul.h: Likewise.
69845         * lib/strdup.h: Likewise.
69846         * lib/strndup.h: Likewise.
69847         * lib/strnlen.h: Likewise.
69848         * lib/strpbrk.h: Likewise.
69849         * lib/strsep.h: Likewise.
69850         * lib/strstr.h: Likewise.
69851         * lib/strtok_r.h: Likewise.
69852         * lib/string_.h: New file.
69853         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69854         Rely on <string.h> instead.
69855         * lib/canon-host.c: Likewise.
69856         * lib/chdir-long.c: Likewise.
69857         * lib/concatpath.c: Likewise.
69858         * lib/exclude.c: Likewise.
69859         * lib/fchdir.c: Likewise.
69860         * lib/getaddrinfo.c: Likewise.
69861         * lib/getcwd.c: Likewise.
69862         * lib/getsubopt.c: Likewise.
69863         * lib/glob.c: Likewise.
69864         * lib/hard-locale.c: Likewise.
69865         * lib/iconvme.c: Likewise.
69866         * lib/javacomp.c: Likewise.
69867         * lib/mempcpy.c: Likewise.
69868         * lib/memrchr.c: Likewise.
69869         * lib/regex_internal.h: Likewise.
69870         * lib/stpncpy.c: Likewise.
69871         * lib/strcasecmp.c: Likewise.
69872         * lib/strchrnul.c: Likewise.
69873         * lib/strdup.c: Likewise.
69874         * lib/striconv.c: Likewise.
69875         * lib/striconveh.c: Likewise.
69876         * lib/striconveha.c: Likewise.
69877         * lib/strncasecmp.c: Likewise.
69878         * lib/strndup.c: Likewise.
69879         * lib/strnlen.c: Likewise.
69880         * lib/strsep.c: Likewise.
69881         * lib/strstr.c: Likewise.
69882         * lib/strtok_r.c: Likewise.
69883         * lib/userspec.c: Likewise.
69884         * lib/w32spawn.h: Likewise.
69885         * lib/xstrndup.c: Likewise.
69886         * lib/mountlist.c (strstr): Remove decl.
69887         * m4/string_h.m4: New file.
69888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69889         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69890         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69891         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69892         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69893         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69894         Set REPLACE_STRCASECMP if necessary.
69895         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69896         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69897         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69898         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69899         HAVE_DECL_STRDUP if necessary.
69900         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69901         since gl_FUNC_STRNDUP does that now.
69902         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69903         Check for decl here...
69904         (gl_PREREQ_STRNLEN): ... not here.
69905         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69906         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69907         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69908         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69909         necessary.
69910         * modules/string: New file.
69911         * modules/memmem (Files): Remove special-purpose include file.
69912         (Depends-on): Add string.
69913         (Include): Include <string.h>, not the removed file.
69914         * modules/mempcpy: Likewise.
69915         * modules/memrchr: Likewise.
69916         * modules/stpcpy: Likewise.
69917         * modules/stpncpy: Likewise.
69918         * modules/strcase: Likewise.
69919         * modules/strchrnul: Likewise.
69920         * modules/strdup: Likewise.
69921         * modules/strndup: Likewise.
69922         * modules/strnlen: Likewise.
69923         * modules/strpbrk: Likewise.
69924         * modules/strsep: Likewise.
69925         * modules/strstr: Likewise.
69926         * modules/strtok_r: Likewise.
69927         * tests/test-dirname.c: Don't include "strdup.h", since
69928         <string.h> now suffices.
69929         * tests/test-memmem.c: Don't include "memmem.h", since
69930         <string.h> now suffices.
69931
69932 2007-01-25  Bruno Haible  <bruno@clisp.org>
69933
69934         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69935         *resultp is 0.
69936
69937         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69938         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69939         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69940         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69941
69942         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69943         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69944         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69945         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69946         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69947         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69948
69949 2007-01-24  Bruno Haible  <bruno@clisp.org>
69950
69951         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69952         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69953         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69954         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69955         gl_FUNC_FTS_CORE.
69956         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69957         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69958         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69959         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69960         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69961         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69962         gl_FUNC_FCHOWNAT.
69963         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69964         gl_FUNC_STRFTIME.
69965         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69966         Reported by Ralf Wildenhues.
69967
69968 2007-01-24  Bruno Haible  <bruno@clisp.org>
69969
69970         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69971         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69972         gl_GETADDRINFO.
69973         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69974         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69975         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69976
69977 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69980         Don't use 'exit'; just return from 'main'.
69981         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69982
69983         * lib/fnmatch_.h: Readjust white space and comments to match
69984         glibc, to avoid spurious diffs.
69985
69986 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69989         2004-12-01 change by Jakub Jelinek, since this code won't compile
69990         if !LIBC.  Problem reported by Bob Proulx.
69991
69992 2007-01-23  Bruno Haible  <bruno@clisp.org>
69993
69994         * lib/striconveh.c: Include c-strcaseeq.h.
69995         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69996         * modules/striconveh (Depends-on): Add c-strcaseeq.
69997
69998 2007-01-23  Bruno Haible  <bruno@clisp.org>
69999
70000         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70001
70002         * modules/c-strcaseeq: New file.
70003         * lib/c-strcaseeq.h: New file.
70004
70005         * modules/streq: New file.
70006         * lib/streq.h: New file.
70007
70008 2007-01-23  Bruno Haible  <bruno@clisp.org>
70009
70010         * modules/striconveha-tests: New file.
70011         * tests/test-striconveha.c: New file.
70012
70013         * lib/striconveha.h: Include <stdbool.h>.
70014         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70015         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70016         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70017         (mem_iconveha): New function.
70018         (str_iconveha_notranslit): Renamed from str_iconveha.
70019         (str_iconveha): New function.
70020         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70021         c-strcase.
70022
70023 2007-01-23  Bruno Haible  <bruno@clisp.org>
70024
70025         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70026         encodings without forgiving before trying any encoding with handler.
70027         (str_iconveha): Try all encodings without forgiving before trying any
70028         encoding with handler.
70029
70030 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         Import the following changes from libc.
70033
70034         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70035
70036         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70037
70038         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70039
70040         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70041         normal_bracket label.
70042
70043         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70044
70045         [BZ #361]
70046         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70047         to normal_bracket after fetching the next character.
70048
70049 2007-01-22  Bruno Haible  <bruno@clisp.org>
70050
70051         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70052         argument.
70053         * lib/striconveh.c (iconv_carefully_1): New function.
70054         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70055         argument.
70056         (str_cd_iconveh): Update.
70057         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70058         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70059         * tests/test-striconveh.c (MAGIC): New macro.
70060         (new_offsets): New function.
70061         (main): Test call with and without offsets.
70062
70063 2007-01-22  Bruno Haible  <bruno@clisp.org>
70064
70065         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70066         * modules/sys_select (Makefile.am): Likewise.
70067         * modules/sys_socket (Makefile.am): Likewise.
70068         * modules/sys_time (Makefile.am): Likewise.
70069
70070 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         * modules/gettimeofday (License): Change from GPL to LGPL, since
70073         gettimeofday is a library function.
70074
70075 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70076
70077         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70078
70079 2007-01-21  Bruno Haible  <bruno@clisp.org>
70080
70081         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70082
70083 2007-01-21  Bruno Haible  <bruno@clisp.org>
70084
70085         * modules/striconveha: New file.
70086         * lib/striconveha.h: New file.
70087         * lib/striconveha.c: New file.
70088         * MODULES.html.sh (Internationalization functions): Add striconveha.
70089         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70090         string.
70091         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70092
70093 2007-01-21  Bruno Haible  <bruno@clisp.org>
70094
70095         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70096         * lib/striconveh.c (str_iconveh): Likewise.
70097
70098 2007-01-21  Bruno Haible  <bruno@clisp.org>
70099
70100         * lib/striconveh.h (mem_iconveh): New declaration.
70101         * lib/striconveh.c (mem_iconveh): New function.
70102         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70103
70104 2007-01-21  Bruno Haible  <bruno@clisp.org>
70105
70106         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70107
70108         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70109         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70110         original result buffer.
70111         (str_cd_iconveh): Update.
70112         * tests/test-striconveh.c (main): Update.
70113
70114         * lib/striconv.h (mem_cd_iconv): Change specification.
70115         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70116         result buffer.
70117         (str_cd_iconv): Update.
70118         * tests/test-striconv.c (main): Update.
70119
70120 2007-01-21  Bruno Haible  <bruno@clisp.org>
70121
70122         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70123
70124 2007-01-20  Jim Meyering  <jim@meyering.net>
70125
70126         * lib/userspec.c (parse_with_separator): If a user or group string
70127         starts with "+", skip the corresponding name-to-ID look-up, since
70128         such a look-up must fail: user and group names may not include "+".
70129
70130 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70133         since we now assume the sys_time module.
70134         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70135         check for sys/time.h; no longer needed.
70136         * modules/poll (Depends-on): Depend on sys_time.
70137
70138 2007-01-18  Bruno Haible  <bruno@clisp.org>
70139
70140         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70141         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70142
70143         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70144         gettimeofday.
70145
70146         * tests/test-gettimeofday.c: Include <time.h>.
70147         (dummy): Remove variable.
70148
70149         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70150         gl_HEADER_SYS_TIME_H.
70151         (gl_HEADER_SYS_TIME_H): New macro.
70152
70153         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70154         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70156         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70157         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70158         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70159         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70160         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70161         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70162         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70163         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70164
70165         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70166         last change; it caused a compilation error when cross-compiling to
70167         Cygwin.
70168
70169 2007-01-18  Jim Meyering  <jim@meyering.net>
70170
70171         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70172         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70173         than the race-prone "test -d sys || mkdir sys".
70174         (configure.ac): Use AC_PROG_MKDIR_P.
70175         * modules/sys_select: Likewise.
70176         * modules/sys_socket: Likewise.
70177         * modules/sys_time: Likewise.
70178
70179 2007-01-18  Eric Blake  <ebb9@byu.net>
70180
70181         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70182         replace gettimeofday.
70183         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70184         name, to avoid infinite recursion.
70185
70186 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70189         module sys_time.
70190         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70191         assume timespec.h defines struct timeval.
70192         * lib/settime.c: Likewise.
70193         * lib/utimens.c: Likewise.
70194         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70195         since we now assume the gettimeofday module.
70196         * lib/tempname.c (__gen_tempname): Likewise.
70197         * lib/gettimeofday.h: Remove.
70198         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70199         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70200         Include <time.h>, for 'time()'.
70201         (localtime_buffer_addr): Also use this workaround if
70202         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70203         to simplify the uses.  All uses changed.
70204         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70205         that #undef is inside {}, and 'const' follows type name consistently.
70206         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70207         (gettimeofday): Do not use the maximum possible value for
70208         tv->tv_usec, since that might break usages other than ls.c.
70209         Instead, we'll leave ls.c alone.  This undoes today's patch
70210         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70211         we've never observed the problem but might as well keep the
70212         canary.
70213         * lib/nanosleep.c: Include timespec.h first, for interface check.
70214         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70215         now assume the sys_time module.
70216         * lib/tempname.c: Likewise.
70217         * lib/timespec.h: Likewise.
70218         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70219         needed.
70220         * lib/strftime.c: Likewise.
70221         * lib/timespec.h: Likewise.
70222         * lib/posixtm.c: Include posixtm.h first, for interface check.
70223         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70224         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70225         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70226         * lib/sys_time_.h: New file.
70227         * lib/timespec.h (struct timespec): Use long int, not long.
70228         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70229         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70230         Remove obsolescent call to AC_HEADER_TIME.
70231         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70233         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70234         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70235         Likewise.
70236         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70237         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70238         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70239         into the sys_time module.  Check for gettimeofday just once.
70240         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70241         for gettimeofday signature to just check the signature.  Merely
70242         compile it, since linking doesn't test signature.  Improve test for
70243         whether gettimeofday.o is actually needed.
70244         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70245         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70246         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70247         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70248         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70249         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70250         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70251         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70252         than worrying about sys/time.h.
70253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70254         Don't bother worrying about TIME_WITH_SYS_TIME.
70255         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70256         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70257         * m4/sys_time_h.m4: New file.
70258         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70259         Don't include sys/time.h.  Return from main rather than exiting.
70260         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70261         all uses changed.
70262         * modules/gethrxtime (Depends-on): Add sys_time.
70263         * modules/gettime (Depends-on): Likewise.
70264         * modules/gettimeofday (Depends-on): Likewise.
70265         * modules/nanosleep (Depends-on): Likewise.
70266         * modules/settime (Depends-on): Likewise.
70267         * modules/tempname (Depends-on): Likewise.
70268         * modules/utimens (Depends-on): Likewise.
70269         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70270         (Include): Change back to <sys/time.h>.
70271         (Maintainer): Add self.
70272         * modules/sys_time: New file.
70273         * modules/tempname (Depends-on): Add gettimeofday.
70274         * tests/test-gettimeofday.c: Include <sys/time.h>
70275         rather than gettimeofday.h.
70276
70277 2007-01-17  Bruno Haible  <bruno@clisp.org>
70278
70279         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70280         the license default to GPL.
70281         (func_create_testdir): Don't complain if a module is LGPL and its
70282         tests module depends on GPLed modules.
70283
70284 2007-01-17  Bruno Haible  <bruno@clisp.org>
70285
70286         * lib/gettimeofday.c (gettimeofday): Add code for the case
70287         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70288         maximum possible value for tv->tv_usec, rather than the minimum one.
70289
70290 2005-10-08  Martin Lambers  <marlam@marlam.de>
70291 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70292 2007-01-16  Bruno Haible  <bruno@clisp.org>
70293
70294         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70295         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70296         gl_FUNC_GETTIMEOFDAY.
70297         (Include): Add gettimeofday.h.
70298         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70299         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70300         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70301         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70302         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70303         * lib/gettimeofday.h: New file.
70304         * lib/gettimeofday.c: Include <sys/timeb.h>.
70305         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70306         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70307         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70308         fall back on time().
70309
70310         * tests/test-gettimeofday.c: New file.
70311         * modules/gettimeofday-tests: New file.
70312
70313 2007-01-16  Eric Blake  <ebb9@byu.net>
70314
70315         * modules/fnmatch (Depends-on): Depend on wchar.
70316         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70317         * m4/fnmatch.m4: Likewise.
70318         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70319         * m4/mbchar.m4: Likewise.
70320         * modules/mbswidth (Depends-on): Depend on wchar.
70321         * lib/mbswidth.c: Assume <wchar.h>.
70322         * m4/mbswidth.m4: Likewise.
70323         * modules/quotearg (Depends-on): Depend on wchar.
70324         * lib/quotearg.c: Assume <wchar.h>.
70325         * m4/quotearg.m4: Likewise.
70326         * modules/regex (Depends-on): Depend on wchar.
70327         * lib/regex_internal.h: Assume <wchar.h>.
70328         * m4/regex.m4: Likewise.
70329         * modules/stdint (Depends-on): Depend on wchar.
70330         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70331         * m4/stdint.m4: Likewise.
70332         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70333         * modules/strftime (Depends-on): Depend on wchar.
70334         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70335         * modules/strtol (Depends-on): Depend on wchar.
70336         * lib/strtol.c: Assume <wchar.h>.
70337         * modules/wcwidth (Depends-on): Depend on wchar.
70338         * lib/wcwidth.h: Assume <wchar.h>.
70339         * m4/wcwidth.m4: Likewise.
70340
70341 2007-01-16  Bruno Haible  <bruno@clisp.org>
70342
70343         * modules/csharpexec-script: New, created from...
70344         * modules/csharpexec: ... this.
70345
70346 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70347
70348         * modules/javaexec-script: New, created from...
70349         * modules/javaexec: ... this.
70350
70351 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70352
70353         * modules/poll (Dependencies): Add sys_select.
70354
70355 2007-01-15  Jim Meyering  <jim@meyering.net>
70356
70357         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70358         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70359         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70360         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70361
70362 2007-01-15  Bruno Haible  <bruno@clisp.org>
70363
70364         * modules/striconveh: New file.
70365         * lib/striconveh.h: New file.
70366         * lib/striconveh.c: New file.
70367         * MODULES.html.sh (Internationalization functions): Add striconveh.
70368
70369         * modules/striconveh-tests: New file.
70370         * tests/test-striconveh.c: New file.
70371
70372 2007-01-15  Bruno Haible  <bruno@clisp.org>
70373
70374         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70375         not from GNU libiconv or GNU libc.
70376
70377 2007-01-15  Bruno Haible  <bruno@clisp.org>
70378
70379         * doc/gnulib-intro.texi (Copyright): Explain the different license
70380         terms for module descriptions, autoconf macros, tests, documentation.
70381
70382 2007-01-14  Bruno Haible  <bruno@clisp.org>
70383
70384         * modules/striconv-tests: New file.
70385         * tests/test-striconv.c: New file.
70386
70387 2007-01-14  Bruno Haible  <bruno@clisp.org>
70388
70389         * modules/iconv-tests: New file.
70390         * tests/test-iconv.c: New file.
70391
70392 2007-01-14  Bruno Haible  <bruno@clisp.org>
70393
70394         * gnulib-tool (func_get_license): For test modules, use the license of
70395         the main module.
70396
70397 2007-01-14  Bruno Haible  <bruno@clisp.org>
70398
70399         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70400         if iconv is found to exist.
70401
70402 2007-01-14  Bruno Haible  <bruno@clisp.org>
70403
70404         * modules/c-ctype-tests: New file.
70405         * tests/test-c-ctype.c: New file.
70406
70407 2007-01-14  Bruno Haible  <bruno@clisp.org>
70408
70409         * modules/binary-io-tests: New file.
70410         * tests/test-binary-io.sh: New file.
70411         * tests/test-binary-io.c: New file.
70412
70413 2007-01-14  Bruno Haible  <bruno@clisp.org>
70414
70415         * modules/array-oset-tests: New file.
70416         * tests/test-array_oset.c: New file.
70417
70418 2007-01-14  Bruno Haible  <bruno@clisp.org>
70419
70420         * modules/array-list-tests: New file.
70421         * tests/test-array_list.c: New file.
70422
70423 2007-01-14  Bruno Haible  <bruno@clisp.org>
70424
70425         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70426         and make.
70427         Reported by Simon Josefsson in
70428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70429
70430 2007-01-14  Bruno Haible  <bruno@clisp.org>
70431
70432         * modules/allocsa-tests: New file.
70433         * tests/test-allocsa.c: New file.
70434
70435 2007-01-14  Bruno Haible  <bruno@clisp.org>
70436
70437         * modules/fchdir (Depends-on): Add absolute-header.
70438         * modules/unistd (Depends-on): Likewise.
70439
70440 2006-12-30  Bruno Haible  <bruno@clisp.org>
70441
70442         * modules/fchdir: New file.
70443         * modules/unistd (Files): Add lib/unistd_.h.
70444         (Makefile.am): Generate unistd.h from unistd_.h.
70445         * lib/fchdir.c: New file.
70446         * lib/dirent_.h: New file.
70447         * lib/unistd_.h: New file.
70448         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70449         * m4/fchdir.m4: New file.
70450         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70451         (gl_HEADER_UNISTD): Invoke it.
70452         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70453         function.
70454         * lib/backupfile.c (opendir, closedir): Undefine.
70455         * lib/chown.c (open, close): Undefine.
70456         * lib/clean-temp.c (open, close): Undefine.
70457         * lib/copy-file.c (open, close): Undefine.
70458         * lib/execute.c (open, close): Undefine.
70459         * lib/fsusage.c (open, close): Undefine.
70460         * lib/gc-gnulib.c (open, close): Undefine.
70461         * lib/getcwd.c (opendir, closedir): Undefine.
70462         * lib/glob.c (opendir, closedir): Undefine.
70463         * lib/javacomp.c (open, close): Undefine.
70464         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70465         * lib/openat-proc.c (open, close): Undefine.
70466         * lib/pagealign_alloc.c (open, close): Undefine.
70467         * lib/pipe.c (open, close): Undefine.
70468         * lib/progreloc.c (open, close): Undefine.
70469         * lib/savedir.c (opendir, closedir): Undefine.
70470         * lib/utime.c (open, close): Undefine.
70471         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70472
70473 2007-01-10  Bruno Haible  <bruno@clisp.org>
70474
70475         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70476
70477 2007-01-12  Eric Blake  <ebb9@byu.net>
70478
70479         Provide a robust <wchar.h>.  Further simplifications are now
70480         possible in other modules, but not included here.
70481         * modules/wchar: New module.
70482         * m4/wchar.m4: New file.
70483         * lib/wchar_.h: Likewise.
70484         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70485         of the new module.
70486         * MODULES.html.sh (Extended multibyte and wide character utilities):
70487         New section.
70488
70489 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70492         to a reasonable default for memory allocation.
70493         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70494         file system that reports garbage st_size values for symlinks.
70495         Problem reported by Liyang Hu.
70496
70497 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70498
70499         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70500         Emacs .#* auto-save files).
70501
70502 2007-01-11  Bruno Haible  <bruno@clisp.org>
70503
70504         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70505         directory.
70506
70507 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70508
70509         Use @...@ consistently in lib/wctype_.h.
70510         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70511         on it being set to 1 or 0.
70512         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70513         go back to AC_SUBSTing it.
70514         * modules/wctype (Makefile.am): Undo previous change.
70515
70516 2007-01-10  Eric Blake  <ebb9@byu.net>
70517
70518         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70519         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70520         * modules/wctype (Makefile.am): Likewise.
70521         Reported by Chris McGuire.
70522
70523 2007-01-10  Jim Meyering  <jim@meyering.net>
70524
70525         fts.c: a small readability/maintainability improvement
70526         * lib/fts.c (fts_read): Make this code slightly more readable and
70527         maintainable by hoisting the "sp->fts_cur = p" assignments to
70528         immediately follow the statements that set P.  Derived from
70529         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70530
70531 2007-01-10  Eric Blake  <ebb9@byu.net>
70532
70533         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70534         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70536         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70537         Reported by Chris McGuire.
70538
70539 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70540
70541         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70542         in sed script.
70543
70544 2007-01-09  Bruno Haible  <bruno@clisp.org>
70545
70546         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70547         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70548         variables.
70549         (func_module): Use them.
70550
70551 2007-01-09  Bruno Haible  <bruno@clisp.org>
70552
70553         * modules/unistr/base: New file.
70554         * lib/unistr.h: New file.
70555
70556         * modules/unistr/u8-to-u16: New file.
70557         * lib/unistr/u8-to-u16.c: New file.
70558
70559         * modules/unistr/u8-to-u32: New file.
70560         * lib/unistr/u8-to-u32.c: New file.
70561
70562         * modules/unistr/u16-to-u8: New file.
70563         * lib/unistr/u16-to-u8.c: New file.
70564
70565         * modules/unistr/u16-to-u32: New file.
70566         * lib/unistr/u16-to-u32.c: New file.
70567
70568         * modules/unistr/u32-to-u8: New file.
70569         * lib/unistr/u32-to-u8.c: New file.
70570
70571         * modules/unistr/u32-to-u16: New file.
70572         * lib/unistr/u32-to-u16.c: New file.
70573
70574         * modules/unistr/u8-check: New file.
70575         * modules/unistr/u16-check: New file.
70576         * modules/unistr/u32-check: New file.
70577         * lib/unistr/u8-check.c: New file.
70578         * lib/unistr/u16-check.c: New file.
70579         * lib/unistr/u32-check.c: New file.
70580
70581         * modules/unistr/u8-chr: New file.
70582         * modules/unistr/u16-chr: New file.
70583         * modules/unistr/u32-chr: New file.
70584         * lib/unistr/u8-chr.c: New file.
70585         * lib/unistr/u16-chr.c: New file.
70586         * lib/unistr/u32-chr.c: New file.
70587
70588         * modules/unistr/u8-cmp: New file.
70589         * modules/unistr/u16-cmp: New file.
70590         * modules/unistr/u32-cmp: New file.
70591         * lib/unistr/u8-cmp.c: New file.
70592         * lib/unistr/u16-cmp.c: New file.
70593         * lib/unistr/u32-cmp.c: New file.
70594
70595         * modules/unistr/u8-cpy: New file.
70596         * modules/unistr/u16-cpy: New file.
70597         * modules/unistr/u32-cpy: New file.
70598         * lib/unistr/u8-cpy.c: New file.
70599         * lib/unistr/u16-cpy.c: New file.
70600         * lib/unistr/u32-cpy.c: New file.
70601         * lib/unistr/u-cpy.h: New file.
70602
70603         * modules/unistr/u8-cpy-alloc: New file.
70604         * modules/unistr/u16-cpy-alloc: New file.
70605         * modules/unistr/u32-cpy-alloc: New file.
70606         * lib/unistr/u8-cpy-alloc.c: New file.
70607         * lib/unistr/u16-cpy-alloc.c: New file.
70608         * lib/unistr/u32-cpy-alloc.c: New file.
70609         * lib/unistr/u-cpy-alloc.h: New file.
70610
70611         * modules/unistr/u8-endswith: New file.
70612         * modules/unistr/u16-endswith: New file.
70613         * modules/unistr/u32-endswith: New file.
70614         * lib/unistr/u8-endswith.c: New file.
70615         * lib/unistr/u16-endswith.c: New file.
70616         * lib/unistr/u32-endswith.c: New file.
70617         * lib/unistr/u-endswith.h: New file.
70618
70619         * modules/unistr/u8-mblen: New file.
70620         * modules/unistr/u16-mblen: New file.
70621         * modules/unistr/u32-mblen: New file.
70622         * lib/unistr/u8-mblen.c: New file.
70623         * lib/unistr/u16-mblen.c: New file.
70624         * lib/unistr/u32-mblen.c: New file.
70625
70626         * modules/unistr/u8-mbtouc: New file.
70627         * modules/unistr/u16-mbtouc: New file.
70628         * modules/unistr/u32-mbtouc: New file.
70629         * lib/unistr/u8-mbtouc.c: New file.
70630         * lib/unistr/u16-mbtouc.c: New file.
70631         * lib/unistr/u32-mbtouc.c: New file.
70632
70633         * modules/unistr/u8-mbtouc-safe: New file.
70634         * modules/unistr/u16-mbtouc-safe: New file.
70635         * modules/unistr/u32-mbtouc-safe: New file.
70636         * lib/unistr/u8-mbtouc-safe.c: New file.
70637         * lib/unistr/u16-mbtouc-safe.c: New file.
70638         * lib/unistr/u32-mbtouc-safe.c: New file.
70639
70640         * modules/unistr/u8-move: New file.
70641         * modules/unistr/u16-move: New file.
70642         * modules/unistr/u32-move: New file.
70643         * lib/unistr/u8-move.c: New file.
70644         * lib/unistr/u16-move.c: New file.
70645         * lib/unistr/u32-move.c: New file.
70646         * lib/unistr/u-move.h: New file.
70647
70648         * modules/unistr/u8-next: New file.
70649         * modules/unistr/u16-next: New file.
70650         * modules/unistr/u32-next: New file.
70651         * lib/unistr/u8-next.c: New file.
70652         * lib/unistr/u16-next.c: New file.
70653         * lib/unistr/u32-next.c: New file.
70654
70655         * modules/unistr/u8-prev: New file.
70656         * modules/unistr/u16-prev: New file.
70657         * modules/unistr/u32-prev: New file.
70658         * lib/unistr/u8-prev.c: New file.
70659         * lib/unistr/u16-prev.c: New file.
70660         * lib/unistr/u32-prev.c: New file.
70661
70662         * modules/unistr/u8-set: New file.
70663         * modules/unistr/u16-set: New file.
70664         * modules/unistr/u32-set: New file.
70665         * lib/unistr/u8-set.c: New file.
70666         * lib/unistr/u16-set.c: New file.
70667         * lib/unistr/u32-set.c: New file.
70668         * lib/unistr/u-set.h: New file.
70669
70670         * modules/unistr/u8-startswith: New file.
70671         * modules/unistr/u16-startswith: New file.
70672         * modules/unistr/u32-startswith: New file.
70673         * lib/unistr/u8-startswith.c: New file.
70674         * lib/unistr/u16-startswith.c: New file.
70675         * lib/unistr/u32-startswith.c: New file.
70676         * lib/unistr/u-startswith.h: New file.
70677
70678         * modules/unistr/u8-stpcpy: New file.
70679         * modules/unistr/u16-stpcpy: New file.
70680         * modules/unistr/u32-stpcpy: New file.
70681         * lib/unistr/u8-stpcpy.c: New file.
70682         * lib/unistr/u16-stpcpy.c: New file.
70683         * lib/unistr/u32-stpcpy.c: New file.
70684         * lib/unistr/u-stpcpy.h: New file.
70685
70686         * modules/unistr/u8-stpncpy: New file.
70687         * modules/unistr/u16-stpncpy: New file.
70688         * modules/unistr/u32-stpncpy: New file.
70689         * lib/unistr/u8-stpncpy.c: New file.
70690         * lib/unistr/u16-stpncpy.c: New file.
70691         * lib/unistr/u32-stpncpy.c: New file.
70692         * lib/unistr/u-stpncpy.h: New file.
70693
70694         * modules/unistr/u8-strcat: New file.
70695         * modules/unistr/u16-strcat: New file.
70696         * modules/unistr/u32-strcat: New file.
70697         * lib/unistr/u8-strcat.c: New file.
70698         * lib/unistr/u16-strcat.c: New file.
70699         * lib/unistr/u32-strcat.c: New file.
70700         * lib/unistr/u-strcat.h: New file.
70701
70702         * modules/unistr/u8-strchr: New file.
70703         * modules/unistr/u16-strchr: New file.
70704         * modules/unistr/u32-strchr: New file.
70705         * lib/unistr/u8-strchr.c: New file.
70706         * lib/unistr/u16-strchr.c: New file.
70707         * lib/unistr/u32-strchr.c: New file.
70708
70709         * modules/unistr/u8-strcmp: New file.
70710         * modules/unistr/u16-strcmp: New file.
70711         * modules/unistr/u32-strcmp: New file.
70712         * lib/unistr/u8-strcmp.c: New file.
70713         * lib/unistr/u16-strcmp.c: New file.
70714         * lib/unistr/u32-strcmp.c: New file.
70715
70716         * modules/unistr/u8-strcpy: New file.
70717         * modules/unistr/u16-strcpy: New file.
70718         * modules/unistr/u32-strcpy: New file.
70719         * lib/unistr/u8-strcpy.c: New file.
70720         * lib/unistr/u16-strcpy.c: New file.
70721         * lib/unistr/u32-strcpy.c: New file.
70722         * lib/unistr/u-strcpy.h: New file.
70723
70724         * modules/unistr/u8-strcspn: New file.
70725         * modules/unistr/u16-strcspn: New file.
70726         * modules/unistr/u32-strcspn: New file.
70727         * lib/unistr/u8-strcspn.c: New file.
70728         * lib/unistr/u16-strcspn.c: New file.
70729         * lib/unistr/u32-strcspn.c: New file.
70730         * lib/unistr/u-strcspn.h: New file.
70731
70732         * modules/unistr/u8-strdup: New file.
70733         * modules/unistr/u16-strdup: New file.
70734         * modules/unistr/u32-strdup: New file.
70735         * lib/unistr/u8-strdup.c: New file.
70736         * lib/unistr/u16-strdup.c: New file.
70737         * lib/unistr/u32-strdup.c: New file.
70738         * lib/unistr/u-strdup.h: New file.
70739
70740         * modules/unistr/u8-strlen: New file.
70741         * modules/unistr/u16-strlen: New file.
70742         * modules/unistr/u32-strlen: New file.
70743         * lib/unistr/u8-strlen.c: New file.
70744         * lib/unistr/u16-strlen.c: New file.
70745         * lib/unistr/u32-strlen.c: New file.
70746         * lib/unistr/u-strlen.h: New file.
70747
70748         * modules/unistr/u8-strmblen: New file.
70749         * modules/unistr/u16-strmblen: New file.
70750         * modules/unistr/u32-strmblen: New file.
70751         * lib/unistr/u8-strmblen.c: New file.
70752         * lib/unistr/u16-strmblen.c: New file.
70753         * lib/unistr/u32-strmblen.c: New file.
70754
70755         * modules/unistr/u8-strmbtouc: New file.
70756         * modules/unistr/u16-strmbtouc: New file.
70757         * modules/unistr/u32-strmbtouc: New file.
70758         * lib/unistr/u8-strmbtouc.c: New file.
70759         * lib/unistr/u16-strmbtouc.c: New file.
70760         * lib/unistr/u32-strmbtouc.c: New file.
70761
70762         * modules/unistr/u8-strncat: New file.
70763         * modules/unistr/u16-strncat: New file.
70764         * modules/unistr/u32-strncat: New file.
70765         * lib/unistr/u8-strncat.c: New file.
70766         * lib/unistr/u16-strncat.c: New file.
70767         * lib/unistr/u32-strncat.c: New file.
70768         * lib/unistr/u-strncat.h: New file.
70769
70770         * modules/unistr/u8-strncmp: New file.
70771         * modules/unistr/u16-strncmp: New file.
70772         * modules/unistr/u32-strncmp: New file.
70773         * lib/unistr/u8-strncmp.c: New file.
70774         * lib/unistr/u16-strncmp.c: New file.
70775         * lib/unistr/u32-strncmp.c: New file.
70776
70777         * modules/unistr/u8-strncpy: New file.
70778         * modules/unistr/u16-strncpy: New file.
70779         * modules/unistr/u32-strncpy: New file.
70780         * lib/unistr/u8-strncpy.c: New file.
70781         * lib/unistr/u16-strncpy.c: New file.
70782         * lib/unistr/u32-strncpy.c: New file.
70783         * lib/unistr/u-strncpy.h: New file.
70784
70785         * modules/unistr/u8-strnlen: New file.
70786         * modules/unistr/u16-strnlen: New file.
70787         * modules/unistr/u32-strnlen: New file.
70788         * lib/unistr/u8-strnlen.c: New file.
70789         * lib/unistr/u16-strnlen.c: New file.
70790         * lib/unistr/u32-strnlen.c: New file.
70791         * lib/unistr/u-strnlen.h: New file.
70792
70793         * modules/unistr/u8-strpbrk: New file.
70794         * modules/unistr/u16-strpbrk: New file.
70795         * modules/unistr/u32-strpbrk: New file.
70796         * lib/unistr/u8-strpbrk.c: New file.
70797         * lib/unistr/u16-strpbrk.c: New file.
70798         * lib/unistr/u32-strpbrk.c: New file.
70799         * lib/unistr/u-strpbrk.h: New file.
70800
70801         * modules/unistr/u8-strrchr: New file.
70802         * modules/unistr/u16-strrchr: New file.
70803         * modules/unistr/u32-strrchr: New file.
70804         * lib/unistr/u8-strrchr.c: New file.
70805         * lib/unistr/u16-strrchr.c: New file.
70806         * lib/unistr/u32-strrchr.c: New file.
70807
70808         * modules/unistr/u8-strspn: New file.
70809         * modules/unistr/u16-strspn: New file.
70810         * modules/unistr/u32-strspn: New file.
70811         * lib/unistr/u8-strspn.c: New file.
70812         * lib/unistr/u16-strspn.c: New file.
70813         * lib/unistr/u32-strspn.c: New file.
70814         * lib/unistr/u-strspn.h: New file.
70815
70816         * modules/unistr/u8-strstr: New file.
70817         * modules/unistr/u16-strstr: New file.
70818         * modules/unistr/u32-strstr: New file.
70819         * lib/unistr/u8-strstr.c: New file.
70820         * lib/unistr/u16-strstr.c: New file.
70821         * lib/unistr/u32-strstr.c: New file.
70822         * lib/unistr/u-strstr.h: New file.
70823
70824         * modules/unistr/u8-strtok: New file.
70825         * modules/unistr/u16-strtok: New file.
70826         * modules/unistr/u32-strtok: New file.
70827         * lib/unistr/u8-strtok.c: New file.
70828         * lib/unistr/u16-strtok.c: New file.
70829         * lib/unistr/u32-strtok.c: New file.
70830         * lib/unistr/u-strtok.h: New file.
70831
70832         * modules/unistr/u8-uctomb: New file.
70833         * modules/unistr/u16-uctomb: New file.
70834         * modules/unistr/u32-uctomb: New file.
70835         * lib/unistr/u8-uctomb.c: New file.
70836         * lib/unistr/u16-uctomb.c: New file.
70837         * lib/unistr/u32-uctomb.c: New file.
70838
70839         * MODULES.html.sh (Unicode string functions): Add the new modules.
70840
70841 2007-01-08  Bruno Haible  <bruno@clisp.org>
70842
70843         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70844         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70845         subdirectories.
70846
70847 2007-01-08  Karl Berry  <karl@gnu.org>
70848
70849         * doc/error.texi: mention that main() fns must set program_name
70850         when progname is used.
70851
70852 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70853
70854         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70855         WCTYPE_H is empty, for the benefit of builds from non-distclean
70856         directories.  Problem reported by Eric Blake in
70857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70858
70859 2007-01-08  Bruno Haible  <bruno@clisp.org>
70860
70861         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70862         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70863         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70864         PROVIDE_CANONICALIZE_FILENAME_MODE.
70865         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70866
70867 2007-01-08  Bruno Haible  <bruno@clisp.org>
70868
70869         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70870         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70871         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70872         * lib/fts.c: Likewise.
70873         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70874
70875 2006-12-25  Bruno Haible  <bruno@clisp.org>
70876
70877         * modules/utf8-ucs4-safe: New file.
70878         * lib/utf8-ucs4-safe.h: New file.
70879         * lib/unistr/utf8-ucs4-safe.c: New file.
70880
70881         * modules/utf16-ucs4-safe: New file.
70882         * lib/utf16-ucs4-safe.h: New file.
70883         * lib/unistr/utf16-ucs4-safe.c: New file.
70884
70885         * MODULES.html.sh (Unicode string functions): Add the new modules.
70886
70887 2007-01-08  Bruno Haible  <bruno@clisp.org>
70888
70889         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70890         (Depends-on): Add unitypes.
70891         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70892         (u8_mbtouc_aux): Move out to separate file.
70893         (u8_mbtouc): Use ucs4_t, uint8_t types.
70894         * lib/unistr/utf8-ucs4.c: New file.
70895
70896         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70897         (Depends-on): Add unitypes.
70898         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70899         (u16_mbtouc_aux): Move out to separate file.
70900         (u16_mbtouc): Use ucs4_t, uint16_t types.
70901         * lib/unistr/utf16-ucs4.c: New file.
70902
70903         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70904         (Depends-on): Add unitypes.
70905         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70906         (u8_uctomb_aux): Move out to separate file.
70907         (u8_uctomb): Use ucs4_t, uint8_t types.
70908         * lib/unistr/ucs4-utf8.c: New file.
70909
70910         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70911         (Depends-on): Add unitypes.
70912         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70913         (u16_uctomb_aux): Move out to separate file.
70914         (u16_uctomb): Use ucs4_t, uint16_t types.
70915         * lib/unistr/ucs4-utf16.c: New file.
70916
70917 2006-12-25  Bruno Haible  <bruno@clisp.org>
70918
70919         * modules/unitypes: New file.
70920         * lib/unitypes.h: New file.
70921         * MODULES.html.sh (func_all_modules): New section "Unicode string
70922         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70923         this section. Add unitypes.
70924
70925 2007-01-08  Bruno Haible  <bruno@clisp.org>
70926
70927         Avoid variable names that conflict with those from libtool.
70928         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70929         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70930         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70931         library_names_spec to acl_library_names_spec, hardcode_* to
70932         acl_hardcode_*.
70933         Reported by Ralf Wildenhues.
70934
70935 2007-01-08  Bruno Haible  <bruno@clisp.org>
70936
70937         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70938         definition.
70939         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70940         definition.
70941         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70942         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70943         definition.
70944         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70945         definition.
70946         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70947         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70948         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70949         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70950         definition.
70951         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70952         definition.
70953         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70954         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70955         GC_USE_<algorithm>.
70956         * lib/gc-libgcrypt.c: Likewise.
70957         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70958         * modules/gc-arctwo (configure.ac): Likewise.
70959         * modules/gc-des (configure.ac): Likewise.
70960         * modules/gc-hmac-md5 (configure.ac): Likewise.
70961         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70962         * modules/gc-md2 (configure.ac): Likewise.
70963         * modules/gc-md4 (configure.ac): Likewise.
70964         * modules/gc-md5 (configure.ac): Likewise.
70965         * modules/gc-random (configure.ac): Likewise.
70966         * modules/gc-rijndael (configure.ac): Likewise.
70967         * modules/gc-sha1 (configure.ac): Likewise.
70968
70969 2007-01-08  Bruno Haible  <bruno@clisp.org>
70970
70971         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70972         macro definition.
70973         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70974         definition.
70975         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70976         definition.
70977         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70978         * modules/fcntl-safer (configure.ac): Likewise.
70979         * modules/fopen-safer (configure.ac): Likewise.
70980         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70981         GNULIB_FWRITEERROR macro definition.
70982
70983 2007-01-08  Bruno Haible  <bruno@clisp.org>
70984
70985         * m4/gnulib-common.m4: New file.
70986         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70987         (func_get_filelist): Add m4/gnulib-common.m4.
70988
70989 2007-01-08  Bruno Haible  <bruno@clisp.org>
70990
70991         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70992         command.
70993
70994 2007-01-08  Jim Meyering  <jim@meyering.net>
70995
70996         Use a more robust test for a "can't happen" condition.
70997         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70998         narrowed the st_size value.  Presuming the "can't happen" condition
70999         is true, that narrowing could conceivably convert an invalid st_size
71000         value into a valid one.  Instead, use a change based on Matthew
71001         Woehlke's original patch.
71002
71003         Slight readability improvement: use an assert-like macro
71004         in place of literal "abort ()" uses.
71005         * lib/fts.c (fts_assert): Define.
71006         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71007         Use this macro instead of a bare 'abort'.
71008
71009 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71010
71011         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71012         simply work around them.
71013         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71014         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71015         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71016         declaring.
71017         Don't bother to define as macros, since the standard doesn't require it.
71018         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71019         longer worry about IRIX 5.3.
71020         (HAVE_WCTYPE_CTMP_BUG): Remove.
71021
71022 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71025         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71026         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71027         Problems reported by Georg Schwarz for IRIX 5.3.
71028
71029         * gnulib-tool (autoconf_minversion): Take the maximum version number
71030         found, not the minimum.  Problem reported by James Youngman.
71031
71032 2007-01-03  Karl Berry  <karl@gnu.org>
71033
71034         * doc/error.texi: new file, explaining interaction with progname.
71035         * doc/gnulib.texi: include it.  Update copyright.
71036
71037 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71038
71039         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71040         AC_CANONICAL_HOST, to improve autobuild outputs.
71041
71042 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71043             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71044
71045         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71046         sockets, server sockets, and other file descriptors.  Count errors
71047         to compute the return value.  Reorder the code a bit to be easier
71048         to follow.  Don't set event bits that were not requested (except
71049         POLLERR and POLLHUP).
71050
71051 2007-01-01  Bruno Haible  <bruno@clisp.org>
71052
71053         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71054
71055 2007-01-03  Jim Meyering  <jim@meyering.net>
71056
71057         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71058
71059 2007-01-02  Bruno Haible  <bruno@clisp.org>
71060
71061         * modules/settime (Include): Require timespec.h.
71062         * modules/nanosleep (Include): Likewise.
71063
71064 2007-01-01  Bruno Haible  <bruno@clisp.org>
71065
71066         * gnulib-tool (func_emit_copyright_notice): Bump year.
71067         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71068
71069 2007-01-01  Bruno Haible  <bruno@clisp.org>
71070
71071         Improve support for OpenBSD.
71072         * build-aux/config.rpath (libname_spec): Export.
71073         (library_names_spec): New variable. Export.
71074         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71075         library_names_spec from the config.rpath output. Locate shared library
71076         through the name pattern in library_names_spec.
71077
71078 2007-01-01  Eric Blake  <ebb9@byu.net>
71079
71080         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71081
71082 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71085         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71086         assume the C locale, and avoid an "eval" that could cause trouble.
71087         Problem with SORT reported by Bob Proulx.
71088
71089         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71090         Define.  Trivial patch from Henning Nielsen Lund, originally
71091         sent to bug-grep@gnu.org today.
71092
71093 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71096         struct stat.  Problem reported by Henning Nielsen Lund.
71097         * lib/acl.c: Include acl.h first, to check interface.  Don't
71098         bother to include sys/types.h and sys/stat.h again.
71099
71100 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         Import the following change from libc; problem reported by
71103         Sven Verdoolaege.
71104
71105         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71106
71107         [BZ #1373]
71108         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71109
71110 2006-12-28  Jim Meyering  <jim@meyering.net>
71111
71112         * build-aux/announce-gen: Do not assume that the package
71113         builds any of tar.gz, tar.bz2, and .xdelta files.
71114         Suggestion from Simon Josefsson.
71115
71116 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71117
71118         * modules/announce-gen: New file.
71119
71120 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71123         handles its gotchas now.
71124         * lib/mbswidth.c: Likewise.
71125         * lib/wcwidth.h: Likewise.
71126         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71127         and iswcntrl; the wctype module does this stuff now.
71128         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71130         * modules/mbchar (Depends-on): Add wctype.
71131         * modules/mbswidth (Depends-on): Likewise.
71132         * modules/wcwidth (Depends-on): Likewise.
71133
71134 2006-12-27  Eric Blake  <ebb9@byu.net>
71135
71136         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71137         module uses more than what <wctype.h> is required to provide.
71138
71139 2006-12-26  Eric Blake  <ebb9@byu.net>
71140
71141         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71142
71143 2006-12-26  Eric Blake  <ebb9@byu.net>
71144
71145         * modules/absolute-header: New module.
71146         * modules/fcntl (Depends-on): Depend on it.
71147         * modules/inttypes (Depends-on): Likewise.
71148         * modules/stdint (Depends-on): Likewise.
71149         * modules/sys_stat (Depends-on): Likewise.
71150         * modules/wctype (Depends-on): Likewise.
71151         * MODULES.html.sh (Support for building libraries and
71152         executables): Document it.
71153
71154 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71155
71156         * gnulib-tool (SED): Remove, undoing previous change.
71157         The problem was that it broke coreutils on Solaris, because
71158         "sed --posix" leaked into a makefile.
71159         (sed): New alias, if 'alias' and GNU sed.
71160
71161 2006-12-24  Jim Meyering  <jim@meyering.net>
71162
71163         Work around an fchownat bug in glibc-2.4:
71164         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71165         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71166         in spite of the -P option.
71167         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71168         New macros.
71169         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71170         * modules/openat (Files): Add lib/fchownat.c.
71171         * lib/openat.c (fchownat): Don't define here.  Move to...
71172         * lib/fchownat.c: ...this new file.
71173
71174 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         Fix bug reported by Bruno Haible in
71177         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71178         where quotearg.c didn't compile on Mac OS X 10.2 because it
71179         lacks <wchar.h> and wint_t.
71180         * lib/wctype_.h (__wctype_wint_t): New type.
71181         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71182         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71183         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71184         Arg is now of type __wctype_wint_t, not wint_t.
71185         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71186         substitute HAVE_WINT_T.
71187         * modules/wctype (Files): Add m4/wint_t.m4.
71188         (wctype.h): Substitute HAVE_WINT_T.
71189
71190 2006-12-23  Bruno Haible  <bruno@clisp.org>
71191
71192         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71193
71194 2006-12-23  Bruno Haible  <bruno@clisp.org>
71195
71196         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71197         S_ISLNK.
71198         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71199         mingw.
71200
71201 2006-12-22  Bruno Haible  <bruno@clisp.org>
71202
71203         * lib/copy-file.c: Include acl.h.
71204         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71205         Close the file descriptors only after being done with copy_acl.
71206         * modules/copy-file (Depends-on): Add acl.
71207
71208 2006-12-22  Bruno Haible  <bruno@clisp.org>
71209
71210         * gnulib-tool (SED): New variable.
71211         Use $SED instead of sed everywhere.
71212
71213 2006-12-22  Bruno Haible  <bruno@clisp.org>
71214
71215         * modules/no-c++: New file.
71216         * m4/no-c++.m4: New file.
71217         * MODULES.html.sh (Support for building libraries and executables):
71218         Add no-c++.
71219
71220 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71223         Include <limits.h>, and use its INT_MAX to rewrite the
71224         j loop so that it does not overflow 'int'.  Problem reported by
71225         Ralf Wildenhues in
71226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71227         Play it safe by shifting left by 1 rather than multiplying by 2,
71228         as GCC is less likely to optimize this away when the value
71229         is signed (when it assumes overflow leads to undefined behavior).
71230         Also, don't assume time_t uses two's complement.
71231
71232 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71233
71234         * MODULES.html.sh: New module wctype.
71235         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71236         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71237         <wctype.h>, since the new wctype module should fix this.
71238         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71239         the wctype module should arrange for it.
71240         * lib/regex_internal.h: Likewise.
71241         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71242         since the wctype module should handle this now.
71243         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71244         * modules/fnmatch (Depends-on): Add wctype.
71245         * modules/quotearg (Depends-on): Likewise.
71246         * modules/regex (Depends-on): Likewise.
71247
71248 2006-12-19  Bruno Haible  <bruno@clisp.org>
71249
71250         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71251         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71252
71253 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71254
71255         * modules/savewd (Depends-on): Fix dependency on fcntl.
71256
71257 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71260         conforms to C99, rather than relying on the user's environment
71261         setting of STDINT_H.
71262
71263 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71264         and Eric Blake  <ebb9@byu.net>
71265
71266         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71267         This is more consistent with the other defines here.
71268         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71269         Port to z/OS.  Problem reported by Paul Gilmartin.
71270         Change local vars to use gl_ prefix rather than ac_.
71271         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71272         with other defines.
71273         * modules/double-slash-root: New module.
71274         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71275         (Depends-on): Add double-slash-root.
71276         * MODULES.html.sh (File system functions): Mention new module.
71277
71278 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71279
71280         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71281         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71282         This is for the benefit of gzip, which doesn't do i18n.
71283
71284 2006-12-12  Jim Meyering  <jim@meyering.net>
71285
71286         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71287         Reported by Andreas Schwab <schwab@suse.de>.
71288
71289 2006-12-12  Bruno Haible  <bruno@clisp.org>
71290
71291         Merge these changes.
71292         2006-09-05  Bruno Haible  <bruno@clisp.org>
71293         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71294         iconv_alloc succeeded.
71295         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71296         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71297         test for " && dest " at the end - dest is always != NULL there. Call
71298         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71299         with 2xNULL arguments, also to flush the state storage. Handle the
71300         IRIX iconv behaviour. Realloc the final result, to throw away unused
71301         memory.
71302
71303 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71306         and fchmodat unconditionally, since glibc 2.4 has them.
71307         Problem reported by Arkadiusz Miskiewicz.
71308
71309 2006-12-10  Bruno Haible  <bruno@clisp.org>
71310
71311         * gnulib-tool (func_import): Show the include files only for those
71312         modules that are copied and specified.
71313         Reported by Karl Berry.
71314
71315 2006-12-08  Jim Meyering  <jim@meyering.net>
71316
71317         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71318         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71319
71320         * build-aux/announce-gen: Add two new options, both optional:
71321         --bootstrap-tools=TOOL_LIST
71322               a comma-separated list of tools, e.g.,
71323               autoconf,automake,bison,gnulib
71324         --gnulib-snapshot-date=DATE
71325               if gnulib is in the bootstrap tool list,
71326               then report this as the snapshot date.
71327               If not specified, use the current date/time.
71328               If you specify a date here, be sure it's UTC.
71329
71330 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71331
71332         * tests/test-argp-2.sh: Fix test to match actual output.
71333         (func_compare): Fix sed script to be portable.
71334
71335 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71336
71337         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71338         workaround for this case.  It is not autoconfigured now; offhand
71339         it's hard to see how to autoconfigure it.
71340
71341 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71342
71343         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71344         a directory that is about to be chowned.  Such a directory's
71345         initial file permissions should permit the owner only and this
71346         should not be changed until after the chown, since the group and
71347         other bits would be incorrect if they granted permission before
71348         the chown.
71349
71350         Fix porting problem for iswctype reported by Georg Schwarz in:
71351         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71352         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71353         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71354         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71355         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71356
71357 2006-12-03  Jim Meyering  <jim@meyering.net>
71358
71359         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71360         p->fts_statp may not yet be defined.
71361         (fts_read): Instead, set it in the caller, once p->fts_statp is
71362         sure to be defined, and corresponds to a top-level directory.
71363         This bug made du -x fail.  Here's the coreutils test case:
71364         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71365         Reported by Mike Frysinger.
71366
71367 2006-12-01  Jim Meyering  <jim@meyering.net>
71368
71369         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71370         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71371         Reported by Simon Josefsson.
71372
71373 2006-11-30  Jim Meyering  <jim@meyering.net>
71374
71375         * m4/warning.m4: Use the all-permissive copyright notice
71376         recommended by RMS (rather than LGPL).
71377         * m4/vararrays.m4: Likewise.
71378         * m4/flexmember.m4: Likewise.
71379
71380 2006-11-29  Bruno Haible  <bruno@clisp.org>
71381
71382         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71383         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71384         using +=.
71385         Reported by Simon Josefsson <simon@josefsson.org>.
71386
71387 2006-11-28  James Youngman <jay@gnu.org>
71388
71389         * README: Advise users that they might find the bug-gnulib@gnu.org
71390         and autotools-announce@gnu.org mailing lists useful.
71391
71392 2006-11-28  Bruno Haible  <bruno@clisp.org>
71393
71394         * m4/ptrdiff_max.m4: Remove file.
71395
71396 2006-11-21  Bruno Haible  <bruno@clisp.org>
71397
71398         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71399         _AC_COMPUTE_INT.
71400         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71401         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71402         _AC_COMPUTE_INT.
71403         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71404         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71405         _AC_COMPUTE_INT.
71406         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71407
71408 2006-11-28  Jim Meyering  <jim@meyering.net>
71409
71410         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71411         warning from "gcc -Wshadow" about shadowing the builtin.
71412
71413 2006-11-27  Bruno Haible  <bruno@clisp.org>
71414
71415         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71416         _AC_COMPUTE_INT.
71417         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71418
71419 2006-11-27  Bruno Haible  <bruno@clisp.org>
71420             Paul Eggert  <eggert@cs.ucla.edu>
71421
71422         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71423
71424 2006-11-26  Bruno Haible  <bruno@clisp.org>
71425
71426         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71427         noinst_LTLIBRARIES.
71428
71429 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71430             Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71433         if compiling with "gcc -ansi".
71434
71435 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         Fix some incompatibilities with gcc -ansi -pedantic.
71438         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71439         if compiling pedantically with GCC, unless it's C99 or later.
71440         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71441         it mishandles gcc -ansi -pedantic as well.
71442         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71443         if gcc -pedantic.
71444         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71445         initializers for struct if -pedantic, unless it's C99 or later.
71446
71447 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71448
71449         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71450         Don't close an fd more than once. Identical atimes indicate
71451         success, not failure.
71452
71453 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71454
71455         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71456
71457 2006-11-23  Jim Meyering  <jim@meyering.net>
71458
71459         * build-aux/announce-gen: New file.  From coreutils.
71460
71461 2006-11-22  Jim Meyering  <jim@meyering.net>
71462
71463         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71464         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71465         (fts_read): Use a temporary to narrow the overused st_size member
71466         before using it in a switch statement.  Reported by Matthew Woehlke.
71467
71468         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71469         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71470
71471 2006-11-20  Bruno Haible  <bruno@clisp.org>
71472
71473         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71474         changequote instead of pairs of brackets.
71475         Reported by Andreas Schwab <schwab@suse.de>.
71476
71477 2006-11-21  Jim Meyering  <jim@meyering.net>
71478
71479         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71480         so as to remain compatible with older compilers.
71481         Patch from Michael Deutschmann.
71482
71483 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71484
71485         * MODULES.html.sh (File system functions): Add openat.
71486
71487         * lib/openat.h (rpl_fstatat): New macro, if
71488         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71489         (fstatat): Define to rpl_fstatat under the same conditions,
71490         unless COMPILING_FSTATAT.
71491         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71492         seems to have the bug.
71493         * lib/fstatat.c: New file.
71494         * modules/openat (Files): Add it.
71495
71496 2006-11-20  Bruno Haible  <bruno@clisp.org>
71497
71498         * Makefile: New file.
71499
71500 2006-11-20  Jim Meyering  <jim@meyering.net>
71501
71502         The beginnings of syntax-related checks for gnulib.
71503         * lib/Makefile: New file.
71504         * lib/t-idcache: New script.  Ensure that the two halves of
71505         idcache.c stay in sync.
71506
71507         * lib/idcache.c: Adjust comments in user- and group- portions to
71508         be more accurate, and to be consistent with one another.
71509
71510 2006-11-20  Jim Meyering  <jim@meyering.net>
71511
71512         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71513         continue using the flexible array member (thus, this module performs
71514         half as many malloc calls), with the addition that...
71515         (getgroup, getuser): Consistently record a non-match via an empty
71516         "name" string, and map an empty string match to a NULL return value.
71517         * modules/idcache (Depends-on): Re-add flexmember.
71518
71519         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71520         (getuidbyname, getgroup, getgidbyname): Likewise.
71521
71522         Use cleaner syntax: NULL rather than 0.
71523         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71524
71525 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71526
71527         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71528         It mishandled the case where the group was missing.
71529         Problem reported by Greg Schafer.
71530         * modules/idcache: Likewise.
71531
71532 2006-11-18  Jim Meyering  <jim@meyering.net>
71533
71534         * check-module (%exempt_header): Add exception for some
71535         conditionally-included headers.
71536
71537         * modules/i-ring (Depends-on): Add verify.
71538         (License): Change to LGPL.
71539
71540 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71541
71542         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71543         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71544         and inttostr.h.  Use snprintf rather than uinttostr, so that
71545         LGPLed code doesn't depend on GPLed.
71546
71547 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71548
71549         * modules/inline (License): Change from GPL to LGPL.
71550
71551 2006-11-17  Jim Meyering  <jim@meyering.net>
71552
71553         * modules/d-type (License): Switch to LGPL.
71554
71555 2006-11-15  Bruno Haible  <bruno@clisp.org>
71556
71557         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71558
71559 2006-11-15  Eric Blake  <ebb9@byu.net>
71560
71561         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71562         the module dependency.
71563
71564 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71565             Bruno Haible  <bruno@clisp.org>
71566
71567         * gnulib-tool (func_create_testdir): Add license consistency check.
71568
71569 2006-11-15  Eric Blake  <ebb9@byu.net>
71570
71571         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71572         random "(cached)" in configure output.
71573
71574 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71575
71576         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71577         test for conforming inttypes.h is both announced and cached.
71578
71579         * MODULES.html.sh (seen_modules, seen_files): New variables.
71580         (func_module): Rewrite to use a few less gnulib-tool and sed
71581         invocations.  Avoid a couple of quadratic algorithms for ...
71582         (missed_modules, missed_files): ... these, with ...
71583         (func_append, func_tmpdir): ... these new functions, from
71584         gnulib-tool.  Analogously, install traps for cleanup.
71585
71586         * tests/test-gc.c (main): Remove unused variables.
71587         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71588
71589 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * modules/inttostr (License): Change to LGPL.
71592
71593 2006-11-14  Eric Blake  <ebb9@byu.net>
71594
71595         * modules/tempname (License): Change to LGPL.
71596
71597 2006-11-14  Eric Blake  <ebb9@byu.net>
71598
71599         * doc/functions.texi (Function Portability): *printf functions on
71600         Cygwin now understand all POSIX size specifiers.
71601
71602 2006-11-14  Bruno Haible  <bruno@clisp.org>
71603
71604         * modules/c-ctype (License): Change to LGPL.
71605
71606 2006-11-12  Bruno Haible  <bruno@clisp.org>
71607
71608         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71609         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71610         for GNOME libraries, for which the include files are installed in
71611         subdirectories of $prefix/include.
71612
71613 2006-11-12  Bruno Haible  <bruno@clisp.org>
71614
71615         * m4/lib-link.m4: Require at least autoconf-2.54.
71616         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71617         name to underscores for the --with option.
71618
71619 2006-11-13  Bruno Haible  <bruno@clisp.org>
71620
71621         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71622         the tests directory.
71623         Reported by Ralf Wildenhues.
71624
71625 2006-11-13  Bruno Haible  <bruno@clisp.org>
71626
71627         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71628         (func_emit_initmacro_end): Undo the override here.
71629         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71630         Works around the famous automake error in coreutils.
71631
71632 2006-11-13  Eric Blake  <ebb9@byu.net>
71633
71634         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71635         element, not its node.
71636
71637 2006-11-12  Bruno Haible  <bruno@clisp.org>
71638
71639         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71640         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71641
71642 2006-11-12  Bruno Haible  <bruno@clisp.org>
71643
71644         * gnulib-tool: New option --local-symlink.
71645         (func_usage): Document it.
71646         (lsymbolic): New variable.
71647         (func_import, func_create_testdir): If --symlink was not specified,
71648         test whether --local-symlink was specified and the file comes from
71649         the local_gnulib_dir.
71650
71651 2006-11-12  Bruno Haible  <bruno@clisp.org>
71652
71653         * gnulib-tool (func_ln): New function.
71654         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71655
71656 2006-11-12  Bruno Haible  <bruno@clisp.org>
71657
71658         Finish support for source files in subdirectories.
71659         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71660         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71661         AUTOMAKE_OPTIONS.
71662         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71663
71664 2006-11-12  Bruno Haible  <bruno@clisp.org>
71665
71666         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71667         EXTRA_lib_SOURCES augmentation.
71668         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71669
71670 2006-11-12  Jim Meyering  <jim@meyering.net>
71671
71672         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71673         file descriptors.  This also averts a failure on systems with
71674         native openat support when a traversed directory lacks "x" access.
71675         * lib/fts_.h: Include "i-ring.h"
71676         (struct FTS) [fts_fd_ring]: New member.
71677         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71678         (FCHDIR): Add parentheses.
71679         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71680         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71681         When descending, rather than simply closing the previous
71682         fts_cwd_fd value, push that file descriptor onto the ring.
71683         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71684         (fts_open): Initialize the new fd_ring member.
71685         (fts_close): Clear the ring.
71686         (fts_safe_changedir): When possible, use our new fd_ring to skip
71687         the diropen and fstat and dev/ino comparison that would normally
71688         accompany a virtual `chdir ("..")'.
71689
71690         * modules/fts (Depends-on): Add i-ring.
71691         * modules/i-ring: New module.
71692         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71693         * m4/i-ring.m4: New file.
71694
71695 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71696
71697         * gnulib-tool (func_create_testdir): Fix replacement of
71698         `build-aux' in configure.ac.  Run autotools in gltests
71699         subdirectory.
71700         (func_create_testdir, func_create_megatestdir, test): There is
71701         no need for '--force' in most autotool invocations in a new
71702         tree.  Actually fail the whole test if any of the tools, or the
71703         configure or make stages fail.
71704
71705         Sync from Automake.
71706         * build-aux/gnupload: Revert last change.  Add pointer to upload
71707         instructions of the GNU Maintenance Instructions.
71708         Suggestion by Karl Berry.
71709
71710 2006-11-10  Jim Meyering  <jim@meyering.net>
71711
71712         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71713
71714 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71717         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71718         (bind_textdomain_codeset) [! ENABLE_NLS]:
71719         Evaluate all the arguments.  That way, callers get compatible behavior
71720         if the arguments have side effects.  Also, it avoids some GCC
71721         diagnostics in some cases; Joel E. Denny reported problems when Bison
71722         was configured with --enable-gcc-warnigs.
71723
71724 2006-11-10  Jim Meyering  <jim@meyering.net>
71725
71726         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71727         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71728         account.
71729
71730 2006-11-10  Jim Meyering  <jim@meyering.net>
71731
71732         * modules/inline: New file/module.
71733         * modules/xalloc (Files): Remove m4/inline.m4.
71734         (Depends-on): Add inline, instead.
71735         * modules/oset: Likewise.
71736         * modules/list: Likewise.
71737
71738 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71741         Problem reported by Matthew Woehlke.
71742
71743 2006-11-09  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/tempname.c (gen_tempname): Remove variant that invokes
71746         __gen_tempname.
71747         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71748         __gen_tempname.
71749
71750 2006-11-08  Bruno Haible  <bruno@clisp.org>
71751
71752         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71753         to 'yes' instead of 'cross-compiling'.
71754
71755 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * lib/quotearg.h (quotearg_free): New decl.
71758         * lib/quotearg.c (quotearg_free): New function.
71759         (slot0, nslots, slotvec0, slotvec):
71760         Now file-scope so that quotearg_free can get at them.
71761
71762 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71763
71764         Sync from Automake.
71765         * build-aux/gnupload: Add missing 'gnu' to example URL.
71766         Report by Karl Berry.
71767
71768 2006-11-08  Bruno Haible  <bruno@clisp.org>
71769
71770         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71771         Suggested by Paul Eggert.
71772
71773 2006-11-08  Jim Meyering  <jim@meyering.net>
71774
71775         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71776         It's already included if !_LIBC.
71777         (fts_safe_changedir): Add a comment.
71778
71779 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71782         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71783         Matthew Woehlke.
71784
71785         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71786         definitions up, to avoid colliding with change below.
71787         (static_inline) [HAVE_INLINE]: New macro.
71788         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71789         Provide extern decls when !HAVE_INLINE.  Do not define unless
71790         static_inline is defined, either by us or by xmalloc.c.  Use
71791         static_inline rather than static inline.
71792         (XCALLOC): Optimize sizeof(T) = 1 case.
71793         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71794
71795 2006-11-07  Bruno Haible  <bruno@clisp.org>
71796
71797         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71798         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71799         AC_C_INLINE.
71800         * modules/xalloc (Files): Add m4/inline.m4.
71801
71802 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71803
71804         * README: Fix typo.
71805         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71806         (Miscellanous Notes): ...from this.
71807
71808 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71811         Mention that offsetof should be used instead of sizeof.
71812         From Bruno Haible.
71813
71814 2006-11-07  Bruno Haible  <bruno@clisp.org>
71815
71816         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71817
71818 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71819
71820         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71821         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71822         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71823         (gl_tree_add_before, gl_tree_add_after):
71824         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71825         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71826         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71827         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71828         (gl_linked_add_after, gl_linked_add_at): Likewise.
71829         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71830         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71831         (gl_tree_add_before, gl_tree_add_after): Likewise.
71832         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71833         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71834         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71835
71836 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71837
71838         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71839
71840 2006-11-06  Bruno Haible  <bruno@clisp.org>
71841
71842         * m4/inline.m4: New file.
71843         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71844         * modules/list (Files): Add m4/inline.m4.
71845         * modules/oset (Files): Likewise.
71846
71847 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71848
71849         * lib/idcache.c: Include <stddef.h>, for offsetof.
71850         (struct userid.name): Change from char * to a flexible array member.
71851         All uses changed.
71852         * modules/idcache (Depends-on): Add flexmember.
71853
71854         * MODULES.html.sh (Core language properties): New module flexmember.
71855         * modules/flexmember, m4/flexmember.m4: New files.
71856
71857         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71858         inline functions that are identical with the old xnmalloc_inline,
71859         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71860         that we can avoid some unnecessary integer multiplications and
71861         divisions in the common case where the element size is known at
71862         compile time.
71863         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71864         needed.
71865         (xnboundedmalloc): Remove.
71866         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71867         arguments, for consistency with rest of this header.
71868         (xcharalloc): Rewrite using XNMALLOC.
71869         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71870         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71871         versions have been moved to lib/xalloc.h and renamed to be the
71872         non-*_inline versions.
71873         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71874         and xnrealloc functions, since those functions are now inline and
71875         now call us.
71876         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71877         renaming described above.
71878         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71879         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71880         captures the dependency in AC_C_INLINE.
71881
71882         New module canonicalize-lgpl, proposed by Charles Wilson in
71883         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71884         with a few small changes afterwards.
71885         * MODULES.html.sh (File system functions): New module
71886         canonicalize-lgpl.
71887         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71888         and canonicalize_file_name.
71889         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71890         * modules/canonicalize-lgpl: New files.
71891
71892 2006-11-05  Bruno Haible  <bruno@clisp.org>
71893
71894         * gnulib-tool (func_import, func_create_testdir): Create directories
71895         also for files in subdirectories of lib/.
71896
71897 2006-11-05  Bruno Haible  <bruno@clisp.org>
71898
71899         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71900         ANSI C compliant.
71901
71902 2006-11-03  Bruno Haible  <bruno@clisp.org>
71903
71904         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71905         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71906         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71907         (xnboundedmalloc): New inline function.
71908         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71909         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71910         xmalloc.
71911         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71912         xmalloc.
71913         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71914         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71915         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71916         xmalloc.
71917         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71918         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71919         xmalloc.
71920         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71921         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71922         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71923         xmalloc.
71924         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71925         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71926         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71927         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71928         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71929         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71930         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71931
71932 2006-11-03  Bruno Haible  <bruno@clisp.org>
71933
71934         * lib/c-ctype.h [C++]: Define functions without name mangling.
71935         * lib/fwriteerror.h [C++]: Likewise.
71936         * lib/gcd.h [C++]: Likewise.
71937         * lib/linebreak.h [C++]: Likewise.
71938
71939 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71940
71941         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71942         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71943         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71944         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71945         Check for functions and headers just once.
71946         Check for declaration of canonicalize_file_name.
71947         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71948
71949 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71950
71951         * gnulib-tool (func_import): Fix typo in actioncmd.
71952
71953 2006-11-02  Bruno Haible  <bruno@clisp.org>
71954
71955         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71956         newline sequence in the Makefile.am snippet as a space, like "make"
71957         does.
71958         Reported by Roger Persson <perrog@gmail.com>.
71959
71960 2006-11-01  Bruno Haible  <bruno@clisp.org>
71961
71962         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71963         already declared in <string.h>.
71964         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71965
71966 2006-11-01  Bruno Haible  <bruno@clisp.org>
71967
71968         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71969         * lib/strcase.h: Include <string.h>.
71970         (strcasecmp): Define to rpl_strcasecmp here.
71971
71972 2006-11-01  Bruno Haible  <bruno@clisp.org>
71973
71974         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71975
71976 2006-11-01  Eric Blake  <ebb9@byu.net>
71977
71978         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71979
71980         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71981
71982 2006-10-29  Bruno Haible  <bruno@clisp.org>
71983
71984         Make it compile in C++ mode.
71985         * lib/full-write.c (full_rw): Add a cast.
71986
71987 2006-11-01  Bruno Haible  <bruno@clisp.org>
71988
71989         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71990         be POSIX compliant.
71991         Reported by Roger Persson <perrog@gmail.com>.
71992
71993 2006-11-01  Eric Blake  <ebb9@byu.net>
71994
71995         * lib/getopt_.h: Fix comments.
71996
71997 2006-10-31  Eric Blake  <ebb9@byu.net>
71998
71999         * modules/tmpdir (Depends-on): Add sys_stat.
72000         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72001         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72002         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72003         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72004         tempname.
72005
72006 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         Avoid some C++ diagnostics reported by Bruno Haible.
72009         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72010         xmalloc.
72011         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72012         (struct slotvec): Move to top level.
72013         (quotearg_n_options): Rewrite to avoid xmalloc.
72014         * lib/xalloc.h (xcharalloc): New function.
72015         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72016         [defined __cplusplus]: Add function template that provides result
72017         type propagation.  This part of the change is from Bruno Haible.
72018
72019 2006-10-29  Bruno Haible  <bruno@clisp.org>
72020
72021         Make it compile in C++ mode.
72022         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72023         * lib/strnlen1.c (strnlen1): Cast memchr result.
72024         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72025         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72026         (create_temp_dir): Rename local variable 'template'.
72027         (compile_csharp_using_sscli): Add cast.
72028         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72029         * lib/findprog.c (find_in_path): Likewise.
72030         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72031         * lib/wait-process.c (register_slave_subprocess): Likewise.
72032
72033 2006-10-22  Bruno Haible  <bruno@clisp.org>
72034
72035         * modules/tsearch: New file.
72036         * lib/tsearch.h: New file.
72037         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72038         * m4/tsearch.m4: New file.
72039         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72040
72041 2006-10-29  Eric Blake  <ebb9@byu.net>
72042
72043         * lib/arcfour.c: Assume config.h.
72044         * lib/arctwo.c: Likewise.
72045         * lib/base64.c: Likewise.
72046         * lib/check-version.c: Likewise.
72047         * lib/crc.c: Likewise.
72048         * lib/des.c: Likewise.
72049         * lib/gc-gnulib.c: Likewise.
72050         * lib/gc-libgcrypt.c: Likewise.
72051         * lib/gc-pbkdf2-sha1.c: Likewise.
72052         * lib/getaddrinfo.c: Likewise.
72053         * lib/getdelim.c: Likewise.
72054         * lib/getline.c: Likewise.
72055         * lib/hmac-md5.c: Likewise.
72056         * lib/hmac-sha1.c: Likewise.
72057         * lib/iconvme.c: Likewise.
72058         * lib/md2.c: Likewise.
72059         * lib/md4.c: Likewise.
72060         * lib/memxor.c: Likewise.
72061         * lib/read-file.c: Likewise.
72062         * lib/readline.c: Likewise.
72063         * lib/rijndael-alg-fst.c: Likewise.
72064         * lib/rijndael-api-fst.c: Likewise.
72065         * lib/xgetdomainname.c: Likewise.
72066
72067 2006-10-28  Eric Blake  <ebb9@byu.net>
72068
72069         * lib/xstrndup.c: Assume config.h.
72070
72071 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72074         stat-macros.h is now for our own macros, whereas stat_h is for
72075         macros in the <sys/stat.h> name space.
72076         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72077         (STAT_MACROS_H): Remove.
72078         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72079         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72080         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72081         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72082         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72083         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72084         Move these macros to ...
72085         * lib/stat_.h: here.  Don't include stat-macros.h.
72086         * lib/canonicalize.c: Don't include stat-macros.h.
72087         * lib/chown.c: Likewise.
72088         * lib/euidaccess.c: Likewise.
72089         * lib/file-type.c: Likewise.
72090         * lib/filemode.c: Likewise.
72091         * lib/glob.c: Likewise.
72092         * lib/isapipe.c: Likewise.
72093         * lib/lchown.c: Likewise.
72094         * lib/lstat.c: Likewise.
72095         * lib/mkdir-p.c: Likewise.
72096         * lib/rmdir.c: Likewise.
72097         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72099         unless mkdir isn't declared, to speed up 'configure'.
72100         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72101         would define all the S_* symbols.
72102         * modules/canonicalize (Depends-on):
72103         Depend on sys_stat, not stat-macros.
72104         * modules/chown: Likewise.
72105         * modules/euidaccess: Likewise.
72106         * modules/filemode: Likewise.
72107         * modules/file-type: Likewise.
72108         * modules/glob: Likewise.
72109         * modules/isapipe: Likewise.
72110         * modules/lchown: Likewise.
72111         * modules/lstat: Likewise.
72112         * modules/mkancesdirs: Likewise.
72113         * modules/rmdir: Likewise.
72114         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72115         * modules/modechange: Likewise.
72116         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72117         (configure.ac): Remove gl_STAT_MACROS.
72118         * modules/sys_stat (Depends-on): Remove stat-macros.
72119
72120 2006-10-27  Bruno Haible  <bruno@clisp.org>
72121
72122         * m4/signed.m4: Remove file.
72123         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72124         invocation.
72125         * modules/vasnprintf (Files): Remove m4/signed.m4.
72126
72127 2006-10-27  Bruno Haible  <bruno@clisp.org>
72128
72129         Update to GNU gettext 0.16.
72130         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72131         m4/inttypes-h.m4, m4/signed.m4.
72132         * m4/gettext.m4: Update to GNU gettext 0.16.
72133         * m4/intl.m4: New file, from GNU gettext.
72134         * m4/intldir.m4: New file, from GNU gettext.
72135         * config/srclist.txt: Update
72136
72137 2006-10-27  Eric Blake  <ebb9@byu.net>
72138
72139         * MODULES.html.sh: Document tempname.
72140         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72141         dependencies.
72142         (Files): Move lib/tempname.c...
72143         * modules/tempname: ...to this new module.
72144         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72145         (gl_PREREQ_TEMPNAME): Move...
72146         * m4/tempname.m4: ...to this new file.
72147         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72148         * modules/sys_stat (Depends-on): Add stat-macros.
72149         * lib/stat_.h (includes): Pick up stat macros.
72150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72151         if stat macros are broken.
72152         * lib/tempname.c (includes): No need to include "stat-macros.h".
72153         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72154         (direxists, __path_search) [!_LIBC]: Don't compile these in
72155         gnulib; the tmpdir module covers that.
72156         * lib/tempname.h: New file.
72157
72158 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * COPYING: Explain how gnulib-tool converts licence headers.
72161         Almost all wording by Eric Blake.
72162
72163 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72164
72165         * lib/mbchar.h (is_basic_table): Make read-only.
72166         * lib/mbchar.c (is_basic_table): Likewise.
72167         Reported by John Darrington.
72168
72169 2006-10-25  Bruno Haible  <bruno@clisp.org>
72170
72171         * lib/progname.h (set_program_name): Undefine before defining.
72172
72173 2006-10-25  Bruno Haible  <bruno@clisp.org>
72174
72175         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72176         false for non-gcc C++ compilers.
72177         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72178
72179 2006-10-24  Bruno Haible  <bruno@clisp.org>
72180
72181         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72182         iconv implementations like Irix iconv.
72183
72184 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         * modules/vararrays: New file.
72187         * m4/vararrays.m4: New file, taken from diffutils.
72188         * MODULES.html.sh: New module vararrays.
72189
72190 2006-10-24  Karl Berry  <karl@gnu.org>
72191
72192         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72193         Don't call GNU Unix.
72194
72195 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72196
72197         * users.txt: Add Libtool.
72198
72199         Sync from Libtool:
72200
72201         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72202
72203         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72204         to gnulib's policy of including config.h unconditionally.
72205
72206 2006-10-24  Bruno Haible  <bruno@clisp.org>
72207
72208         * modules/wcwidth (Files): Add m4/wint_t.m4.
72209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72210         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72211
72212 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72213
72214         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72215         to pacify GCC with some -W flags enabled.  Problem reported by
72216         Bruno Haible.
72217
72218 2006-10-24  Jim Meyering  <jim@meyering.net>
72219
72220         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72221         Reported by Karl Berry.
72222
72223 2006-10-23  Bruno Haible  <bruno@clisp.org>
72224
72225         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72226
72227 2006-10-24  Bruno Haible  <bruno@clisp.org>
72228
72229         * lib/gl_list.h: Use C comment style, not C++ comment style.
72230
72231 2006-10-23  Eric Blake  <ebb9@byu.net>
72232
72233         * lib/getaddrinfo.c (includes): Add missing include.
72234
72235 2006-10-23  Bruno Haible  <bruno@clisp.org>
72236             Paul Eggert  <eggert@cs.ucla.edu>
72237
72238         Ability to rename obstack_free.
72239         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72240         obstack_free.
72241         (obstack_free): Invoke the __obstack_free macro.
72242         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72243
72244 2006-10-23  Bruno Haible  <bruno@clisp.org>
72245             Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72248         __argc, __argv from the declaration. (They are defined as macros on
72249         mingw.)
72250
72251 2006-10-22  Bruno Haible  <bruno@clisp.org>
72252
72253         * doc/gnulib-intro.texi: New file.
72254         * doc/gnulib.texi: Include it.
72255
72256 2006-10-21  Bruno Haible  <bruno@clisp.org>
72257
72258         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72259         "Introduction", "Miscellanous Notes", "Particular Modules".
72260
72261 2006-10-21  Bruno Haible  <bruno@clisp.org>
72262
72263         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72264         Change mostlyclean-local rule to avoid sh syntax error from bash
72265         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72266
72267 2006-10-23  Jim Meyering  <jim@meyering.net>
72268
72269         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72270         in place of snprintf.
72271
72272         * modules/inttostr (Files): Add lib/uinttostr.c.
72273         * lib/uinttostr.c (inttostr): New file/function.
72274         * lib/inttostr.h (uinttostr): Declare.
72275         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72276         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72277         Add uinttostr.
72278         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72279
72280 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72281
72282         * lib/canonicalize.c (ELOOP): Define if not already defined.
72283         Problem reported by Bruno Haible in
72284         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72285
72286 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72287
72288         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72289         Problem reported by Perry Smith and Ville Laurikari.
72290
72291         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72292         uses.
72293
72294 2006-10-19  Bruno Haible  <bruno@clisp.org>
72295
72296         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72297         for mingw.
72298
72299 2006-10-19  Bruno Haible  <bruno@clisp.org>
72300
72301         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72302         Needed for mingw.
72303
72304 2006-10-19  Bruno Haible  <bruno@clisp.org>
72305
72306         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72307
72308 2006-10-19  Bruno Haible  <bruno@clisp.org>
72309
72310         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72311         it.
72312
72313 2006-10-19  Bruno Haible  <bruno@clisp.org>
72314
72315         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72316         invocation.
72317
72318 2006-10-19  Bruno Haible  <bruno@clisp.org>
72319
72320         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72321         mountlist by default.
72322
72323 2006-10-16  Bruno Haible  <bruno@clisp.org>
72324
72325         * lib/c-strstr.c: Include c-strstr.h.
72326
72327 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72328
72329         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72330         in a slash.
72331
72332 2006-10-18  Bruno Haible  <bruno@clisp.org>
72333
72334         * lib/lock.h [C++]: Wrap definitions in extern "C".
72335
72336 2006-10-18  Bruno Haible  <bruno@clisp.org>
72337
72338         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72339         gl_LIBOBJS list.
72340
72341 2006-10-18  Bruno Haible  <bruno@clisp.org>
72342
72343         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72344
72345 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72346
72347         * lib/xstrtol.h: Include gettext.h.
72348         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72349         Problem reported by Eric Blake.
72350         * modules/xstrtol (Depends-on): Add gettext-h.
72351
72352 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72353
72354         * lib/strftime.c (advance): New macro.
72355         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72356         incomplete type, so you can't add 0 to it.  Problem and patch
72357         reported by Eelco Dolstra for dietlibc.
72358
72359 2006-10-18  Jim Meyering  <jim@meyering.net>
72360
72361         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72362         type for a local, and rename it: s/up/user_proc/.
72363
72364 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72365
72366         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72367         READ_UTMP_USER_PROCESS.
72368         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72369
72370 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72371
72372         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72373         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72374
72375 2006-10-17  Eric Blake  <ebb9@byu.net>
72376
72377         * lib/sigprocmask.c (sigprocmask): Fix typo.
72378
72379         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72380
72381         * modules/clean-temp (Makefile.am): Don't add to make output...
72382         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72383         config.h.
72384
72385 2006-10-17  Bruno Haible  <bruno@clisp.org>
72386
72387         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72388         differently if DEFAULT_TEXT_DOMAIN is set.
72389
72390 2006-10-16  Bruno Haible  <bruno@clisp.org>
72391
72392         * lib/clean-temp.c: Include fwriteerror.h.
72393
72394 2006-10-16  Bruno Haible  <bruno@clisp.org>
72395
72396         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72397
72398 2006-10-16  Bruno Haible  <bruno@clisp.org>
72399
72400         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72401         * lib/sigprocmask.h: Include <sys/types.h>.
72402         (sigset_t): Use the system's definition if present.
72403
72404 2006-10-17  Eric Blake  <ebb9@byu.net>
72405
72406         * lib/xvasprintf.c (includes): Assume config.h.
72407         * lib/xasprintf.c (includes): Likewise.
72408
72409 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72412         at least as wide as intmax_t.
72413
72414 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72415
72416         (Imported from Automake.)
72417         * build-aux/gnupload: Update to version 1.1 of directive file.
72418
72419 2006-10-16  Eric Blake  <ebb9@byu.net>
72420
72421         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72422         match Automake 1.10a.
72423
72424 2006-10-14  Bruno Haible  <bruno@clisp.org>
72425
72426         * modules/sigprocmask: New file.
72427         * lib/sigprocmask.h: New file.
72428         * lib/sigprocmask.c: New file.
72429         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72430         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72431         request sigprocmask.o.
72432         (gl_PREREQ_SIGPROCMASK): New macro.
72433         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72434         (Depends-on): Add sigprocmask.
72435         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72436         gt_SIGNALBLOCKING. Test for 'raise' only once.
72437         * lib/fatal-signal.c: Include sigprocmask.h.
72438         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72439         unblock_fatal_signals): Define always.
72440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72441         sigprocmask.
72442
72443 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         Sync from Automake.
72446         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72447         which incorrectly sets the mode of an existing destination
72448         directory.  In some cases the unpatched install-sh could do the
72449         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72450         system.  We hope this is rare in practice, but it's clearly worth
72451         fixing.  Problem reported by Alex Unleashed in
72452         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72453         Also, don't bother to check for -m bugs unless we're using -m;
72454         suggested by Stepan Kasal.
72455
72456 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72457
72458         Sync from Automake.
72459         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72460         `-c' flag, so they appear at the same position as in %FASTDEP%
72461         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72462         which ignores unknown options only after the first non-option.
72463         Bug report against M4 by Nelson H. F. Beebe.
72464
72465 2006-10-13  Jim Meyering  <jim@meyering.net>
72466
72467         Fix a bug in yesterday's change.
72468         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72469         p->fts_statp->st_dev would be used uninitialized.
72470         Ensures that we always call fts_stat on the very first entry.
72471         Miklos Szeredi reported that find -xdev stopped working.
72472
72473 2006-10-12  Bruno Haible  <bruno@clisp.org>
72474
72475         * gnulib-tool (func_get_automake_snippet): Append an automatically
72476         computed EXTRA_DIST augmentation.
72477         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72478         * modules/alloca-opt (Makefile.am): Likewise.
72479         * modules/allocsa (Makefile.am): Likewise.
72480         * modules/arcfour (Makefile.am): Likewise.
72481         * modules/arctwo (Makefile.am): Likewise.
72482         * modules/argmatch (Makefile.am): Likewise.
72483         * modules/argz (Makefile.am): Likewise.
72484         * modules/atexit (Makefile.am): Likewise.
72485         * modules/backupfile (Makefile.am): Likewise.
72486         * modules/byteswap (Makefile.am): Likewise.
72487         * modules/c-strtod (Makefile.am): Likewise.
72488         * modules/c-strtold (Makefile.am): Likewise.
72489         * modules/calloc (Makefile.am): Likewise.
72490         * modules/canon-host (Makefile.am): Likewise.
72491         * modules/canonicalize (Makefile.am): Likewise.
72492         * modules/chdir-long (Makefile.am): Likewise.
72493         * modules/chdir-safer (Makefile.am): Likewise.
72494         * modules/check-version (Makefile.am): Likewise.
72495         * modules/chown (Makefile.am): Likewise.
72496         * modules/cloexec (Makefile.am): Likewise.
72497         * modules/close-stream (Makefile.am): Likewise.
72498         * modules/closeout (Makefile.am): Likewise.
72499         * modules/crc (Makefile.am): Likewise.
72500         * modules/csharpexec (Makefile.am): Likewise.
72501         * modules/cycle-check (Makefile.am): Likewise.
72502         * modules/des (Makefile.am): Likewise.
72503         * modules/dev-ino (Makefile.am): Likewise.
72504         * modules/dirfd (Makefile.am): Likewise.
72505         * modules/dirname (Makefile.am): Likewise.
72506         * modules/dup2 (Makefile.am): Likewise.
72507         * modules/eealloc (Makefile.am): Likewise.
72508         * modules/error (Makefile.am): Likewise.
72509         * modules/euidaccess (Makefile.am): Likewise.
72510         * modules/exclude (Makefile.am): Likewise.
72511         * modules/exitfail (Makefile.am): Likewise.
72512         * modules/fcntl-safer (Makefile.am): Likewise.
72513         * modules/fcntl (Makefile.am): Likewise.
72514         * modules/file-type (Makefile.am): Likewise.
72515         * modules/fileblocks (Makefile.am): Likewise.
72516         * modules/filemode (Makefile.am): Likewise.
72517         * modules/filenamecat (Makefile.am): Likewise.
72518         * modules/fnmatch (Makefile.am): Likewise.
72519         * modules/fopen-safer (Makefile.am): Likewise.
72520         * modules/fpending (Makefile.am): Likewise.
72521         * modules/fprintftime (Makefile.am): Likewise.
72522         * modules/free (Makefile.am): Likewise.
72523         * modules/fsusage (Makefile.am): Likewise.
72524         * modules/ftruncate (Makefile.am): Likewise.
72525         * modules/fts (Makefile.am): Likewise.
72526         * modules/gc-arcfour (Makefile.am): Likewise.
72527         * modules/gc-des (Makefile.am): Likewise.
72528         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72529         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72530         * modules/gc-md4 (Makefile.am): Likewise.
72531         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72532         * modules/gc-sha1 (Makefile.am): Likewise.
72533         * modules/gc (Makefile.am): Likewise.
72534         * modules/getaddrinfo (Makefile.am): Likewise.
72535         * modules/getcwd (Makefile.am): Likewise.
72536         * modules/getdelim (Makefile.am): Likewise.
72537         * modules/getdomainname (Makefile.am): Likewise.
72538         * modules/getgroups (Makefile.am): Likewise.
72539         * modules/gethostname (Makefile.am): Likewise.
72540         * modules/gethrxtime (Makefile.am): Likewise.
72541         * modules/getline (Makefile.am): Likewise.
72542         * modules/getloadavg (Makefile.am): Likewise.
72543         * modules/getlogin_r (Makefile.am): Likewise.
72544         * modules/getndelim2 (Makefile.am): Likewise.
72545         * modules/getopt (Makefile.am): Likewise.
72546         * modules/getpagesize (Makefile.am): Likewise.
72547         * modules/getpass-gnu (Makefile.am): Likewise.
72548         * modules/getpass (Makefile.am): Likewise.
72549         * modules/getsubopt (Makefile.am): Likewise.
72550         * modules/gettime (Makefile.am): Likewise.
72551         * modules/gettimeofday (Makefile.am): Likewise.
72552         * modules/getugroups (Makefile.am): Likewise.
72553         * modules/getusershell (Makefile.am): Likewise.
72554         * modules/glob (Makefile.am): Likewise.
72555         * modules/group-member (Makefile.am): Likewise.
72556         * modules/hard-locale (Makefile.am): Likewise.
72557         * modules/hash (Makefile.am): Likewise.
72558         * modules/hmac-md5 (Makefile.am): Likewise.
72559         * modules/hmac-sha1 (Makefile.am): Likewise.
72560         * modules/human (Makefile.am): Likewise.
72561         * modules/idcache (Makefile.am): Likewise.
72562         * modules/imaxabs (Makefile.am): Likewise.
72563         * modules/imaxdiv (Makefile.am): Likewise.
72564         * modules/inet_ntop (Makefile.am): Likewise.
72565         * modules/inet_pton (Makefile.am): Likewise.
72566         * modules/intprops (Makefile.am): Likewise.
72567         * modules/inttostr (Makefile.am): Likewise.
72568         * modules/inttypes (Makefile.am): Likewise.
72569         * modules/isapipe (Makefile.am): Likewise.
72570         * modules/javaversion (Makefile.am): Likewise.
72571         * modules/lchmod (Makefile.am): Likewise.
72572         * modules/lchown (Makefile.am): Likewise.
72573         * modules/localcharset (Makefile.am): Likewise.
72574         * modules/long-options (Makefile.am): Likewise.
72575         * modules/lstat (Makefile.am): Likewise.
72576         * modules/malloc (Makefile.am): Likewise.
72577         * modules/mathl (Makefile.am): Likewise.
72578         * modules/mbchar (Makefile.am): Likewise.
72579         * modules/md2 (Makefile.am): Likewise.
72580         * modules/md4 (Makefile.am): Likewise.
72581         * modules/md5 (Makefile.am): Likewise.
72582         * modules/memcasecmp (Makefile.am): Likewise.
72583         * modules/memchr (Makefile.am): Likewise.
72584         * modules/memcmp (Makefile.am): Likewise.
72585         * modules/memcoll (Makefile.am): Likewise.
72586         * modules/memcpy (Makefile.am): Likewise.
72587         * modules/memmem (Makefile.am): Likewise.
72588         * modules/memmove (Makefile.am): Likewise.
72589         * modules/mempcpy (Makefile.am): Likewise.
72590         * modules/memrchr (Makefile.am): Likewise.
72591         * modules/memset (Makefile.am): Likewise.
72592         * modules/memxor (Makefile.am): Likewise.
72593         * modules/mkancesdirs (Makefile.am): Likewise.
72594         * modules/mkdir-p (Makefile.am): Likewise.
72595         * modules/mkdir (Makefile.am): Likewise.
72596         * modules/mkdtemp (Makefile.am): Likewise.
72597         * modules/mkstemp (Makefile.am): Likewise.
72598         * modules/mktime (Makefile.am): Likewise.
72599         * modules/modechange (Makefile.am): Likewise.
72600         * modules/mountlist (Makefile.am): Likewise.
72601         * modules/nanosleep (Makefile.am): Likewise.
72602         * modules/obstack (Makefile.am): Likewise.
72603         * modules/openat (Makefile.am): Likewise.
72604         * modules/pagealign_alloc (Makefile.am): Likewise.
72605         * modules/pathmax (Makefile.am): Likewise.
72606         * modules/physmem (Makefile.am): Likewise.
72607         * modules/poll (Makefile.am): Likewise.
72608         * modules/posixtm (Makefile.am): Likewise.
72609         * modules/posixver (Makefile.am): Likewise.
72610         * modules/putenv (Makefile.am): Likewise.
72611         * modules/quote (Makefile.am): Likewise.
72612         * modules/quotearg (Makefile.am): Likewise.
72613         * modules/raise (Makefile.am): Likewise.
72614         * modules/read-file (Makefile.am): Likewise.
72615         * modules/readline (Makefile.am): Likewise.
72616         * modules/readlink (Makefile.am): Likewise.
72617         * modules/readtokens (Makefile.am): Likewise.
72618         * modules/readutmp (Makefile.am): Likewise.
72619         * modules/realloc (Makefile.am): Likewise.
72620         * modules/regex (Makefile.am): Likewise.
72621         * modules/rename-dest-slash (Makefile.am): Likewise.
72622         * modules/rename (Makefile.am): Likewise.
72623         * modules/rijndael (Makefile.am): Likewise.
72624         * modules/rmdir (Makefile.am): Likewise.
72625         * modules/rpmatch (Makefile.am): Likewise.
72626         * modules/safe-read (Makefile.am): Likewise.
72627         * modules/safe-write (Makefile.am): Likewise.
72628         * modules/same-inode (Makefile.am): Likewise.
72629         * modules/same (Makefile.am): Likewise.
72630         * modules/save-cwd (Makefile.am): Likewise.
72631         * modules/savedir (Makefile.am): Likewise.
72632         * modules/setenv (Makefile.am): Likewise.
72633         * modules/settime (Makefile.am): Likewise.
72634         * modules/sha1 (Makefile.am): Likewise.
72635         * modules/sig2str (Makefile.am): Likewise.
72636         * modules/snprintf (Makefile.am): Likewise.
72637         * modules/stat-macros (Makefile.am): Likewise.
72638         * modules/stat-time (Makefile.am): Likewise.
72639         * modules/stdbool (Makefile.am): Likewise.
72640         * modules/stdint (Makefile.am): Likewise.
72641         * modules/stdlib-safer (Makefile.am): Likewise.
72642         * modules/stpcpy (Makefile.am): Likewise.
72643         * modules/stpncpy (Makefile.am): Likewise.
72644         * modules/strcase (Makefile.am): Likewise.
72645         * modules/strcasestr (Makefile.am): Likewise.
72646         * modules/strchrnul (Makefile.am): Likewise.
72647         * modules/strcspn (Makefile.am): Likewise.
72648         * modules/strdup (Makefile.am): Likewise.
72649         * modules/strerror (Makefile.am): Likewise.
72650         * modules/strftime (Makefile.am): Likewise.
72651         * modules/strndup (Makefile.am): Likewise.
72652         * modules/strnlen (Makefile.am): Likewise.
72653         * modules/strpbrk (Makefile.am): Likewise.
72654         * modules/strsep (Makefile.am): Likewise.
72655         * modules/strstr (Makefile.am): Likewise.
72656         * modules/strtod (Makefile.am): Likewise.
72657         * modules/strtoimax (Makefile.am): Likewise.
72658         * modules/strtok_r (Makefile.am): Likewise.
72659         * modules/strtol (Makefile.am): Likewise.
72660         * modules/strtoll (Makefile.am): Likewise.
72661         * modules/strtoul (Makefile.am): Likewise.
72662         * modules/strtoull (Makefile.am): Likewise.
72663         * modules/strtoumax (Makefile.am): Likewise.
72664         * modules/strverscmp (Makefile.am): Likewise.
72665         * modules/sys_socket (Makefile.am): Likewise.
72666         * modules/sys_stat (Makefile.am): Likewise.
72667         * modules/sysexits (Makefile.am): Likewise.
72668         * modules/time_r (Makefile.am): Likewise.
72669         * modules/timegm (Makefile.am): Likewise.
72670         * modules/timespec (Makefile.am): Likewise.
72671         * modules/tmpfile-safer (Makefile.am): Likewise.
72672         * modules/trim (Makefile.am): Likewise.
72673         * modules/unistd-safer (Makefile.am): Likewise.
72674         * modules/unlinkdir (Makefile.am): Likewise.
72675         * modules/unlocked-io (Makefile.am): Likewise.
72676         * modules/userspec (Makefile.am): Likewise.
72677         * modules/utime (Makefile.am): Likewise.
72678         * modules/utimecmp (Makefile.am): Likewise.
72679         * modules/utimens (Makefile.am): Likewise.
72680         * modules/vasnprintf (Makefile.am): Likewise.
72681         * modules/vasprintf (Makefile.am): Likewise.
72682         * modules/vsnprintf (Makefile.am): Likewise.
72683         * modules/xalloc (Makefile.am): Likewise.
72684         * modules/xgetcwd (Makefile.am): Likewise.
72685         * modules/xnanosleep (Makefile.am): Likewise.
72686         * modules/xreadlink (Makefile.am): Likewise.
72687         * modules/xstrtod (Makefile.am): Likewise.
72688         * modules/xstrtol (Makefile.am): Likewise.
72689         * modules/xstrtold (Makefile.am): Likewise.
72690         * modules/yesno (Makefile.am): Likewise.
72691         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72692
72693 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         * modules/error (Makefile.am): Distribute files through
72696         EXTRA_DIST, not lib_SOURCES.
72697
72698 2006-10-12  Eric Blake  <ebb9@byu.net>
72699
72700         * modules/error (Makefile.am): Distribute files in /lib.
72701         * modules/obstack (Makefile.am): Likewise.
72702
72703 2006-10-12  Bruno Haible  <bruno@clisp.org>
72704
72705         * modules/acl (Makefile.am): Distribute all files in lib/ through
72706         EXTRA_DIST.
72707         * modules/arcfour (Makefile.am): Likewise.
72708         * modules/arctwo (Makefile.am): Likewise.
72709         * modules/argmatch (Makefile.am): Likewise.
72710         * modules/argz (Makefile.am): Likewise.
72711         * modules/atexit (Makefile.am): Likewise.
72712         * modules/backupfile (Makefile.am): Likewise.
72713         * modules/c-strtod (Makefile.am): Likewise.
72714         * modules/c-strtold (Makefile.am): Likewise.
72715         * modules/calloc (Makefile.am): Likewise.
72716         * modules/canon-host (Makefile.am): Likewise.
72717         * modules/canonicalize (Makefile.am): Likewise.
72718         * modules/chdir-long (Makefile.am): Likewise.
72719         * modules/chdir-safer (Makefile.am): Likewise.
72720         * modules/check-version (Makefile.am): Likewise.
72721         * modules/chown (Makefile.am): Likewise.
72722         * modules/cloexec (Makefile.am): Likewise.
72723         * modules/close-stream (Makefile.am): Likewise.
72724         * modules/closeout (Makefile.am): Likewise.
72725         * modules/crc (Makefile.am): Likewise.
72726         * modules/cycle-check (Makefile.am): Likewise.
72727         * modules/des (Makefile.am): Likewise.
72728         * modules/dirfd (Makefile.am): Likewise.
72729         * modules/dirname (Makefile.am): Likewise.
72730         * modules/dup2 (Makefile.am): Likewise.
72731         * modules/euidaccess (Makefile.am): Likewise.
72732         * modules/exclude (Makefile.am): Likewise.
72733         * modules/exitfail (Makefile.am): Likewise.
72734         * modules/fcntl-safer (Makefile.am): Likewise.
72735         * modules/file-type (Makefile.am): Likewise.
72736         * modules/fileblocks (Makefile.am): Likewise.
72737         * modules/filemode (Makefile.am): Likewise.
72738         * modules/filenamecat (Makefile.am): Likewise.
72739         * modules/fnmatch (Makefile.am): Likewise.
72740         * modules/fopen-safer (Makefile.am): Likewise.
72741         * modules/fpending (Makefile.am): Likewise.
72742         * modules/fprintftime (Makefile.am): Likewise.
72743         * modules/free (Makefile.am): Likewise.
72744         * modules/fsusage (Makefile.am): Likewise.
72745         * modules/ftruncate (Makefile.am): Likewise.
72746         * modules/fts (Makefile.am): Likewise.
72747         * modules/gc (Makefile.am): Likewise.
72748         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72749         * modules/getaddrinfo (Makefile.am): Likewise.
72750         * modules/getcwd (Makefile.am): Likewise.
72751         * modules/getdelim (Makefile.am): Likewise.
72752         * modules/getdomainname (Makefile.am): Likewise.
72753         * modules/getgroups (Makefile.am): Likewise.
72754         * modules/gethostname (Makefile.am): Likewise.
72755         * modules/gethrxtime (Makefile.am): Likewise.
72756         * modules/getline (Makefile.am): Likewise.
72757         * modules/getloadavg (Makefile.am): Likewise.
72758         * modules/getlogin_r (Makefile.am): Likewise.
72759         * modules/getopt (Makefile.am): Likewise.
72760         * modules/getpass (Makefile.am): Likewise.
72761         * modules/getpass-gnu (Makefile.am): Likewise.
72762         * modules/getsubopt (Makefile.am): Likewise.
72763         * modules/gettime (Makefile.am): Likewise.
72764         * modules/gettimeofday (Makefile.am): Likewise.
72765         * modules/getugroups (Makefile.am): Likewise.
72766         * modules/getusershell (Makefile.am): Likewise.
72767         * modules/glob (Makefile.am): Likewise.
72768         * modules/group-member (Makefile.am): Likewise.
72769         * modules/hard-locale (Makefile.am): Likewise.
72770         * modules/hash (Makefile.am): Likewise.
72771         * modules/hmac-md5 (Makefile.am): Likewise.
72772         * modules/hmac-sha1 (Makefile.am): Likewise.
72773         * modules/human (Makefile.am): Likewise.
72774         * modules/idcache (Makefile.am): Likewise.
72775         * modules/imaxabs (Makefile.am): Likewise.
72776         * modules/imaxdiv (Makefile.am): Likewise.
72777         * modules/inet_ntop (Makefile.am): Likewise.
72778         * modules/inet_pton (Makefile.am): Likewise.
72779         * modules/inttostr (Makefile.am): Likewise.
72780         * modules/isapipe (Makefile.am): Likewise.
72781         * modules/lchown (Makefile.am): Likewise.
72782         * modules/long-options (Makefile.am): Likewise.
72783         * modules/lstat (Makefile.am): Likewise.
72784         * modules/malloc (Makefile.am): Likewise.
72785         * modules/mathl (Makefile.am): Likewise.
72786         * modules/mbchar (Makefile.am): Likewise.
72787         * modules/md2 (Makefile.am): Likewise.
72788         * modules/md4 (Makefile.am): Likewise.
72789         * modules/md5 (Makefile.am): Likewise.
72790         * modules/memcasecmp (Makefile.am): Likewise.
72791         * modules/memchr (Makefile.am): Likewise.
72792         * modules/memcmp (Makefile.am): Likewise.
72793         * modules/memcoll (Makefile.am): Likewise.
72794         * modules/memcpy (Makefile.am): Likewise.
72795         * modules/memmem (Makefile.am): Likewise.
72796         * modules/memmove (Makefile.am): Likewise.
72797         * modules/mempcpy (Makefile.am): Likewise.
72798         * modules/memrchr (Makefile.am): Likewise.
72799         * modules/memset (Makefile.am): Likewise.
72800         * modules/memxor (Makefile.am): Likewise.
72801         * modules/mkancesdirs (Makefile.am): Likewise.
72802         * modules/mkdir (Makefile.am): Likewise.
72803         * modules/mkdir-p (Makefile.am): Likewise.
72804         * modules/mkdtemp (Makefile.am): Likewise.
72805         * modules/mkstemp (Makefile.am): Likewise.
72806         * modules/mktime (Makefile.am): Likewise.
72807         * modules/modechange (Makefile.am): Likewise.
72808         * modules/mountlist (Makefile.am): Likewise.
72809         * modules/nanosleep (Makefile.am): Likewise.
72810         * modules/openat (Makefile.am): Likewise.
72811         * modules/pagealign_alloc (Makefile.am): Likewise.
72812         * modules/physmem (Makefile.am): Likewise.
72813         * modules/poll (Makefile.am): Likewise.
72814         * modules/posixtm (Makefile.am): Likewise.
72815         * modules/posixver (Makefile.am): Likewise.
72816         * modules/putenv (Makefile.am): Likewise.
72817         * modules/quote (Makefile.am): Likewise.
72818         * modules/quotearg (Makefile.am): Likewise.
72819         * modules/raise (Makefile.am): Likewise.
72820         * modules/read-file (Makefile.am): Likewise.
72821         * modules/readline (Makefile.am): Likewise.
72822         * modules/readlink (Makefile.am): Likewise.
72823         * modules/readtokens (Makefile.am): Likewise.
72824         * modules/readutmp (Makefile.am): Likewise.
72825         * modules/realloc (Makefile.am): Likewise.
72826         * modules/regex (Makefile.am): Likewise.
72827         * modules/rename (Makefile.am): Likewise.
72828         * modules/rename-dest-slash (Makefile.am): Likewise.
72829         * modules/rijndael (Makefile.am): Likewise.
72830         * modules/rmdir (Makefile.am): Likewise.
72831         * modules/rpmatch (Makefile.am): Likewise.
72832         * modules/safe-read (Makefile.am): Likewise.
72833         * modules/safe-write (Makefile.am): Likewise.
72834         * modules/same (Makefile.am): Likewise.
72835         * modules/save-cwd (Makefile.am): Likewise.
72836         * modules/savedir (Makefile.am): Likewise.
72837         * modules/setenv (Makefile.am): Likewise.
72838         * modules/settime (Makefile.am): Likewise.
72839         * modules/sha1 (Makefile.am): Likewise.
72840         * modules/sig2str (Makefile.am): Likewise.
72841         * modules/snprintf (Makefile.am): Likewise.
72842         * modules/stdlib-safer (Makefile.am): Likewise.
72843         * modules/stpcpy (Makefile.am): Likewise.
72844         * modules/stpncpy (Makefile.am): Likewise.
72845         * modules/strcase (Makefile.am): Likewise.
72846         * modules/strcasestr (Makefile.am): Likewise.
72847         * modules/strchrnul (Makefile.am): Likewise.
72848         * modules/strcspn (Makefile.am): Likewise.
72849         * modules/strdup (Makefile.am): Likewise.
72850         * modules/strerror (Makefile.am): Likewise.
72851         * modules/strftime (Makefile.am): Likewise.
72852         * modules/strndup (Makefile.am): Likewise.
72853         * modules/strnlen (Makefile.am): Likewise.
72854         * modules/strpbrk (Makefile.am): Likewise.
72855         * modules/strsep (Makefile.am): Likewise.
72856         * modules/strstr (Makefile.am): Likewise.
72857         * modules/strtod (Makefile.am): Likewise.
72858         * modules/strtoimax (Makefile.am): Likewise.
72859         * modules/strtok_r (Makefile.am): Likewise.
72860         * modules/strtol (Makefile.am): Likewise.
72861         * modules/strtoll (Makefile.am): Likewise.
72862         * modules/strtoul (Makefile.am): Likewise.
72863         * modules/strtoull (Makefile.am): Likewise.
72864         * modules/strtoumax (Makefile.am): Likewise.
72865         * modules/strverscmp (Makefile.am): Likewise.
72866         * modules/time_r (Makefile.am): Likewise.
72867         * modules/timegm (Makefile.am): Likewise.
72868         * modules/tmpfile-safer (Makefile.am): Likewise.
72869         * modules/unistd-safer (Makefile.am): Likewise.
72870         * modules/unlinkdir (Makefile.am): Likewise.
72871         * modules/userspec (Makefile.am): Likewise.
72872         * modules/utime (Makefile.am): Likewise.
72873         * modules/utimecmp (Makefile.am): Likewise.
72874         * modules/utimens (Makefile.am): Likewise.
72875         * modules/vasnprintf (Makefile.am): Likewise.
72876         * modules/vasprintf (Makefile.am): Likewise.
72877         * modules/vsnprintf (Makefile.am): Likewise.
72878         * modules/xalloc (Makefile.am): Likewise.
72879         * modules/xgetcwd (Makefile.am): Likewise.
72880         * modules/xnanosleep (Makefile.am): Likewise.
72881         * modules/xreadlink (Makefile.am): Likewise.
72882         * modules/xstrtod (Makefile.am): Likewise.
72883         * modules/xstrtol (Makefile.am): Likewise.
72884         * modules/xstrtold (Makefile.am): Likewise.
72885         * modules/yesno (Makefile.am): Likewise.
72886
72887 2006-10-12  Jim Meyering  <jim@meyering.net>
72888
72889         * m4/getloadavg.m4: Revert the change below.
72890
72891         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72892         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72893         fail with a symlink, which is what coreutils' ./bootstrap now
72894         creates by default.
72895
72896 2006-10-12  Bruno Haible  <bruno@clisp.org>
72897
72898         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72899         mingw.
72900         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72901         MSVC and mingw explicitly.
72902
72903 2006-10-11  Simon Josefsson  <jas@extundo.com>
72904             Bruno Haible  <bruno@clisp.org>
72905
72906         Add support for multiple gnulib-tool invocations in the scope of a
72907         single configure.ac file.
72908         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72909         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72910         with the same contents as the _LIBADD variable.
72911         (func_emit_initmacro_start, func_emit_initmacro_end,
72912         func_emit_initmacro_done): New functions.
72913         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72914         gl_LIBOBJS and gl_LTLIBOBJS.
72915
72916 2006-10-11  Bruno Haible  <bruno@clisp.org>
72917
72918         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72919         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72920         autoreconf. Instead, invoke autopoint explicitly but move back the
72921         *.m4 files from gnulib.
72922
72923 2006-10-11  Bruno Haible  <bruno@clisp.org>
72924
72925         * gnulib-tool (func_usage): Make module names after --create-testdir
72926         optional.
72927         (func_create_testdir): If no module was specified, use nearly all
72928         modules.
72929
72930 2006-10-12  Jim Meyering  <jim@meyering.net>
72931
72932         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72933         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72934         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72935         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72936         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72937         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72938         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72939         (fts_set_stat_required): New function.
72940         (fts_open): Defer the calls to fts_stat, if possible or requested.
72941         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72942         into fts_stat itself.
72943         (fts_read): Perform any required (deferred) fts_stat call.
72944         (fts_build): Likewise, for the directory we're about to open and read.
72945         In the readdir loop, carefully decide whether each entry will require
72946         an eventual call to fts_stat, using dirent.d_type info if available.
72947         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72948         a command line argument into this function.  Update all callers.
72949         Map a return value of FTS_DOT to FTS_D for a command line argument.
72950         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72951         Thanks to Miklos Szeredi for his tenacity and for the initial
72952         bug report about "find" failing on a FUSE-based file system.
72953
72954         * lib/fts.c (fts_open): Use consistent indentation.
72955
72956 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72957
72958         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72959         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72960         reported by Jim Meyering.  All uses of cache variables renamed
72961         to match Autoconf's.
72962         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72963         the other one.
72964
72965         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72966         Fix misspelling in diagnostic.
72967
72968 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72969
72970         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72971         defined.  Problem reported by Matthew Woehlke.
72972
72973         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72974         Add support for Tandem NonStop R series.
72975         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72976         Use new macro.
72977
72978         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72979         (has_trailing_slash): Omit size arg; all callers changed.
72980         Omit 'inline', since it doesn't help performance and we'd
72981         need to configure it.
72982         Don't count //, ///, etc. as having a trailing slash.
72983         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72984         (rpl_rename_dest_slash): On failure, use rename's errno rather
72985         than (in some cases) an incorrect or junk errno.
72986         Simplify code by removing need to compute length; this does
72987         cause it to make two passes instead of one over the file name,
72988         but it's worth it.
72989
72990         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72991         change, since Autoconf's version may no longer be appropriate now
72992         that we are using CVS Autoconf's version.  Add support for Tandem.
72993
72994 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72995             Bruno Haible  <bruno@clisp.org>
72996
72997         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72998         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72999         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73000         gl_AC_TYPE_LONG_LONG.
73001
73002         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73003         instead of HAVE_LONG_LONG.
73004         * lib/printf-args.c (printf_fetchargs): Likewise.
73005         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73006         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73007         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73008         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73009         gl_AC_TYPE_LONG_LONG.
73010
73011 2006-10-11  Bruno Haible  <bruno@clisp.org>
73012
73013         * m4/longlong.m4: Add comments.
73014         * m4/ulonglong.m4: Likewise.
73015
73016 2006-10-10  Bruno Haible  <bruno@clisp.org>
73017
73018         Make it possible to #define stpcpy, strdup to aliases.
73019         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73020         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73021
73022 2006-10-10  Bruno Haible  <bruno@clisp.org>
73023
73024         Make it possible to #define gcd to an alias.
73025         * lib/gcd.c: Include config.h.
73026
73027 2006-10-10  Bruno Haible  <bruno@clisp.org>
73028
73029         Make it possible to #define c_isascii to an alias.
73030         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73031         defined. Undefine the macros before defining them, to avoid gcc
73032         warnings.
73033         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73034         define NO_C_CTYPE_MACROS early.
73035
73036 2006-10-10  Bruno Haible  <bruno@clisp.org>
73037
73038         Make it possible to #define set_program_name to an alias.
73039         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73040         ENABLE_RELOCATABLE early.
73041
73042 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73045         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73046         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73047         More generally, don't assume that 64-bit signed int is available
73048         if unsigned int is, and vice versa.
73049         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73050         unsigned symbols, not on their signed counterparts.
73051         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73052         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73053         (UINT64_C, UINTMAX_C):
73054         Likewise.
73055         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73056         unsigned counterparts.
73057         (Have_long_long, Unsigned): New macros.
73058         (Int): Renamed from INT.
73059         (strtoimax): Use the new macros.
73060         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73061         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73062         * modules/inttypes (inttypes.h): Substitute
73063         HAVE_UNSIGNED_LONG_LONG_INT.
73064         * modules/stdint (stdint.h): Likewise.
73065         (Files): Add m4/ulonglong.m4.
73066
73067 2006-10-10  Bruno Haible  <bruno@clisp.org>
73068
73069         Fix a gcc -Wshadow warning.
73070         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73071         to 'bucket'.
73072         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73073         gl_linked_indexof_from_to): Likewise.
73074         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73075         Likewise.
73076         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73077         Likewise.
73078         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73079         Reported by Eric Blake.
73080
73081 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73084         for NetBSD.  Problem reported by Bruno Haible.
73085
73086 2006-10-09  Jim Meyering  <jim@meyering.net>
73087
73088         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73089         Patch from Bruno Haible.
73090
73091 2006-10-09  Jim Meyering  <jim@meyering.net>
73092
73093         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73094         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73095         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73096
73097 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73098
73099         Don't include <config.h> twice; this doesn't work in some cases,
73100         e.g., when config.h has "#define intmax_t long long int" and
73101         we include <config.h>, <inttypes.h>, <config.h> in that order.
73102         Problem reported by Matthew Woehlke in:
73103         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73104         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73105         * lib/fts-cycle.c: Don't include config.h.
73106         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73107         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73108         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73109         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73110         inttypes.h.
73111         * lib/xstrtoumax.c: Likewise.
73112         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73113         __strtol and the like, so that this module is more like its siblings.
73114         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73115         Remove; no longer needed now that we assume gnulib inttypes.h.
73116
73117 2006-10-08  Bruno Haible  <bruno@clisp.org>
73118
73119         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73120         option.
73121
73122 2006-10-07  Jim Meyering  <jim@meyering.net>
73123
73124         * modules/inttypes (inttypes.h): Revert what seems to have been
73125         an inadvertent part of today's change: use "|", not "/" in the
73126         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73127
73128 2006-10-07  Bruno Haible  <bruno@clisp.org>
73129
73130         * modules/sublist: New file.
73131
73132 2006-10-07  Bruno Haible  <bruno@clisp.org>
73133
73134         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73135         * modules/argz (argz.h): Likewise.
73136         * modules/arpa_inet (arpa/inet.h): Likewise.
73137         * modules/byteswap (byteswap.h): Likewise.
73138         * modules/configmake (configmake.h): Likewise.
73139         * modules/fcntl (fcntl.h): Likewise.
73140         * modules/fnmatch (fnmatch.h): Likewise.
73141         * modules/getopt (getopt.h): Likewise.
73142         * modules/glob (glob.h): Likewise.
73143         * modules/inttypes (inttypes.h): Likewise.
73144         * modules/netinet_in (netinet/in.h): Likewise.
73145         * modules/poll (poll.h): Likewise.
73146         * modules/stdbool (stdbool.h): Likewise.
73147         * modules/stdint (stdint.h): Likewise.
73148         * modules/sys_select (sys/select.h): Likewise.
73149         * modules/sys_socket (sys/socket.h): Likewise.
73150         * modules/sys_stat (sys/stat.h): Likewise.
73151         * modules/sysexits (sysexits.h): Likewise.
73152         * modules/unistd (unistd.h): Likewise.
73153         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73154         Add a "DO NOT EDIT" comment to the generated file.
73155         (func_import): Likewise for gnulib-comp.m4.
73156
73157 2006-10-07  Bruno Haible  <bruno@clisp.org>
73158
73159         * lib/gl_sublist.h: New file.
73160         * lib/gl_sublist.c: New file.
73161
73162 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73163
73164         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73165         name (relative to the original working directory) and the file
73166         name component (relative to the temporary working directory).  All
73167         callers changed.
73168         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73169         * lib/mkdir-p.c (make_dir_parents): Likewise.
73170         * lib/mkdir-p.h (make_dir_parents): Likewise.
73171
73172 2006-10-06  Eric Blake  <ebb9@byu.net>
73173
73174         Define several macros for use by the clean-temp module.
73175         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73176         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73177         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73178
73179         * lib/clean-temp.h (close_stream_temp): New declaration.
73180         * lib/clean-temp.c (includes): Pull in headers according to what
73181         other modules are in use.
73182         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73183
73184 2006-10-06  Bruno Haible  <bruno@clisp.org>
73185
73186         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73187         instead of fopen, fwriteerror.
73188
73189 2006-10-06  Bruno Haible  <bruno@clisp.org>
73190
73191         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73192         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73193         int.
73194         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73195         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73196         Return an error indicator.
73197         Suggested by Eric Blake.
73198
73199 2006-10-06  Bruno Haible  <bruno@clisp.org>
73200
73201         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73202         Reported by Eric Blake.
73203
73204 2006-10-06  Bruno Haible  <bruno@clisp.org>
73205
73206         * modules/closeout (Description): Mention stderr too.
73207
73208 2006-10-06  Bruno Haible  <bruno@clisp.org>
73209         and Paul Eggert  <eggert@cs.ucla.edu>
73210
73211         * lib/closeout.c (close_stdout): Also close stderr.
73212         * lib/closeout.h: Update comment.
73213
73214 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73215
73216         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73217         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73218         * lib/dirchownmod.c: Include lchown.h.
73219         * lib/lchown.c: Don't include files that lchown.h now includes.
73220         Don't declare chown, since lchown.h now does that.
73221         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73222         (lchown): Define to rpl_chown if lchown is declared but
73223         does not exist.  Declare using a prototype if lchown is not
73224         declared.  Add a copyright notice.
73225         * lib/mkstemp.h: Include <unistd.h>.
73226         * lib/openat.c: Include lchown.h.
73227
73228         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73229         we now test for that separately.
73230         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73231         rather than O_NOFOLLOW, when testing whether it's possible to
73232         avoid a race condition reliably.
73233         * lib/savewd.c (savewd_chdir): Likewise.
73234
73235         Remove macros that are no longer needed now that stdint.h is
73236         reliable.
73237         * lib/fsusage.c (UINTMAX_MAX): Remove.
73238         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73239         * lib/utimecmp.c (SIZE_MAX): Remove.
73240
73241         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73242
73243         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73244         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73245         O_NOATIME works.
73246
73247 2006-10-05  Bruno Haible  <bruno@clisp.org>
73248
73249         * lib/gl_list.h (gl_sortedlist_search_from_to,
73250         gl_sortedlist_indexof_from_to): New declarations.
73251         (gl_list_implementation): New fields sortedlist_search_from_to,
73252         sortedlist_indexof_from_to.
73253         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73254         inline functions.
73255         * lib/gl_list.c (gl_sortedlist_search_from_to,
73256         gl_sortedlist_indexof_from_to): New functions.
73257         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73258         function.
73259         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73260         (gl_array_sortedlist_search_from_to): New function.
73261         (gl_array_list_implementation): Update.
73262         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73263         function.
73264         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73265         (gl_carray_sortedlist_search_from_to): New function.
73266         (gl_carray_list_implementation): Update.
73267         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73268         gl_linked_sortedlist_indexof_from_to): New functions.
73269         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73270         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73271         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73272         gl_tree_sortedlist_indexof_from_to): New functions.
73273         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73274         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73275         Update.
73276         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73277         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73278         Update.
73279
73280 2006-10-05  Bruno Haible  <bruno@clisp.org>
73281
73282         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73283         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73284         (struct gl_list_implementation): Add fields search_from_to,
73285         indexof_from_to. Remove fields search, indexof.
73286         (gl_list_search): Use the search_from_to method.
73287         (gl_list_search_from, gl_list_search_from_to): New functions.
73288         (gl_list_indexof): Use the indexof_from_to method.
73289         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73290         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73291         (gl_list_search_from, gl_list_search_from_to): New functions.
73292         (gl_list_indexof): Use the indexof_from_to method.
73293         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73294         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73295         gl_array_indexof. Add start_index, end_index arguments.
73296         (gl_array_search_from_to): Renamed from gl_array_search. Add
73297         start_index, end_index arguments.
73298         (gl_array_remove, gl_array_list_implementation): Update.
73299         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73300         gl_carray_indexof. Add start_index, end_index arguments.
73301         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73302         start_index, end_index arguments.
73303         (gl_carray_remove, gl_carray_list_implementation): Update.
73304         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73305         gl_linked_search. Add start_index, end_index arguments.
73306         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73307         start_index, end_index arguments.
73308         (gl_linked_remove): Update.
73309         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73310         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73311         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73312         field to 'size_t'.
73313         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73314         gl_tree_search. Add start_index, end_index arguments.
73315         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73316         start_index, end_index arguments.
73317         (gl_tree_remove): Update.
73318         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73319         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73320         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73321         function.
73322         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73323         gl_tree_search. Add start_index, end_index arguments.
73324         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73325         start_index, end_index arguments.
73326         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73327         Update.
73328         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73329
73330 2006-10-05  Bruno Haible  <bruno@clisp.org>
73331
73332         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73333
73334         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73335         fwriteerror_temp): New declarations.
73336         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73337         (descriptors): New variable.
73338         (cleanup): First, close the descriptors.
73339         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73340         fclose_temp, fwriteerror_temp): New functions.
73341
73342 2006-10-04  Jim Meyering  <jim@meyering.net>
73343
73344         * lib/fts.c (fts_open): Tiny comment change.
73345
73346 2006-10-04  Bruno Haible  <bruno@clisp.org>
73347
73348         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73349         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73350         gl_LOCK_BODY.
73351         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73352         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73353         gl_LOCK_EARLY_BODY.
73354         (gl_LOCK): Require gl_LOCK_BODY.
73355
73356 2006-10-04  Bruno Haible  <bruno@clisp.org>
73357
73358         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73359         (gl_oset_search_atleast): New declaration.
73360         (struct gl_oset_implementation): Add field 'search_atleast'.
73361         (gl_oset_search_atleast): New inline function.
73362         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73363         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73364         (gl_array_oset_implementation): Update.
73365         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73366         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73367         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73368
73369 2006-10-04  Bruno Haible  <bruno@clisp.org>
73370
73371         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73372
73373 2006-10-03  Bruno Haible  <bruno@clisp.org>
73374
73375         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73376         from gl_avltreehash_list_implementation.
73377
73378 2006-10-03  Bruno Haible  <bruno@clisp.org>
73379
73380         * lib/gl_oset.c (gl_oset_add): Fix return type.
73381
73382 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73383
73384         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73385
73386 2006-10-02  Eric Blake  <ebb9@byu.net>
73387
73388         * modules/strnlen (Depends-on): Add extensions.
73389
73390 2006-10-02  Eric Blake  <ebb9@byu.net>
73391
73392         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73393         definition in 2.60+.
73394
73395 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73396
73397         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73398         checks.
73399
73400 2006-10-02  Bruno Haible  <bruno@clisp.org>
73401
73402         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73403         to the AUTOMAKE_OPTIONS.
73404         Reported by Jim Meyering.
73405
73406 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73407
73408         Work around bug in Solaris 10 /proc file system:
73409         /proc/self/fd/NNN/.. isn't the parent directory of
73410         the directory whose file descriptor is NNN.  This needs to
73411         be worked around at run time, not compile time, since a
73412         program might be built on Solaris 8, where things work, and
73413         run on Solaris 10.
73414         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73415         to use the following interface instead:
73416         (OPENAT_BUFFER_SIZE): New macro.
73417         (openat_proc_name): New function.
73418         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73419         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73420         Likewise.
73421         * lib/openat-proc.c: New file.
73422         * modules/openat (Files): Add lib/openat-proc.c.
73423         (Depends-on): Add same-inode, stdbool.
73424         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73425
73426 2006-09-29  Bruno Haible  <bruno@clisp.org>
73427
73428         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73429         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73430         argument. Set stdout_closed before testing for ferror, not after.
73431         (fwriteerror, fwriteerror_no_ebadf): New functions.
73432
73433 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73434
73435         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73436
73437 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73438
73439         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73440         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73441
73442 2006-09-28  Jim Meyering  <jim@meyering.net>
73443
73444         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73445         Include <unistd.h>.
73446
73447 2006-09-28  Bruno Haible  <bruno@clisp.org>
73448
73449         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73450         * modules/linkedhash-list (Depends-on): Likewise.
73451         * modules/rbtreehash-list (Depends-on): Likewise.
73452
73453 2006-09-28  Bruno Haible  <bruno@clisp.org>
73454
73455         * lib/strndup.h: Simplify the redefinition of strndup.
73456         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73457         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73458
73459 2006-09-28  Bruno Haible  <bruno@clisp.org>
73460
73461         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73462         * lib/gl_linkedhash_list.c: Likewise.
73463         * lib/gl_rbtreehash_list.c: Likewise.
73464
73465 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73466
73467         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73468         getaddrinfo.
73469
73470         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73471         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73472         it causes <stdio_ext.h> to cause a compile-time error.
73473         Problem reported by Nelson H. F. Beebe.
73474         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73475         of HAVE_DECL___PENDING.
73476
73477         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73478         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73479         declaration.
73480
73481 2006-09-27  Jim Meyering  <jim@meyering.net>
73482
73483         This file could end up with a definition for a function
73484         named __strndup, rather than rpl_strndup on a system with
73485         incomplete weak_alias support.
73486         * lib/strndup.c (strndup): Rename from __strndup.
73487         Remove #defines that used to map __strndup to strndup.
73488         Don't use K&R prototypes.
73489         Remove LIBC-related code, since this file is not sync'd with glibc.
73490         * lib/strndup.h: Revamp, accordingly.
73491         * m4/strndup.m4: Modernize.
73492
73493 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73494
73495         * modules/savewd (Depends-on): Add 'raise'.
73496         * lib/savewd.c: Include <signal.h>, for 'raise'.
73497
73498 2006-09-26  Jim Meyering  <jim@meyering.net>
73499
73500         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73501         when we detect Darwin 8.7.0's acl_get_file bug.
73502         Rearrange to perform the new (below) run-test while $LIBS
73503         contains any acl-related library.  Set USE_ACL at the end.
73504         (gl_ACL_GET_FILE): New function.
73505
73506 2006-09-26  Eric Blake  <ebb9@byu.net>
73507
73508         * lib/verror.c: Include <config.h> unconditionally.
73509
73510 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73511
73512         * modules/clock-time (Maintainer): Add self.
73513         * modules/getlogin_r (Depends-on): Add extensions.
73514
73515 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73516
73517         * modules/clock-time: New module.
73518         * modules/nanosleep (Depends-on): Add clock-time.
73519         * modules/gethrxtime (Depends-on): Likewise.
73520         * modules/gettime (Depends-on): Likewise.
73521         * modules/settime (Depends-on): Likewise.
73522
73523         * modules/fts-lgpl: Depend on openat.
73524         * modules/mkancesdirs: Depend on savewd.
73525         * modules/mkdir-p: Likewise.
73526
73527 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73528
73529         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73530
73531         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73532         `gl_have_arbitrary_file_name_length_limit' to
73533         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73534         actually works between configure runs.
73535
73536 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73537             Bruno Haible  <bruno@clisp.org>
73538
73539         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73540
73541 2006-09-25  Jim Meyering  <jim@meyering.net>
73542
73543         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73544         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73545
73546 2006-09-25  Eric Blake  <ebb9@byu.net>
73547
73548         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73549         exec's in 2006-09-18 patch when shuffling fds.
73550
73551 2006-09-25  Bruno Haible  <bruno@clisp.org>
73552
73553         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73554         Reported by Jim Meyering.
73555
73556 2006-09-24  Jim Meyering  <jim@meyering.net>
73557
73558         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73559         compare a pointer against a literal "0".  That caused failures with
73560         at least HP-UX's hpcc.
73561
73562 2006-09-22  Simon Josefsson  <jas@extundo.com>
73563
73564         * modules/gc-sha1:
73565         * modules/gc-md4:
73566         * modules/gc-hmac-sha1:
73567         * modules/gc-hmac-md5:
73568         * modules/gc-des:
73569         * modules/gc-arcfour: Distribute more files.
73570
73571 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73572
73573         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73574         (gl_linked_iterator_from_to): Initialize struct completely.
73575         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73576         (gl_tree_iterator_from_to): Likewise
73577         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73578         * lib/gl_array_list.c [lint] (gl_array_iterator)
73579         (gl_array_iterator_from_to): Likewise.
73580         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73581         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73582         (gl_carray_iterator_from_to): Likewise.
73583
73584         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73585         * lib/md4.c (md4_process_block): Remove unused variable.
73586         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73587         parentheses for clarity.
73588
73589 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73590
73591         * modules/bison-i18n (Depends-on): Add gettext.
73592
73593 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73594
73595         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73596         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73597         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73598         also add missing comma that caused broken test.
73599         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73600         stdlib.h, for `abort'.
73601         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73602         variables.
73603         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73604         include unistd.h if present, for `rmdir'.
73605         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73606         variables.
73607         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73608         in the process include standard headers for prototypes.
73609         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73610         gets declared on GNU/Linux.
73611         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73612         unistd.h, for `rmdir'.
73613         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73614
73615         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73616         always true.
73617         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73618
73619         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73620
73621 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73622
73623         * gnulib-tool (func_version): Create output all at once.  This
73624         may help avoid triggering unnecessary SIGPIPEs, and at any
73625         rate it doesn't hurt.
73626
73627 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73628             Bruno Haible  <bruno@clisp.org>
73629
73630         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73631         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73632         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73633
73634         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73635         (gl_FUNC_VASPRINTF): Invoke it.
73636
73637 2006-09-22  Bruno Haible  <bruno@clisp.org>
73638
73639         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73640         getloadavg.c as first argument.
73641
73642 2006-09-22  Bruno Haible  <bruno@clisp.org>
73643
73644         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73645         at the beginning of the gl_INIT macro.
73646         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73647         gl_GETLOADAVG.
73648
73649 2006-09-22  Bruno Haible  <bruno@clisp.org>
73650
73651         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73652         module.
73653         Suggested by Ralf Wildenhues.
73654
73655 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73656
73657         Import this patch from libc:
73658
73659         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73660
73661         * lib/regex_internal.c (re_string_reconstruct): Handle
73662         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73663         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73664         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73665         re_string_context_at.
73666
73667         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73668         now requires it.
73669         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73670         gl_REGEX now does it for us.
73671         (gl_REGEX): Add test taken from
73672         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73673
73674         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73675         Check that large offsets work.  Modernize Autoconf usages.
73676         Prefer "yes" to mean a good thing rather than a bad.
73677         Don't put "#define mkstemp" in config.h, as this might interfere
73678         with standard system headers that "#define mkstemp mkstemp64".
73679
73680         * modules/mkstemp (Depends-on): Add extensions, so that
73681         mkstemp is visible on some platforms.
73682         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73683         (Include): Change to "mkstemp.h" from <stdlib.h>.
73684         (Files): Add mkstemp.h.
73685
73686         * lib/mkstemp.h: New file, since some standard headers
73687         #define mkstemp.
73688         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73689         Include "mkstemp.h".
73690         Make the _LIBC code resemble glibc original more,
73691         e.g., use K&R style.
73692         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73693         (mkstemp): Remove, since mkstemp.h does this for us.
73694         * lib/stdlib--.h: Include mkstemp.h.
73695
73696         Import this patch from libc:
73697
73698         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73699
73700         * lib/tempname.c (__gen_tempname): Change attempts_min
73701         into a macro.  Use preprocessor to decide how to initialize
73702         attempts [Coverity CID 67].
73703
73704 2006-09-20  Bruno Haible  <bruno@clisp.org>
73705
73706         * lib/mkdtemp.c: Import from libc.
73707         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73708                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73709                 attempts_min into a macro.  Use preprocessor to decide how to
73710                 initialize attempts [Coverity CID 67].
73711         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73712                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73713                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73714
73715 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73716
73717         * gnulib-tool (func_exit): New function, to allow to pass the
73718         exit status portably through the trap.  Use everywhere.
73719         (--help, --version): Signal a write error.
73720         (trap): catch SIGPIPE, for write errors.
73721         Exit at the end of the trap, with the correct exit status.
73722
73723 2006-09-19  Karl Berry  <karl@gnu.org>
73724
73725         * doc/gnulib.texi: note about the license texinfo files.
73726
73727 2006-09-19  Eric Blake  <ebb9@byu.net>
73728
73729         * gnulib-tool: Avoid space-tab.
73730
73731 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73734         that prevented coreutils 6.1 from building.  Problem reported
73735         by Petter Reinholdtsen.
73736
73737 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * gnulib-tool (avoidlist): Fix typo that broke options like
73740         --avoid=lock that are used by coreutils bootstrap.
73741
73742 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73743
73744         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73745         more systematically.
73746
73747 2006-09-18  Jim Meyering  <jim@meyering.net>
73748
73749         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73750
73751 2006-09-18  Bruno Haible  <bruno@clisp.org>
73752
73753         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73754
73755 2006-09-18  Bruno Haible  <bruno@clisp.org>
73756
73757         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73758         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73759         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73760         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73761         * m4/gettext.m4: Require autoconf >= 2.52.
73762         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73763         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73764         of gl_cv_header_inttypes_h.
73765
73766 2006-09-18  Bruno Haible  <bruno@clisp.org>
73767
73768         * lib/javaversion.c: Include configmake.h.
73769
73770 2006-09-18  Bruno Haible  <bruno@clisp.org>
73771
73772         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73773         avoid that the while loops be executed in a subshell.
73774
73775 2006-09-18  Bruno Haible  <bruno@clisp.org>
73776
73777         * MODULES.html.sh (func_module): Break long lines.
73778         Suggested by Bruce Korb <bkorb@gnu.org>.
73779
73780 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73781
73782         Speed up by a factor of 1.12.
73783         * gnulib-tool (nl): New variable.
73784         (func_import): Rewrite include directive extraction to only read each
73785         directive once.
73786
73787 2006-09-17  Bruno Haible  <bruno@clisp.org>
73788
73789         * modules/javaversion (Makefile.am): Remove DEFS setting.
73790         (Depends-on): Add configmake, for PKGDATADIR definition.
73791
73792 2006-09-17  Bruno Haible  <bruno@clisp.org>
73793
73794         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73795
73796 2006-09-17  Bruno Haible  <bruno@clisp.org>
73797
73798         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73799         (func_modules_transitive_closure, func_modules_add_dummy,
73800         func_modules_to_filelist, func_import, func_create_testdir,
73801         func_create_megatestdir, ...): Use it wherever possible.
73802         Suggested by Ralf Wildenhues.
73803
73804 2006-09-16  Karl Berry  <karl@gnu.org>
73805
73806         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73807         to avoid sectioning errors.
73808         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73809         [ifinfo]: blank line after @center-ed titles.
73810         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73811         Spell FSF address consistently with others.
73812         (These changes approved by rms.)
73813
73814 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73815
73816         Speed up by a factor of 1.61.
73817         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73818         already checked module names again.
73819
73820 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73821
73822         Speed up by a factor of 1.13.
73823         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73824         for new_files, and the input to func_add_or_update.
73825
73826 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73827
73828         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73829         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73830
73831 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * modules/mkancesdirs (Depends-on): Add fcntl.
73834         * modules/savewd: New file.
73835         * MODULES.html.sh (File system functions): Add savewd.
73836
73837         * modules/configmake (Makefile.am): Add support for the
73838         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73839
73840 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73841
73842         * m4/savewd.m4: New file.
73843
73844 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73845
73846         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73847         (dirchownmod): New arg FD.  All callers changed.
73848         Use FD rather than opening the directory ourself, as opening is
73849         now the caller's responsibility.
73850         * lib/dirchownmod.h: Likewise.
73851         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73852         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73853         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73854         (test_dir): Remove.
73855         (mkancesdirs): Return length of prefix of FILE that has already
73856         been made, or -2 if there is a child doing the work.  Redo
73857         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73858         ".", and treat ".." specially since it might stray back into
73859         already-created areas.  Use a subprocess if necessary.  New arg
73860         WD; all users changed.  MAKE_DIR function should now return 1
73861         if it creates a directory that is not readable.  Return -2 if
73862         a child process is spun off.
73863         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73864         Adjust signature to match code.
73865         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73866         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73867         all users changed.
73868         * lib/savewd.c, lib/savewd.h: New files.
73869
73870 2006-09-15  Jim Meyering  <jim@meyering.net>
73871
73872         * modules/rename-dest-slash: New module.
73873         * MODULES.html.sh (posix_compat): Add it here.
73874
73875         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73876
73877 2006-09-15  Jim Meyering  <jim@meyering.net>
73878
73879         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73880         file.
73881
73882         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73883
73884 2006-09-15  Jim Meyering  <jim@meyering.net>
73885
73886         * lib/rename-dest-slash.c (has_trailing_slash): Use
73887         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73888         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73889         test before testing whether SRC is a directory.
73890         Suggestions from Bruno Haible.
73891
73892         Avoid a warning about an unused variable.
73893         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73894         into the #ifdef block where it's used.
73895
73896         * lib/rename-dest-slash.c: New file.
73897
73898 2006-09-14  Bruno Haible  <bruno@clisp.org>
73899
73900         * lib/allocsa.c: Include <config.h> unconditionally.
73901         * lib/asnprintf.c: Likewise.
73902         * lib/asprintf.c: Likewise.
73903         * lib/c-strcasecmp.c: Likewise.
73904         * lib/c-strcasestr.c: Likewise.
73905         * lib/c-strncasecmp.c: Likewise.
73906         * lib/c-strstr.c: Likewise.
73907         * lib/classpath.c: Likewise.
73908         * lib/clean-temp.c: Likewise.
73909         * lib/concatpath.c: Likewise.
73910         * lib/copy-file.c: Likewise.
73911         * lib/csharpcomp.c: Likewise.
73912         * lib/csharpexec.c: Likewise.
73913         * lib/execute.c: Likewise.
73914         * lib/fatal-signal.c: Likewise.
73915         * lib/findprog.c: Likewise.
73916         * lib/fwriteerror.c: Likewise.
73917         * lib/gl_array_list.c: Likewise.
73918         * lib/gl_array_oset.c: Likewise.
73919         * lib/gl_avltree_list.c: Likewise.
73920         * lib/gl_avltree_oset.c: Likewise.
73921         * lib/gl_avltreehash_list.c: Likewise.
73922         * lib/gl_carray_list.c: Likewise.
73923         * lib/gl_linked_list.c: Likewise.
73924         * lib/gl_linkedhash_list.c: Likewise.
73925         * lib/gl_list.c: Likewise.
73926         * lib/gl_oset.c: Likewise.
73927         * lib/gl_rbtree_list.c: Likewise.
73928         * lib/gl_rbtree_oset.c: Likewise.
73929         * lib/gl_rbtreehash_list.c: Likewise.
73930         * lib/imaxabs.c: Likewise.
73931         * lib/imaxdiv.c: Likewise.
73932         * lib/javacomp.c: Likewise.
73933         * lib/javaexec.c: Likewise.
73934         * lib/javaversion.c: Likewise.
73935         * lib/linebreak.c: Likewise.
73936         * lib/localcharset.c: Likewise.
73937         * lib/lock.c: Likewise.
73938         * lib/mbchar.c: Likewise.
73939         * lib/mbswidth.c: Likewise.
73940         * lib/mkdtemp.c: Likewise.
73941         * lib/pipe.c: Likewise.
73942         * lib/printf-args.c: Likewise.
73943         * lib/printf-parse.c: Likewise.
73944         * lib/progname.c: Likewise.
73945         * lib/progreloc.c: Likewise.
73946         * lib/readlink.c: Likewise.
73947         * lib/sh-quote.c: Likewise.
73948         * lib/stpcpy.c: Likewise.
73949         * lib/stpncpy.c: Likewise.
73950         * lib/strcasecmp.c: Likewise.
73951         * lib/strcasestr.c: Likewise.
73952         * lib/strcspn.c: Likewise.
73953         * lib/striconv.c: Likewise.
73954         * lib/strncasecmp.c: Likewise.
73955         * lib/strnlen1.c: Likewise.
73956         * lib/strstr.c: Likewise.
73957         * lib/strtok_r.c: Likewise.
73958         * lib/tls.c: Likewise.
73959         * lib/tmpdir.c: Likewise.
73960         * lib/unicodeio.c: Likewise.
73961         * lib/unsetenv.c: Likewise.
73962         * lib/vasnprintf.c: Likewise.
73963         * lib/vasprintf.c: Likewise.
73964         * lib/wait-process.c: Likewise.
73965         * lib/xallocsa.c: Likewise.
73966         * lib/xsetenv.c: Likewise.
73967         * lib/xstriconv.c: Likewise.
73968
73969 2006-09-13  Simon Josefsson  <jas@extundo.com>
73970
73971         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73972         that internally, suggested by Ralf Wildenhues
73973         <Ralf.Wildenhues@gmx.de>.
73974
73975 2006-09-13  Simon Josefsson  <jas@extundo.com>
73976
73977         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73978         @LIBOBJS@.
73979         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73980
73981 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73982
73983         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73984         longer worry about uses that don't define HAVE_CONFIG_H.
73985         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73986         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73987         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73988         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73989         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73990         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73991         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73992         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73993         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73994         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73995         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73996         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73997         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73998         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73999         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74000         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74001         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74002         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74003         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74004         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74005         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74006         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74007         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74008         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74009         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74010         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74011         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74012         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74013         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74014         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74015         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74016         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74017         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74018         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74019         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74020         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74021         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74022         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74023         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74024         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74025         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74026         Likewise.
74027
74028 2006-09-13  Eric Blake  <ebb9@byu.net>
74029
74030         * lib/getopt.c: Fix typo in last commit.
74031
74032 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74033
74034         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74035         dgettext.
74036
74037 2006-09-12  Jim Meyering  <jim@meyering.net>
74038
74039         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74040         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74041         Reported by Nelson H. F. Beebe.
74042
74043 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74044
74045         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74046         program_invocation_name and program_invocation_short_name are
74047         initialized.
74048         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74049         and program_invocation_short_name to argp.h, so they are visible
74050         to user programs.
74051         * lib/argp.h: Likewise
74052
74053 2006-09-10  Bruno Haible  <bruno@clisp.org>
74054
74055         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74056         m4/inttypes_h.m4, m4/uintmax_t.m4.
74057
74058 2006-09-10  Bruno Haible  <bruno@clisp.org>
74059
74060         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74061         gl_AC_TYPE_UINTMAX_T.
74062
74063 2006-09-10  Bruno Haible  <bruno@clisp.org>
74064
74065         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74066
74067 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74068
74069         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74070         convention.  Text proposed by Bruno Haible.
74071         (struct argp_option): Document the use of N_() wrappers.
74072
74073         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74074         '\v', and translate the two parts separately, instead of feeding
74075         the whole string to gettext.  This allows to exclude
74076         '\v' from the strings visible to the translator by writing doc
74077         strings as N_("..") "\v" N_("..").
74078
74079 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         * config/srclist.txt: Undo latest change; the bug was fixed.
74082
74083 2006-09-09  Bruno Haible  <bruno@clisp.org>
74084
74085         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74086         assignments if building a library without libtool.
74087         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74088         in func_emit_lib_Makefile_am.
74089         (func_import): When building a static library libfoo.a, arrange to
74090         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74091         (func_create_testdir): Likewise.
74092         * modules/gc (configure.ac, Makefile.am): If building statically,
74093         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74094         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74095         * modules/striconv (configure.ac, Makefile.am): Likewise.
74096         Based on a suggestion by Ralf Wildenhues.
74097
74098 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74099
74100         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74101         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74102         Also:
74103
74104         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74105         Add year_2050_test to catch glibc bug 2821
74106         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74107
74108         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74109         Prefer #ifdef to #if.
74110
74111         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74112         Return from 'main' instead of calling 'exit'.
74113
74114 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74117         returned the maximum time_t value rather than (time_t) -1.
74118         Problem originally reported by William Bardwell
74119         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74120
74121         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74122         Moved to here ...
74123         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74124         ... from here.
74125
74126 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74129         2821 is fixed.
74130
74131 2006-09-08  Jim Meyering  <jim@meyering.net>
74132
74133         Don't make generated files read-only.  That would bother too many
74134         people.  However, do retain the ability to work when targets are
74135         read-only: remove the destination and temporary files before writing
74136         them (when generated via sed or echo), or by using the -f option for
74137         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74138         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74139         * modules/byteswap, modules/configmake, modules/fcntl:
74140         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74141         * modules/localcharset, modules/netinet_in, modules/poll:
74142         * modules/stdbool, modules/stdint, modules/sys_select:
74143         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74144
74145 2006-09-08  Jim Meyering  <jim@meyering.net>
74146
74147         Avoid new build failure on FreeBSD 6.0.
74148         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74149         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74150         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74151
74152 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74153
74154         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74155
74156 2006-09-07  Jim Meyering  <jim@meyering.net>
74157
74158         Fix global typo in last change: use chmod u-w, not chmod u-x.
74159         Spotted by Paul Eggert and Bruce Korb.
74160         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74161         * modules/byteswap, modules/configmake, modules/fcntl:
74162         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74163         * modules/localcharset, modules/netinet_in, modules/poll:
74164         * modules/stdbool, modules/stdint, modules/sys_select:
74165         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74166
74167 2006-09-06  Jim Meyering  <jim@meyering.net>
74168
74169         Make generated files be read-only.
74170         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74171         Ensure that each generated file is now read-only.
74172         * modules/argz: Likewise.
74173         * modules/arpa_inet: Likewise.
74174         * modules/byteswap: Likewise.
74175         * modules/configmake: Likewise.
74176         * modules/fcntl: Likewise.
74177         * modules/fnmatch: Likewise.
74178         * modules/getopt: Likewise.
74179         * modules/glob: Likewise.
74180         * modules/inttypes: Likewise.
74181         * modules/netinet_in: Likewise.
74182         * modules/poll: Likewise.
74183         * modules/stdbool: Likewise.
74184         * modules/stdint: Likewise.
74185         * modules/sys_select: Likewise.
74186         * modules/sys_socket: Likewise.
74187         * modules/sys_stat: Likewise.
74188         * modules/sysexits: Likewise.
74189         * modules/localcharset: Same as above, but continue using temporary
74190         file named "t-$@" (why different?) rather than the "$@-t" used
74191         everywhere else.
74192
74193         * modules/sysexits (Makefile.am): Replace literal occurrences
74194         of "sysexit.h" more readable, and more consistent, "$@".
74195
74196 2006-09-06  Bruno Haible  <bruno@clisp.org>
74197
74198         * modules/striconv: New file.
74199         * modules/xstriconv: New file.
74200         * MODULES.html.sh (Internationalization functions): Add striconv,
74201         xstriconv.
74202
74203 2006-09-06  Bruno Haible  <bruno@clisp.org>
74204
74205         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74206         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74207         not using libtool correctly.
74208
74209 2006-09-06  Bruno Haible  <bruno@clisp.org>
74210
74211         * lib/striconv.h: New file.
74212         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74213         iconvstring.c.
74214         * lib/xstriconv.h: New file.
74215         * lib/xstriconv.c: New file.
74216
74217 2006-09-06  Bruno Haible  <bruno@clisp.org>
74218
74219         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74220         lib_..._LDFLAGS.
74221
74222 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74223
74224         * lib/argz_.h: Sync from Libtool.
74225
74226         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74227                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74228
74229         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74230
74231 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74232
74233         * modules/trim: New file.
74234
74235 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74236
74237         * lib/trim.h: New file.
74238         * lib/trim.c: New file.
74239
74240 2006-09-05  Bruno Haible  <bruno@clisp.org>
74241
74242         * MODULES.html.sh (String handling): Add trim.
74243
74244 2006-09-04  Karl Berry  <karl@gnu.org>
74245
74246         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74247         until next release.
74248
74249 2006-09-03  Bruno Haible  <bruno@clisp.org>
74250
74251         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74252         correctly.
74253
74254 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74257         not gl_GETLOADAVG.  Omit unneeded semicolons.
74258         Problems reported by Ralf Wildenhues in
74259         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74260         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74261         at the end, which is the usual gnulib style.
74262
74263         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74264         of doing all the work ourselves.
74265         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74266         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74267
74268 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74269
74270         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74271         Problem reported by Ralf Wildenhues in
74272         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74273
74274         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74275         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74276
74277 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74278
74279         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74280         yesterday's patch by changing test -n to test -z.
74281
74282 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74285         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74286         the former is now obsolescent.
74287
74288         * modules/chdir-long (Depends-on): Add fcntl.
74289
74290 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74291
74292         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74293         obsolescent, and programs should use gnulib instead.
74294         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74295         but with prefixes changed.
74296
74297 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74298
74299         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74300         or stdbool.h, because they might not exist while configuring.
74301
74302         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74303         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74304         does that for us.
74305         (O_DIRECTORY): Remove.
74306
74307 2006-08-31  Eric Blake  <ebb9@byu.net>
74308
74309         * gnulib-tool: Don't let emacs change spaces to TAB.
74310
74311 2006-08-31  Bruno Haible  <bruno@clisp.org>
74312
74313         * gnulib-tool: When calling func_import more than once, do it in a
74314         subshell.
74315         Reported by Eric Blake <ebb9@byu.net>.
74316
74317 2006-08-31  Bruno Haible  <bruno@clisp.org>
74318
74319         * gnulib-tool (nl): Remove variable.
74320         (sed_transform_lib_file): Use more robust test for config-h module.
74321         (func_import): Fix typo in 2006-08-25 patch.
74322
74323 2006-08-31  Bruno Haible  <bruno@clisp.org>
74324
74325         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74326         specified, augment Makefile.am variables instead of assigning them.
74327
74328 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74329
74330         Work around a bug in both the Linux and SunOS 64-bit kernels:
74331         nanosleep mishandles sleeps for longer than 2**31 seconds.
74332         Problem reported by Frank v Waveren in
74333         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74335         Check for nanosleep bug.
74336         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74337
74338 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74339
74340         Work around a bug in both the Linux and SunOS 64-bit kernels:
74341         nanosleep mishandles sleeps for longer than 2**31 seconds.
74342         Problem reported by Frank v Waveren in
74343         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74344         * lib/nanosleep.c (BILLION): New constant.
74345         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74346         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74347         implementation.
74348
74349 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74350
74351         * modules/nanosleep (Depends-on): Add gettime.
74352
74353 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74354         and Simon Josefsson  <jas@extundo.com>
74355         and Oskar Liljeblad  <oskar@osk.mine.nu>
74356
74357         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74358         * gnulib-tool (func_import): New license type 'unmodifiable license
74359         text'.
74360         * modules/fdl: Use it.  Longer description.
74361         * module/gpl, module/lgpl: New files.
74362
74363 2006-08-30  Jim Meyering  <jim@meyering.net>
74364
74365         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74366         shadowing the parameter.
74367
74368 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74369
74370         Sync from Libtool:
74371
74372         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74373
74374         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74375         sharing with gnulib.  Report by Eric Blake.
74376
74377 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * modules/isapipe: New file.
74380         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74381
74382 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         * modules/configmake (Makefile.am): Add a comment, and omit
74385         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74386         by Bruno Haible.
74387
74388 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74389
74390         * m4/isapipe.m4: New file.
74391
74392 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74393
74394         * lib/isapipe.c, lib/isapipe.h: New files.
74395
74396 2006-08-29  Jim Meyering  <jim@meyering.net>
74397
74398         * modules/configmake (Makefile.am): Make configmake.h depend on
74399         Makefile.  Otherwise, a stale configmake.h could hang around.
74400
74401 2006-08-29  Eric Blake  <ebb9@byu.net>
74402
74403         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74404         resolution of upstream bug 3044.
74405
74406 2006-08-29  Bruno Haible  <bruno@clisp.org>
74407
74408         * modules/localcharset (Depends-on): Add configmake.
74409         (Makefile.am): Remove setting of LIBDIR through DEFS.
74410
74411 2006-08-29  Bruno Haible  <bruno@clisp.org>
74412
74413         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74414         defined.
74415
74416 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74417
74418         * modules/fcntl: New file.
74419         * modules/chdir-safer (Depends-on): Add fcntl.
74420         * modules/fts: Likewise.
74421         * modules/mkdir-p: Likewise.
74422
74423         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74424         This undoes the most recent change, since we're now addressing the
74425         problem in a different way.
74426
74427         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74428         into output, since the output might be called Makefile.am even
74429         if $makefile_name is something different.
74430         (func_import): Use $makefile_am rather than
74431         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74432         empty.
74433
74434         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74435
74436 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74437
74438         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74439         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74440         recent change to stdint.m4, since we're now addressing the problem in a
74441         different way.
74442
74443 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74444
74445         * m4/fcntl_h.m4: New file.
74446
74447 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * lib/fcntl_.h: New file.
74450         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74451         the fcntl module.
74452         * lib/dirchownmod.c: Likewise.
74453         * lib/fts.c: Likewise.
74454
74455         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74456         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74457         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74458         just before including <inttypes.h>, to avoid circular inclusion.
74459
74460 2006-08-28  Jim Meyering  <jim@meyering.net>
74461
74462         * doc/visibility.texi: Actually read and correct the grammar of the
74463         sentence affected by yesterday's change.
74464
74465 2006-08-28  Eric Blake  <ebb9@byu.net>
74466
74467         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74468         needs wrapper.
74469
74470 2006-08-28  Eric Blake  <ebb9@byu.net>
74471
74472         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74473
74474 2006-08-28  Eric Blake  <ebb9@byu.net>
74475
74476         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74477
74478 2006-08-28  Bruno Haible  <bruno@clisp.org>
74479
74480         * modules/c-strstr: New file, from GNU gettext.
74481         * MODULES.html.sh (String handling): Add c-strstr.
74482
74483 2006-08-28  Bruno Haible  <bruno@clisp.org>
74484
74485         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74486         macros.
74487         Reported by Eric Blake.
74488
74489 2006-08-28  Bruno Haible  <bruno@clisp.org>
74490
74491         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74492         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74493         * lib/vasprintf.c: Include errno.h, limits.h.
74494         (EOVERFLOW): New fallback definition.
74495         (vasprintf): Test here whether the string length is > INT_MAX.
74496         * lib/vsnprintf.c: Include errno.h, limits.h.
74497         (EOVERFLOW): New fallback definition.
74498         (vsnprintf): Fix bug when generated string was too long for the buffer.
74499         Test here whether the string length is > INT_MAX.
74500
74501 2006-08-28  Bruno Haible  <bruno@clisp.org>
74502
74503         * lib/inttypes_.h (SCNX*): Remove definitions.
74504         Reported by Eric Blake.
74505
74506 2006-08-28  Bruno Haible  <bruno@clisp.org>
74507
74508         * lib/c-strstr.h: New file, from GNU gettext.
74509         * lib/c-strstr.c: New file, from GNU gettext.
74510
74511 2006-08-28  Bruno Haible  <bruno@clisp.org>
74512
74513         * gnulib-tool: Reorder some statements.
74514
74515 2006-08-28  Bruno Haible  <bruno@clisp.org>
74516
74517         * gnulib-tool: New option --makefile-name.
74518         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74519         $makefile_name.
74520         (func_import): Write $makefile_name to the cache file, and read it from
74521         there unless explicitly specified. Use $makefile_name as file name
74522         instead of Makefile.am. Adjust the recommendations accordingly.
74523
74524 2006-08-28  Bruno Haible  <bruno@clisp.org>
74525
74526         * gnulib-tool (func_verify_module): Check against misapplying patch.
74527
74528 2006-08-28  Bruno Haible  <bruno@clisp.org>
74529
74530         * gnulib-tool (func_relativize, func_relconcat): New functions.
74531         Give an error if --local-dir is given with --update.
74532         Remove trailing slashes from $local_gnulib_dir.
74533         (func_import): Store the relativized $local_gnulib_dir in
74534         gnulib-cache.m4, and read it from there if not specified explicitly.
74535
74536 2006-08-28  Bruno Haible  <bruno@clisp.org>
74537
74538         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74539         is the current directory. Respect also $local_gnulib_dir.
74540
74541 2006-08-28  Bruno Haible  <bruno@clisp.org>
74542             Simon Josefsson  <jas@extundo.com>
74543
74544         BeOS portability.
74545         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74546
74547 2006-08-27  Jim Meyering  <jim@meyering.net>
74548
74549         * doc/visibility.texi: Remove duplicate word: "pointer".
74550
74551 2006-08-26  Bruno Haible  <bruno@clisp.org>
74552
74553         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74554         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74555         (Makefile.am): Create inttypes.h from inttypes_.h.
74556         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74557
74558         * modules/imaxabs: New file.
74559
74560         * modules/imaxdiv: New file.
74561
74562 2006-08-26  Bruno Haible  <bruno@clisp.org>
74563
74564         * m4/inttypes.m4: New file.
74565         * m4/_inttypes_h.m4: Remove file.
74566         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74567         PRI_MACROS_BROKEN.
74568         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74569
74570         * m4/imaxabs.m4: New file.
74571
74572         * m4/imaxdiv.m4: New file.
74573
74574 2006-08-26  Bruno Haible  <bruno@clisp.org>
74575
74576         * lib/inttypes_.h: New file.
74577         * lib/inttypes.h: Remove file.
74578         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74579
74580         * lib/imaxabs.c: New file.
74581
74582         * lib/imaxdiv.c: New file.
74583
74584 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74585
74586         New config-h module, so that "make" output needn't be cluttered
74587         by -DHAVE_CONFIG_H.
74588         * MODULES.html.sh (Support for building libraries and executables):
74589         Add config-h.
74590         * modules/config-h: New file.
74591         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74592         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74593         the config-h module is used.
74594
74595         New configmake module, so that "make" output needn't be cluttered
74596         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74597         * MODULES.html.sh (Support for building libraries and executables):
74598         Add configmake.
74599         * modules/configmake: New file.
74600
74601 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74602
74603         * m4/config-h.m4: New file.
74604
74605 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * config/srclist.txt: Add elisp-comp.
74608
74609 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         * MODULES.html.sh (Support for building libraries and executables):
74612         Add elisp-comp.
74613         * build-aux/elisp-comp: New file.
74614         * modules/elisp-comp: New file.
74615
74616 2006-08-24  Bruno Haible  <bruno@clisp.org>
74617
74618         * gnulib-tool (func_create_testdir): Use non-default values of
74619         sourcebase and m4base.
74620
74621 2006-08-24  Bruno Haible  <bruno@clisp.org>
74622
74623         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74624         HTML structure.
74625
74626 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74627
74628         * modules/openat (Depends-on): Add lchown.
74629
74630 2006-08-23  Bruno Haible  <bruno@clisp.org>
74631
74632         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74633         of gl_LOCK_EARLY instead of gl_LOCK.
74634
74635 2006-08-23  Bruno Haible  <bruno@clisp.org>
74636
74637         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74638         on OSF/1 to no.
74639         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74640
74641 2006-08-23  Bruno Haible  <bruno@clisp.org>
74642
74643         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74644         as unusable.
74645
74646         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74647         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74648         (gl_LOCK): New macro.
74649
74650 2006-08-22  Simon Josefsson  <jas@extundo.com>
74651
74652         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74653         to md5 module.
74654
74655 2006-08-22  Simon Josefsson  <jas@extundo.com>
74656
74657         * MODULES.html.sh: Add "Support for maintaining and release
74658         projects".
74659
74660         * build-aux/gnupload: New file, from coreutils.
74661
74662 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74663
74664         Avoid the need for AC_LIBSOURCES in m4 macros.
74665         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74666         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74667         * modules/check-version (EXTRA_DIST): Add check-version.h.
74668         * modules/crc (EXTRA_DIST): Add crc.h.
74669         * modules/des (EXTRA_DIST): Add des.h.
74670         * modules/gc (EXTRA_DIST): Add gc.h.
74671         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74672         * modules/getline (EXTRA_DIST): Add getline.h.
74673         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74674         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74675         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74676         * modules/md2 (EXTRA_DIST): Add md2.h.
74677         * modules/md4 (EXTRA_DIST): Add md4.h.
74678         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74679         * modules/read-file (EXTRA_DIST): Add read-file.h.
74680         * modules/readline (EXTRA_DIST): Add readline.h.
74681         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74682         rijndael-api-fst.h.
74683
74684 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * m4/rijndael.m4 (gl_ARCFOUR):
74687         * m4/arctwo.m4 (gl_ARCTWO):
74688         * m4/check-version.m4 (gl_CHECK_VERSION):
74689         * m4/crc.m4 (gl_CRC):
74690         * m4/des.m4 (gl_DES):
74691         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74692         * m4/gc.m4 (gl_GC):
74693         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74694         * m4/getline.m4 (gl_FUNC_GETLINE):
74695         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74696         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74697         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74698         * m4/md2.m4 (gl_MD2):
74699         * m4/md4.m4 (gl_MD4):
74700         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74701         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74702         * m4/readline.m4 (gl_FUNC_READLINE):
74703         * m4/rijndael.m4 (gl_RIJNDAEL):
74704         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74705         to get the necessary .h files and whatnot.
74706
74707 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74708
74709         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74710         gnulib rather than the other way around.
74711         * config/srclistvars.sh (COREUTILS): Remove.
74712
74713 2006-08-22  Jim Meyering  <jim@meyering.net>
74714
74715         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74716
74717         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74718
74719 2006-08-22  Eric Blake  <ebb9@byu.net>
74720
74721         * modules/regexprops-generic: New file.
74722         * MODULES.html.sh (Support for building documentation): List it.
74723
74724 2006-08-22  Eric Blake  <ebb9@byu.net>
74725
74726         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74727         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74728         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74729         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74730
74731 2006-08-22  Bruno Haible  <bruno@clisp.org>
74732
74733         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74734         and lib_LTLIBRARIES like the other lib_* variables.
74735
74736 2006-08-22  Bruno Haible  <bruno@clisp.org>
74737
74738         * build-aux/x-to-1.in: New file, from GNU gettext.
74739
74740 2006-08-22  Bruno Haible  <bruno@clisp.org>
74741
74742         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74743         <utmpx.h> exists.
74744
74745 2006-08-22  Bruno Haible  <bruno@clisp.org>
74746
74747         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74748         <utmpx.h> exists.
74749
74750 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74751
74752         BeOS portability.
74753         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74754         exist.
74755         Problem reported by Bruno Haible.
74756
74757 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74758
74759         Avoid the need for AC_LIBSOURCES in m4 macros.
74760         * modules/acl (EXTRA_DIST): Add acl.h.
74761         * modules/argmatch (Files): Add m4/argmatch.m4.
74762         (configure.ac): Add gl_ARGMATCH.
74763         (EXTRA_DIST): Renamed from lib_SOURCES, for
74764         consistency with the other modules.  Remove argmatch.c.
74765         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74766         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74767         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74768         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74769         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74770         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74771         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74772         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74773         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74774         * modules/closeout (EXTRA_DIST): Add closeout.h.
74775         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74776         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74777         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74778         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74779         dirname.h; remove basename.c and stripslash.c.
74780         * modules/exclude (EXTRA_DIST): Add exclude.h.
74781         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74782         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74783         * modules/file-type (EXTRA_DIST): Add file-type.h.
74784         * modules/filemode (EXTRA_DIST): Add filemode.h.
74785         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74786         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74787         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74788         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74789         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74790         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74791         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74792         * modules/getdate (EXTRA_DIST): Add getdate.c.
74793         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74794         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74795         * modules/getpass (EXTRA_DIST): Add getpass.h.
74796         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74797         * modules/group-member (EXTRA_DIST): Add group-member.h.
74798         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74799         * modules/hash (EXTRA_DIST): Add hash.h.
74800         * modules/human (EXTRA_DIST): Add human.h.
74801         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74802         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74803         * modules/lchown (EXTRA_DIST): Add lchown.h.
74804         * modules/long-options (EXTRA_DIST): Add long-options.h.
74805         * modules/lstat (EXTRA_DIST): Add lstat.h.
74806         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74807         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74808         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74809         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74810         * modules/memxor (EXTRA_DIST): Add memxor.h.
74811         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74812         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74813         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74814         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74815         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74816         * modules/physmem (EXTRA_DIST): Add physmem.h.
74817         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74818         * modules/posixver (EXTRA_DIST): Add posixver.h.
74819         * modules/quote (EXTRA_DIST): Add quote.h.
74820         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74821         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74822         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74823         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74824         regex_internal.h regexec.c.
74825         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74826         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74827         * modules/same (EXTRA_DIST): Add same.h.
74828         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74829         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74830         * modules/savedir (EXTRA_DIST): Add savedir.h.
74831         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74832         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74833         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74834         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74835         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74836         * modules/strdup (EXTRA_DIST): Add strdup.h.
74837         * modules/strftime (EXTRA_DIST): Add strftime.h.
74838         * modules/strndup (EXTRA_DIST): Add strndup.h.
74839         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74840         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74841         * modules/time_r (EXTRA_DIST): Add time_r.h.
74842         * modules/timespec (EXTRA_DIST): Add timespec.h.
74843         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74844         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74845         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74846         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74847         * modules/userspec (EXTRA_DIST): Add userspec.h.
74848         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74849         * modules/utimens (EXTRA_DIST): Add utimens.h.
74850         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74851         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74852         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74853         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74854         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74855         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74856         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74857         * modules/yesno (EXTRA_DIST): Add yesno.h.
74858
74859 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74862
74863         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74864         * m4/dev-ino.m4, same-inode.m4: Remove.
74865
74866         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74867         * m4/acl.m4 (AC_FUNC_ACL):
74868         * m4/backupfile.m4 (gl_BACKUPFILE):
74869         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74870         * m4/canon-host.m4 (gl_CANON_HOST):
74871         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74872         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74873         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74874         * m4/cloexec.m4 (gl_CLOEXEC):
74875         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74876         * m4/closeout.m4 (gl_CLOSEOUT):
74877         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74878         * m4/dirname.m4 (gl_DIRNAME):
74879         * m4/exclude.m4 (gl_EXCLUDE):
74880         * m4/exitfail.m4 (gl_EXITFAIL):
74881         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74882         * m4/file-type.m4 (gl_FILE_TYPE):
74883         * m4/filemode.m4 (gl_FILEMODE):
74884         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74885         * m4/fpending.m4 (gl_FUNC_FPENDING):
74886         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74887         * m4/fts.m4 (gl_FUNC_FTS):
74888         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74889         * m4/getdate.m4 (gl_GETDATE):
74890         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74891         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74892         * m4/getpass.m4 (gl_FUNC_GETPASS):
74893         * m4/gettime.m4 (gl_GETTIME):
74894         * m4/getugroups.m4 (gl_GETUGROUPS):
74895         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74896         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74897         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74898         * m4/hash.m4 (gl_HASH):
74899         * m4/idcache.m4 (gl_IDCACHE):
74900         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74901         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74902         * m4/long-options.m4 (gl_LONG_OPTIONS):
74903         * m4/lstat.m4 (gl_FUNC_LSTAT):
74904         * m4/md5.m4 (gl_MD5):
74905         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74906         * m4/memcoll.m4 (gl_MEMCOLL):
74907         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74908         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74909         * m4/memxor.m4 (gl_MEMXOR):
74910         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74911         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74912         * m4/modechange.m4 (gl_MODECHANGE):
74913         * m4/mountlist.m4 (gl_MOUNTLIST):
74914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74915         * m4/openat.m4 (gl_FUNC_OPENAT):
74916         * m4/pathmax.m4 (gl_PATHMAX):
74917         * m4/physmem.m4 (gl_PHYSMEM):
74918         * m4/posixtm.m4 (gl_POSIXTM):
74919         * m4/posixver.m4 (gl_POSIXVER):
74920         * m4/quote.m4 (gl_QUOTE):
74921         * m4/quotearg.m4 (gl_QUOTEARG):
74922         * m4/readtokens.m4 (gl_READTOKENS):
74923         * m4/readutmp.m4 (gl_READUTMP):
74924         * m4/regex.m4 (gl_REGEX):
74925         * m4/safe-read.m4 (gl_SAFE_READ):
74926         * m4/safe-write.m4 (gl_SAFE_WRITE):
74927         * m4/same.m4 (gl_SAME):
74928         * m4/save-cwd.m4 (gl_SAVE_CWD):
74929         * m4/savedir.m4 (gl_SAVEDIR):
74930         * m4/settime.m4 (gl_SETTIME):
74931         * m4/sha1.m4 (gl_SHA1):
74932         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74933         * m4/stat-macros.m4 (gl_STAT_MACROS):
74934         * m4/stat-time.m4 (gl_STAT_TIME):
74935         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74936         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74937         * m4/strdup.m4 (gl_FUNC_STRDUP):
74938         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74939         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74940         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74941         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74942         * m4/time_r.m4 (gl_TIME_R):
74943         * m4/timespec.m4 (gl_TIMESPEC):
74944         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74945         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74946         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74947         * m4/userspec.m4 (gl_USERSPEC):
74948         * m4/utimecmp.m4 (gl_UTIMECMP):
74949         * m4/utimens.m4 (gl_UTIMENS):
74950         * m4/xalloc.m4 (gl_XALLOC):
74951         * m4/xgetcwd.m4 (gl_XGETCWD):
74952         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74953         * m4/xreadlink.m4 (gl_XREADLINK):
74954         * m4/xstrtod.m4 (gl_XSTRTOD):
74955         * m4/yesno.m4 (gl_YESNO):
74956         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74957         to get the necessary .h files and whatnot.
74958
74959 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74960             Bruno Haible  <bruno@clisp.org>
74961
74962         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74963         /bin/sh understanding of '!' conditional negation.
74964
74965 2006-08-21  Jim Meyering  <jim@meyering.net>
74966
74967         * modules/openat (Depends-on): Really alphabetize.
74968
74969         * modules/acl (Depends-on): Add error and quote.
74970
74971         * check-module (find_included_lib_files): Add at-func.c to the
74972         ok-to-include-more-than-once white list.
74973
74974         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74975
74976 2006-08-21  Bruno Haible  <bruno@clisp.org>
74977
74978         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74979         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74980         Reported by Martin Lambers <marlam@marlam.de>.
74981
74982 2006-08-21  Bruno Haible  <bruno@clisp.org>
74983
74984         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74985         specify an installation location, don't emit a noinst_LIBRARIES or
74986         noinst_LTLIBRARIES assignment.
74987
74988 2006-08-21  Bruno Haible  <bruno@clisp.org>
74989
74990         BeOS portability.
74991         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74992         BeOS has mbrtowc() but no <wctype.h>.
74993
74994 2006-08-21  Bruno Haible  <bruno@clisp.org>
74995
74996         BeOS portability.
74997         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74998         exist.
74999
75000 2006-08-21  Bruno Haible  <bruno@clisp.org>
75001
75002         BeOS portability.
75003         * lib/mbchar.h: Include <wctype.h> only if it exists.
75004
75005 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75006
75007         Remove files that are no longer needed by their respective modules.
75008         * m4/obstack.m4: Remove.
75009         * m4/strerror_r.m4: Remove.
75010         * m4/uint32_t.m4: Remove.
75011         * m4/uintptr_t.m4: Remove.
75012         * m4/ullong_max.m4: Remove.
75013         * m4/xstrtoimax.m4: Remove.
75014         * m4/xstrtoumax.m4: Remove.
75015
75016         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75017         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75018         dependencies now capture this.
75019
75020         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75021         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75022         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75023         * m4/human.m4 (gl_HUMAN): Likewise.
75024         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75025         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75026
75027         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75028
75029         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75030         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75031         stdint.
75032         * m4/human.m4 (gl_HUMAN): Likewise.
75033         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75034         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75035         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75036         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75037         * m4/xstrtol (gl_XSTRTOL): Likewise.
75038
75039         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75040         AC_TYPE_LONG_LONG_INT.
75041         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75042         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75043         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75044         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75045
75046         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75047         on stdbool.
75048
75049         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75050         (gl_PREREQ_XSTRTOUL): Remove.
75051
75052         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75053
75054         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75055         mode.
75056
75057 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         Add and change modules to make it easier for coreutils to use
75060         gnulib-tool.
75061         * modules/backupfile (Files): Remove m4/d-ino.m4.
75062         (Depends-on): Add d-ino.
75063         * modules/cycle-check (Depends-on): Add stdint.
75064         (lib_SOURCES): Add cycle-check.h.
75065         * modules/d-ino: New module.
75066         * modules/d-type: New module.
75067         * modules/error (Files): Remove m4/strerror_r.m4.
75068         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75069         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75070         m4/inttypes_h.m4, m4/uintmax_t.m4.
75071         (Depends-on): Add stdint.
75072         (lib_SOURCES): Add fsusage.h.
75073         * modules/getcwd (Files): Remove d-ino.m4.
75074         (Depends-on): Add d-ino.
75075         * modules/getndelim2 (Depends-on): Add stdint.
75076         * modules/glob (Files): Remove m4/d-type.m4.
75077         (Depends-on): Add d-type.
75078         * modules/host-os: New module.
75079         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75080         m4/inttypes_h.m4, m4/uintmax_t.m4.
75081         * Depends-on: Add stdint.
75082         (lib_SOURCES): Add human.h.
75083         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75084         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75085         m4/uintmax_t.m4, m4/ulonglong.m4.
75086         (Depends-on): Add stdint.
75087         (EXTRA_DIST): Add inttostr.h.
75088         * modules/lchmod: New module.
75089         * modules/link-follow: New module.
75090         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75091         (Depends-on): Add lchmod.
75092         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75093         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75094         (Depends-on): Add stdint.
75095         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75096         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75097         (Depends-on): Add stdint.
75098         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75099         * modules/perl: New module.
75100         * modules/regex (Depends-on): Add stdint.
75101         * modules/rmdir-errno: New module.
75102         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75103         m4/intmax_t.m4.
75104         (Depends-on): Add stdint.
75105         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75106         m4/uintmax_t.m4.
75107         (Depends-on): Add stdint.
75108         * modules/unlink-busy: New module.
75109         * modules/utimecmp (Depends-on): Add stdint.
75110         * modules/uptime: New module.
75111         * modules/winsz-ioctl: New module.
75112         * modules/winsz-termios: New module.
75113         * modules/xnanosleep (Depends-on): Add nanosleep.
75114         * modules/ullong_max: Remove.
75115         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75116         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75117         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75118         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75119         (Depends-on): Add inttypes.
75120         (lib_SOURCES): Add xstrtol.h.
75121         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75122         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75123         * MODULES.html.sh: Move 'assert' into the assert section.
75124         Move 'dummy' into the linking section.
75125         Remove ullong_max.
75126         Add section for compatibility checks for POSIX:2001 functions,
75127         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75128         winsz-ioctl, and winsz-termios into it.
75129         Add lchmod.
75130         Add top-level Misc section and put host-os, perl, and uptime
75131         into it.
75132
75133 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75136         now assume the stdint module.  Do not include inttypes.h.
75137         * lib/fsusage.h: Likewise.
75138         * lib/getndelim2.c: Likewise.
75139         * lib/human.h: Likewise.
75140         * lib/inttostr.h: Likewise.
75141         * lib/obstack.c: Likewise.
75142         * lib/regex_internal.h: Likewise.
75143         * lib/tempname.c: Likewise.
75144         * lib/utimecmp.c: Likewise.
75145         * lib/xstrtol.h: Likewise.
75146
75147         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75148
75149         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75150         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75151         * lib/xtime.h: Likewise.
75152
75153 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75154
75155         * modules/openat (Files): Add lib/fchmodat.c.
75156         Fixes problem reported by Jay Youngman.
75157
75158 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75159
75160         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75161         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75162
75163 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75164             Bruno Haible  <bruno@clisp.org>
75165
75166         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75167         and is a script that invokes bison. Tighten the code. Add comments.
75168
75169 2006-08-18  Jim Meyering  <jim@meyering.net>
75170
75171         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75172         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75173         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75174         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75175
75176 2006-08-18  Bruno Haible  <bruno@clisp.org>
75177
75178         * modules/bison-i18n: New file.
75179         * MODULES.html.sh (Internationalization functions): Add it.
75180
75181 2006-08-18  Bruno Haible  <bruno@clisp.org>
75182
75183         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75184         sys/statvfs.h. When getmntinfo was found, check its declaration and
75185         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75186
75187 2006-08-18  Bruno Haible  <bruno@clisp.org>
75188
75189         * m4/bison-i18n.m4: New file, from bison.
75190
75191 2006-08-18  Bruno Haible  <bruno@clisp.org>
75192
75193         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75194         (ME_DUMMY): Treat "kernfs" as a dummy.
75195         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75196
75197 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         Update from coreutils.
75200
75201         2006-08-15  Jim Meyering  <jim@meyering.net>
75202
75203         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75204
75205         2006-01-17  Jim Meyering  <jim@meyering.net>
75206
75207         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75208
75209         2006-01-11  Jim Meyering  <jim@meyering.net>
75210
75211         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75212         Check for the lchmod function.
75213
75214 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75215
75216         Update from coreutils.
75217
75218         * lib/__fpending.h: Add copyright notice.
75219         * lib/fprintftime.h: Likewise.
75220         * lib/savedir.c: Use (C) in copyright notice.
75221         * lib/savedir.h: Likewise.
75222
75223         2006-08-15  Jim Meyering  <jim@meyering.net>
75224
75225         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75226         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75227         in support of the EXPECTED_ERRNO macro.
75228         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75229         definitions.  Instead, define the appropriate symbols and include
75230         "at-func.c".
75231         * lib/mkdirat.c (mkdirat): Likewise.
75232         * lib/fchmodat.c (fchmodat): Likewise.
75233         (ENOSYS): Remove definition.
75234         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75235         it.  Don't include "unistd--.h" -- it wasn't ever used.
75236
75237         2006-01-17  Jim Meyering  <jim@meyering.net>
75238
75239         Rewrite fts.c not to change the current working directory,
75240         by using openat, fstatat, fdopendir, etc..
75241
75242         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75243         (HAVE_OPENAT_SUPPORT): Define.
75244         [_LIBC] (fchdir): Don't undef or define; no longer used.
75245         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75246         Now, this `function' always succeeds, and consumes its file descriptor
75247         parameter -- so callers must not close such FDs.  Update callers.
75248         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75249         (diropen): Add parameter, SP.  Adjust all callers.
75250         Implement using diropen_fd, rather than open.
75251         (fts_open): Initialize new member, fts_cwd_fd.
75252         Remove fts_rft-setting code.
75253         (fts_close): Close fts_cwd_fd, if necessary.
75254         (__opendir2): Define in terms of opendir or opendirat,
75255         depending on whether the FST_NOCHDIR flag is set.
75256         (fts_build): Since fts_safe_changedir consumes its FD, and since
75257         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75258         and close the dup'd file descriptor upon failure.
75259         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75260         (fts_safe_changedir): Tweak semantics to reflect that this function
75261         now calls cwd_advance_fd and hence consumes its FD argument.
75262         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75263         [struct FTS] (fts_rft): Remove now-unused member.
75264         [struct FTS] (fts_cycle.state): Improve comment.
75265
75266         * lib/openat.c (openat_needs_fchdir): New function.
75267         * lib/openat.h (openat_needs_fchdir): Declare it.
75268
75269 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75272         Problem and fix reported by Pádraig Brady in
75273         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75274
75275 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75276
75277         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75278
75279 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75280
75281         * lib/memcoll.c (memcoll): Optimize for the common case where the
75282         arguments are bytewise equal.
75283
75284 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         * doc/regexprops-generic.texi: Add a copyright notice.
75287
75288 2006-08-15  Bruno Haible  <bruno@clisp.org>
75289
75290         * modules/tmpdir (License): Change to LGPL.
75291
75292 2006-08-15  Bruno Haible  <bruno@clisp.org>
75293
75294         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75295         module.
75296
75297 2006-08-14  Simon Josefsson  <jas@extundo.com>
75298
75299         * config/srclist.txt: Add gnupload.
75300
75301 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75302
75303         Change copyright notice from LGPL 2 to GPL 2, since that's the
75304         standard form used in the gnulib repository.
75305         * tests/test-lock.c: Likewise.
75306         * tests/test-stdint.c: Likewise.
75307         * tests/test-tls.c: Likewise.
75308
75309         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75310         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75311         Add copyright notice.
75312
75313         * check-module: Add copyright notice.  Output a copyright
75314         notice if "--version" is specified.
75315         * modules/COPYING: New file.
75316         * tests/test-getaddrinfo.c: Add copyright notice.
75317         * tests/test-verify.c: Likewise.
75318
75319 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75320
75321         Change copyright notice from LGPL 2 to GPL 2, since that's the
75322         standard form used in the gnulib repository.
75323         * lib/lock.c: LGPL -> GPL.
75324         * lib/lock.h: Likewise.
75325         * lib/strnlen1.c: Likewise.
75326         * lib/strnlen1.h: Likewise.
75327         * lib/tls.c: Likewise.
75328         * lib/tls.h: Likewise.
75329         * lib/tmpdir.c: Likewise.
75330
75331         * lib/TODO: Remove; this belongs only in coreutils.
75332
75333 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         Add copyright notices to long-enough files that lack them, since
75336         otherwise the files aren't clearly free.  Use the same notice that
75337         getdate.texi already uses.
75338         * doc/alloca-opt.texi: Add copyright notice.
75339         * doc/alloca.texi: Likewise.
75340         * doc/ctime.texi: Likewise.
75341         * doc/functions.texi: Likewise.
75342         * doc/gcd.texi: Likewise.
75343         * doc/gnulib-tool.texi: Likewise.
75344         * doc/inet_ntoa.texi: Likewise.
75345         * doc/visibility.texi: Likewise.
75346
75347         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75348         * doc/quote.texi: Add copyright notice.
75349
75350         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75351         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75352         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75353         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75354         is now obsolete, and give a pointer to the Sun list.
75355         Add copyright notice.
75356
75357 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75358
75359         * config/srclistvars.sh: Add copyright notice.
75360
75361 2006-08-14  Eric Blake  <ebb9@byu.net>
75362
75363         Import the following change from libc:
75364
75365         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75366
75367         Upstream bug 2997.
75368         * lib/misc/error.c: Add space between program name and message if file
75369         name is missing.
75370
75371 2006-08-12  Karl Berry  <karl@gnu.org>
75372
75373         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75374         remove, these originate in gnulib now.
75375
75376 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75377
75378         * doc/Makefile (standards.info standards.html standards.dvi):
75379         Also depend on make-stds.texi.
75380
75381 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75384         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75385
75386         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75387         in wchar_t.  Problem reported by Eric Blake.
75388
75389         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75390         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75391         Also, help the compiler to keep LEN in a register.
75392
75393 2006-08-11  Eric Blake  <ebb9@byu.net>
75394
75395         * users.txt: Sort.  Add tar.
75396
75397 2006-08-11  Bruno Haible  <bruno@clisp.org>
75398
75399         * users.txt: New file.
75400
75401 2006-08-11  Bruno Haible  <bruno@clisp.org>
75402
75403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75404         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75405
75406 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75407
75408         * modules/snprintf (Depends-on): Remove minmax.
75409         (Maintainer): Add self and Bruno.
75410
75411 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75412
75413         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75414         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75415         (EOVERFLOW): Define if the system does not.
75416         Do not include "minmax.h"; it wasn't used.
75417         (snprintf): Don't assume size_t promotes to an unsigned type.
75418         Fix bug when generated string was too long for the buffer: the
75419         buffer's contents are supposed to be the initial prefix of the
75420         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75421         exceeds INT_MAX; do the check ourselves.
75422
75423         Import the following changes from libc:
75424
75425         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75426
75427         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75428         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75429         set wc to the byte which couldn't be converted.
75430         (re_string_reconstruct): Don't clear valid_raw_len before calling
75431         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75432         tip_context using re_string_context_at.
75433
75434         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75435
75436         * lib/posix/regex.h: g++ still cannot handled [restrict].
75437
75438         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75439
75440         * lib/posix/regex.h: Remove special handling for VMS.
75441
75442 2006-08-10  Jim Meyering  <jim@meyering.net>
75443
75444         * modules/same-inode: New module.
75445         * modules/dev-ino: New module.
75446         * modules/cycle-check: Depend on these modules, rather than simply
75447         including their .h files.
75448         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75449         required via m4/cycle-check.m4.
75450         * modules/same: Depend on new same-inode module, rather than
75451         including same-inode.h.
75452         * modules/chdir-safer: New file.
75453
75454         * modules/chown (Depends-on): Add stat-macros.
75455
75456 2006-08-10  Jim Meyering  <jim@meyering.net>
75457
75458         * m4/cycle-check.m4: New file.
75459         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75460         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75461
75462 2006-08-10  Eric Blake  <ebb9@byu.net>
75463
75464         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75465         in from original proposal.
75466
75467 2006-08-10  Eric Blake  <ebb9@byu.net>
75468         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75469
75470         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75471         namespace.
75472
75473 2006-08-10  Bruno Haible  <bruno@clisp.org>
75474
75475         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75476         as well.
75477
75478 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         Sync from coreutils.
75481
75482         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75483
75484         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75485         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75486
75487 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         * modules/restrict: Remove; no longer needed now that we assume
75490         Autoconf 2.59 or later.
75491         * MODULES.html.sh: Remove 'restrict'.
75492         * modules/argp (Depends-on): Remove 'restrict'.
75493         * modules/base64 (Depends-on): Likewise.
75494         * modules/gc (Depends-on): Likewise.
75495         * modules/getaddrinfo (Depends-on): Likewise.
75496         * modules/glob (Depends-on): Likewise.
75497         * modules/inet_ntop (Depends-on): Likewise.
75498         * modules/inet_pton (Depends-on): Likewise.
75499         * modules/memxor (Depends-on): Likewise.
75500         * modules/regex (Depends-on): Likewise.
75501         * modules/strtok_r (Depends-on): Likewise.
75502         * modules/time_r (Depends-on): Likewise.
75503
75504 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75505
75506         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75507         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75508         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75509         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75510         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75511         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75512         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75513         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75514
75515         Merge from coreutils.
75516         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75517         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75518         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75519         * m4/time_r.m4 (gl_TIME_R): Likewise.
75520
75521 2006-08-09  Karl Berry  <karl@gnu.org>
75522
75523         * config/srclist.txt: no more gettext-tools, per Bruno.
75524
75525 2006-08-08  Eric Blake  <ebb9@byu.net>
75526
75527         * modules/verror: New module.
75528         * MODULES.html.sh: Document it.
75529
75530 2006-08-08  Eric Blake  <ebb9@byu.net>
75531
75532         * lib/verror.h, lib/verror.c: New files.
75533
75534 2006-08-08  Eric Blake  <ebb9@byu.net>
75535
75536         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75537         verror_at_line output complies with GNU Coding Standards even when
75538         file is NULL.
75539
75540 2006-08-07  Bruno Haible  <bruno@clisp.org>
75541
75542         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75543         versions of AIX.
75544         Reported by Ralf Wildenhues.
75545
75546 2006-08-07  Bruno Haible  <bruno@clisp.org>
75547
75548         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75549         in an AC_DEFUN. Needed so that the autoconf snippets can use
75550         AC_REQUIRE.
75551
75552 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75553
75554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75555         Initialize pkgdata_DATA.
75556         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75557         overriding it.
75558
75559 2006-08-06  Eric Blake  <ebb9@byu.net>
75560
75561         * lib/error.h: Fold in some upstream changes from glibc.
75562         * lib/error.c: Likewise.
75563
75564 2006-08-04  Bruno Haible  <bruno@clisp.org>
75565
75566         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75567         Make the mostlyclean-local rule depend on mostlyclean-generic.
75568         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75569
75570 2006-07-31  Bruno Haible  <bruno@clisp.org>
75571
75572         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75573         <stdlib.h>, <string.h>.
75574
75575 2006-07-30  Bruno Haible  <bruno@clisp.org>
75576
75577         * modules/readlink (License): Change to LGPL.
75578
75579 2006-07-30  Bruno Haible  <bruno@clisp.org>
75580
75581         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75582         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75583         set PKGDATADIR to point to it.
75584
75585 2006-07-30  Bruno Haible  <bruno@clisp.org>
75586
75587         * modules/csharpexec (configure.ac): Comment out macro invocation.
75588         * modules/javaexec (configure.ac): Likewise.
75589         * modules/javacomp-script (configure.ac): Likewise.
75590
75591         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75592
75593 2006-07-30  Bruno Haible  <bruno@clisp.org>
75594
75595         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75596         linked-list.
75597
75598 2006-07-30  Bruno Haible  <bruno@clisp.org>
75599
75600         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75601
75602 2006-07-30  Bruno Haible  <bruno@clisp.org>
75603
75604         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75605         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75606         get removed.
75607
75608 2006-07-29  Bruno Haible  <bruno@clisp.org>
75609
75610         Make it possible for gnulib-tool to work with locally modified or
75611         augmented gnulib repositories.
75612         * gnulib-tool (func_usage): Document --local-dir option.
75613         (local_gnulib_dir): New variable.
75614         Handle --local-dir option.
75615         (func_lookup_file): New function.
75616         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75617         (func_get_description, func_get_filelist, func_get_description,
75618         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75619         func_get_automake_snippet, func_get_include_directive,
75620         func_get_license, func_get_maintainer): Use func_lookup_file.
75621         (func_import, func_create_testdir): Use func_lookup_file.
75622
75623 2006-07-29  Bruno Haible  <bruno@clisp.org>
75624
75625         * modules/setenv (Depends-on): Add unistd.
75626
75627 2006-07-29  Bruno Haible  <bruno@clisp.org>
75628
75629         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75630
75631 2006-07-29  Bruno Haible  <bruno@clisp.org>
75632
75633         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75634
75635 2006-07-29  Bruno Haible  <bruno@clisp.org>
75636
75637         * gnulib-tool (import, update): If there is no Makefile.am, look at
75638         aclocal.m4, instead of bailing out.
75639
75640 2006-07-29  Bruno Haible  <bruno@clisp.org>
75641
75642         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75643         Categorize the options by when they are useful.
75644
75645 2006-07-29  Bruno Haible  <bruno@clisp.org>
75646
75647         * gnulib-tool (func_usage): Document option --no-libtool.
75648         Handle option --no-libtool.
75649         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75650         for changed semantics of $libtool variable.
75651         (func_import): Likewise. If libtool is not used, show this through
75652         an option --no-libtool.
75653         (func_create_testdir): Update.
75654
75655 2006-07-29  Bruno Haible  <bruno@clisp.org>
75656
75657         * gnulib-tool (func_import): Extend error message about missing
75658         --doc-base.
75659
75660 2006-07-29  Bruno Haible  <bruno@clisp.org>
75661
75662         * gnulib-tool (func_import): Don't create the $docbase directory if
75663         there is no file to store there.
75664
75665 2006-07-29  Bruno Haible  <bruno@clisp.org>
75666
75667         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75668         relevant, look for configure.ac there, not in the current directory.
75669         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75670
75671 2006-07-29  Bruno Haible  <bruno@clisp.org>
75672
75673         * gnulib-tool (SORT): New variable.
75674         (func_usage): Undocument --assume-autoconf option.
75675         Remove --assume-autoconf option handling.
75676         (autoconf_minversion): Determine from the contents of configure.ac.
75677         (func_import): Remove autoconf_minversion handling.
75678         Suggested by Eric Blake.
75679
75680 2006-07-29  Bruno Haible  <bruno@clisp.org>
75681
75682         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75683
75684 2006-07-29  Bruno Haible  <bruno@clisp.org>
75685
75686         * config/srclist.txt (*setenv.[ch]): Remove rules.
75687
75688 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75689
75690         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75691
75692 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75693
75694         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75695         arpa/inet.h.
75696
75697 2006-07-28  Simon Josefsson  <jas@extundo.com>
75698
75699         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75700         * modules/inet_pton (Depends-on): Likewise.
75701
75702 2006-07-28  Simon Josefsson  <jas@extundo.com>
75703
75704         * m4/netinet_in_h.m4: New file.
75705
75706 2006-07-28  Simon Josefsson  <jas@extundo.com>
75707
75708         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75709         #include's.
75710
75711 2006-07-28  Simon Josefsson  <jas@extundo.com>
75712
75713         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75714         #include's.
75715
75716 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75719         setgid on directories only if they set these bits.
75720         * lib/modechange.h: Remove obsolete comment about masks.
75721
75722 2006-07-28  Eric Blake  <ebb9@byu.net>
75723
75724         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75725         macro expansion.
75726
75727 2006-07-28  Bruno Haible  <bruno@clisp.org>
75728
75729         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75730
75731 2006-07-28  Bruno Haible  <bruno@clisp.org>
75732
75733         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75734
75735 2006-07-28  Bruno Haible  <bruno@clisp.org>
75736
75737         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75738         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75739         Define fallbacks.
75740         Avoids link error on FreeBSD 4.x.
75741         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75742
75743         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75744         encoding.
75745         * lib/mbswidth.c (iswcntrl): Likewise.
75746
75747 2006-07-27  Bruno Haible  <bruno@clisp.org>
75748
75749         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75750         test.
75751
75752 2006-07-27  Bruno Haible  <bruno@clisp.org>
75753
75754         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75755         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75756         defined.
75757
75758 2006-07-26  Eric Blake  <ebb9@byu.net>
75759
75760         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75761
75762 2006-07-26  Eric Blake  <ebb9@byu.net>
75763
75764         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75765         like mingw that lack mkstemp.
75766         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75767         avoid compilation warning on mingw.
75768
75769 2006-07-26  Bruno Haible  <bruno@clisp.org>
75770
75771         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75772         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75773         INT_FAST*_MIN, INTPTR_MIN.
75774
75775 2006-07-25  Bruno Haible  <bruno@clisp.org>
75776
75777         * modules/version-etc (Depends-on): Add stdarg.
75778
75779 2006-07-25  Bruno Haible  <bruno@clisp.org>
75780
75781         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75782         complex commands.
75783
75784 2006-07-25  Bruno Haible  <bruno@clisp.org>
75785
75786         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75787         defined in <stdarg.h> or config.h.
75788
75789 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75790
75791         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75792         (gl_STDIO_SAFER): Remove.
75793
75794 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75795
75796         * MODULES.html.sh (File stream based Input/Output):
75797         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75798         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75799         * modules/fopen-safer, modules/tmpfile-safer: New files.
75800         * modules/stdio-safer: Remove.
75801
75802 2006-07-24  Bruno Haible  <bruno@clisp.org>
75803
75804         * modules/tmpdir: New file.
75805         * MODULES.html.sh (File system functions): Add it.
75806
75807 2006-07-24  Bruno Haible  <bruno@clisp.org>
75808
75809         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75810         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75811
75812 2006-07-24  Bruno Haible  <bruno@clisp.org>
75813
75814         * modules/clean-temp: New file.
75815
75816 2006-07-24  Bruno Haible  <bruno@clisp.org>
75817
75818         * m4/tmpdir.m4: New file, from GNU gettext.
75819
75820 2006-07-24  Bruno Haible  <bruno@clisp.org>
75821
75822         * lib/tmpdir.h: New file, from GNU gettext.
75823         * lib/tmpdir.c: New file, from GNU gettext.
75824
75825 2006-07-24  Bruno Haible  <bruno@clisp.org>
75826
75827         * lib/clean-temp.h: New file, from GNU gettext.
75828         * lib/clean-temp.c: New file, from GNU gettext.
75829
75830 2006-07-23  Eric Blake  <ebb9@byu.net>
75831
75832         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75833         (Depends-on): Add binary-io.
75834
75835 2006-07-23  Eric Blake  <ebb9@byu.net>
75836
75837         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75838
75839 2006-07-23  Eric Blake  <ebb9@byu.net>
75840
75841         * lib/tmpfile-safer.c: New file.
75842         * lib/stdio-safer.h (fopen_safer): Add prototype.
75843         * lib/stdio--.h (tmpfile): Make safer.
75844
75845 2006-07-23  Bruno Haible  <bruno@clisp.org>
75846
75847         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75848         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75849         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75850         gl_linked_remove_at): Use it.
75851
75852 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75853         and Simon Josefsson <jas@extundo.com>
75854
75855         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75856
75857         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75858
75859 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * modules/close-stream: New file.
75862         * modules/closeout (Description): Make it clear that it exits
75863         with a diagnostic on error.
75864         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75865         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75866
75867 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * m4/close-stream.m4: New file.
75870
75871 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         * lib/close-stream.c, lib/close-stream.h: New files.
75874
75875 2006-07-22  Bruno Haible  <bruno@clisp.org>
75876
75877         Merge from GNU gettext 0.15.
75878
75879         2006-05-01  Bruno Haible  <bruno@clisp.org>
75880
75881                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75882
75883         2006-07-22  Bruno Haible  <bruno@clisp.org>
75884
75885                 * modules/javaversion: New file.
75886                 * MODULES.html.sh (Java): Add javaversion.
75887
75888         2006-03-12  Bruno Haible  <bruno@clisp.org>
75889
75890                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75891
75892         2005-12-04  Bruno Haible  <bruno@clisp.org>
75893
75894                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75895                 (untested).
75896
75897         2006-06-21  Bruno Haible  <bruno@clisp.org>
75898
75899                 Avoid warnings from recent versions of mcs.
75900                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75901                 -o, -L, -r any more. Use options documented since mcs-1.0
75902                 instead. Similarly for -g.
75903
75904         2005-12-04  Bruno Haible  <bruno@clisp.org>
75905
75906                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75907                 .resources, not .resource.
75908
75909         2005-07-09  Bruno Haible  <bruno@clisp.org>
75910
75911                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75912                 add a .dll suffix.
75913                 Reported by Mark Junker <mjscod@gmx.de>.
75914
75915         2006-07-22  Bruno Haible  <bruno@clisp.org>
75916
75917                 * modules/gettext: Upgrade to gettext-0.15.
75918                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75919                 m4/visibility.m4.
75920                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75921
75922 2006-07-22  Bruno Haible  <bruno@clisp.org>
75923
75924         Merge from GNU gettext 0.15.
75925
75926         2006-03-25  Bruno Haible  <bruno@clisp.org>
75927
75928                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75929
75930         2006-07-21  Bruno Haible  <bruno@clisp.org>
75931
75932                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75933                 "1.1".
75934
75935         2006-05-09  Bruno Haible  <bruno@clisp.org>
75936
75937                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75938                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75939                 for the conftestver execution.
75940
75941         2006-05-01  Bruno Haible  <bruno@clisp.org>
75942
75943                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75944                 optional target-version argument. Verify that the compiler
75945                 groks source of the specified source-version, or add -source
75946                 option as necessary. Verify that the compiler produces
75947                 bytecode in the specified target-version, or add -target and
75948                 -source options as necessary. Make the result of the test
75949                 available as variable CONF_JAVAC. Also log error output in
75950                 config.log.
75951
75952         2006-03-11  Bruno Haible  <bruno@clisp.org>
75953
75954                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75955
75956         2006-05-09  Bruno Haible  <bruno@clisp.org>
75957
75958                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75959                 CLASSPATH_SEPARATOR to a semicolon.
75960
75961         2006-03-12  Bruno Haible  <bruno@clisp.org>
75962
75963                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75964                 available as variable CONF_JAVA, for subsequent autoconf
75965                 tests. Also log error output in config.log.
75966
75967         2006-07-19  Bruno Haible  <bruno@clisp.org>
75968
75969                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75970                 that getline works on glibc2 systems. Needed to avoid trouble
75971                 in relocatable.c.
75972                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75973
75974         2005-12-04  Bruno Haible  <bruno@clisp.org>
75975
75976                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75977                 launcher (untested).
75978
75979         2005-12-04  Bruno Haible  <bruno@clisp.org>
75980
75981                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75982
75983         2006-07-22  Bruno Haible  <bruno@clisp.org>
75984
75985                 * gettext.m4: Update from GNU gettext-0.15.
75986                 * nls.m4: Likewise.
75987                 * po.m4: Likewise.
75988                 * inttypes-pri.m4: Likewise.
75989                 * inttypes-h.m4: Renamed from inttypes.m4.
75990                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75991
75992 2006-07-22  Bruno Haible  <bruno@clisp.org>
75993
75994         Merge from GNU gettext 0.15.
75995
75996         2005-07-05  Bruno Haible  <bruno@clisp.org>
75997
75998                 * printf-args.c (printf_fetchargs): Work around broken
75999                 definition of wint_t on mingw.
76000
76001         2005-02-12  Bruno Haible  <bruno@clisp.org>
76002
76003                 * xallocsa.h: Add extern "C" for C++.
76004
76005         2006-05-17  Bruno Haible  <bruno@clisp.org>
76006
76007                 Cygwin portability.
76008                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76009
76010         2006-04-30  Bruno Haible  <bruno@clisp.org>
76011
76012                 * progreloc.c: Include <mach-o/dyld.h> if available.
76013                 (find_executable): Use _NSGetExecutablePath when possible.
76014
76015         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76016
76017                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76018                 function.
76019
76020         2005-12-29  Bruno Haible  <bruno@clisp.org>
76021
76022                 * progreloc.c (set_program_name_and_installdir): Fix
76023                 compilation error.
76024
76025         2005-12-04  Bruno Haible  <bruno@clisp.org>
76026
76027                 Cygwin portability.
76028                 * progreloc.c: Include <windows.h> also on Cygwin.
76029                 (find_executable): Add support for Cygwin.
76030                 (set_program_name_and_installdir): Handle also platforms with
76031                 nonempty EXEEXT.
76032
76033         2006-07-11  Bruno Haible  <bruno@clisp.org>
76034
76035                 * javacomp.c: Fix a comment.
76036                 Reported by Jim Meyering.
76037
76038         2006-04-30  Bruno Haible  <bruno@clisp.org>
76039
76040                 * javacomp.h (compile_java_class): Add source_version,
76041                 target_version arguments.
76042                 * javacomp.c: Rewritten to choose only a compiler that
76043                 respects the specified source_version and target_version.
76044
76045         2006-06-27  Bruno Haible  <bruno@clisp.org>
76046
76047                 Assume correct S_ISDIR macro.
76048                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76049
76050         2006-07-22  Bruno Haible  <bruno@clisp.org>
76051
76052                 * javaversion.h: New file, from GNU gettext.
76053                 * javaversion.c: New file, from GNU gettext.
76054                 * javaversion.java: New file, from GNU gettext.
76055                 * javaversion.class: New file, from GNU gettext.
76056
76057         2006-05-17  Bruno Haible  <bruno@clisp.org>
76058
76059                 Cygwin portability.
76060                 * javaexec.c (execute_java_class): Test for jview program
76061                 also on Cygwin.
76062
76063         2006-04-09  Bruno Haible  <bruno@clisp.org>
76064
76065                 * fatal-signal.c: Don't include string.h.
76066                 (at_fatal_signal): Use a copying loop instead of memcpy.
76067
76068         2005-12-04  Bruno Haible  <bruno@clisp.org>
76069
76070                 * csharpexec.c: Add support for 'clix' launcher (untested).
76071                 (execute_csharp_using_sscli): New function.
76072                 (execute_csharp_program): Call it.
76073
76074         2006-06-21  Bruno Haible  <bruno@clisp.org>
76075
76076                 Avoid warnings from recent versions of mcs.
76077                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76078                 -o, -L, -r any more. Use options documented since mcs-1.0
76079                 instead. Similarly for -g.
76080
76081         2005-07-09  Bruno Haible  <bruno@clisp.org>
76082
76083                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76084                 add a .dll suffix.
76085                 Reported by Mark Junker <mjscod@gmx.de>.
76086
76087         2006-06-17  Bruno Haible  <bruno@clisp.org>
76088
76089                 * config.charset: Update for NetBSD 3.0.
76090
76091         2006-05-17  Bruno Haible  <bruno@clisp.org>
76092
76093                 Cygwin portability.
76094                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76095
76096         2006-05-16  Bruno Haible  <bruno@clisp.org>
76097
76098                 * localcharset.c [CYGWIN]: Include <windows.h>.
76099                 (get_charset_aliases): For Cygwin, return the same CPxxx
76100                 aliases list as under WIN32.
76101                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76102                 the environment variables. Fall back to GetACP().
76103
76104         2006-04-05  Bruno Haible  <bruno@clisp.org>
76105
76106                 * config.charset: Update Juan Manuel Guerrero's address.
76107
76108         2005-02-12  Bruno Haible  <bruno@clisp.org>
76109
76110                 * allocsa.h: Add extern "C" for C++.
76111
76112         2005-02-10  Bruno Haible  <bruno@clisp.org>
76113
76114                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76115                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76116
76117         2006-07-22  Bruno Haible  <bruno@clisp.org>
76118
76119                 * gettext.h: Update to GNU gettext-0.15.
76120
76121 2006-07-22  Bruno Haible  <bruno@clisp.org>
76122
76123         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76124         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76125         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76126
76127 2006-07-21  Eric Blake  <ebb9@byu.net>
76128
76129         * modules/stdlib-safer: New file.
76130         * MODULES.html.sh (File stream based Input/Output): Add
76131         stdlib-safer.
76132
76133 2006-07-21  Eric Blake  <ebb9@byu.net>
76134
76135         * lib/stdlib-safer.h: New file from coreutils, required by
76136         stdlib--.h.
76137
76138 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76139
76140         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76141
76142 2006-07-20  Bruno Haible  <bruno@clisp.org>
76143
76144         * gnulib-tool: Recognize new option --assume-autoconf.
76145         (autoconf_minversion): New variable.
76146         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76147
76148 2006-07-20  Bruno Haible  <bruno@clisp.org>
76149
76150         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76151
76152 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76153
76154         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76155         Reindent and repaginate.
76156
76157 2006-07-19  Derek Price  <derek@ximbiot.com>
76158
76159         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76160         Correct grammar.
76161
76162 2006-07-17  Bruno Haible  <bruno@clisp.org>
76163
76164         * modules/list: New file.
76165         * modules/array-list: New file.
76166         * modules/carray-list, modules/carray-list-tests: New files.
76167         * modules/linked-list, modules/linked-list-tests: New files.
76168         * modules/avltree-list, modules/avltree-list-tests: New files.
76169         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76170         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76171         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76172         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76173         * modules/oset: New file.
76174         * modules/array-oset: New file.
76175         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76176         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76177         * tests/test-carray_list.c: New file.
76178         * tests/test-linked_list.c: New file.
76179         * tests/test-avltree_list.c: New file.
76180         * tests/test-rbtree_list.c: New file.
76181         * tests/test-linkedhash_list.c: New file.
76182         * tests/test-avltreehash_list.c: New file.
76183         * tests/test-rbtreehash_list.c: New file.
76184         * tests/test-avltree_oset.c: New file.
76185         * tests/test-rbtree_oset.c: New file.
76186         * MODULES.html.sh (Container data structures): New section.
76187
76188 2006-07-17  Bruno Haible  <bruno@clisp.org>
76189
76190         * m4/gl_list.m4: New file.
76191
76192 2006-07-17  Bruno Haible  <bruno@clisp.org>
76193
76194         * lib/gl_list.h: New file.
76195         * lib/gl_list.c: New file.
76196         * lib/gl_array_list.h: New file.
76197         * lib/gl_array_list.c: New file.
76198         * lib/gl_carray_list.h: New file.
76199         * lib/gl_carray_list.c: New file.
76200         * lib/gl_linked_list.h: New file.
76201         * lib/gl_linked_list.c: New file.
76202         * lib/gl_anylinked_list1.h: New file.
76203         * lib/gl_anylinked_list2.h: New file.
76204         * lib/gl_avltree_list.h: New file.
76205         * lib/gl_avltree_list.c: New file.
76206         * lib/gl_anyavltree_list1.h: New file.
76207         * lib/gl_anyavltree_list2.h: New file.
76208         * lib/gl_rbtree_list.h: New file.
76209         * lib/gl_rbtree_list.c: New file.
76210         * lib/gl_anyrbtree_list1.h: New file.
76211         * lib/gl_anyrbtree_list2.h: New file.
76212         * lib/gl_anytree_list1.h: New file.
76213         * lib/gl_anytree_list2.h: New file.
76214         * lib/gl_linkedhash_list.h: New file.
76215         * lib/gl_linkedhash_list.c: New file.
76216         * lib/gl_anyhash_list1.h: New file.
76217         * lib/gl_anyhash_list2.h: New file.
76218         * lib/gl_avltreehash_list.h: New file.
76219         * lib/gl_avltreehash_list.c: New file.
76220         * lib/gl_rbtreehash_list.h: New file.
76221         * lib/gl_rbtreehash_list.c: New file.
76222         * lib/gl_anytreehash_list1.h: New file.
76223         * lib/gl_anytreehash_list2.h: New file.
76224
76225         * lib/gl_oset.h: New file.
76226         * lib/gl_oset.c: New file.
76227         * lib/gl_array_oset.h: New file.
76228         * lib/gl_array_oset.c: New file.
76229         * lib/gl_avltree_oset.h: New file.
76230         * lib/gl_avltree_oset.c: New file.
76231         * lib/gl_rbtree_oset.h: New file.
76232         * lib/gl_rbtree_oset.c: New file.
76233         * lib/gl_anytree_oset.h: New file.
76234
76235 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76236
76237         * m4/mkancesdirs.m4: New file.
76238         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76239         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76240         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76241         it.
76242
76243 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76246         * lib/mkancesdirs.h: New files.
76247         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76248         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76249         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76250         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76251         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76252         callers changed.  Revamp internals significantly, by not
76253         attempting to create directories that are temporarily more
76254         permissive than the final results.  Do not attempt to use
76255         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76256         This removes some race conditions, fixes some bugs, and simplifies
76257         things.  Use new dirchownmod function to do owner and mode changes.
76258         * lib/mkdir-p.h: Likewise.
76259         * lib/modechange.c (octal_to_mode): New function.
76260         (struct mode_change): New member mentioned.
76261         (make_node_op_equals): New arg mentioned.  All callers changed.
76262         (mode_compile): Keep track of which mode bits the user has explicitly
76263         mentioned.
76264         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76265         New arg PMODE_BITS, to keep track of which mode bits the user
76266         mentioned; it treats S_ISUID and S_ISGID speciall.
76267         All callers changed.
76268         * lib/modechange.h: Likewise.
76269
76270 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76271
76272         * MODULES.html.sh: Add mkancestors.
76273         * modules/mkancesdirs: New module.
76274         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76275         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76276         The chdir-safer and afs files are now orphans; I'll remove them
76277         unless someone speaks up.
76278         Add lib/dirchownmod.c, lib/dirchownmod.h.
76279         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76280         Add lchown, mkancesdirs.
76281         (Maintainer): Add self.
76282
76283 2006-07-15  Karl Berry  <karl@gnu.org>
76284
76285         * gnulib-tool: help message wording/arrangement.
76286
76287 2006-07-14  Simon Josefsson  <jas@extundo.com>
76288
76289         * doc/gnulib.texi (Libtool and Windows): New section.
76290
76291 2006-07-12  Simon Josefsson  <jas@extundo.com>
76292
76293         * modules/gendocs (License): Fix license, approved by Karl.
76294
76295 2006-07-12  Eric Blake  <ebb9@byu.net>
76296
76297         * MODULES.html.sh: Add gendocs.
76298
76299 2006-07-11  Eric Blake  <ebb9@byu.net>
76300
76301         * modules/fdl: New module, to install doc/fdl.texi.
76302         * MODULES.html.sh: Add new section for documentation modules.
76303         * gnulib-tool: Avoid space-tab.
76304         (--doc-base): New option, to manage files from doc.
76305
76306 2006-07-11  Eric Blake  <ebb9@byu.net>
76307
76308         * m4/absolute-header.m4: Fix comments to match recent change.
76309
76310 2006-07-11  Eric Blake  <ebb9@byu.net>
76311
76312         * gnulib-tool: List --doc-base before --tests-base.
76313
76314 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76315
76316         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76317
76318 2006-07-11  Bruno Haible  <bruno@clisp.org>
76319
76320         * README: Mention where to put documentation.
76321
76322 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76323
76324         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76325
76326 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76329         to stdint.m4.
76330
76331 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76334         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76335         "no/such/file/stdint.h" when there is no such file, so that
76336         the resulting C code can be parsed by dodgy compilers.
76337         Problems reported by Bob Proulx.
76338
76339 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76340
76341         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76342         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76343         macros into the GNU _D_EXACT_NAMLEN.
76344         * lib/savedir.c:  Likewise.
76345         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76346
76347 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76348         and Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76351         * m4/savedir.m4:
76352         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76353         macros into the GNU _D_EXACT_NAMLEN.
76354
76355 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76358         around the absolute name, to work around a problem with the HP-UX
76359         11.23 native C compiler, reported by Bob Proulx.
76360
76361 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * doc/maintain.texi, make-stds.texi: Sync from
76364         <http://savannah.gnu.org/projects/gnustandards>.
76365
76366 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76367
76368         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76369
76370 2006-07-09  Jim Meyering  <jim@meyering.net>
76371
76372         * m4/glob.m4: Remove a doubled word in a comment.
76373
76374 2006-07-09  Jim Meyering  <jim@meyering.net>
76375
76376         * lib/argp-pv.c: Remove a doubled word in a comment.
76377         * lib/check-version.c (check_version): Likewise.
76378         * lib/javacomp.c (compile_java_class): Likewise.
76379
76380 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76383         for the benefit of people using Autoconf 2.60.  If you want to
76384         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76385         (or m4/onceonly.m4, if pre-2.57) manually.
76386
76387 2006-07-08  Jim Meyering  <jim@meyering.net>
76388
76389         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76390         comment.
76391         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76392         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76393         comment.
76394
76395 2006-07-08  Jim Meyering  <jim@meyering.net>
76396
76397         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76398
76399 2006-07-07  Simon Josefsson  <jas@extundo.com>
76400
76401         * tests/test-crc.c: Change expected crc value, the test vector
76402         were probably computed using the old broken crc.c?
76403
76404 2006-07-06  Simon Josefsson  <jas@extundo.com>
76405
76406         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76407         now the canonical place for the M4 file).
76408
76409         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76410         from the sys_socket dependency now.
76411
76412         * modules/inet_pton (Files): Ditto.
76413
76414         * modules/inet_ntop (Files): Ditto.
76415
76416 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76417
76418         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76419         not gl_PREREQ_GETUSERSHELL.
76420
76421 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76422
76423         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76424         with only one argument, for Autoconf 2.60.
76425         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76426         expand to nothing, so add a shell command to avoid syntax error.
76427         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76428
76429 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76430
76431         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76432
76433 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76434
76435         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76436         no longer needed.  Check for isblank decl.
76437         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76438         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76439         of existence.
76440
76441 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * lib/getloadavg.c: Use __VMS, not VMS.
76444         * lib/getopt.c: Likewise.
76445         * lib/getpagesize.h: Likewise.
76446         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76447         and probably does not work.
76448
76449 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76450
76451         * lib/.cppi-disable: Add wcwidth.
76452         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76453         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76454         (ISGRAPH): Remove.  All uses changed to isgraph.
76455         (FOLD) [!defined _LIBC]: Remove special case.
76456         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76457         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76458         HAVE_ISBLANK.
76459         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76460         case.
76461
76462 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76463
76464         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76465         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76466         brackets.  Other minor changes to suppress some compiler
76467         warnings.
76468
76469 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76470         and Paul Eggert  <eggert@cs.ucla.edu>
76471
76472         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76473         of invoking obsolescent AC_HEADER_DIRENT macro.
76474         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76475         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76476         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76477         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76478         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76479         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76480         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76481         * m4/readdir.m4: Remove; no longer needed.
76482
76483 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76484         and Paul Eggert  <eggert@cs.ucla.edu>
76485
76486         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76487         Don't worry about this obsolete case any more.
76488         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76489         directories.
76490         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76491         worry about this obsolete case any more.
76492         * lib/fts.c: Likewise.
76493         * lib/getcwd.c: Likewise.
76494         * lib/glob.h: Likewise.
76495         * lib/savedir.c: Likewise.
76496
76497 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76498
76499         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76500         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76501         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76502         needed.
76503         All uses removed.
76504         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76505         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76506         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76507         needed.
76508         * m4/getdate.m4 (gl_GETDATE): Likewise.
76509         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76510         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76511         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76512         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76513         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76514         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76515         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76516         needed.
76517
76518 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76519
76520         * lib/memcasecmp.c: Include <limits.h>.
76521         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76522         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76523         Don't assume isdigit succeeds only on '0' through '9'.
76524
76525 2006-07-05  Eric Blake  <ebb9@byu.net>
76526
76527         * modules/getaddrinfo (Depends-on): Add snprintf.
76528
76529 2006-07-05  Eric Blake  <ebb9@byu.net>
76530
76531         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76532         to avoid 'header present but could not be compiled' on cygwin.
76533
76534 2006-07-05  Eric Blake  <ebb9@byu.net>
76535
76536         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76537         missing from netdb.h.
76538         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76539
76540 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76541
76542         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76543         no longer needed.
76544         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76545         * m4/getdate.m4 (gl_GETDATE): Likewise.
76546         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76547         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76548         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76549         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76550         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76551
76552 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76553
76554         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76555         All uses of is_space replaced by isspace.
76556         * lib/exit.h: Don't talk about STDC_HEADERS.
76557         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76558         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76559         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76560         replaced by isprint etc.
76561         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76562         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76563         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76564         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76565         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76566         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76567
76568 2006-07-05  Bruno Haible  <bruno@clisp.org>
76569
76570         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76571         the function exists, before testing against AIX.
76572         Reported by Martin Lambers <marlam@marlam.de>.
76573
76574 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76575
76576         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76577         From Mark D. Baushke.
76578
76579 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76580
76581         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76582         to the absolute name, not just one, to bypass Sun C 5.8's
76583         "warning: #include of /usr/include/... may be non-portable".
76584
76585 2006-07-04  Eric Blake  <ebb9@byu.net>
76586
76587         * modules/dirname-tests: New test module.
76588         * tests/test-dirname.c: New file, replacing dirname.c
76589         TEST_DIRNAME section that was recently deleted.
76590
76591 2006-07-04  Bruno Haible  <bruno@clisp.org>
76592
76593         Assume ANSI C header files and <ctype.h> functions.
76594         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76595         (mbsnwidth): Use isprint, iscntrl instead.
76596
76597 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         Merge from coreutils.
76600         * MODULES.html.sh: Add xstrtold.
76601         * modules/xstrtold: New file.
76602         * modules/cycle-check (Files): Add lib/same-inode.h.
76603         * modules/dirname (Files): Add m4/double-slash-root.m4.
76604         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76605         * modules/mkdir-p (Files): Add lib/same-inode.h.
76606         * modules/same (Files): Add lib/same-inode.h.
76607
76608 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76609
76610         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76611         This is to keep the terminology clean; POSIX talks about
76612         "absolute pathnames", not "full pathnames", but the GNU
76613         Coding Standards say to use "path" for something else;
76614         so use "absolute" to keep both sides happy.
76615         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76616         Set gl_absolute_header, not gl_full_header_path.
76617         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76618         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76619         All uses changed.
76620
76621         Merge from coreutils.
76622
76623         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76626         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76627         want to require the building of c-strtod.o.
76628         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76629         needs -lm directly.
76630         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76631
76632         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76635         --as-needed option if available.  Problem reported by Albert Chin in
76636         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76637         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76638         cc merely issues a bunch of annoying warnings for --as-needed
76639         (this problem was reported by Bob Proulx).  Also, try linking with
76640         -lm to detect a bug in binutils 2.16 (this problem was reported
76641         by Ralf Wildenhues).
76642
76643         2006-06-18  Jim Meyering  <jim@meyering.net>
76644
76645         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76646         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76647         macro.
76648         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76649         also check for glibc-2.4's abort-inducing bug.
76650
76651         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76652         Low-probability clean-up should be to use rmdir to get rid of
76653         the just-created directory, not unlink.
76654
76655         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76656         configure fail, and request a bug report to inform us about it.
76657         Add a comment that, barring reports to the contrary, in 2007 we'll
76658         assume ftruncate is universally available.
76659
76660         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76661
76662         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76663
76664         2006-03-12  Jim Meyering  <jim@meyering.net>
76665
76666         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76667         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76668         * m4/same.m4 (gl_SAME): Likewise.
76669         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76670
76671         2006-03-11  Eric Blake  <ebb9@byu.net>
76672
76673         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76674         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76675         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76676         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76677
76678 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76681         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76682         reported by Mark D. Baushke, one in
76683         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76684
76685         Merge from coreutils.
76686
76687         * lib/.cppi-disable: Add stdint_.h.
76688         * lib/.cvsignore: Add stdint.h.
76689
76690         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76691
76692         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76693         both double and long double versions.
76694         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76695         * lib/xstrtold.c: New file.
76696         * lib/xstrtod.h (xstrtold): New decl.
76697
76698         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76699
76700         * lib/filemode.c (setst): Remove.
76701         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76702         (arguably) clearer, and the generated code is a bit smaller on my
76703         Debian GNU/Linux stable x86 host.
76704
76705         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76706
76707         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76708         Assume that filemode.h includes sys/types.h and sys/stat.h.
76709         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76710         (ftypelet): Reorder to put common cases first, for efficiency.
76711         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76712         to do 'M'.
76713         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76714         of 10, for compatibility with FreeBSD.  All callers changed.
76715         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76716         types that can't be deduced solely from st_mode.  First arg is now a
76717         const pointer.
76718         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76719         (strmode): Renamed from mode_string.
76720         (filemodestring): New decl.
76721         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76722         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76723         needed.
76724         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76725
76726         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76729         fsusage.h now does that.  Include fsusage.h first, to test interface.
76730         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76731         at most one method (the old code could have generated decls that
76732         didn't conform to C89, not that this was ever exercised).
76733         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76734
76735         2006-03-19  Jim Meyering  <jim@meyering.net>
76736
76737         Work even in a chroot where d_ino values for entries in "/"
76738         don't match the stat.st_ino values for the same names.
76739         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76740         number, iterate through all entries again, using lstat instead.
76741         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76742         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76743
76744         * lib/getcwd.c (__getcwd): Clarify a comment.
76745         Use memcpy in place of a call to strcpy.
76746
76747         2006-03-12  Jim Meyering  <jim@meyering.net>
76748
76749         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76750         matches that of the current directory (which we're about to chdir ".."
76751         out of), then save the dev-ino of the parent, instead.
76752
76753         * lib/same-inode.h (SAME_INODE): New file/macro.
76754         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76755         Include "same-inode.h", instead.
76756         * lib/same.c: Likewise.
76757         * lib/cycle-check.h: Include "same-inode.h".
76758         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76759         * lib/cycle-check.c (SAME_INODE): Remove definition.
76760         * lib/root-dev-ino.h: Include "same-inode.h".
76761
76762         2006-03-11  Eric Blake  <ebb9@byu.net>
76763
76764         * lib/same.c (same_name): s/base_name/last_component/
76765         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76766         * lib/filenamecat.c (file_name_concat): Likewise.
76767
76768         2006-03-11  Eric Blake  <ebb9@byu.net>,
76769                     Paul Eggert  <eggert@cs.ucla.edu>
76770
76771         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76772         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76773         drive prefix.
76774         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76775         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76776         (last_component): New method.
76777         * lib/dirname.c (dir_len): Determine when drive letters need a
76778         subsequent slash.  Preserve // when it is special.
76779         (dir_name): Don't append dot when drive letter is absolute.
76780         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76781         * lib/basename.c (base_name): New semantics - malloc the result.
76782         Preserve // when it is special.  Preserve relative files that look
76783         like drive letters.
76784         (base_len): Preserve // when it is special.
76785         (last_component): New method, similar to old base_name semantics.
76786         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76787         base_name.  Strip redundant slashes from ///.
76788
76789 2006-07-03  Jim Meyering  <jim@meyering.net>
76790
76791         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76792         macro is used before the first cycle_check call.
76793
76794 2006-07-03  Eric Blake  <ebb9@byu.net>
76795
76796         * modules/dirname (Depends-on): Add xstrndup.
76797
76798 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76799
76800         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76801         test cases, so that config.log is a bit easier to follow.
76802
76803 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76806         both are 64 bits, since this seems to be the tradition, and this
76807         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76808         we ever run into a host that prefers long long to long in this
76809         case, we'll need another configure-time test.  Problem reported by
76810         Jim Meyering.
76811
76812 2006-07-02  Eric Blake  <ebb9@byu.net>
76813
76814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76815
76816 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * modules/inttypes (Depends-on): No longer depends on stdint.
76819         * modules/stdint (Description): Say more about assumptions.
76820         Say that the fast types might differ.  Say macros are used.
76821         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76822         (Makefile.am): Revise list of substituted symbols to match
76823         new stdint.m4.
76824         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76825         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76826         * tests/test-stdint.c (verify_same_types)
76827         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76828         the code conforms to C99/C89.
76829         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76830         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76831
76832 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76833
76834         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76835         but fix a bug, by requiring at least 64 bits.
76836         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76837         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76838         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76839         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76840
76841         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76842         changes.  Make 2.59 a prerequisite.  Check and substitute for
76843         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76844         inttypes.h.  Do not use special include files; just use the
76845         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76846         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76847         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76848         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76849         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76850         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76851         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76852         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76853         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76854         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76855         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76856         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76857         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76858         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76859         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76860         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76861         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76862         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76863         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76864         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76865         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76866         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76867         not check for things that C99 does not require, e.g., int8_t.  If
76868         a test isn't needed unless <stdint.h> isn't working, and is
76869         unlikely to be needed for any other reason, then don't do it
76870         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76871         size_t, since we assume C89 freestanding at least.  Do not check
76872         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76873         the right thing even if the types are not defined.  Instead use:
76874         (gl_STDINT_TYPE_PROPERTIES): New macro.
76875         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76876         testing whether <sys/types.h> clashes, as Autoconf does this for
76877         us now.  All uses removed.
76878         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76879         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76880         (gl_CHECK_TYPE_SAME):
76881         Remove; no longer needed.
76882         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76883         exists, since we'll return 0 anyway in that case.
76884         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76885
76886 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76889         possible collision with system files.
76890         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76891         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76892         WCHAR_MIN and WCHAR_MAX in this case.
76893         (<stddef.h>): Do not include; no longer needed.
76894         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76895         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76896         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76897         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76898         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76899         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76900         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76901         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76902         !defined(__c99))]: Include in this case too, since it's harmless
76903         now.
76904         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76905         dangerous to do so.
76906         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76907         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76908         (_STDINT_MIN, _STDINT_MAX): New macros.
76909         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76910         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76911         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76912         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76913         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76914         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76915         macros, not typedefs; this simplifies things quite a bit.
76916         Use long int for all types narrower than int64_t.
76917         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76918         Define in terms of long long int or int64_t or long int,
76919         not int64_t or int32_t.  This saves some compile-time testing.
76920         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76921         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76922         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76923         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76924         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76925         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76926         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76927         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76928         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76929         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76930         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76931         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76932         undef any previous version and define our own version, for
76933         simplicity and consistency with the new macros for types.
76934         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76935         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76936         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76937         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76938         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76939         @WINT_T_SUFFIX@ to keep things simple here.
76940         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76941         Simplify by assuming typical 8/16/32/64 host, since we're
76942         already doing that elsewhere anyway.
76943         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76944         and assume long long int is 64 bits if available.  This
76945         speeds up 'configure'.
76946
76947 2006-07-01  Eric Blake  <ebb9@byu.net>
76948
76949         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76950         Reported by Andreas Buening.
76951
76952 2006-07-01  Eric Blake  <ebb9@byu.net>
76953
76954         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76955
76956 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76957
76958         * lib/getaddrinfo.c: fixed typo
76959
76960 2006-06-29  Jim Meyering  <jim@meyering.net>
76961
76962         * modules/strftime (Maintainer): Add my name, since with the
76963         FPRINTFTIME changes strftime.c has forked from glibc.
76964
76965 2006-06-29  Eric Blake  <ebb9@byu.net>
76966
76967         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76968
76969 2006-06-29  Eric Blake  <ebb9@byu.net>
76970
76971         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76972
76973 2006-06-29  Eric Blake  <ebb9@byu.net>
76974
76975         * lib/stat_.h: New file.
76976
76977 2006-06-29  Eric Blake  <ebb9@byu.net>
76978
76979         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76980         unused static function.
76981
76982 2006-06-29  Eric Blake  <ebb9@byu.net>
76983
76984         * doc/functions.texi (Function Portability): Document missing lstat
76985         on mingw.
76986
76987 2006-06-29  Eric Blake  <ebb9@byu.net>
76988
76989         * MODULES.html.sh: Add sys_stat.
76990         * modules/sys_stat: New module.
76991         * modules/mkstemp (Depends-on): Add sys_stat.
76992
76993 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76994
76995         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76996
76997 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76998
76999         * m4/c-bs-a.m4: Removed.
77000
77001 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77002
77003         * lib/strftime.c: Assume strftime() exists.
77004
77005 2006-06-29  Derek Price  <derek@ximbiot.com>
77006
77007         * modules/c-bs-a: Removed - \a is C89.
77008         * MODULES.html.sh: Remove c-bs-a.
77009
77010 2006-06-29  Bruno Haible  <bruno@clisp.org>
77011
77012         * modules/wcwidth (License): Change to LGPL.
77013
77014 2006-06-28  Simon Josefsson  <jas@extundo.com>
77015
77016         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77017         on _WIN32.
77018
77019         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77020         getnameinfo.
77021
77022 2006-06-28  Simon Josefsson  <jas@extundo.com>
77023
77024         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77025
77026 2006-06-28  Simon Josefsson  <jas@extundo.com>
77027
77028         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77029         functions there.  It will succeed on Windows XP, but on Windows
77030         2000 and (presumably) earlier, it will fail, and use the internal
77031         re-implementation.
77032         (use_win32_p): New function.
77033         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77034         Support AI_NUMERICSERV to disable getservbyname.
77035         (getnameinfo): New function, only supports
77036         NI_NUMERICHOST|NI_NUMERICSERV for now.
77037
77038         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77039         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77040         getnameinfo.
77041
77042 2006-06-28  Eric Blake  <ebb9@byu.net>
77043
77044         * modules/wcwidth: New file.
77045         * modules/mbchar (Depends-on): Add wcwidth.
77046         * modules/mbswidth (Depends-on): Add wcwidth.
77047         * MODULES.html.sh: Add wcwidth.
77048
77049 2006-06-28  Eric Blake  <ebb9@byu.net>
77050
77051         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77053
77054 2006-06-28  Eric Blake  <ebb9@byu.net>
77055
77056         * lib/xvasprintf.h: Fix comments.
77057
77058 2006-06-28  Eric Blake  <ebb9@byu.net>
77059
77060         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77061         * lib/mbswidth.c (wcwidth): Move from here...
77062         * lib/wcwidth.h: ...to this new file.
77063
77064 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77065
77066         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77067
77068         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77069         it's obsolete.
77070         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77071
77072 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77073
77074         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77075         Autoconf 2.60 says this stuff was obsolete.
77076
77077 2006-06-28  Bruno Haible  <bruno@clisp.org>
77078
77079         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77080
77081 2006-06-28  Bruno Haible  <bruno@clisp.org>
77082
77083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77084         gt_TYPE_WCHAR_T.
77085
77086 2006-06-28  Bruno Haible  <bruno@clisp.org>
77087
77088         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77089         declaration for wcwidth.
77090         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77091
77092 2006-06-28  Bruno Haible  <bruno@clisp.org>
77093
77094         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77095         (mkdir): Define using _mkdir.
77096
77097 2006-06-28  Bruno Haible  <bruno@clisp.org>
77098
77099         * lib/getaddrinfo.h: Fix POSIX URL.
77100         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77101         _WIN32.
77102         (use_win32_p): Make static.
77103         (getaddrinfo): Reject service name if it is empty or does not consist
77104         solely of decimal digits, or if its value is > 65535.
77105         (getnameinfo): Remove useless casts.
77106
77107 2006-06-27  Simon Josefsson  <jas@extundo.com>
77108
77109         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77110         Eggert and Martin Lambers.
77111
77112 2006-06-27  Simon Josefsson  <jas@extundo.com>
77113
77114         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77115         Eggert and Martin Lambers.
77116
77117 2006-06-27  Bruno Haible  <bruno@clisp.org>
77118
77119         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77120         result to 0, not to empty.
77121         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77122
77123 2006-06-27  Bruno Haible  <bruno@clisp.org>
77124
77125         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77126
77127 2006-06-26  Simon Josefsson  <jas@extundo.com>
77128
77129         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77130         present.
77131
77132 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77133
77134         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77135         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77136         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77137
77138 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77139
77140         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77141
77142 2006-06-26  Bruno Haible  <bruno@clisp.org>
77143
77144         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77145
77146 2006-06-26  Bruno Haible  <bruno@clisp.org>
77147
77148         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77149
77150 2006-06-26  Bruno Haible  <bruno@clisp.org>
77151
77152         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77153         SGI C compiler in pre-C99 mode.
77154         Suggested by Mark D. Baushke and Larry Jones.
77155
77156 2006-06-26  Bruno Haible  <bruno@clisp.org>
77157
77158         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77159         WCHAR_MAX.
77160         Reported by Mark D. Baushke and Larry Jones.
77161
77162 2006-06-26  Bruno Haible  <bruno@clisp.org>
77163
77164         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77165         in pre-C99 mode.
77166         Suggested by Mark D. Baushke and Larry Jones.
77167
77168 2006-06-23  Simon Josefsson  <jas@extundo.com>
77169             Bruno Haible  <bruno@clisp.org>
77170
77171         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77172         Emit mostlyclean-local rule.
77173         (func_emit_tests_Makefile_am): Likewise.
77174         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77175
77176 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77177
77178         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77179
77180 2006-06-23  Bruno Haible  <bruno@clisp.org>
77181
77182         * tests/test-stdint.c: Update to match ISO C 99 Technical
77183         Corrigendum 1.
77184
77185 2006-06-23  Bruno Haible  <bruno@clisp.org>
77186
77187         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77188
77189 2006-06-23  Bruno Haible  <bruno@clisp.org>
77190
77191         * lib/stdint_.h: Treat IRIX like OpenBSD.
77192
77193 2006-06-23  Bruno Haible  <bruno@clisp.org>
77194
77195         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77196         ISO C 99 Technical Corrigendum 1.
77197
77198 2006-06-22  Simon Josefsson  <jas@extundo.com>
77199
77200         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77201         MinGW.
77202
77203 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77206         needed.  Some compiler complained about some of them.  Problem reported
77207         by Larry Jones in
77208         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77209
77210 2006-06-21  Simon Josefsson  <jas@extundo.com>
77211
77212         * tests/test-getaddrinfo.c: New file.
77213
77214         * modules/getaddrinfo-tests: New file.
77215
77216         * MODULES.html.sh: Add inet_pton.
77217
77218         * modules/inet_pton: New file.
77219
77220 2006-06-21  Simon Josefsson  <jas@extundo.com>
77221
77222         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77223         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77224         of using the (limited) gnulib implementation on Windows XP.
77225
77226         * m4/inet_pton.m4: New file.
77227
77228 2006-06-21  Simon Josefsson  <jas@extundo.com>
77229
77230         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77231         variable.
77232
77233         * lib/socket_.h: Don't define WINVER.
77234
77235         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77236         slightly modified to work in gnulib.
77237
77238 2006-06-21  Simon Josefsson  <jas@extundo.com>
77239
77240         * doc/gnulib.texi (Windows sockets): Add.
77241
77242 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * lib/read-file.c (fread_file): Start with buffer allocation of
77245         0 bytes rather than 1 byte; this simplifies the code.
77246         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77247         code to free buffer and save/restore errno.
77248         (internal_read_file): Remove unused local.
77249
77250 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77251
77252         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77253         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77254         Problem reported by Denis Excoffier in
77255         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77256
77257 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77258
77259         * modules/sys_socket, modules/socklen: Include sys/types since
77260         FreeBSD 4.x's sys/socket.h needs it.
77261
77262 2006-06-19  Simon Josefsson  <jas@extundo.com>
77263
77264         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77265
77266 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77267
77268         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77269
77270 2006-06-19  Bruno Haible  <bruno@clisp.org>
77271
77272         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77273         and FULL_PATH_INTTYPES_H in angle brackets.
77274         Reported by Mark D. Baushke <mdb@gnu.org>.
77275
77276 2006-06-17  Eric Blake  <ebb9@byu.net>
77277
77278         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77279         errno.
77280
77281 2006-06-17  Bruno Haible  <bruno@clisp.org>
77282
77283         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77284         <sys/inttypes.h>.
77285
77286 2006-06-17  Bruno Haible  <bruno@clisp.org>
77287
77288         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77289         whether errno is declared. Assume <errno.h> declares errno.
77290
77291 2006-06-17  Bruno Haible  <bruno@clisp.org>
77292
77293         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77294
77295 2006-06-17  Bruno Haible  <bruno@clisp.org>
77296
77297         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77298         problem on Solaris 2.5.1.
77299
77300 2006-06-16  Eric Blake  <ebb9@byu.net>
77301
77302         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77303         * lib/unicodeio.c [!defined errno]: Likewise.
77304         * lib/strtol.c [!defined errno]: Likewise.
77305         * lib/strtod.c [!defined errno]: Likewise.
77306
77307 2006-06-15  Eric Blake  <ebb9@byu.net>
77308
77309         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77310
77311 2006-06-15  Eric Blake  <ebb9@byu.net>
77312
77313         * config/srclist.txt (ssize_t.m4): Lose sync.
77314
77315 2006-06-15  Bruno Haible  <bruno@clisp.org>
77316
77317         * modules/stdint (Files): Include m4/full-header-path.m4,
77318         m4/size_max.m4, m4/wchar_t.m4.
77319         (Makefile.am): Many more substitutions.
77320         * modules/stdint-tests: New file.
77321         * tests/test-stdint.c: New file.
77322
77323 2006-06-15  Bruno Haible  <bruno@clisp.org>
77324
77325         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77326         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77327         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77328         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77329         gl_CHECK_TYPE_SAME): New macros.
77330
77331 2006-06-15  Bruno Haible  <bruno@clisp.org>
77332
77333         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77334
77335 2006-06-15  Bruno Haible  <bruno@clisp.org>
77336
77337         * lib/stdint_.h: Rewritten to be fully auto-configured.
77338         Fixes bug on HP-UX/IA64.
77339
77340 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77341
77342         * lib/getdate.y (__attribute__): Don't define if already defined.
77343         Problem reported by Larry Jones.
77344         * lib/utimens.c (__attribute__): Likewise.
77345
77346 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77347
77348         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77349         reported by Andreas Schwab.
77350
77351 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77352             Bruno Haible  <bruno@clisp.org>
77353
77354         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77355         check for the declaration of strnlen and a run test that exposes the
77356         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77357         rpl_strndup.
77358
77359 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77360             Bruno Haible  <bruno@clisp.org>
77361
77362         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77363
77364 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77365
77366         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77367         compile test, for Tru64 4.0D.
77368
77369 2006-05-28  Karl Berry  <karl@gnu.org>
77370
77371         * config/srclist.txt (printf-args.c): lose sync.
77372
77373 2006-05-26  Martin Lambers  <marlam@marlam.de>
77374
77375         * lib/getpass.c: Updates the test for the native W32 API, and adds
77376         missing includes, thus fixing compilation warnings.
77377
77378 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77379
77380         * lib/exclude.c (exclude_fnmatch): New function.
77381         (excluded_file_name): Call exclude_fnmatch.
77382         * lib/exclude.h (excluded_file_name): New prototype
77383
77384 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77385
77386         * lib/tempname.c (small_open, large_open): New macros.
77387         (__open, __open64) [!_LIBC]: Remove.
77388         (__gen_tempname): Use small_open and large_open instead of __open
77389         and __open64.  This fixes a portability bug on HP-UX 11.11i
77390         reported by Simon Wing-Tang in
77391         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77392
77393 2006-05-24  Bruno Haible  <bruno@clisp.org>
77394
77395         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77396         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77397         Reported by Thorsten Maerz <torte@netztorte.de> via
77398         Aaron Stone <aaron@serendipity.cx>.
77399
77400 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77401
77402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77403         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77404         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77405         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77406         not really conditional on the cache.
77407         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77408
77409 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77412         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77413         (my_usleep): Don't mishandle maximum value.
77414
77415 2006-05-19  Jim Meyering  <jim@meyering.net>
77416
77417         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77418
77419 2006-05-17  Bruno Haible  <bruno@clisp.org>
77420
77421         Cygwin portability.
77422         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77423
77424 2006-05-17  Bruno Haible  <bruno@clisp.org>
77425
77426         * lib/stdint_.h: Fix recognition of Cygwin.
77427
77428 2006-05-15  Bruno Haible  <bruno@clisp.org>
77429
77430         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77431         on libtool patch by Ralf Wildenhues.
77432
77433 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77436         test for C99 conformance; (bool) 0.5 is an integer constant
77437         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77438         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77439
77440 2006-05-11  Simon Josefsson  <jas@extundo.com>
77441
77442         * m4/xvasprintf.m4: Fix obvious typo.
77443
77444 2006-05-11  Jim Meyering  <jim@meyering.net>
77445
77446         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77447         James Lemley.
77448
77449 2006-05-10  Simon Josefsson  <jas@extundo.com>
77450
77451         * lib/md4.c: Typo fix, update copyright years.
77452         (K1, K2): Don't use L because it turn computations into 64-bit on
77453         64-bit platforms.
77454
77455 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77456
77457         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77458         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77459         unwanted sign propagation, e.g., on hosts with 64-bit int.
77460         There still are some problems with reeelly weird theoretical hosts
77461         (e.g., 33-bit int) but it's not worth worrying about now.
77462         * lib/sha1.c (rol): Likewise.
77463         (K1, K2, K3, K4): Remove unnecessary L suffix.
77464
77465 2006-05-10  Bruno Haible  <bruno@clisp.org>
77466
77467         * lib/des.c: Cast to avoid warnings.
77468
77469 2006-05-09  Bruno Haible  <bruno@clisp.org>
77470
77471         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77472         (Depends-on): Depend also on xsize, stdarg.
77473         (configure.ac): Add gl_XVASPRINTF.
77474
77475 2006-05-09  Bruno Haible  <bruno@clisp.org>
77476
77477         * m4/xvasprintf.m4: New file.
77478
77479 2006-05-09  Bruno Haible  <bruno@clisp.org>
77480
77481         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77482         (EOVERFLOW): Define fallback value.
77483         (xstrcat): New function.
77484         (xvasprintf): Recognize the special case of a string concatenation.
77485
77486 2006-05-08  Eric Blake  <ebb9@byu.net>
77487
77488         * gnulib-tool (func_version): Base copyright year on CVS date.
77489         (func_emit_copyright_notice): New function.
77490         (func_emit_lib_Makefile_am): Use it.
77491         (func_emit_tests_Makefile_am): Likewise.
77492         (func_import): Likewise.
77493
77494 2006-05-08  Bruno Haible  <bruno@clisp.org>
77495
77496         * modules/stdarg: New file.
77497         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77498
77499 2006-05-08  Bruno Haible  <bruno@clisp.org>
77500
77501         * m4/stdarg.m4: New file, from GNU gettext.
77502
77503 2006-05-08  Bruno Haible  <bruno@clisp.org>
77504
77505         * config/srclist.txt (build-aux/config.rpath): different from latest
77506         release.
77507
77508 2006-05-08  Bruno Haible  <bruno@clisp.org>
77509
77510         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77511
77512 2006-05-05  Jim Meyering  <jim@meyering.net>
77513
77514         * m4/warning.m4: New file, derived from bison's file by the same name.
77515
77516 2006-05-03  Bruno Haible  <bruno@clisp.org>
77517
77518         * lib/stdint_.h: Shorter URL.
77519         * lib/inttypes.h: Likewise.
77520
77521 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77522
77523         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77524
77525 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77526
77527         * lib/verify.h: Document the internals better.  Most of this change
77528         was written by Bruno Haible.
77529
77530 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * doc/verify.texi: New file, partly based on a proposal by
77533         Bruno Haible.
77534
77535 2006-05-02  Bruno Haible  <bruno@clisp.org>
77536
77537         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77538         test from here...
77539         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77540
77541 2006-04-29  Bruno Haible  <bruno@clisp.org>
77542
77543         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77544         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77545
77546 2006-04-29  Bruno Haible  <bruno@clisp.org>
77547
77548         * gnulib-tool: Make --update option actually work.
77549
77550 2006-04-29  Bruno Haible  <bruno@clisp.org>
77551
77552         * doc/gcd.texi: New file.
77553         * doc/gnulib.texi: Include it.
77554
77555 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77556
77557         * lib/getdate.y (get_date): When adding relative date, start with the
77558         initial time, not with the result of the first mktime call.
77559
77560 2006-04-25  Bruno Haible  <bruno@clisp.org>
77561
77562         * gnulib-tool (func_import): Output the include directives in three
77563         blocks, sorted separately.
77564         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77565
77566 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77569         to define main with arguments, for C++.  Reported by Eric Blake.
77570         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77571         Prefer 'int main ()' to 'int main (void)', for C++.
77572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77574         for 'main', for C99 and C++.
77575
77576 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77577
77578         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77579         Don't assume that exit status -1 is valid.
77580         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77581         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77582         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77583         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77584         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77585         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77586         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77587         functions can be used without declaring them, or that you can
77588         exit with status -1.
77589         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77590
77591 2006-04-24  Karl Berry  <karl@gnu.org>
77592
77593         * config/srclist.txt (longdouble.m4): sync lost.
77594
77595 2006-04-24  Eric Blake  <ebb9@byu.net>
77596
77597         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77598
77599 2006-04-24  Bruno Haible  <bruno@clisp.org>
77600
77601         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77602         poll() implementation in AIX.
77603         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77604
77605 2006-04-24  Bruno Haible  <bruno@clisp.org>
77606
77607         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77608         assigned exactly once.
77609
77610 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77611             Bruno Haible  <bruno@clisp.org>
77612
77613         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77614         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77615         for AM_CPPFLAGS.
77616
77617 2006-04-23  Bruno Haible  <bruno@clisp.org>
77618
77619         * modules/copy-file: Depend on unistd.
77620         * modules/execute: Likewise.
77621         * modules/fatal-signal: Likewise.
77622         * modules/findprog: Likewise.
77623         * modules/mkdtemp : Likewise.
77624         * modules/pipe: Likewise.
77625         * modules/wait-process: Likewise.
77626
77627 2006-04-23  Bruno Haible  <bruno@clisp.org>
77628
77629         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77630         condition was already detected.
77631         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77632
77633 2006-04-23  Bruno Haible  <bruno@clisp.org>
77634
77635         * lib/copy-file.c: Include <unistd.h> unconditionally.
77636         * lib/execute.c: Likewise.
77637         * lib/fatal-signal.c: Likewise.
77638         * lib/findprog.c: Likewise.
77639         * lib/mkdtemp.c: Likewise.
77640         * lib/pipe.h: Likewise.
77641         * lib/pipe.c: Likewise.
77642         * lib/wait-process.h: Likewise.
77643
77644 2006-04-23  Bruno Haible  <bruno@clisp.org>
77645
77646         * gnulib-tool (func_usage): Fix --import description. Document
77647         --update.
77648         (func_import): Create temporary file in a temporary directory, if
77649         --dry-run is specified. Silence errors from 'grep' when there are no
77650         m4 files in $m4dir.
77651         (func_create_testdir): Silence errors from 'grep' when there are no
77652         m4 files in $m4dir.
77653         Reported by Karl Berry <karl@freefriends.org>.
77654
77655 2006-04-20  Bruno Haible  <bruno@clisp.org>
77656
77657         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77658         one argument, so that the code will be portable to Autoconf 2.60.
77659         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77660         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77661         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77662
77663 2006-04-19  Derek Price  <derek@ximbiot.com>
77664             Eric Blake  <ebb9@byu.net>
77665
77666         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77667         rather than "/full/path.h".  Update comment to match.  Shorten &
77668         generalize m4_translit call via AS_TR_CPP.
77669
77670 2006-04-19  Derek Price  <derek@ximbiot.com>
77671             Eric Blake  <ebb9@byu.net>
77672
77673         * lib/inttypes.h: Correct grammar in comment.
77674
77675 2006-04-18  Derek Price  <derek@ximbiot.com>
77676             Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * modules/inttypes: New file.
77679         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77680
77681 2006-04-18  Derek Price  <derek@ximbiot.com>
77682             Paul Eggert  <eggert@cs.ucla.edu>
77683
77684         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77685         New files.
77686
77687 2006-04-18  Derek Price  <derek@ximbiot.com>
77688             Paul Eggert  <eggert@cs.ucla.edu>
77689
77690         * lib/inttypes.h: New file.
77691         * lib/strtoimax.c: Assume <inttypes.h>.
77692
77693 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77696         isn't mounted.  Problem reported by Kir Kolyshkin.
77697
77698 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77699
77700         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77701         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77702         Derek R. Price.
77703         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77704         implementation.
77705
77706 2006-04-12  Eric Blake  <ebb9@byu.net>
77707
77708         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77709         is now done automatically by the corresponding Autoconf macro.
77710
77711 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77712
77713         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77714         time_r.h.
77715
77716 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         Merge regex changes from libc, removing some of our
77719         POSIX-conformance changes that were rejected and redoing them in a
77720         less-intrusive way.
77721
77722         * lib/regcomp.c (re_compile_internal, init_dfa):
77723         Length arg is now size_t, not Idx.  All uses changed.
77724         (peek_token): Forward decl now says internal_function.
77725         (__re_error_msgid, __re_error_msgid_idx):
77726         Now static rather than extern with attribute_hidden.
77727         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77728         For some reason libc prefers K&R style defns for external functions.
77729         (regerror) [!defined _LIBC]: Likewise.
77730         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77731         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77732         (build_range_exp, build_collating_symbol):
77733         Use K&R-style defn.
77734         (re_compile_fastmap): Use '\0' to memset, not 0.
77735         (utf8_sb_map): Make the calculations more obvious.
77736         (init_dfa, parse_bracket_exp, build_charclass_op):
77737         Call calloc and cast result, as glibc does.
77738         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77739         (build_range_exp, build_collating_symbol):
77740         Now internal functions.
77741
77742         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77743
77744         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77745         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77746         Don't depend on VMS; depend on __VMS instead, for POSIX
77747         namespace cleanness.
77748         (regoff_t): Define to ssize_t, not long int.
77749
77750         Remove the REG_ macros named below.  Instead, make the old names
77751         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77752         __USE_GNU_REGEX.
77753         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77754         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77755         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77756         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77757         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77758         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77759         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77760         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77761         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77762         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77763         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77764         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77765         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77766         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77767         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77768         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77769         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77770         (REG_NREGS):
77771         Remove.  All uses replaced by the old RE_* names.
77772         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77773         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77774         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77775         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77776         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77777         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77778         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77779         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77780         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77781         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77782         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77783         Don't bother having these macros be independent of each others'
77784         values, since they no longer exist in the POSIX name space.
77785
77786         Rename the following member names back to their old names,
77787         unless !__USE_GNU_REGEX.  All uses changed back.
77788         (buffer): Renamed from re_buffer.
77789         (allocated): Renamed from re_allocated.
77790         (used): Renamed from re_used.
77791         (syntax): Renamed from re_syntax.
77792         (fastmap): Renamed from re_fastmap.
77793         (translate): Renamed from re_translate.
77794         (can_be_null): Renamed from re_can_be_null.
77795         (regs_allocated): Renamed from re_regs_allocated.
77796         (fastmap_accurate): Renamed from re_fastmap_accurate.
77797         (no_sub): Renamed from re_no_sub.
77798         (not_bol): Renamed from re_not_bol.
77799         (not_eol): Renamed from re_not_eol.
77800         (newline_anchor): Renamed from re_newline_anchor.
77801         (num_regs): Renamed from rm_num_regs.
77802         (start): Renamed from rm_start.
77803         (end): Renamed from rm_end.
77804
77805         (free_state): Move up a bit.
77806
77807         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77808         #define to be empty.
77809         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77810         when that is what is intended.
77811         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77812         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77813         (MAX): New macro.
77814         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77815         All uses changed back to re_malloc, etc.  It's now the caller's
77816         responsibility to check for overflow; all callers changed.
77817         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77818         (re_x2nrealloc): Remove.
77819         (free_state): Remove decl.
77820
77821         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77822         (re_set_registers, re_exec):
77823         Use K&R-style defn.
77824
77825         2006-01-31  Roland McGrath  <roland@redhat.com>
77826
77827         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77828         Reported by Mike Frysinger <vapier@gentoo.org>.
77829
77830         2006-01-15  Andreas Jaeger  <aj@suse.de>
77831
77832         [BZ #1950]
77833         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77834         build_wcs_upper_buffer change.
77835         (build_wcs_upper_buffer): Change return type.
77836
77837         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77838
77839         * lib/regex_internal.h: Include <stdint.h> if available.
77840
77841         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77842
77843         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77844
77845         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77846
77847         * lib/regcomp.c: Adjust for changed secondary hash function.
77848
77849         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77850
77851         * lib/regex.h: Pretty printing.
77852         Clean up namespace a bit.
77853
77854         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77855
77856         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77857         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77858
77859         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77860                     Ulrich Drepper  <drepper@redhat.com>
77861
77862         [BZ #1302]
77863         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77864         changed.
77865         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77866
77867         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77868
77869         [BZ #281]
77870         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77871         * lib/regcomp.c: Remove unnecessary uses of
77872         unsigned RE_TRANSLATE_TYPE.
77873         * lib/regex_internal.h: Likewise.
77874         * lib/regex_internal.c: Likewise.
77875         * lib/regexec.c: Likewise.
77876         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77877
77878         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77879
77880         * lib/regexec.c (find_recover_state): Remove unnecessary
77881         initialization.
77882         (transit_state_bkref): Make DFA a const pointer.
77883         (get_subexp): Likewise.
77884         (check_arrival): Likewise.
77885         (update_cur_sifted_state): Likewise.
77886         (re_search_internal): Likewise.
77887         (prune_impossible_nodes): Likewise.
77888         (acquire_init_state_context): Likewise.
77889         (proceed_next_node): Likewise.
77890         (set_regs): Likewise.
77891         (free_fail_stack_return): Likewise.
77892         (check_arrival_expand_ecl): Mark DFA parameter as const.
77893         (check_arrival_expand_ecl_sub): Likewise.
77894         (check_subexp_limits): Likewise.
77895         (sub_epsilon_src_nodes):  Likewise.
77896         (add_epsilon_src_nodes):  Likewise.
77897         (merge_state_array): Likewise.
77898         (update_regs): Likewise.
77899         (build_trtable): Likewise.
77900         (sift_states_backward): Mark MCTX parameter as const.
77901         (build_sifted_states): Likewise.
77902         (update_cur_sifted_state): Likewise.
77903         (sift_states_mkref): Likewise.
77904         (check_arrival_expand_ecl): Mark eclosure as const.
77905         (check_dst_limits_calc_pos_1): Likewise.
77906         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77907         pointer.
77908
77909         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77910
77911         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77912         (transit_state_sb): Likewise.
77913         (transit_state_mb): Likewise.
77914         (sift_states_iter_mb): Likewise.
77915         (check_arrival_add_next_nodes): Likewise.
77916         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77917         [_LIBC] (re_search_2_stub): Use mempcpy.
77918
77919         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77920         mbrtowc for very simple UTF-8 case.
77921
77922         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77923         a pointer-to-const.
77924         (re_acquire_state_context): Likewise.
77925         * lib/regex_internal.h: Adjust prototypes.
77926
77927         * lib/regex.c: Prevent using C++ compilers.
77928
77929         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77930         (re_acquire_state_context): Likewise.
77931
77932 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77933
77934         * modules/regex (Depends-on): Add ssize_t.
77935
77936 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77939         translation table.
77940
77941 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77944
77945 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77946             Bruno Haible  <bruno@clisp.org>
77947
77948         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77949         <sys/types.h> and <inttypes.h>.
77950
77951 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77952
77953         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77954         `__error_t_defined', so argp.h will not typedef the former.
77955
77956 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77957
77958         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77959         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77960         glibc names.  Even if glibc is changed to conform to POSIX, the
77961         traditional names will be available anyway, since regex depends on
77962         the extensions module.  Also, fix a longstanding typo in the
77963         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77964         reported by Emanuele Giaquinta.  Also, change sense of cached
77965         variable, so that the message makes sense.
77966
77967 2006-03-24  Simon Josefsson  <jas@extundo.com>
77968
77969         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77970         including some doc fixes.
77971         (base64_encode_alloc): Fix +1 bug on allocation failures.
77972
77973 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77974
77975         * lib/base64.c (base64_encode): Do not read past end of array with
77976         unsanitized input on systems with CHAR_BIT > 8.
77977
77978 2006-03-24  Eric Blake  <ebb9@byu.net>
77979
77980         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77981
77982 2006-03-22  Karl Berry  <karl@gnu.org>
77983
77984         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77985         * config/srclistvars.sh (COREUTILS): new var.
77986
77987 2006-03-17  Jim Meyering  <jim@meyering.net>
77988
77989         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77990         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77991
77992 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77993
77994         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77995         no longer needs it.  Instead, check that regoff_t is as least
77996         as wide as ptrdiff_t.
77997
77998         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77999         so that our regex.h stays compatible with the installed regex.
78000         This is helpful for installers who configure --without-included-regex.
78001         Problem reported by Emanuele Giaquinta.
78002
78003 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78004
78005         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78006         Typedef to long int, not to off_, as POSIX will likely change
78007         in that direction.
78008
78009 2006-03-15  Eric Blake  <ebb9@byu.net>
78010
78011         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78012
78013 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78014
78015         * lib/argp-help.c (validate_uparams): Fix typo
78016         * lib/argp-parse.c (argp_default_options): Consistently begin help
78017         messages with a lowercase letter.
78018
78019 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78020
78021         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78022         overrun buffers and shouldn't be used (much as gets shouldn't be
78023         used).
78024         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78025
78026 2006-03-08  Simon Josefsson  <jas@extundo.com>
78027
78028         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78029         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78030
78031 2006-03-08  Simon Josefsson  <jas@extundo.com>
78032
78033         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78034         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78035
78036 2006-03-08  Simon Josefsson  <jas@extundo.com>
78037
78038         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78039         signal that configure disabled the device.
78040
78041 2006-03-08  Simon Josefsson  <jas@extundo.com>
78042
78043         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78044         languages.
78045
78046 2006-03-07  Simon Josefsson  <jas@extundo.com>
78047
78048         * modules/getopt (Depends-on): Add unistd.
78049
78050         * modules/unistd: New file.
78051
78052 2006-03-07  Simon Josefsson  <jas@extundo.com>
78053
78054         * modules/gc-random: New file.
78055
78056 2006-03-07  Simon Josefsson  <jas@extundo.com>
78057
78058         * m4/unistd_h.m4: New file.
78059
78060 2006-03-07  Simon Josefsson  <jas@extundo.com>
78061
78062         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78063         test to be side-effect free by storing the result in the cache
78064         variable gl_cv_lib_readline, and moving the assignment of
78065         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78066         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78067
78068 2006-03-07  Simon Josefsson  <jas@extundo.com>
78069
78070         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78071         error on missing devices (the functions will return an error).
78072
78073         * m4/gc.m4: Move random stuff to gc-random.m4
78074
78075 2006-03-07  Simon Josefsson  <jas@extundo.com>
78076
78077         * lib/unistd_.h: New file.
78078
78079 2006-03-07  Simon Josefsson  <jas@extundo.com>
78080
78081         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78082
78083 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78084
78085         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78086         Problem reported by Juan Manuel Guerrero.
78087
78088 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78091         the unistd module.
78092         * lib/getlogin_r.c: Likewise.
78093         * lib/getlogin_r.h: Likewise.
78094         * lib/glob.c: Likewise.
78095         * lib/pagealign_alloc.c: Likewise.
78096         * lib/unistd_.h: Remove; no longer needed.
78097
78098 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78099
78100         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78101         Add unistd.
78102         * modules/c-stack (Depends-on): Add unistd.
78103         * modules/getlogin_r: Likewise.
78104         * modules/glob: Likewise.
78105         * modules/pagealign_alloc: Likewise.
78106         * modules/unistd (Files): Remove lib/unistd_.h.
78107         (EXTRA_DIST): Remove.
78108         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78109         need unistd_.h.
78110         (MOSTLYCLEANFILES): Remove unistd.h-t.
78111
78112 2006-03-03  Simon Josefsson  <jas@extundo.com>
78113
78114         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78115
78116 2006-03-03  Simon Josefsson  <jas@extundo.com>
78117
78118         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78119         libidn and bison.
78120
78121 2006-03-03  Simon Josefsson  <jas@extundo.com>
78122
78123         * build-aux/maint.mk: Add indent target.
78124
78125 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78126
78127         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78128         our replacement poll.h in any case, to avoid a differing
78129         declaration from a system header.  Seen on AIX.
78130
78131 2006-03-01  Simon Josefsson  <jas@extundo.com>
78132
78133         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78134         <kasal@ucw.cz>.
78135
78136 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78137
78138         * modules/gettime (Depends-on): Add extensions module.
78139         * modules/nanosleep (Depends-on): Likewise.
78140         * modules/settime (Depends-on): Likewise.
78141
78142 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78145         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78146         pedantically.
78147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78148         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78149
78150         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78151         not "==".  Reported by Ralf Wildenhues.
78152
78153 2006-03-01  Karl Berry  <karl@gnu.org>
78154
78155         * doc/Copyright/request-*: new files, synced from gnuorg.
78156
78157 2006-03-01  Karl Berry  <karl@gnu.org>
78158
78159         * config/srclist.txt (Copyright/*): new entries.
78160
78161 2006-02-28  Simon Josefsson  <jas@extundo.com>
78162
78163         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78164
78165 2006-02-27  Simon Josefsson  <jas@extundo.com>
78166
78167         * lib/base64.h: Indent #define's.  From Jim Meyering
78168         <jim@meyering.net>.
78169
78170 2006-02-27  Jim Meyering  <jim@meyering.net>
78171
78172         Revert the change of 2006-02-24, so these files can continue
78173         to be sync'd from gettext.
78174         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78175         of `config.h'.
78176
78177 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78178
78179         * modules/intprops: New file.
78180         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78181         Add intprops.
78182         * modules/getloadavg (Files): Remove lib/intprops.h.
78183         (Depends-on): Add intprops.
78184         * modules/human: Likewise.
78185         * modules/inttostr: Likewise.
78186         * modules/openat: Likewise.
78187         * modules/sig2str: Likewise.
78188         * modules/userspec: Likewise.
78189         * modules/utimecmp: Likewise.
78190         * modules/xnanosleep: Likewise.
78191         * modules/xstrtol: Likewise.
78192
78193 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78194
78195         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78196         * modules/lock-tests (TESTS): Use $(EXEEXT).
78197         * modules/tls-tests: Likewise.
78198         * modules/argp-tests: Likewise.
78199         (check_PROGRAMS): New var, replacing...
78200         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78201
78202 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78203
78204         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78205         `config.h'.
78206
78207 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78208
78209         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78210
78211 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78212
78213         Sync from coreutils.
78214         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78215         gl_CHDIR_SAFER.
78216
78217 2006-02-22  Jim Meyering  <jim@meyering.net>
78218
78219         Sync from coreutils.
78220         * m4/chdir-safer.m4: New file.
78221
78222 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78223
78224         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78225         AT_FDCWD exceeds INT_MAX.
78226         * lib/openat.h (AT_FDCWD): Likewise.
78227
78228 2006-02-17  Eric Blake  <address@hidden>
78229
78230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78231
78232 2006-02-16  Simon Josefsson  <jas@extundo.com>
78233
78234         * modules/getaddrinfo (Depends-on): Add sys_socket.
78235
78236 2006-02-15  Simon Josefsson  <jas@extundo.com>
78237
78238         * build-aux/maint.mk: Add dsyntax-check rule.
78239
78240 2006-02-15  Eric Blake  <ebb9@byu.net>
78241
78242         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78243         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78244         'present but cannot compile' warnings on cygwin.
78245         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78246         use ws2tcpip.h if sys/socket.h works.
78247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78248         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78249
78250 2006-02-14  Simon Josefsson  <jas@extundo.com>
78251
78252         * modules/maintainer-makefile (Files): Rename.
78253
78254         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78255         and (the local) Makefile.cfg to maint-cfg.mk.
78256
78257         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78258         to the latter.
78259
78260         * modules/maintainer-makefile: New module.
78261
78262         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78263         severaly stripped to make it possible to build it up from scratch
78264         with reliable tests.
78265
78266         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78267         fixes to permit overriding the default actions when configure and
78268         makefile are not available.
78269
78270 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78271
78272         Sync from coreutils.
78273         * modules/lstat (Depends-on): Don't depend on xalloc.
78274         (License): Change from GPL to LGPL, since this is now simply a
78275         replacement for a libc function.
78276
78277 2006-02-14  Jim Meyering  <jim@meyering.net>
78278
78279         Sync from coreutils.
78280
78281         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78282         failure on deficient systems, and simplify gnulib lgpl dependencies.
78283         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78284         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78285
78286         * lib/xalloc-die.c: Remove unused definition of N_.
78287
78288 2006-02-14  Jim Meyering  <jim@meyering.net>
78289
78290         Sync from coreutils.
78291         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78292         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78293         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78294         double-quote uses of that variable, to accommodate the rare case in
78295         which getmntent is available in none of the libraries checked.  This
78296         happens at least on FreeBSD 5.0.
78297
78298 2006-02-13  Simon Josefsson  <jas@extundo.com>
78299
78300         * gnulib-tool (Usage): Fix --import, from
78301         karl@freefriends.org (Karl Berry).
78302
78303 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78304
78305         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78306
78307 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78308
78309         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78310         "autoupdate" on 2005-12-12.
78311
78312 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78313
78314         * modules/closeout (Depends-on): Remove atexit.
78315
78316 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78317
78318         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78319         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78320
78321 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78324         __EXTENSIONS__ if this causes compilation to fail.  Problem
78325         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78326         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78327
78328 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78331         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78332         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78333         All uses changed.
78334
78335 2006-01-26  Simon Josefsson  <jas@extundo.com>
78336
78337         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78338         prototype is visible on mingw32.
78339
78340         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78341         for mingw32.
78342
78343         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78344         mingw32).
78345
78346 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78347
78348         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78349         attempt to open for write; this always fails, at least on POSIX
78350         hosts.  This reinstates the 2006-01-09 change, which was
78351         inadvertently removed.
78352
78353 2006-01-26  Bruno Haible  <bruno@clisp.org>
78354
78355         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78356         Reported by Paul Eggert.
78357
78358 2006-01-26  Bruno Haible  <bruno@clisp.org>
78359             Paul Eggert  <eggert@cs.ucla.edu>
78360
78361         * lib/stdbool_.h (_Bool)
78362         [(! (defined __cplusplus || defined __BEOS__)
78363           && !defined __GNUC__
78364           && !(defined __HP_cc || defined __xlc__
78365                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78366                || defined __sgi))]:
78367         #define to signed char in these cases too; this simplifies
78368         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78369         etc., separately) and makes it more conservative.
78370
78371 2006-01-25  Simon Josefsson  <jas@extundo.com>
78372
78373         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78374         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78375         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78376
78377 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78378
78379         * lib/argp-namefrob.h: Bugfix. Remove stray #
78380
78381 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78384         so that we test the test.
78385         Check for yet another HP-UX cc bug involving *bool |= bool.
78386
78387 2006-01-25  Karl Berry  <karl@gnu.org>
78388
78389         * config/srclist.txt (vasnprintf.c): sync lost.
78390
78391 2006-01-25  Jim Meyering  <jim@meyering.net>
78392
78393         Sync from the stable (b5) branch of coreutils:
78394
78395         * lib/fts.c (fts_children): Don't let close() clobber errno from
78396         failed fchdir().
78397
78398         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78399         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78400         a dangling symlink.  That can also happen at least for ELOOP.
78401         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78402         FYI, this bug predates the inclusion of fts.c in coreutils.
78403
78404         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78405         in their own block, so pre-c99 compilers don't object.
78406
78407         Avoid the double-free (first in fts_read, second in fts_close) that
78408         would occur when an `active' directory is made inaccessible (e.g.,
78409         via chmod a-x) during a traversal.
78410         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78411         before returning.  Reproduce this failure by
78412         mkdir -p a/b; cd a; chmod a-x . b
78413         Reported by Stavros Passas.
78414
78415 2006-01-25  Jim Meyering  <jim@meyering.net>
78416
78417         * lib/fileblocks.c: Remove more useless parentheses.
78418         * lib/readutmp.h: Likewise.
78419
78420 2006-01-25  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78423         warnings.
78424         Reported by Paul Eggert.
78425
78426 2006-01-25  Bruno Haible  <bruno@clisp.org>
78427
78428         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78429         rid of a trap command. For Solaris sh.
78430         Reported by Mark D. Baushke <mdb@gnu.org>.
78431
78432 2006-01-24  Simon Josefsson  <jas@extundo.com>
78433
78434         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78435         Bruno.
78436
78437 2006-01-24  Karl Berry  <karl@gnu.org>
78438
78439         * config/srclist.txt (argp-namefrob.h): sync lost.
78440
78441 2006-01-24  Jim Meyering  <jim@meyering.net>
78442
78443         * modules/openat (Files): Add lib/intprops.h.
78444         From Mark D. Baushke.
78445
78446 2006-01-24  Jim Meyering  <jim@meyering.net>
78447
78448         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78449         Reported by Mark D. Baushke.
78450
78451 2006-01-24  Jim Meyering  <jim@meyering.net>
78452
78453         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78454
78455 2006-01-24  Bruno Haible  <bruno@clisp.org>
78456
78457         * modules/strnlen (Maintainer): Change from glibc to all.
78458
78459 2006-01-24  Bruno Haible  <bruno@clisp.org>
78460
78461         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78462         Patch by Paul Eggert.
78463
78464 2006-01-24  Bruno Haible  <bruno@clisp.org>
78465
78466         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78467         already has it.
78468         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78469         2005-11-26.
78470
78471         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78472         'signed char' to avoid problems with the built-in _Bool type.
78473         Reported by Paul Eggert on 2005-11-26.
78474
78475 2006-01-24  Bruno Haible  <bruno@clisp.org>
78476
78477         * gnulib-tool (func_import): Avoid constructing complicated sed
78478         expressions inside backquote.
78479         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78480
78481 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78482
78483         These changes imported from libc.
78484         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78485         test and two separate function calls.
78486         * lib/strndup.c (__strndup): Add libc_hidden_def.
78487
78488 2006-01-23  Simon Josefsson  <jas@extundo.com>
78489
78490         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78491         Remove the test_*_SOURCES variable: automake infers it by default.
78492         * modules/tls-tests: Likewise.
78493
78494 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         Work around porting bugs reported by Dieter in
78497         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78498         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78499         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78500         Include "getopt.h" first, to check interface.
78501         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78502         !HAVE_DECL_GETENV.
78503         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78504         (__strndup): Revert to K&R-style function dfns, the glibc style.
78505         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78506         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78507         Include strnlen.h first, to get prototype properly.
78508         (strnlen): Renamed from __strnlen.
78509         Remove weak alias.
78510
78511 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78512
78513         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78514
78515 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78516
78517         * config/srclist.txt: Adjust to reflect glibc reorganization.
78518         This affects only comments.
78519
78520 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78521
78522          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78523          Reported by Bruce Korb <bkorb@gnu.org>.
78524
78525 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78528         to pacify gcc -Wswitch-default.
78529
78530 2006-01-22  Bruno Haible  <bruno@clisp.org>
78531
78532         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78533         temporary buffer for sprintf, take into account the precision also
78534         for 'd', 'i', 'u', 'o', 'x', 'X'.
78535
78536 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78537
78538         * modules/argp-tests: New module
78539         * tests/test-argp.c: New file
78540         * tests/test-argp-2.sh: New file
78541
78542 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78543
78544         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78545         (__argp_base_name): Removed
78546         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78547         typo.
78548         (__argp_base_name): Provide macro definition or extern declaration
78549         depending on the configuration
78550
78551 2006-01-20  Simon Josefsson  <jas@extundo.com>
78552
78553         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78554
78555 2006-01-20  Simon Josefsson  <jas@extundo.com>
78556
78557         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78558
78559 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78560
78561         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78562         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78563         Suggested by Bruno Haible.
78564
78565 2006-01-20  Karl Berry  <karl@gnu.org>
78566
78567         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78568         until changes propagate, I guess.
78569
78570 2006-01-19  Simon Josefsson  <jas@extundo.com>
78571
78572         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78573
78574 2006-01-19  Simon Josefsson  <jas@extundo.com>
78575
78576         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78577
78578 2006-01-19  Simon Josefsson  <jas@extundo.com>
78579
78580         * gnulib-tool: Set check_PROGRAMS.
78581
78582         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78583         modules/des-tests, modules/gc-arcfour-tests,
78584         modules/gc-arctwo-tests, modules/gc-des-tests,
78585         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78586         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78587         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78588         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78589         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78590         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78591         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78592         test_*_SOURCES.
78593
78594 2006-01-18  Simon Josefsson  <jas@extundo.com>
78595
78596         * modules/socklen (Depends-on): Depend on sys_socket.
78597
78598 2006-01-18  Simon Josefsson  <jas@extundo.com>
78599
78600         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78601         modules/des-tests, modules/gc-arcfour-tests,
78602         modules/gc-arctwo-tests, modules/gc-des-tests,
78603         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78604         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78605         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78606         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78607         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78608         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78609         $(EXEEXT) to automake TESTS variable, for mingw32.
78610
78611 2006-01-17  Simon Josefsson  <jas@extundo.com>
78612
78613         * modules/socklen (Include): Need sys/socket.h.
78614
78615 2006-01-17  Bruno Haible  <bruno@clisp.org>
78616
78617         * modules/ssize_t (Include): Add <sys/types.h>.
78618
78619 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78622         it's not portable and it doesn't work with cross-compiles.
78623         Problem reported by Bruno Haible.  Fix missing-$ typo in
78624         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78625         -zignore from being used with Sun's C compiler.
78626
78627 2006-01-12  Simon Josefsson  <jas@extundo.com>
78628
78629         * lib/base64.c: Fix warning, reported by Bruno Haible
78630         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78631
78632 2006-01-12  Bruno Haible  <bruno@clisp.org>
78633
78634         * modules/ldd: New file.
78635         * build-aux/ldd.sh.in: New file.
78636         * MODULES.html.sh (Support for building libraries and executables): Add
78637         ldd.
78638
78639 2006-01-12  Bruno Haible  <bruno@clisp.org>
78640
78641         * m4/ldd.m4: New file.
78642
78643 2006-01-12  Bruno Haible  <bruno@clisp.org>
78644
78645         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78646         endless loop while replacing $auxdir with build-aux.
78647
78648 2006-01-11  Simon Josefsson  <jas@extundo.com>
78649
78650         * lib/stdint_.h (SIZE_MAX): Add missing (.
78651
78652 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78653
78654         Sync from coreutils.
78655         * lib/md5.c: Fix commentary typos.
78656         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78657         * lib/md5.h (__attribute__): Remove; unused.
78658         * lib/sha1.c: Fix commentary to match md5 better.
78659         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78660         so that we don't need to worry about alignment.  All uses changed.
78661         This merges the 2005-10-28 md5 change into sha1.
78662
78663 2006-01-11  Jim Meyering  <jim@meyering.net>
78664
78665         Sync from coreutils.
78666         * lib/md5.c (OP): Fix spacing.
78667
78668 2006-01-11  Bruno Haible  <bruno@clisp.org>
78669
78670         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78671         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78672         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78673
78674 2006-01-11  Bruno Haible  <bruno@clisp.org>
78675
78676         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78677         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78678         the "early" section as well.
78679
78680 2006-01-11  Bruno Haible  <bruno@clisp.org>
78681
78682         Avoid "ar: no archive members specified" error on MacOS X.
78683         * gnulib-tool (func_modules_add_dummy): New function.
78684         (func_import, func_create_testdir): Invoke it.
78685
78686 2006-01-11  Bruno Haible  <bruno@clisp.org>
78687
78688         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78689         with $auxdir in AC_CONFIG_FILES statements.
78690
78691 2006-01-11  Bruno Haible  <bruno@clisp.org>
78692
78693         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78694         Initialize also noinst_HEADERS to empty.
78695
78696 2006-01-11  Bruno Haible  <bruno@clisp.org>
78697
78698         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78699         variables.
78700         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78701         autoreconf.
78702
78703 2006-01-11  Bruno Haible  <bruno@clisp.org>
78704
78705         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78706         overridable by the user.
78707         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78708
78709 2006-01-10  Simon Josefsson  <jas@extundo.com>
78710
78711         * modules/sys_socket: New file.
78712
78713 2006-01-10  Simon Josefsson  <jas@extundo.com>
78714
78715         * m4/sys_socket_h.m4: New file.
78716
78717 2006-01-10  Simon Josefsson  <jas@extundo.com>
78718
78719         * lib/socket_.h: New file.
78720
78721 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78722
78723         * modules/readutmp (Maintainer): Add myself.
78724
78725 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78726
78727         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78728         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78729         People who are still concerned with buggy memcmp implementations
78730         can invoke gl_FUNC_MEMCMP themselves.
78731
78732 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * lib/regex_internal.h (BITSET_WORD_BITS):
78735         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78736         preprocessor mishandles large unsigned values as if they were signed.
78737         Problem reported by Claudio Fontana in
78738         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78739
78740 2006-01-10  Jim Meyering  <jim@meyering.net>
78741
78742         Avoid the double-free (first in fts_read, second in fts_close) that
78743         would occur when an `active' directory is made inaccessible (e.g.,
78744         via chmod a-x) during a traversal.
78745         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78746         before returning.  Reproduce this failure by
78747         mkdir -p a/b; cd a; chmod a-x . b
78748         Reported by Stavros Passas.
78749
78750         Sync from coreutils.
78751         * lib/sha1.c: Tweak grammar in a comment.
78752
78753 2006-01-10  Jim Meyering  <jim@meyering.net>
78754
78755         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78756         Patch by Joerg Sonnenberger.
78757
78758 2006-01-10  Bruno Haible  <bruno@clisp.org>
78759
78760         * modules/readutmp: Depend on module free.
78761         * modules/strtok_r: Depend on module restrict.
78762
78763 2006-01-10  Bruno Haible  <bruno@clisp.org>
78764
78765         * modules/gettext (configure.ac): Add an invocation of
78766         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78767
78768 2006-01-10  Bruno Haible  <bruno@clisp.org>
78769
78770         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78771         Reported by Werner Lemberg <wl@gnu.org>.
78772
78773 2006-01-10  Bruno Haible  <bruno@clisp.org>
78774
78775         * lib/localcharset.c: Update from GNU gettext.
78776
78777 2006-01-10  Bruno Haible  <bruno@clisp.org>
78778
78779         * lib/argp.h (__const): Remove macro. Use const instead.
78780         * lib/argp-fmtstream.h (__const): Likewise.
78781         * lib/glob_.h (__const): Remove macro.
78782         * lib/glob-libc.h: Use const instead of __const.
78783
78784 2006-01-10  Bruno Haible  <bruno@clisp.org>
78785
78786         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78787         variable.
78788         Needed to avoid an automake error regarding the 'gettext' module.
78789
78790 2006-01-09  Simon Josefsson  <jas@extundo.com>
78791
78792         * modules/inet_ntop (Depends-on): Add restrict.
78793
78794 2006-01-09  Simon Josefsson  <jas@extundo.com>
78795
78796         * modules/gc-rijndael-tests (License): Put under LGPL.
78797
78798         * modules/gc-des-tests (License): Likewise.
78799
78800         * modules/gc-arcfour-tests (License): Likewise.
78801
78802         * modules/gc-arctwo-tests (License): Likewise.
78803
78804         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78805
78806         * modules/gc-hmac-sha1-tests (Files): Likewise.
78807
78808         * modules/gc-hmac-md5-tests (License): Likewise.
78809
78810         * modules/gc-sha1-tests (License): Likewise.
78811
78812         * modules/gc-md5-tests (License): Likewise.
78813
78814         * modules/gc-md4-tests (License): Likewise.
78815
78816         * modules/gc-md2-tests (License): Likewise.
78817
78818         * modules/gc-tests (License): Likewise.
78819
78820         * modules/des-tests (License): Likewise.
78821
78822         * modules/md4-tests (License): Likewise.
78823
78824         * modules/md2-tests (License): Likewise.
78825
78826 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78827
78828         Sync from coreutils:
78829
78830         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78831         * modules/lib-ignore: New file.
78832         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78833         chdir-safer.m4, lchmod.m4.
78834         * modules/openat: Add mkdirat.c, openat-priv.h.
78835
78836 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         Sync from coreutils.
78839         * m4/lib-ignore.m4: New file.
78840         * m4/lchmod.m4: New file.
78841
78842 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78843
78844         Sync from coreutils.
78845         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78846         for write access: POSIX says that must fail.
78847         * lib/fts.c (diropen): Likewise.
78848         * lib/save-cwd.c (save_cwd): Likewise.
78849         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78850         well, for minor improvements on hosts that lack O_DIRECTORY.
78851         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78852         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78853         Fall back on chown if open failed with EACCES.
78854
78855         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78856         Report an error at compile-time if only a 1-second nominal clock
78857         resolution is found.
78858
78859         * lib/lchmod.h: New file.
78860         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78861         (make_dir_parents): Use lchown rather than chown, and
78862         lchmod rather than chmod.
78863
78864         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78865         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78866         "proc" reported by n0dalus.
78867
78868         * lib/mountlist.c: Include <limits.h>.
78869         (dev_from_mount_options)
78870         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78871         New function.  It no longer assumes "dev=" has the System V meaning
78872         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78873         (read_file_system_list)
78874         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78875         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78876         dev= in that case.
78877
78878         * lib/posixtm.h (PDS_PRE_2000): New macro.
78879         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78880         allow_century.  All usages changed.  Reject dates outside the range
78881         1969-1999 if PDS_PRE_2000 is used.
78882
78883 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         Sync from coreutils.
78886         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78887         (Time of day items): Mention the possibility of leap seconds.
78888         Problem reported by Dr. David Alan Gilbert.
78889
78890 2006-01-09  Jim Meyering  <jim@meyering.net>
78891
78892         Sync from coreutils.
78893
78894         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78895
78896         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78897
78898         * lib/modechange.c (mode_compile): Reject an invalid mode string
78899         that starts with an octal digit.  From Andreas Gruenbacher.
78900
78901         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78902         and dup to open_safer and dup_safer, respectively.
78903         (openat_permissive): Fix typo in comment.
78904
78905         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78906         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78907         (_): Remove; no longer needed.
78908         (openat): Renamed from rpl_openat; no need for rpl_openat
78909         since openat.h renames openat for us.
78910         Replace most of the body with a call to openat_permissive,
78911         to avoid duplicate code.
78912         Port to (probably hypothetical) environments were mode_t is
78913         wider than int.
78914         (openat_permissive): Require mode arg, so that we can check
78915         types better.  Put it just after flags.  Change cwd failure
78916         indicator from pointer-to-bool to pointer-to-errno-value.
78917         All callers changed.
78918         Invoke openat_save_fail and/or openat_restore_fail if
78919         cwd_errno is null, so that openat can call us.
78920         (openat_permissive, fdopendir, fstatat, unlinkat):
78921         Simplify errno handling to avoid some duplicate code,
78922         as it's OK to set errno on success.
78923         * lib/openat.h: Revamp code so that function macros depend on
78924         __OPENAT_PREFIX only, not also on AT_FDCWD.
78925         (openat_ro): Remove.  Caller changed to use openat_permissive.
78926         (openat_permissive): Now a macro, if not a function.
78927         (openat_restore_fail, openat_save_fail): Now always functions,
78928         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78929
78930         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78931         and openat.c.
78932         * lib/mkdirat.c: Include openat-priv.h.
78933         Remove definitions of macros defined therein.
78934         * lib/openat.c: Likewise.
78935
78936         * lib/mkdirat.c (mkdirat): New file and function.
78937         * lib/openat.h (mkdirat): Declare.
78938
78939         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78940
78941         * lib/openat.h (openat_permissive): Declare.
78942         (openat_ro): Define.
78943
78944         * lib/openat.c (EXPECTED_ERRNO): New macro.
78945         (openat_permissive): New function -- used in remove.c rewrite.
78946         (all functions): Set errno just before returning, only if there
78947         was an actual failure.
78948         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78949
78950         Emulate openat-family functions using Linux's procfs, if possible.
78951         Idea and some code based on Ulrich Drepper's glibc changes.
78952
78953         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78954         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78955         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78956         before falling back on save_cwd and restore_cwd.
78957         (fdopendir, fstatat, unlinkat): Likewise.
78958
78959         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78960         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78961
78962         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78963         as second argument to va_arg.  Otherwise, some versions of gcc
78964         warn that `if this code is reached, the program will abort'.
78965
78966 2006-01-09  Jim Meyering  <jim@meyering.net>
78967
78968         Sync from coreutils.
78969         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78970         Require openat-priv.h.
78971
78972 2006-01-09  Bruno Haible  <bruno@clisp.org>
78973
78974         * modules/strnlen (Include): Use strnlen.h.
78975
78976 2006-01-09  Bruno Haible  <bruno@clisp.org>
78977
78978         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78979
78980 2006-01-09  Bruno Haible  <bruno@clisp.org>
78981
78982         * lib/sysexit_.h (EX_OK): New macro.
78983         Suggested by Martin Lambers <marlam@marlam.de>.
78984
78985 2006-01-09  Bruno Haible  <bruno@clisp.org>
78986
78987         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78988         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78989
78990 2006-01-09  Bruno Haible  <bruno@clisp.org>
78991
78992         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78993         numbers.
78994
78995 2006-01-09  Bruno Haible  <bruno@clisp.org>
78996
78997         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78998         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78999         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79000         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79001
79002 2006-01-09  Bruno Haible  <bruno@clisp.org>
79003
79004         * build-aux/javacomp.sh.in: New file, moved from lib/.
79005         * modules/javacomp-script (Files): Update.
79006         (configure.ac): Add AC_CONFIG_FILES invocation.
79007         (EXTRA_DIST): Remove variable.
79008
79009         * build-aux/javaexec.sh.in: New file, moved from lib/.
79010         * modules/javaexec (Files): Update.
79011         (configure.ac): Add AC_CONFIG_FILES invocation.
79012         (EXTRA_DIST): Remove javaexec.sh.in.
79013
79014         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79015         * modules/csharpcomp-script (Files): Update.
79016         (configure.ac): Add AC_CONFIG_FILES invocation.
79017         (EXTRA_DIST): Remove variable.
79018
79019         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79020         * modules/csharpexec (Files): Update.
79021         (configure.ac): Add AC_CONFIG_FILES invocation.
79022         (EXTRA_DIST): Remove csharpexec.sh.in.
79023
79024 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79025
79026         Sync from coreutils.
79027
79028         Add POSIX ACL support
79029         * lib/acl.h (copy_acl, set_acl): Add declarations.
79030         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79031         systems other than Linux.
79032         (chmod_or_fchmod): New function: use fchmod when possible,
79033         and chmod otherwise.
79034         (file_has_acl): Add a POSIX ACL implementation, with a
79035         Linux-specific subcase.
79036         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79037         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79038         acls are unsupported.
79039         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79040         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79041         are unsupported.
79042
79043 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79044
79045         Sync from coreutils.
79046         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79047
79048 2006-01-07  Bruno Haible  <bruno@clisp.org>
79049
79050         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79051         gl_EARLY.
79052
79053 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79054
79055         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79056         Problem reported for Mingw by Mark Junker.
79057
79058 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79059
79060         * README: Gnulib normally doesn't generate a tarball.
79061
79062 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79063
79064         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79065         long int, not int, for nanosecond counts, so that people who are
79066         used to POSIX struct timespec won't be surprised.  Reported by Jim
79067         Meyering.
79068
79069 2005-12-28  Bruno Haible  <bruno@clisp.org>
79070
79071         * build-aux/config.rpath: Update from GNU gettext.
79072
79073 2005-12-16  Jim Meyering  <jim@meyering.net>
79074
79075         * modules/fprintftime: New module.
79076         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79077
79078 2005-12-16  Jim Meyering  <jim@meyering.net>
79079
79080         * m4/fprintftime.m4: New file.
79081
79082 2005-12-16  Jim Meyering  <jim@meyering.net>
79083
79084         * lib/fprintftime.c, lib/fprintftime.h: New files.
79085
79086 2005-12-15  Simon Josefsson  <jas@extundo.com>
79087
79088         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79089         new m4/socklen.m4.
79090
79091 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79092
79093         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79094         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79095
79096 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79097
79098         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79099         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79100         struct uparams is valid. Fall back to the default values if it is
79101         not.
79102
79103 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79104
79105         * modules/argp (Files): Add argp-pin.c
79106         (Depends-on): dirname
79107         (lib_SOURCES): Add argp-pin.c
79108
79109 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79110
79111         * m4/argp.m4:  Check if program_invocation_name and
79112         program_invocation_short_name are declared and define appropriate
79113         macros if they are not.
79114
79115 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79116
79117         * lib/argp-help.c (__argp_base_name): New function
79118         (__argp_short_program_name): Rewrite using __argp_base_name
79119         * lib/argp-namefrob.h: Define program_invocation_name and
79120         program_invocation_short_name if requested
79121         (__argp_base_name): Add prototype
79122         * lib/argp-parse.c (argp_def): Use gettext wrappers
79123         (argp_default_parser): Use __argp_base_name
79124         * lib/argp-pin.c: New file. Defines program_invocation_name and
79125         program_invocation_short_name on systems that lack them.
79126
79127 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79130         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79131         porting problem reported by Georg Schwarz in
79132         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79133
79134 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79135
79136         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79137         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79138         porting problem reported by Georg Schwarz in
79139         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79140
79141 2005-12-05  Bruno Haible  <bruno@clisp.org>
79142
79143         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79144         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79145         Reported by Mark Junker <mjscod@gmx.de>.
79146
79147 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79148
79149         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79150         Use implementation from Albert Chin, with some
79151         comments/corrections by Stepan Kasal and myself.
79152
79153 2005-12-02  Bruno Haible  <bruno@clisp.org>
79154
79155         * gnulib-tool (func_import): Accept GPLed build tool modules when
79156         --lgpl is given.
79157         * modules/csharpcomp-script: New file.
79158         * modules/csharpcomp: Depend on it.
79159         * modules/javacomp-script: New file.
79160         * modules/javacomp: Depend on it.
79161         Suggested by Simon Josefsson.
79162
79163 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79164
79165         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79166         statement, to work around an HP-UX 10.20 compiler bug reported by
79167         Peter O'Gorman.
79168
79169 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79170
79171         * modules/savedir (Depends-on): Add openat.
79172
79173 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79174
79175         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79176         (uintmax_t) [defined uintmax_t]: Do not declare.
79177         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79178         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79179         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79180         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79181         sake of portability to weird hosts that C allows (though we don't
79182         know of any practical examples).
79183
79184         * lib/savedir.h (fdsavedir): New decl.
79185         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79186         contains most of the former guts of savedir.
79187         (savedir): Use savedirstream.
79188         Include "openat.h".
79189
79190 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * modules/obstack (Files): Add m4/ulonglong.m4.
79193         Problem reported by Davide Angelocola.
79194
79195 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79198         coreutils no longer futzes with rounding modes.
79199
79200 2005-11-14  Jim Meyering  <jim@meyering.net>
79201
79202         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79203         replacement of mkstemp.
79204
79205 2005-11-10  Simon Josefsson  <jas@extundo.com>
79206
79207         * lib/readline.c: Remove EOL.
79208
79209 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * modules/gethrxtime (Depends-on): Add gettime.
79212
79213 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79216         or gettimeofday; no longer needed.
79217
79218 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79219
79220         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79221         time business.
79222         (gethrxtime) [! (HAVE_NANOUPTIME
79223         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79224         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79225         our own approximation.
79226
79227 2005-11-08  Eric Blake  <ebb9@byu.net>
79228
79229         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79230
79231 2005-11-08  Eric Blake  <ebb9@byu.net>
79232
79233         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79234
79235 2005-11-04  Bruno Haible  <bruno@clisp.org>
79236
79237         * gnulib-tool: Implement --update mode.
79238
79239 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79240
79241         Fix porting problem reported by Theodoros V. Kalamatianos.
79242         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79243         Don't assume that futimes failing means we must fail.
79244
79245 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79248         variables to suggest the intended function of the PATH_MAX check.
79249
79250 2005-10-30  Kean Johnston  <jkj@sco.com>
79251
79252         Trivial changes to support SCO systems.
79253         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79254         as PATH_MAX.
79255         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79256         where __ptr is null when no I/O is pending.
79257
79258 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79261         leave errno alone.  Problem reported by Dmitry V. Levin.
79262
79263 2005-10-28  Simon Josefsson  <jas@extundo.com>
79264
79265         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79266         Test more.
79267
79268         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79269
79270         * modules/md2, modules/md2-tests: New files.
79271
79272 2005-10-28  Simon Josefsson  <jas@extundo.com>
79273
79274         * m4/inet_ntop.m4: More tests.
79275
79276         * m4/gc-md2.m4, md2.m4: New file.
79277
79278 2005-10-28  Simon Josefsson  <jas@extundo.com>
79279
79280         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79281         "restrict" keywords, as per POSIX.  Protect the function
79282         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79283         Don't use K&R prototypes.  Check the sprintf return values.
79284         Re-define EAFNOSUPPORT if not present.  Indent.
79285
79286         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79287         suggested by Bruno Haible <bruno@clisp.org>.
79288
79289         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79290
79291         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79292
79293         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79294         libgcrypt).
79295
79296         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79297
79298         * lib/md2.h, lib/md2.c: New files.
79299
79300 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79301
79302         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79303         errno alone.  Problem reported by Frederic Jolliton.
79304
79305 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79306
79307         * modules/verify (License): Change from GPL to LGPL.  This is a
79308         tiny module and there are apparently near-equivalents that are
79309         under the BSD license.
79310
79311 2005-10-24  Simon Josefsson  <jas@extundo.com>
79312
79313         * modules/sha1: Relicense to LGPL.
79314
79315 2005-10-24  Simon Josefsson  <jas@extundo.com>
79316
79317         * lib/md4.h: Shrink buffer size, now that we changed the type.
79318
79319 2005-10-23  Simon Josefsson  <jas@extundo.com>
79320
79321         * gnulib-tool (func_import): Fix --tests-base.
79322
79323 2005-10-22  Simon Josefsson  <jas@extundo.com>
79324
79325         * modules/arcfour (Depends-on): Need stdint.
79326
79327 2005-10-22  Simon Josefsson  <jas@extundo.com>
79328
79329         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79330         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79331
79332 2005-10-22  Simon Josefsson  <jas@extundo.com>
79333
79334         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79335         suggested by Bruno Haible <bruno@clisp.org>.
79336
79337 2005-10-22  Simon Josefsson  <jas@extundo.com>
79338
79339         * lib/crc.h: Include stddef.h, for size_t.
79340
79341 2005-10-22  Simon Josefsson  <jas@extundo.com>
79342
79343         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79344         arcfour_context struct (simplify test vector testing in GNU
79345         Shishi).
79346
79347 2005-10-21  Simon Josefsson  <jas@extundo.com>
79348
79349         * modules/des, modules/des-tests: New files.
79350
79351         * modules/gc-des, modules/gc-des-tests: New files.
79352
79353         * tests/test-des.c, tests/test-gc-des.c: New file.
79354
79355 2005-10-21  Simon Josefsson  <jas@extundo.com>
79356
79357         * modules/arctwo, modules/arctwo-tests: New files.
79358
79359         * tests/test-arctwo.c: New file.
79360
79361         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79362
79363         * tests/test-gc-arctwo.c: New file.
79364
79365 2005-10-21  Simon Josefsson  <jas@extundo.com>
79366
79367         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79368         Bruno Haible <bruno@clisp.org>.
79369
79370         * m4/gc-des.m4: New file.
79371
79372 2005-10-21  Simon Josefsson  <jas@extundo.com>
79373
79374         * m4/arctwo.m4: New file.
79375
79376         * m4/gc-arctwo.m4: New file.
79377
79378 2005-10-21  Simon Josefsson  <jas@extundo.com>
79379
79380         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79381         block.
79382
79383 2005-10-21  Simon Josefsson  <jas@extundo.com>
79384
79385         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79386         <bruno@clisp.org>.
79387
79388         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79389
79390         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79391         Bruno Haible <bruno@clisp.org>.
79392
79393         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79394         <bruno@clisp.org>.
79395
79396 2005-10-21  Simon Josefsson  <jas@extundo.com>
79397
79398         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79399
79400 2005-10-21  Simon Josefsson  <jas@extundo.com>
79401
79402         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79403
79404 2005-10-21  Simon Josefsson  <jas@extundo.com>
79405
79406         * lib/des.h, lib/des.c: New files.
79407
79408         * lib/gc-gnulib.c: Support DES.c
79409
79410 2005-10-21  Simon Josefsson  <jas@extundo.com>
79411
79412         * lib/arctwo.h, lib/arctwo.c: New files.
79413
79414         * lib/gc-gnulib.c: Support ARCTWO.
79415
79416 2005-10-21  Simon Josefsson  <jas@extundo.com>
79417
79418         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79419         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79420
79421 2005-10-21  Simon Josefsson  <jas@extundo.com>
79422
79423         * gnulib-tool (func_import, func_create_testdir): Define automake
79424         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79425         Makefile.am snippet),
79426         suggested by Bruno Haible <bruno@clisp.org>.
79427
79428         * modules/gc (Makefile.am): Use it.
79429
79430 2005-10-21  Bruno Haible  <bruno@clisp.org>
79431
79432         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79433         patch.
79434
79435 2005-10-19  Simon Josefsson  <jas@extundo.com>
79436
79437         * tests/test-gc-rijndael.c: New file.
79438
79439         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79440
79441 2005-10-19  Simon Josefsson  <jas@extundo.com>
79442
79443         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79444         interface too.
79445
79446 2005-10-19  Simon Josefsson  <jas@extundo.com>
79447
79448         * tests/test-gc-arcfour.c: New file.
79449
79450         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79451
79452 2005-10-19  Simon Josefsson  <jas@extundo.com>
79453
79454         * modules/gc-md4, modules/gc-md4-tests: New file.
79455
79456         * tests/test-gc-md4.c: New file.
79457
79458 2005-10-19  Simon Josefsson  <jas@extundo.com>
79459
79460         * m4/gc-md4.m4: New file.
79461
79462 2005-10-19  Simon Josefsson  <jas@extundo.com>
79463
79464         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79465         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79466         <kasal@ucw.cz>.
79467
79468 2005-10-19  Simon Josefsson  <jas@extundo.com>
79469
79470         * m4/gc-arcfour.m4: New file.
79471
79472         * m4/gc-rijndael.m4: New file.
79473
79474 2005-10-19  Simon Josefsson  <jas@extundo.com>
79475
79476         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79477
79478 2005-10-19  Simon Josefsson  <jas@extundo.com>
79479
79480         * lib/gc-gnulib.c: Support ARCFOUR.
79481
79482 2005-10-19  Simon Josefsson  <jas@extundo.com>
79483
79484         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79485         support.
79486
79487         * lib/gc.h: Add ECB enum type.
79488
79489         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79490
79491 2005-10-18  Simon Josefsson  <jas@extundo.com>
79492
79493         * tests/test-md5.c: New file.
79494
79495         * modules/md5-tests: New file.
79496
79497 2005-10-18  Simon Josefsson  <jas@extundo.com>
79498
79499         * tests/test-md4.c: New file.
79500
79501         * modules/md4, modules/md4-tests: New files.
79502
79503 2005-10-18  Simon Josefsson  <jas@extundo.com>
79504
79505         * m4/md4.m4: New file.
79506
79507 2005-10-18  Simon Josefsson  <jas@extundo.com>
79508
79509         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79510
79511 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79512
79513         * gnulib-tool (func_create_testdir): Omit the second check whether
79514         BUILT_SOURCES in nonempty.
79515
79516 2005-10-17  Simon Josefsson  <jas@extundo.com>
79517
79518         * tests/test-rijndael.c: New file.
79519
79520 2005-10-17  Simon Josefsson  <jas@extundo.com>
79521
79522         * modules/sha1: Depend on stdint instead of md5.
79523
79524         * modules/md5: Depend on stdint, remove uint32_t.
79525
79526 2005-10-17  Simon Josefsson  <jas@extundo.com>
79527
79528         * modules/gc-sha1-tests: New file.
79529
79530         * tests/test-gc-sha1.c: New file.
79531
79532 2005-10-17  Simon Josefsson  <jas@extundo.com>
79533
79534         * m4/md5.m4: Remove call to uint32_t.m4.
79535
79536 2005-10-17  Simon Josefsson  <jas@extundo.com>
79537
79538         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79539
79540         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79541         md5.h.
79542
79543         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79544
79545         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79546
79547 2005-10-17  Simon Josefsson  <jas@extundo.com>
79548
79549         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79550
79551 2005-10-17  Simon Josefsson  <jas@extundo.com>
79552
79553         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79554
79555 2005-10-17  Simon Josefsson  <jas@extundo.com>
79556
79557         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79558
79559         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79560
79561 2005-10-17  Bruno Haible  <bruno@clisp.org>
79562
79563         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79564         that it can also be used in a test.
79565
79566 2005-10-16  Bruno Haible  <bruno@clisp.org>
79567
79568         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79569         TESTS_ENVIRONMENT, so that individual tests can augment it.
79570
79571         * gnulib-tool (func_create_testdir): Use an intermediate target for
79572         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79573         macros, like $(ALLOCA_H), which cannot be passed through the command
79574         line.
79575
79576 2005-10-15  Simon Josefsson  <jas@extundo.com>
79577
79578         * modules/rijndael-tests: New file.
79579
79580         * modules/rijndael: New file.
79581
79582 2005-10-15  Simon Josefsson  <jas@extundo.com>
79583
79584         * m4/rijndael.m4: New file.
79585
79586 2005-10-15  Simon Josefsson  <jas@extundo.com>
79587
79588         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79589
79590         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79591
79592 2005-10-14  Simon Josefsson  <jas@extundo.com>
79593
79594         * tests/test-arcfour.c: New file.
79595
79596         * modules/arcfour, modules/arcfour-tests: New files.
79597
79598 2005-10-14  Simon Josefsson  <jas@extundo.com>
79599
79600         * m4/arcfour.m4: New file.
79601
79602 2005-10-14  Simon Josefsson  <jas@extundo.com>
79603
79604         * lib/arcfour.h, lib/arcfour.c: New files.
79605
79606 2005-10-14  Roland McGrath  <roland@redhat.com>
79607
79608         Import from libc.  [BZ #1331]
79609         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79610         macro argument.
79611         Reported by Matej Vela <vela@debian.org>.
79612
79613 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79614
79615         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79616         include <wchar.h>; no longer needed.
79617
79618 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79621
79622 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79623         and  Ulrich Drepper  <drepper@redhat.com>
79624
79625         Import from libc.
79626         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79627         instead of inline stream orientation test and two separate
79628         function calls.  Pay no attention to USE_IN_LIBIO.
79629
79630 2005-10-13  Simon Josefsson  <jas@extundo.com>
79631
79632         * modules/gc-hmac-md5-tests: New file.
79633
79634         * tests/test-gc-hmac-sha1.c: New file.
79635
79636         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79637
79638         * modules/gc-hmac-md5-tests: New file.
79639
79640         * tests/test-gc-md5.c: New file.
79641
79642         * modules/gc-md5-tests: New file.
79643
79644 2005-10-13  Simon Josefsson  <jas@extundo.com>
79645
79646         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79647         Move memory allocation outside of loop.
79648
79649 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79650
79651         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79652         intermediate directory is in a read-only file system.  Problem
79653         reported by Eric Blake.
79654
79655 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79656
79657         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79658
79659 2005-10-12  Simon Josefsson  <jas@extundo.com>
79660
79661         * tests/test-hmac-sha1.c: New file.
79662
79663         * modules/hmac-sha1-tests: New file.
79664
79665         * modules/hmac-sha1: New file.
79666
79667 2005-10-12  Simon Josefsson  <jas@extundo.com>
79668
79669         * modules/gc-sha1: New file.
79670
79671 2005-10-12  Simon Josefsson  <jas@extundo.com>
79672
79673         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79674
79675         * tests/test-gc-pbkdf2-sha1.c: New file.
79676
79677 2005-10-12  Simon Josefsson  <jas@extundo.com>
79678
79679         * modules/gc-md5, modules/gc-hmac-md5: New files.
79680
79681         * modules/gc (Files): Remove md5, memxor and hmac files.
79682
79683 2005-10-12  Simon Josefsson  <jas@extundo.com>
79684
79685         * m4/gc-pbkdf2-sha1.m4: New file.
79686
79687         * m4/gc-hmac-sha1.m4: New file.
79688
79689         * m4/gc-sha1: New file.
79690
79691         * m4/hmac-sha1.m4: New file.
79692
79693 2005-10-12  Simon Josefsson  <jas@extundo.com>
79694
79695         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79696
79697         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79698
79699 2005-10-12  Simon Josefsson  <jas@extundo.com>
79700
79701         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79702         suggested by Bruno Haible <bruno@clisp.org>.
79703
79704 2005-10-12  Simon Josefsson  <jas@extundo.com>
79705
79706         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79707
79708 2005-10-12  Simon Josefsson  <jas@extundo.com>
79709
79710         * lib/gc-pbkdf2-sha1.c: New file.
79711
79712         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79713
79714 2005-10-12  Simon Josefsson  <jas@extundo.com>
79715
79716         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79717
79718         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79719
79720 2005-10-12  Simon Josefsson  <jas@extundo.com>
79721
79722         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79723         GC_USE_HMAC_MD5, respectively.
79724
79725         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79726         (gc_md5): Fix typo.
79727
79728         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79729
79730         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79731
79732         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79733
79734 2005-10-12  Bruno Haible  <bruno@clisp.org>
79735
79736         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79737         Reported by Stepan Kasal <kasal@ucw.cz>.
79738
79739 2005-10-11  Simon Josefsson  <jas@extundo.com>
79740
79741         * tests/test-crc.c: New file.
79742
79743         * modules/crc, modules/crc-tests: New files.
79744
79745 2005-10-11  Simon Josefsson  <jas@extundo.com>
79746
79747         * m4/crc.m4: New file.
79748
79749 2005-10-11  Simon Josefsson  <jas@extundo.com>
79750
79751         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79752
79753         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79754
79755         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79756
79757 2005-10-11  Simon Josefsson  <jas@extundo.com>
79758
79759         * lib/crc.h, lib/crc.c: New files.
79760
79761         * lib/gc.h (gc_hash_buffer): Add doc.
79762
79763 2005-10-11  Bruno Haible  <bruno@clisp.org>
79764
79765         * modules/c-strcasestr: New file.
79766         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79767
79768 2005-10-11  Bruno Haible  <bruno@clisp.org>
79769
79770         * modules/c-strcase: New file.
79771         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79772
79773 2005-10-11  Bruno Haible  <bruno@clisp.org>
79774
79775         * lib/strcasecmp.c: Include limits.h.
79776         (strcasecmp): Avoid integer overflow on exotic platforms.
79777         * lib/strncasecmp.c: Include limits.h.
79778         (strncasecmp): Avoid integer overflow on exotic platforms.
79779         Reported by Paul Eggert.
79780
79781 2005-10-11  Bruno Haible  <bruno@clisp.org>
79782
79783         * lib/c-strcasestr.h: New file, from GNU gettext.
79784         * lib/c-strcasestr.c: New file, from GNU gettext.
79785
79786 2005-10-11  Bruno Haible  <bruno@clisp.org>
79787
79788         * lib/c-strcase.h: New file, from GNU gettext.
79789         * lib/c-strcasecmp.c: New file, from GNU gettext.
79790         * lib/c-strncasecmp.c: New file, from GNU gettext.
79791
79792 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79793
79794         * modules/mempcpy (License): GPL -> LGPL.
79795         * modules/strchrnul (License): Likewise.
79796         * modules/sysexits (License): Likewise.
79797
79798 2005-10-08  Simon Josefsson  <jas@extundo.com>
79799
79800         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79801
79802 2005-10-07  Simon Josefsson  <jas@extundo.com>
79803
79804         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79805
79806 2005-10-06  Simon Josefsson  <jas@extundo.com>
79807
79808         * tests/test-hmac-md5.c: New file.
79809
79810         * modules/hmac-md5-tests: New file.
79811
79812         * modules/hmac-md5: New file.
79813
79814 2005-10-06  Simon Josefsson  <jas@extundo.com>
79815
79816         * m4/hmac-md5.m4: New file.
79817
79818         * m4/memxor.m4: Require gl_C_RESTRICT.
79819
79820 2005-10-06  Simon Josefsson  <jas@extundo.com>
79821
79822         * lib/memxor.c (memxor): Avoid casts and warnings.
79823
79824 2005-10-06  Simon Josefsson  <jas@extundo.com>
79825
79826         * lib/hmac-md5.c: New file.
79827
79828         * lib/hmac.h: New file.
79829
79830 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79833         promotes to int, not unsigned int, to catch the AIX 5.3
79834         compiler bug.
79835
79836 2005-10-05  Simon Josefsson  <jas@extundo.com>
79837
79838         * modules/memxor: New file.
79839
79840         * modules/iconv (Files): Move config.rpath to havelib, it is used
79841         there.
79842
79843         * modules/havelib (Files): Add config.rpath.
79844
79845 2005-10-05  Simon Josefsson  <jas@extundo.com>
79846
79847         * m4/memxor.m4: New file.
79848
79849 2005-10-05  Simon Josefsson  <jas@extundo.com>
79850
79851         * lib/memxor.c (memxor): Fix compiler error.
79852
79853         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79854         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79855
79856         * lib/memxor.h, lib/memxor.c: New files.
79857
79858         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79859         we assume all systems have it, suggested by Jim Meyering
79860         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79861         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79862         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79863         same reasons.
79864
79865 2005-10-05  Simon Josefsson  <jas@extundo.com>
79866
79867         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79868
79869 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79870
79871         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79872         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79873         needed, since the source code now assumes these .h files.
79874
79875 2005-10-05  Derek Price  <derek@ximbiot.com>
79876
79877         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79878
79879 2005-10-05  Bruno Haible  <bruno@clisp.org>
79880
79881         * modules/stdint (License): Change to LGPL.
79882
79883 2005-10-04  Simon Josefsson  <jas@extundo.com>
79884
79885         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79886         D. Baushke" <mdb@gnu.org>.
79887
79888 2005-10-04  Bruno Haible  <bruno@clisp.org>
79889
79890         * lib/verify.h (verify_true): Provide alternative definition for C++.
79891
79892 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79895         (SSIZE_MAX): New macro, if not already defined.
79896         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79897         than 2 GiB.
79898
79899 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79900
79901         Sync from coreutils.
79902         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79903         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79904         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79905         ULLONG_MAX doesn't work with 2.7.2.1.
79906
79907 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79908
79909         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79910         From Ben Pfaff.
79911
79912         * modules/exclude (Depends-on): Depend on verify.
79913         * modules/strtoimax (Depends-on): Likewise.
79914         * modules/utimecmp (Depends-on): Likewise.
79915
79916 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79917
79918         * lib/exclude.c: Include verify.h.
79919         (verify): Remove.  All callers changed to use verify.h's version.
79920         * lib/strtoimax.c: Likewise.
79921         * lib/utimecmp.c: Likewis.e
79922
79923         Sync from coreutils.
79924         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79925         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79926         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79927         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79928         bother returning ENOSYS if settimeofday or stime fails; just let
79929         them return whatever errno they want to return.
79930         * lib/utimens.c: Include unistd.h, for dup2.
79931         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79932         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79933
79934 2005-10-02  Jim Meyering  <jim@meyering.net>
79935
79936         Sync from coreutils.
79937         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79938         from glibc-2.2.5 that fails for read-only files.
79939
79940 2005-10-02  Jim Meyering  <jim@meyering.net>
79941
79942         Sync from coreutils.
79943         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79944         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79945         `#if HAVE_CONFIG_H'.
79946         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79947         Remove AT_FDCWD test.
79948         Do not consume the fd unless successful.
79949         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79950         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79951         block, so that we don't even try to compile it if settimeofday is
79952         available.  This works around a compilation failure on OSF1 V5.1,
79953         due to stime requiring a `long int*' while tv_sec is `int'.
79954
79955 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79956
79957         Sync from coreutils.
79958         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79959         against `yes', rather than just testing for nonempty.
79960
79961 2005-10-01  Simon Josefsson  <jas@extundo.com>
79962
79963         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79964         and Darwin.
79965
79966         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79967         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79968         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79969         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79970         Check if struct addrinfo is declared.
79971
79972 2005-10-01  Simon Josefsson  <jas@extundo.com>
79973
79974         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79975         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79976         AI_* and EAI_* definitions.  Protect function declarations.
79977
79978 2005-10-01  Jim Meyering  <jim@meyering.net>
79979
79980         Sync from coreutils.
79981
79982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79983         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79984         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79985         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79986         in the inet and nsl libraries.  Required on Solaris 5.7.
79987
79988 2005-10-01  Jim Meyering  <jim@meyering.net>
79989
79990         Sync from coreutils.
79991         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79992         in the inet and nsl libraries.  Required on Solaris 5.7.
79993
79994 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79995
79996         * lib/getdelim.c (getdelim): Remove unused variables.
79997
79998 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80001         so that the code works even with ancient cpp.  Portability problem
80002         with GCC 2.7.2.1 reported by Thomas M.Ott.
80003
80004 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80005
80006         * modules/regex (Depends-on): Add strcase.
80007
80008         * modules/gethostname (Licence): Change from GPL to LGPL, since
80009         gethostname.c is a trivial implementation of a standard library
80010         function.
80011         * modules/poll (License): Change from GPL to LGPL, since it's
80012         derived from LGPL code.
80013
80014 2005-09-27  Jim Meyering  <jim@meyering.net>
80015
80016         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80017         HAVE_CONFIG_H.
80018
80019         * lib/intprops.h (signed_type_or_expr__): Define.
80020         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80021         for unsigned types.
80022
80023 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * lib/verify.h (verify_expr): Remove, replacing with:
80026         (verify_true): New macro that returns true instead of void.
80027         (verify_type__): Remove.
80028         (verify): Use verify_true rather than verify_type__.
80029
80030 2005-09-26  Bruno Haible  <bruno@clisp.org>
80031
80032         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80033         is necessary.
80034         (lib_SOURCES): Remove mbchar.c.
80035         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80036         (Files): Add m4/mbrtowc.m4.
80037         * modules/mbiter: Likewise.
80038         * modules/mbuiter: Likewise.
80039
80040 2005-09-26  Bruno Haible  <bruno@clisp.org>
80041
80042         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80043         compile mbchar.c if they are not both present.
80044         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80045         * m4/mbiter.m4 (gl_MBITER): Likewise.
80046         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80047         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80048         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80049
80050 2005-09-25  Jim Meyering  <jim@meyering.net>
80051
80052         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80053         also uses socklen_t.
80054
80055 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80056
80057         * lib/utimens.c (ENOSYS): Define if not already defined.
80058         (futimens): Support having a null PATH if the file descriptor
80059         is nonnegative.
80060
80061         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80062         Remove.
80063         (__attribute): Define to empty unless GCC 3.1 or later.
80064         This works around a core dump on OpenBSD 3.4, which has GCC
80065         2.95.3, which dumps core when given __attribute__(()).  It also
80066         simplifies other tests, since we really don't want to bother with
80067         worrying about which ancient version of GCC supported what.
80068         Original problem reported by Yoann Vandoorselaere, with part of
80069         the fix suggested by Derek Price.
80070
80071 2005-09-24  Jim Meyering  <jim@meyering.net>
80072
80073         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80074         so we can once again use a positive bitfield width of 1 -- now we
80075         don't have to explain why we were using a bitfield width of 2.
80076
80077 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80078
80079         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80080         and similarly for the other external symbols.  Problem reported
80081         by James Gallager.
80082
80083         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80084         bug reported by Jim Meyering.
80085
80086         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80087         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80088         not needed, since socklen is a prerequisite module.
80089
80090 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80091
80092         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80093         Problem reported by Eric Blake.
80094         (getaddrinfo): Initialize se so that it's not garbage.
80095         Redo internal storage allocation so that it doesn't make unportable
80096         assumptions about alignment.
80097         Fix a memory leak.
80098
80099         * lib/utimens.c (futimens): Use futimesat if available.
80100         Prefer it to futimes since it doesn't have the futimes bug.
80101
80102         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80103         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80104         Instead, declare a function that returns a pointer to an array,
80105         and use verify_type__ to declare the size of the array.
80106         Problem and germ of a solution reported by Bruno Haible.
80107         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80108         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80109
80110 2005-09-23  Jim Meyering  <jim@meyering.net>
80111
80112         Sync from coreutils.
80113         Correct build failure (socklen_t not defined) on at least
80114         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80115         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80116
80117 2005-09-23  Jim Meyering  <jim@meyering.net>
80118
80119         * modules/getaddrinfo (Depends-on): Add socklen.
80120
80121 2005-09-23  Bruno Haible  <bruno@clisp.org>
80122
80123         * tests/test-verify.c: New file.
80124
80125 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80126
80127         Sync from coreutils.
80128
80129         * modules/argmatch (Depends-on): Add verify.
80130         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80131         unistd-safer.
80132         * modules/save-cwd (Depends-on): Likewise.
80133
80134         * modules/openat (Files): Add lib/openat-die.c.
80135         (Depends-on): Remove error, exitfail.
80136         Add dirname.
80137
80138         * modules/verify: New file.
80139         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80140         with "verify" module.
80141
80142 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80143
80144         Sync from coreutils.
80145
80146         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80147         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80148         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80149         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80150         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80151         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80152         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80153         Don't bother checking for string.h, stdlib.h, unistd.h.
80154         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80155         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80156         module's job.
80157         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80158         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80159
80160         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80161         (gl_GETDATE): Use it.
80162
80163         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80164
80165 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80166
80167         Sync from coreutils.
80168
80169         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80170         stat-time.h.
80171         * lib/argmatch.h: Include verify.h
80172         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80173         (ARGMATCH_ASSERT): Remove; unused.
80174         * lib/canonicalize.c: Assume STDC_HEADERS.
80175         * lib/exclude.c: Include "strcase.h".
80176         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80177         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80178         and stdio-safer.h.
80179         (getusershell): Call fopen, not fopen_safer.
80180         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80181         Do not include unistd-safer.h.
80182         (save_cwd): Don't call fd_safer; no longer needed
80183         now that we include fcntl--.h.
80184
80185         * lib/getdate.y (relative_time): New type.
80186         (RELATIVE_TIME_0): New constant.
80187         (parser_control): Use relative_time instead of doing it ourselves.
80188         (%union): Add new relative_time rel member.
80189         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80190         Now typeless.
80191         (relunit, relunit_snumber): Now of type rel.
80192         (zone, rel, relunit, get_date): Adjust to above changes.
80193
80194         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80195         Do not include unistd-safer.h.
80196         (getloadavg): Don't call fd_safer; no longer needed
80197         now that we include fcntl--.h.
80198
80199         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80200         (make_dir_parents): Treat ENOSYS like EEXIST.
80201
80202         Improve quality of diagnostics on restore_cwd failure.
80203         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80204         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80205         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80206         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80207         each time through the loop.  Do not diagnose restore_cwd failure;
80208         that is the caller's job (and perhaps the caller does not care).
80209
80210         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80211         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80212         If the file already exists but is not a directory, don't bother
80213         to try to make its parents.
80214         Close potential file descriptor leak if we can't chdir("/") (!).
80215         Don't always return true if chdir($PWD) fails; return true only
80216         if the requested action was done successfully (except for the
80217         chdir($PWD)).
80218         Don't log final directory unless we actually made it.
80219         Refactor to avoid duplicate code to fix up permissions.
80220         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80221
80222         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80223         to make it a bit faster and (I hope) clearer.
80224         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80225         Fix bug in formats like %2N.
80226
80227         * lib/verify.h: New file.
80228
80229 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80230
80231         Sync from coreutils.
80232         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80233
80234 2005-09-22  Jim Meyering  <jim@meyering.net>
80235
80236         Sync from coreutils.
80237
80238         * m4/lstat.m4 (gl_FUNC_LSTAT):
80239         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80240         Remove obsolete comment.
80241         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80242         * m4/xstrtod.m4: Likewise.
80243
80244         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80245
80246 2005-09-22  Jim Meyering  <jim@meyering.net>
80247
80248         Sync from coreutils.
80249
80250         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80251
80252         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80253         the .tm_year member, since otherwise gcc-4.0 would now warn about
80254         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80255
80256         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80257         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80258
80259         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80260         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80261         when run in a time zone for which daylight savings time is in effect
80262         for the starting date.
80263
80264         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80265         stop us from restricting permissions of just-created absolute-named
80266         directories.
80267         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80268         to restore initial working directory.
80269         * lib/mkdir-p.c (make_dir_parents): New parameter:
80270         different_working_dir, to tell caller if/when we change the working
80271         directory and are unable to return to the initial one.
80272         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80273         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80274         `return false'.  This fixes a bug introduced on 2004-07-30.
80275
80276         * lib/openat.c (fdopendir): Be sure to close the supplied
80277         file descriptor before returning.  This makes our replacement
80278         implementation a little closer to Solaris's, where fdopendir
80279         ties the file descriptor to the returned DIR* pointer.
80280         * lib/openat.c (unlinkat): New function.
80281         * lib/openat.h (unlinkat): Add prototype.
80282         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80283         (openat_restore_fail): Rename from openat_restore_die.
80284         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80285
80286         Provide an alternative to exiting immediately upon save_cwd or
80287         restore_cwd failure.  Now, an application can arrange e.g.,
80288         to perform a longjump in that case.
80289         * lib/openat.c: Include dirname.h.
80290         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80291         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80292         and openat_restore_die rather than calling error directly.
80293         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80294
80295         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80296         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80297         define.
80298
80299         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80300         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80301                             int utc, int nanoseconds);
80302         Background:
80303         date should not have to allocate a megabyte of virtual memory to
80304         handle a format argument like +%1048575T.  When implemented with
80305         strftime, it must allocate such a buffer, use strftime to fill it
80306         in, print it, then free it.
80307         With fprintftime, it simply prints everything and exits.
80308         With no need for memory allocation, that's one fewer way to fail.
80309         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80310         optional field width, not before, so we accept %9:z, not %:9z.
80311         (my_strftime): Be sure to use L_('x') for literals.
80312
80313         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80314         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80315         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80316         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80317         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80318         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80319         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80320         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80321         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80322         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80323         * lib/xgethostname.c, lib/xreadlink.c:
80324         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80325
80326         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80327         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80328         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80329         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80330         and don't include <sys/file.h>).
80331
80332 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80333
80334         Sync from coreutils.
80335
80336         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80337         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80338         [!LDAV_DONE]: Avoid unused variable warning.
80339
80340 2005-09-21  Bruno Haible  <bruno@clisp.org>
80341
80342         * lib/unicodeio.h (unicode_to_mb): New declaration.
80343
80344 2005-09-20  Derek Price  <derek@ximbiot.com>
80345
80346         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80347         getaddrinfo.h.
80348
80349 2005-09-20  Bruno Haible  <bruno@clisp.org>
80350
80351         * gnulib-tool: Remove trailing slashes from the values specified for
80352         --source-base, --m4-base, --tests-base, --aux-dir.
80353         Suggested by Simon Josefsson <jas@extundo.com>.
80354
80355 2005-09-20  Bruno Haible  <bruno@clisp.org>
80356
80357         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80358         func_modules_to_filelist, func_import, func_create_testdir): Make all
80359         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80360         change when gnulib-tool is invoked in a different locale.
80361
80362 2005-09-19  Simon Josefsson  <jas@extundo.com>
80363
80364         * m4/socklen.m4: Fix typo.
80365
80366 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80367
80368         Use a consistent style for including <config.h>.
80369         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80370         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80371         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80372         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80373         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80374         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80375         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80376         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80377         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80378         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80379         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80380         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80381         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80382         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80383         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80384         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80385         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80386         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80387         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80388         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80389         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80390         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80391         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80392         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80393         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80394         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80395         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80396         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80397         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80398         lib/xstrtoumax.c, lib/yesno.c:
80399         Standardize inclusion of config.h.
80400         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80401         lib/inttostr.h:  Removed inclusion of config.h from header files.
80402         * lib/inttostr.c:  Adjusted in-tree users.
80403         * lib/timespec.h: Remove superfluous warning to include config.h.
80404         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80405         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80406         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80407         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80408         config.h with HAVE_CONFIG_H.
80409
80410 2005-09-19  Jim Meyering  <jim@meyering.net>
80411
80412         * modules/pathmax (License): Change to LGPL.
80413
80414 2005-09-19  Derek Price  <derek@ximbiot.com>
80415
80416         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80417
80418 2005-09-19  Bruno Haible  <bruno@clisp.org>
80419
80420         * gnulib-tool (import): Provide default for --tests-base.
80421
80422 2005-09-19  Bruno Haible  <bruno@clisp.org>
80423
80424         * doc/quote.texi: New file, extracted from gnulib.texi.
80425         * doc/ctime.texi: New file, extracted from gnulib.texi.
80426         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80427         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80428         * doc/gnulib.texi: Include them.
80429
80430 2005-09-18  Bruno Haible  <bruno@clisp.org>
80431
80432         Portability fix.
80433         * gnulib-tool (func_readlink): New function.
80434         (func_ln_if_changed): Use it.
80435
80436 2005-09-18  Bruno Haible  <bruno@clisp.org>
80437
80438         * gnulib-tool: Support --with-tests also with --import.
80439         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80440         (func_import): Use variables $testsbase and $inctests. Emit a
80441         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80442         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80443         SUBDIRS += $testsdir.
80444         (func_create_testdir): Update.
80445
80446 2005-09-18  Bruno Haible  <bruno@clisp.org>
80447
80448         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80449         instead of $dry_run.
80450         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80451         (func_ln_if_changed): Don't handle dry-run here.
80452         (func_import): In dry-run mode, detect more precisely which actions
80453         would be performed, and don't use "...ing" verbs.
80454
80455 2005-09-18  Bruno Haible  <bruno@clisp.org>
80456
80457         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80458         (func_import): Use join on two temporary files instead of three nested
80459         loops, in order to determine which files are new or old.
80460
80461 2005-09-18  Bruno Haible  <bruno@clisp.org>
80462
80463         * gnulib-tool (func_import): Comment out code that spits out the
80464         new files with --dry-run.
80465
80466 2005-09-18  Bruno Haible  <bruno@clisp.org>
80467
80468         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80469
80470 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         * lib/stat-time.h: New file.
80473         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80474         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80475         in a different way.
80476         (timespec_cmp): New function.
80477         * lib/utimecmp.c: Include stat-time.h.
80478         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80479         members exist, not on the obsolescent ST_MTIM_NSEC.
80480         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80481
80482 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80483
80484         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80485
80486 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * MODULES.html.sh (File system functions): Add stat-time.
80489         * modules/stat-time: New file.
80490         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80491         is now done in a different way, by the stat-time module.
80492         * modules/utimecmp (Depends-on): Add stat-time.
80493
80494 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80495
80496         * m4/st_mtim.m4: Remove.  Superseded by...
80497         * m4/stat-time.m4: New file.
80498         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80499         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80500
80501 2005-09-15  Derek Price  <derek@ximbiot.com>
80502
80503         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80504
80505 2005-09-15  Derek Price  <derek@ximbiot.com>
80506
80507         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80508         * lib/regex_internal.c: Ditto, using this...
80509         (__GNUC_PREREQ): ...new macro.
80510         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80511         using...
80512         (__GNUC_PREREQ): ...this new macro.
80513
80514         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80515
80516 2005-09-15  Derek Price  <derek@ximbiot.com>
80517             Paul Eggert  <eggert@cs.ucla.edu>
80518
80519         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80520         changes, consolidating in...
80521         * lib/regex_internal.h: ...this file.
80522
80523 2005-09-13  Jim Meyering  <jim@meyering.net>
80524
80525         * lib/canon-host.c: Filter through gnu indent and reword comments
80526         slightly.
80527         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80528
80529 2005-09-13  Derek Price  <derek@ximbiot.com>
80530
80531         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80532         failure.
80533         Reported by Jim Meyering  <jim@meyering.net>.
80534
80535 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80536
80537         * lib/base64.c: Typo.
80538         (base64_encode): Put b64str in initialized data section.
80539
80540 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         Merge glibc and coreutils changes into gnulib, plus a few
80543         extra fixes.
80544         * lib/md5.c: Use #error rather than a string.
80545         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80546         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80547         (__attribute__): Define to empty for non recent-GCC.
80548         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80549         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80550         Renamed from their non-__ counterparts, with new macros replacing
80551         them if not _LIBC.  Add __THROW attribute.
80552         (rol): Remove.
80553         (struct md5_ctx): Align buffer if using GCC.
80554         * lib/sha1.h (struct sha1_ctx): Likewise.
80555         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80556         The old name was backwards.
80557         (NOTSWAP): Remove; not used.
80558         (rol): New macro, moved here from md5.h.
80559         (sha1_process_block): Remove a FIXME that doesn't make sense.
80560
80561 2005-09-12  Derek Price  <derek@ximbiot.com>
80562
80563         Return usable errors from canon-host.
80564         * lib/canon-host.h: New file.
80565         * lib/canon-host.c (canon_host): Wrap...
80566         (canon_host_r): ...this new function, which now relies exclusively on
80567         getaddrinfo.
80568         (ch_strerror): New function.
80569         (last_cherror): New global.
80570         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80571         interface.
80572         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80573         void *.
80574         (freeaddrinfo): Free ai->ai_canonname when set.
80575
80576 2005-09-12  Derek Price  <derek@ximbiot.com>
80577
80578         Make canon-host require getaddrinfo.
80579         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80580         AC_LIBSOURCE canon-host.h.  Call...
80581         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80582         gl_GETADDRINFO.
80583         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80584
80585 2005-09-12  Derek Price  <derek@ximbiot.com>
80586
80587         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80588         LGPL.
80589         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80590
80591 2005-09-12  Derek Price  <derek@ximbiot.com>
80592
80593         * lib/gai_strerror.c: Include config.h when available.  Include
80594         getaddrinfo.h before other headers to test interface.
80595         Reported by Larry Jones <lawrence.jones@ugs.com>.
80596
80597 2005-09-12  Derek Price  <derek@ximbiot.com>
80598             Paul Eggert  <eggert@cs.ucla.edu>
80599
80600         * modules/glob (Files): Add glob-libc.h.
80601
80602 2005-09-12  Derek Price  <derek@ximbiot.com>
80603             Paul Eggert  <eggert@cs.ucla.edu>
80604
80605         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80606         glob_.h, glob-libc.h.
80607         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80608
80609 2005-09-12  Derek Price  <derek@ximbiot.com>
80610             Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80613         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80614         protecting things that should be done only in gnulib contexts.
80615         * lib/glob_.h: New file, containing only the glob things needed for
80616         gnulib.
80617         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80618         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80619         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80620         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80621         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80622         and to respect the namespace rules better.
80623
80624 2005-09-08  Simon Josefsson  <jas@extundo.com>
80625
80626         * modules/socklen: New file.
80627
80628 2005-09-08  Simon Josefsson  <jas@extundo.com>
80629
80630         * m4/socklen.m4: New file.
80631
80632 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80633
80634         * modules/utimens (Files): Add m4/utimbuf.m4, since
80635         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80636         Reported by Sergey Poznyakoff.
80637
80638 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80641         definitions, since that's the preferred style in glibc.
80642         Fix a minor spacing issue, and update copyright notice to match
80643         glibc's.
80644
80645 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80646
80647         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80648
80649 2005-09-06  Simon Josefsson  <jas@extundo.com>
80650
80651         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80652         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80653
80654 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80655
80656         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80657         warning.
80658
80659 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80660
80661         * config/srclist.txt: Add glibc bug 1302.
80662
80663 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80664
80665         Change bitset word type from unsigned int to unsigned long int,
80666         as this has better performance on typical 64-bit hosts.
80667         Port bitset code to hosts with unusual word sizes.
80668         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80669         (build_collating_symbol):
80670         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80671         argument is a bitset.  This is merely a style issue, but it makes
80672         it clearer that an entire array is expected.
80673         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80674         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80675         Port to the case where bitset_word is not the same as unsigned int.
80676         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80677         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80678         Likewise.
80679         * lib/regexec.c (check_dst_limits_calc_pos_1,
80680         check_subexp_matching_top):
80681         (build_trtable, group_nodes_into_DFAstates):
80682         Likewise.
80683         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80684         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80685         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80686         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80687         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80688         * lib/regcomp.c (optimize_subexps, lower_subexp):
80689         Work even if bitset_word has holes in its bitwise representation.
80690         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80691         * lib/regexec.c (check_dst_limits_calc_pos_1,
80692         check_subexp_matching_top):
80693         Likewise.
80694         * lib/regex_internal.c (re_string_reconstruct):
80695         Don't assume UCHAR_MAX == 255.
80696         * lib/regex_internal.h (bitset_set_all): Likewise.
80697         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80698         All uses changed.
80699         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80700         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80701         All uses changed.
80702         (BITSET_WORD_MAX): New macro.
80703         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80704         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80705         (bitset_empty, bitset_copy):
80706         Prefer sizeof (bitset) to multiplying it out ourselves.
80707         (bitset_not_merge): Remove; unused.
80708         (bitset_contain): Return bool, not unsigned int with one bit on.
80709         All callers changed.
80710         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80711         alignment than re_node_set; do this by defining a new internal
80712         type struct dests_alloc and using it to allocate memory.
80713
80714 2005-09-05  Bruno Haible  <bruno@clisp.org>
80715
80716         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80717         links.
80718
80719 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80720
80721         * modules/size_max (Makefile.am): Add size_max.h
80722
80723 2005-09-04  Derek Price  <derek@ximbiot.com>
80724
80725         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80726
80727 2005-09-03  Simon Josefsson  <jas@extundo.com>
80728
80729         * gnulib-tool: Fix typo.
80730
80731 2005-09-03  Simon Josefsson  <jas@extundo.com>
80732
80733         * config/srclist.txt: Add glibc bug 1293.
80734
80735 2005-09-03  Derek Price  <derek@ximbiot.com>
80736
80737         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80738         From Larry Jones <lawrence.jones@ugs.com>.
80739
80740 2005-09-02  Simon Josefsson  <jas@extundo.com>
80741
80742         * modules/socklen: New file.
80743
80744 2005-09-02  Simon Josefsson  <jas@extundo.com>
80745
80746         * modules/havelib: New module.
80747
80748         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80749         Use havelib.
80750
80751 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80752
80753         Check for arithmetic overflow when calculating sizes, to prevent
80754         some buffer-overflow issues.  These patches are conservative, in the
80755         sense that when I couldn't determine whether an overflow was possible,
80756         I inserted a run-time check.
80757         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80758         macros.
80759         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80760         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80761         (re_xnrealloc, re_x2nrealloc): New inline functions.
80762         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80763         parse_bracket_exp):
80764         (build_equiv_class, build_charclass): Check for arithmetic overflow
80765         in size expression calculations.
80766         * lib/regex_internal.c (re_string_realloc_buffers):
80767         (build_wcs_upper_buffer, re_node_set_add_intersect):
80768         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80769         (re_dfa_add_node, register_state): Likewise.
80770         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80771         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80772         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80773         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80774
80775 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80776
80777         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80778         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80779
80780 2005-09-02  Bruno Haible  <bruno@clisp.org>
80781
80782         Support for lib vs. lib64 distinction on biarch platforms.
80783         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80784         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80785         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80786
80787 2005-09-02  Bruno Haible  <bruno@clisp.org>
80788
80789         * gnulib-tool (import): In the other first-use case, provide defaults
80790         as well.
80791
80792 2005-09-02  Bruno Haible  <bruno@clisp.org>
80793
80794         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80795         patches not yet found in the latest gettext release.
80796
80797 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80798
80799         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80800         to avoid a collision with bits/local_lim.h in glibc.
80801         All uses changed.  Problem reported by Dmitry V. Levin in
80802         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80803
80804         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80805         bugs in int versus size_t comparisons.
80806         (re_string_context_at): Fix bug where the code assumed that
80807         Idx is signed.
80808
80809         Use bool where appropriate.
80810         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80811         All callers changed.
80812         (calc_eclosure_iter): Likewise, for ROOT arg.
80813         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80814         (build_charclass_op): Likewise, for NON_MATCH arg.
80815         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80816         (re_string_construct_common): Likewise, for ICASE arg.
80817         * lib/regexec.c (re_search_2_stub, re_search_stub):
80818         Likewise, for RET_LEN arg.
80819         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80820         (set_regs): Likewise, for FL_BACKTRACK arg.
80821         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80822         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80823         (calc_eclosure_iter, parse_bracket_exp):
80824         Use bool for internal variables that are booleans.
80825         * lib/regexec.c (re_search_internal, check_matching,
80826         proceed_next_node):
80827         (set_regs, build_sifted_states, sift_states_bkref):
80828         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80829         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80830         (find_collation_sequence_value):
80831         Likewise.
80832         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80833         (re_node_set_compare):
80834         Return bool, not int. All callers changed.
80835         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80836         (build_trtable, check_node_accept): Likewise.
80837         * lib/regex_internal.h: Include stdbool.h.
80838
80839         Fix bugs uncovered when converting to bool.
80840         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80841         failure instead of charging ahead blindly.
80842         * lib/regex_internal.c (register_state): Likewise.
80843         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80844         for freeing internal storage.
80845         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80846         bitset pieces used as boolean, to avoid undefined behavior
80847         on hosts that do int overflow checking.
80848
80849 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80850
80851         * config/srclist.txt: Add glibc bugs 1285-1287.
80852
80853 2005-09-01  Jim Meyering  <jim@meyering.net>
80854
80855         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80856         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80857         Require gl_STAT_MACROS, too.
80858
80859 2005-09-01  Bruno Haible  <bruno@clisp.org>
80860
80861         * gnulib-tool (import): In the first-use case, provide defaults.
80862
80863 2005-09-01  Bruno Haible  <bruno@clisp.org>
80864
80865         * gnulib-tool (func_import): Remove the .tmp files.
80866
80867 2005-09-01  Bruno Haible  <bruno@clisp.org>
80868
80869         * gnulib-tool (func_import): Fix handling of symbolic links.
80870
80871 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80874         old glibc regex code mishandles strings longer than 2**31 bytes.
80875         This patch fixes this when the regex code is used in gnulib
80876         (i.e., outside glibc).
80877
80878         This patch should not affect the use of the regex code inside
80879         glibc.  No doubt this problem also needs to be handled for glibc
80880         as well, but the result will be an incompatible change to the
80881         glibc ABI, and the old ABI will have to be supported too.  That
80882         can be the the subject for another patch.
80883
80884         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80885         governing whether the rest of this patch is active.  By default,
80886         the macro is disabled and the patch has no effect.
80887         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80888         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80889         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80890         (re_match_2, re_set_registers): Use the new types.
80891         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80892         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80893         New macros.
80894         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80895         (re_string_context_at, bin_tree_t, re_dfastate_t):
80896         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80897         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80898         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80899         (re_string_char_size_at, re_string_wchar_at):
80900         (re_string_elem_size_at):
80901         Use the new types and macros to port to 64-bit hosts.
80902         Use unsigned types for internal values, so that the code
80903         mostly works even for arrays larger than SSIZE_MAX.
80904         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80905         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80906         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80907         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80908         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80909         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80910         (calc_inveclosure, parse_dup_op, build_range_exp):
80911         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80912         (fetch_number, create_token_tree, mark_opt_subexp):
80913         Likewise.
80914         * lib/regex_internal.c (re_string_construct_common,
80915         create_ci_newstate):
80916         (create_cd_newstate, re_string_allocate, re_string_construct):
80917         (re_string_realloc_buffers, build_wcs_upper_buffer):
80918         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80919         (re_string_reconstruct, re_string_peek_byte_case):
80920         (re_string_fetch_byte_case, re_string_context_at):
80921         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80922         (re_node_set_init_copy, re_node_set_add_intersect):
80923         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80924         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80925         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80926         (re_acquire_state, re_acquire_state_context, register_state):
80927         Likewise.
80928         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80929         search_cur_bkref_entry):
80930         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80931         (re_search_internal, re_search_2_stub, re_search_stub)
80932         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80933         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80934         (update_cur_sifted_state, check_dst_limits):
80935         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80936         (check_subexp_limits, sift_states_bkref, merge_state_array):
80937         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80938         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80939         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80940         (expand_bkref_cache, check_node_accept_bytes):
80941         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80942         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80943         (acquire_init_state_context, check_halt_node_context):
80944         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80945         (sift_states_backward, clean_state_log_if_needed):
80946         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80947         (find_recover_state, transit_state_sb, transit_state_mb):
80948         (transit_state_bkref, build_trtable, match_ctx_clean):
80949         Likewise.
80950         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80951         to work around an assumption that REG_MISSING is negative.
80952
80953         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80954         (seek_collating_symbol_entry) [defined _LIBC]:
80955         (lookup_collation_sequence_value) [defined _LIBC]:
80956         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80957         Use prototypes rather than old-style function definitions.
80958         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80959         (transit_state_sb) [0]:
80960         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80961
80962         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80963         rm_eo.
80964
80965         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80966         (optimize_subexps, lower_subexp):
80967         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80968         since the signed shift might overflow.  Use 1u<<31 instead.
80969         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80970         Likewise.
80971         * lib/regexec.c (check_dst_limits_calc_pos_1,
80972         check_subexp_matching_top): Likewise.
80973
80974         * lib/regcomp.c (optimize_subexps, lower_subexp):
80975         Use CHAR_BIT rather than 8, for clarity.
80976         * lib/regexec.c (check_dst_limits_calc_pos_1):
80977         (check_subexp_matching_top): Likewise.
80978         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80979         have to worry about portability issues when shifting it left.
80980         Remove no-longer-needed test for table_size > 0.
80981         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80982         in a word, as the resulting behavior is undefined.
80983         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80984         in one case, a <= should have been an <, and in another case the
80985         whole test was missing.
80986         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80987         the standard name CHAR_BIT.
80988         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80989         this is not true on one's complement and signed-magnitude hosts.
80990
80991         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80992         next_last_offset.
80993         (struct re_dfa_t): Remove unused member states_alloc.
80994         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80995
80996 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80997
80998         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80999         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81000         and large-file glibc and in 32-bit large-file Solaris.
81001
81002 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81003
81004         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81005         lengths fit in regoff_t; this isn't true if regoff_t is the same
81006         width as size_t.
81007         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81008         (= START + RANGE) instead of RANGE.  This avoids overflow
81009         problems when regoff_t is the same width as size_t.
81010         All callers changed.
81011         (re_search_2_stub): Check for overflow when adding the
81012         sizes of the two strings.
81013         (re_search_stub): Check for overflow when adding START
81014         to RANGE; if it occurs, substitute the extreme value.
81015
81016 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81017
81018         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81019
81020 2005-08-31  Jim Meyering  <jim@meyering.net>
81021
81022         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81023         a pointer-to-const.
81024         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81025         (register_state): Likewise.
81026         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81027         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81028         (group_nodes_into_DFAstates): Likewise.
81029
81030 2005-08-31  Jim Meyering  <jim@meyering.net>
81031
81032         * check-module: Add a FIXME comment.
81033
81034 2005-08-31  Eric Blake  <ebb9@byu.net>
81035
81036         * modules/unistd-safer (Files): Add unistd--.h.
81037         * modules/stdio-safer (Files): Add stdio--.h.
81038
81039 2005-08-31  Derek Price  <derek@ximbiot.com>
81040
81041         * lib/getdelim.c (getdelim): Return EOF on EOF.
81042         Reported by Larry Jones <lawrence.jones@ugs.com>.
81043
81044 2005-08-31  Bruno Haible  <bruno@clisp.org>
81045
81046         Avoid unnecessary diffs in the generated lib/Makefile.am.
81047         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81048         the generated files.
81049         (func_import): Don't set cmd.
81050
81051 2005-08-31  Bruno Haible  <bruno@clisp.org>
81052
81053         * lib/strstr.c: Include <stddef.h>, for NULL.
81054         * lib/strcasestr.c: Likewise.
81055         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81056
81057 2005-08-31  Bruno Haible  <bruno@clisp.org>
81058
81059         * gnulib-tool: New option --macro-prefix.
81060         (func_import): Use macro_prefix.
81061         (import): Handle option --macro-prefix.
81062
81063 2005-08-31  Bruno Haible  <bruno@clisp.org>
81064
81065         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81066         Also use new variables cached_lgpl, cached_libtool.
81067
81068 2005-08-31  Bruno Haible  <bruno@clisp.org>
81069
81070         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81071         always instantiating them.
81072
81073 2005-08-31  Bruno Haible  <bruno@clisp.org>
81074
81075         * gnulib-tool (func_import): Read the previous cached settings
81076         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81077         earlier added by gnulib but are now dropped. Warn when a gnulib file
81078         overwrites a non-gnulib file.
81079
81080 2005-08-31  Bruno Haible  <bruno@clisp.org>
81081
81082         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81083         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81084         projects that don't keep autogenerated files in CVS. Put into
81085         actioncmd only the specified modules, not the transitive closure.
81086
81087 2005-08-31  Bruno Haible  <bruno@clisp.org>
81088
81089         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81090         Create directories that shall be filled.
81091         (import): Don't look for gl_* macros in configure.ac. Recurse across
81092         all directories containing a gnulib-cache.m4 files, if meaningful.
81093
81094 2005-08-31  Bruno Haible  <bruno@clisp.org>
81095
81096         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81097         (import): Set seen_libtool when we see gl_LIBTOOL.
81098
81099 2005-08-31  Bruno Haible  <bruno@clisp.org>
81100
81101         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81102         declaration macro definitions from generated gnulib.m4.
81103
81104 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81105
81106         * lib/iconvme.h: Add prototype for iconv_alloc.
81107
81108 2005-08-29  Simon Josefsson  <jas@extundo.com>
81109
81110         * lib/iconvme.c: Fix errno.
81111
81112 2005-08-29  Bruno Haible  <bruno@clisp.org>
81113
81114         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81115         that it works when the directory contains spaces.
81116
81117 2005-08-29  Bruno Haible  <bruno@clisp.org>
81118
81119         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81120
81121 2005-08-29  Bruno Haible  <bruno@clisp.org>
81122
81123         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81124         Emit more advice.
81125
81126 2005-08-29  Bruno Haible  <bruno@clisp.org>
81127         and Stepan Kasal  <kasal@ucw.cz>
81128
81129         * check-module: If more parameters are given, check each of them
81130         separately; add more exceptions, as noted by Jim Meyering.
81131         (check_module): New procedure.
81132         (%exempt_header): Now contains all exceptions.
81133
81134 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81135
81136         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81137
81138 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81139
81140         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81141
81142 2005-08-28  Bruno Haible  <bruno@clisp.org>
81143
81144         * m4/gnulib-tool.m4: New file.
81145
81146 2005-08-27  Jim Meyering  <jim@meyering.net>
81147
81148         * modules/unistd-safer (Files): Add pipe-safer.c.
81149         * modules/fcntl-safer (Files): Add creat-safer.c.
81150
81151 2005-08-27  Jim Meyering  <jim@meyering.net>
81152
81153         * m4/stdlib-safer.m4: New file.  From coreutils.
81154         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81155         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81156         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81157         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81158         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81159
81160 2005-08-27  Jim Meyering  <jim@meyering.net>
81161
81162         * lib/fopen-safer.c: Merge minor changes from coreutils.
81163         * lib/dup-safer.c: Likewise.
81164         * lib/fd-safer.c: Likewise.
81165
81166         Merge from coreutils.
81167         * lib/stdio--.h: New file.
81168         * lib/stdlib--.h: New file.
81169         * lib/mkstemp-safer.c: New file.
81170
81171         GNU tar needs these.
81172         * lib/pipe-safer.c: New file.
81173         * lib/creat-safer.c: New file.
81174         * lib/fcntl--.h (creat): Define to creat_safer.
81175         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81176         * lib/unistd--.h (pipe): Define to pipe_safer.
81177         * lib/unistd-safer.h: Declare pipe_safer.
81178
81179 2005-08-26  Simon Josefsson  <jas@extundo.com>
81180
81181         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81182         Haible <bruno@clisp.org>.
81183
81184 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81185
81186         * lib/regex_internal.h: Remove all references to
81187         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81188         or better.
81189         (bitset_not, bitset_merge, bitset_not_merge):
81190         (bitset_mask, re_string_allocate, re_string_construct):
81191         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81192         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81193         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81194         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81195         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81196         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81197         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81198         (re_acquire_state_context):
81199         Remove unnecessary forward decls.
81200         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81201         Put __attribute at function definition,
81202         now that the function decl has been removed.
81203         * lib/regex_internal.c (re_string_peek_byte_case):
81204         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81205         Likewise.
81206
81207 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81208
81209         * m4/regex.m4: Add AC_PREREQ(2.50).
81210         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81211
81212 2005-08-25  Simon Josefsson  <jas@extundo.com>
81213
81214         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81215         __fsetlocking.
81216
81217 2005-08-25  Simon Josefsson  <jas@extundo.com>
81218
81219         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81220         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81221         GLIBC specific code.
81222
81223 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81224
81225         Make regex safe for g++.  This fixes one real bug (an "err"
81226         that should have been "*err").  g++ problem reported by
81227         Sam Steingold.
81228         * lib/regex_internal.h (re_calloc): New macro, consistent with
81229         re_malloc etc.  All callers of calloc changed to use re_calloc.
81230         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81231         not int.  All callers changed.
81232         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81233         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81234         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81235         (find_recover_state): Change "err" to "*err"; this fixes what
81236         appears to be a real bug.
81237         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81238         versus int.
81239
81240 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81241
81242         * modules/regex (Depends-on): Add malloc, since the code
81243         assumes that !malloc(0) means failure.
81244
81245 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81246
81247         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81248
81249         alloca modernization/simplification for regex.
81250         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81251         needs to be at the start of the file, and can be moved into
81252         regex_internal.h and simplified.
81253         * lib/regex_internal.h: Include <alloca.h>.
81254         (__libc_use_alloca) [!defined _LIBC]: New macro.
81255         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81256         now works outside glibc.
81257
81258 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81259
81260         * config/srclist.txt: Add glibc bugs 1241, 1245.
81261
81262 2005-08-25  Jim Meyering  <jim@meyering.net>
81263
81264         * lib/open-safer.c: Include <config.h>.
81265         Otherwise, we'd lose LARGEFILE support in any file using
81266         e.g. "fcntl--.h"
81267
81268 2005-08-25  Bruno Haible  <bruno@clisp.org>
81269
81270         * m4/minmax.m4: Require autoconf 2.52.
81271         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81272         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81273         alternatives of translit over the alphabet.
81274         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81275
81276 2005-08-24  Simon Josefsson  <jas@extundo.com>
81277
81278         * tests/test-getpass.c: New file.
81279
81280 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81281
81282         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81283         for GNU regex features.
81284
81285 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81286
81287         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81288         * lib/regex.h (regerror): Likewise.
81289
81290         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81291         requires this.  (The code never needed it.)
81292
81293         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81294         All uses of recently-renamed identifiers changed to use the new,
81295         POSIX-compliant names.  The code will build and run just fine
81296         without these changes, but it's better to eat our own dog food
81297         and use the standard-conforming names.
81298
81299         * lib/regex.h: Fix a multitude of POSIX name space violations.
81300         These changes have an effect only for programs that define
81301         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81302         do not change anything for programs compiled in the normal way.
81303         Also, there is no effect on the ABI.
81304
81305         (_REGEX_SOURCE): New macro.
81306         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81307         defined and _GNU_SOURCE is not; this fixes a name space violation.
81308
81309         Rename the following macros to obey POSIX requirements.
81310         The old names are still visible as macros if _REGEX_SOURCE is defined.
81311         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81312         RE_BACKSLASH_ESCAPE_IN_LISTS.
81313         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81314         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81315         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81316         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81317         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81318         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81319         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81320         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81321         (REG_INTERVALS): renamed from RE_INTERVALS.
81322         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81323         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81324         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81325         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81326         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81327         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81328         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81329         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81330         RE_UNMATCHED_RIGHT_PAREN_ORD.
81331         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81332         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81333         (REG_DEBUG): renamed from RE_DEBUG.
81334         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81335         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81336         unusual, since we can't clash with the POSIX REG_ICASE.
81337         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81338         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81339         (REG_NO_SUB): renamed from RE_NO_SUB.
81340         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81341         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81342         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81343         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81344         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81345         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81346         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81347         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81348         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81349         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81350         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81351         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81352         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81353         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81354         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81355         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81356         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81357         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81358         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81359         (REG_FIXED): Renamed from REGS_FIXED.
81360         (REG_NREGS): Renamed from RE_NREGS.
81361
81362         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81363         of other REG_* macros, since POSIX says the user is allowed to
81364         #undef these macros selectively.
81365
81366         (reg_errcode_t): Update comment stating what other tables need
81367         to be consistent.
81368
81369         Rename the following enum values to obey POSIX requirements.
81370         The old names are still visible as macros.
81371         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81372         is not defined, since GNU is supposed to be a superset of POSIX as
81373         much as possible, and since we want reg_errcode_t to be a signed
81374         type for implementation consistency.
81375         (_REG_NOERROR): Renamed from REG_NOERROR.
81376         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81377         (_REG_BADPAT): Renamed from REG_BADPAT.
81378         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81379         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81380         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81381         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81382         (_REG_EBRACK): Renamed from REG_EBRACK.
81383         (_REG_EPAREN): Renamed from REG_EPAREN.
81384         (_REG_EBRACE): Renamed from REG_EBRACE.
81385         (_REG_BADBR): Renamed from REG_BADBR.
81386         (_REG_ERANGE): Renamed from REG_ERANGE.
81387         (_REG_ESPACE): Renamed from REG_ESPACE.
81388         (_REG_BADRPT): Renamed from REG_BADRPT.
81389         (_REG_EEND): Renamed from REG_EEND.
81390         (_REG_ESIZE): Renamed from REG_ESIZE.
81391         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81392         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81393         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81394         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81395         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81396
81397         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81398         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81399         changed.  But support the old name if the new one is not defined
81400         and if _REGEX_SOURCE.
81401
81402         Change the following member names in struct re_pattern_buffer.
81403         The old names are still supported if !_REGEX_SOURCE.
81404         The new names are always supported, regardless of _REGEX_SOURCE.
81405         (re_buffer): Renamed from buffer.
81406         (re_allocated): Renamed from allocated.
81407         (re_used): Renamed from used.
81408         (re_syntax): Renamed from syntax.
81409         (re_fastmap): Renamed from fastmap.
81410         (re_translate): Renamed from translate.
81411         (re_can_be_null): Renamed from can_be_null.
81412         (re_regs_allocated): Renamed from regs_allocated.
81413         (re_fastmap_accurate): Renamed from fastmap_accurate.
81414         (re_no_sub): Renamed from no_sub.
81415         (re_not_bol): Renamed from not_bol.
81416         (re_not_eol): Renamed from not_eol.
81417         (re_newline_anchor): Renamed from newline_anchor.
81418
81419         Change the following member names in struct re_registers.
81420         The old names are still supported if !_REGEX_SOURCE.
81421         The new names are always supported, regardless of _REGEX_SOURCE.
81422         (rm_num_regs): Renamed from num_regs.
81423         (rm_start): Renamed from start.
81424         (rm_end): Renamed from end.
81425
81426         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81427         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81428         Prepend __ to parameter names.
81429
81430         Undo yesterday's changes.
81431
81432 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81433
81434         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81435         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81436         lib/regex.c.
81437
81438 2005-08-24  Jim Meyering  <jim@meyering.net>
81439
81440         Sync from coreutils.
81441         * m4/fcntl-safer.m4: New file.
81442
81443         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81444         and object files for this module.
81445
81446 2005-08-24  Jim Meyering  <jim@meyering.net>
81447
81448         Sync from coreutils.
81449         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81450
81451 2005-08-24  Jim Meyering  <jim@meyering.net>
81452
81453         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81454         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81455
81456 2005-08-24  Jim Meyering  <jim@meyering.net>
81457
81458         * modules/fcntl-safer: New module.
81459         * modules/fts (Depends-on): Add fcntl-safer.
81460         * MODULES.html.sh (File descriptor based Input/Output):
81461         Add fcntl-safer.
81462
81463 2005-08-24  Bruno Haible  <bruno@clisp.org>
81464
81465         Support for unit test modules.
81466         * modules/README: Mention tests modules.
81467         * modules/TEMPLATE-TESTS: New file.
81468         * gnulib-tool: New options --extract-tests-module, --with-tests and
81469         --tests-base (unused for the moment).
81470         (testsbase, inctests): New variables.
81471         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81472         (func_verify_module): Exclude TEMPLATE-TESTS.
81473         (func_verify_nontests_module, func_verify_tests_module): New functions.
81474         (func_get_dependencies): Add implicit dependency for tests modules.
81475         (func_get_tests_module): New function.
81476         (func_modules_transitive_closure): When --with-tests was specified,
81477         include the unit tests as well, unless explicitly avoided.
81478         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81479         (func_emit_tests_Makefile_am): New function.
81480         (func_create_testdir): When --with-tests was specified, emit a
81481         tests/ directory.
81482         * MODULES.html.sh (Future developments): Update.
81483
81484 2005-08-24  Bruno Haible  <bruno@clisp.org>
81485
81486         * modules/tls-tests: New file.
81487         * tests/test-tls.c: New file, from GNU gettext.
81488
81489 2005-08-24  Bruno Haible  <bruno@clisp.org>
81490
81491         * modules/lock-tests: New file.
81492         * tests/test-lock.c: New file, from GNU gettext.
81493
81494 2005-08-24  Bruno Haible  <bruno@clisp.org>
81495
81496         * lib/lock.h: Add multiple inclusion guard.
81497         * lib/tls.h: Add multiple inclusion guard.
81498
81499 2005-08-24  Bruno Haible  <bruno@clisp.org>
81500
81501         * gnulib-tool: Add support for the --aux-dir option to
81502         --create-testdir, --create-megatestdir, --test, --megatest.
81503         (func_create_testdir, func_create_megatestdir): Optionally emit a
81504         AC_CONFIG_AUX_DIR directive.
81505         (create-testdir, create-megatestdir, test, megatest): Provide a
81506         default value for $auxdir.
81507
81508 2005-08-24  Bruno Haible  <bruno@clisp.org>
81509
81510         * gnulib-tool (import): Use compound statement instead of subshell
81511         where possible.
81512
81513 2005-08-24  Bruno Haible  <bruno@clisp.org>
81514
81515         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81516
81517 2005-08-24  Bruno Haible  <bruno@clisp.org>
81518
81519         * gnulib-tool (func_version): Update.
81520
81521 2005-08-24  Bruno Haible  <bruno@clisp.org>
81522
81523         * gnulib-tool (func_import, func_create_testdir,
81524         func_create_megatestdir): Quote all autoconf macro arguments.
81525
81526 2005-08-24  Bruno Haible  <bruno@clisp.org>
81527
81528         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81529         option --force, because --force causes the aclocal.m4 of each
81530         subdirectory to be newer than the corresponding config.h.in.
81531
81532 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81533
81534         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81535         All contents moved to gl_REGEX.
81536         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81537         assume that it does.
81538
81539 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81540
81541         * lib/regex.h (REG_NOSYS)
81542         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81543         Define, since POSIX requires it as of 2001.
81544         (_REG_ENOSYS)
81545         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81546         New private symbol, used to keep the enum signed in all cases.
81547         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81548         Youngman in
81549         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81550
81551         * lib/regex_internal.c (re_string_skip_chars, register_state):
81552         (calc_state_hash):
81553         Remove forward decls; no longer needed now that we use prototypes.
81554         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81555         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81556         (clean_state_log_if_needed): Likewise.
81557
81558 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81559
81560         * config/srclist.txt: Add glibc bugs 1231-1233.
81561
81562 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81563
81564         Fix problems reported by Sam Steingold in
81565         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81566         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81567         assumed that reg_errcode_t is a signed type, which is not
81568         necessarily true if _XOPEN_SOURCE is not defined.
81569         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81570         since some compilers warn about it otherwise.
81571
81572 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81573
81574         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81575         (init_word_char, create_initial_state, duplicate_node_closure):
81576         (fetch_token, peek_token_bracket, build_range_exp):
81577         (build_collating_symbol): Remove forward decls; no longer needed
81578         now that we use prototypes.
81579
81580         * lib/regcomp.c:
81581         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81582         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81583         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81584         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81585         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81586         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81587         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81588         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81589         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81590         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81591         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81592         (build_charclass, build_charclass_op, fetch_number, create_tree):
81593         (create_token_tree, mark_opt_subexp, duplicate_tree):
81594         Use prototypes rather than old-style definitions.
81595
81596         * lib/regex_internal.c:
81597         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81598         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81599         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81600         (re_string_reconstruct, re_string_peek_byte_case):
81601         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81602         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81603         (re_node_set_init_copy, re_node_set_add_intersect):
81604         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81605         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81606         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81607         (re_acquire_state, re_acquire_state_context, register_state):
81608         (create_ci_newstate, create_cd_newstate, free_state):
81609         Likewise.
81610         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81611         re_search_2):
81612         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81613         (re_search_internal, prune_impossible_nodes):
81614         (acquire_init_state_context, check_matching, static):
81615         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81616         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81617         (update_regs, sift_states_backward, build_sifted_states):
81618         (clean_state_log_if_needed, merge_state_array):
81619         (update_cur_sifted_state, add_epsilon_src_nodes):
81620         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81621         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81622         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81623         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81624         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81625         (check_arrival, check_arrival_add_next_nodes):
81626         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81627         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81628         (check_node_accept_bytes, check_node_accept, extend_buffers):
81629         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81630         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81631         (sift_ctx_init):
81632         Likewise.
81633
81634         * lib/regex_internal.h:
81635         (re_string_allocate, re_string_construct, re_string_reconstruct):
81636         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81637         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81638         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81639         (re_string_context_at, re_string_peek_byte_case):
81640         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81641         is defined, since we now use prototypes always.
81642
81643         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81644         C89 or better.  All uses removed.
81645
81646 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81647
81648         * config/srclist.txt: Add glibc bugs 1220-1227.
81649
81650 2005-08-20  Jim Meyering  <jim@meyering.net>
81651
81652         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81653         of unused local, dfa.
81654
81655 2005-08-20  Bruno Haible  <bruno@clisp.org>
81656
81657         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81658
81659 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81660
81661         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81662         (re_node_set_insert_last, re_dfa_add_node):
81663         Rename local variables to avoid GCC shadowing warnings.
81664
81665 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81666
81667         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81668         [defined lint]: Suppress bogus uninitialized-variable warnings.
81669
81670         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81671         and let the caller return REG_ESPACE if out of space.  This
81672         removes an uninitialied-variable warning with GCC 4.0.1, and also
81673         avoids taking the address of a local variable.  All callers
81674         changed.
81675
81676 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81677
81678         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81679         $LIBCSRC/posix/regexec.c.
81680         Add glibc bug 1217 for regcomp.c.
81681
81682 2005-08-19  Jim Meyering  <jim@meyering.net>
81683
81684         * lib/regexec.c (proceed_next_node): Redo local variables to
81685         avoid GCC shadowing warnings.
81686
81687 2005-08-18  Bruno Haible  <bruno@clisp.org>
81688
81689         * lib/strstr.c (strstr): Fix return value in multibyte case.
81690         * lib/strcasestr.c (strcasestr): Likewise.
81691
81692 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81695
81696 2005-08-17  Jim Meyering  <jim@meyering.net>
81697
81698         Make the %s format (seconds since the epoch) work for a negative
81699         number and when used with a zero-padded field width, e.g. %015s.
81700
81701         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81702         label so that it precedes the code to set `digits'.  Otherwise,
81703         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81704         print `00-22'.  Now, it prints `-0022', as it should.
81705
81706 2005-08-17  Bruno Haible  <bruno@clisp.org>
81707
81708         * modules/strstr (Files): Add m4/mbrtowc.m4.
81709         (Depends-on): Add mbuiter.
81710
81711 2005-08-17  Bruno Haible  <bruno@clisp.org>
81712
81713         * modules/strcasestr: New file.
81714         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81715         strcasestr.
81716
81717 2005-08-17  Bruno Haible  <bruno@clisp.org>
81718
81719         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81720
81721 2005-08-17  Bruno Haible  <bruno@clisp.org>
81722
81723         * modules/mbuiter: New file.
81724         * MODULES.html.sh (Extended multibyte and wide character utilities):
81725         Add mbuiter.
81726
81727 2005-08-17  Bruno Haible  <bruno@clisp.org>
81728
81729         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81730         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81731
81732 2005-08-17  Bruno Haible  <bruno@clisp.org>
81733
81734         * m4/strcasestr.m4: New file.
81735
81736 2005-08-17  Bruno Haible  <bruno@clisp.org>
81737
81738         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81739         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81740
81741 2005-08-17  Bruno Haible  <bruno@clisp.org>
81742
81743         * lib/strcasestr.h: New file.
81744         * lib/strcasestr.c: New file.
81745
81746 2005-08-17  Bruno Haible  <bruno@clisp.org>
81747
81748         * lib/strcasecmp.c: Use mbuiter.h.
81749
81750 2005-08-17  Bruno Haible  <bruno@clisp.org>
81751
81752         * lib/mbuiter.h: New file.
81753
81754 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81755
81756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81757         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81758         and gl_GETOPT are both invoked via different paths (as happens
81759         with GNU tar CVS because it uses both argp and getopt), the former
81760         wins.
81761
81762 2005-08-16  Bruno Haible  <bruno@clisp.org>
81763
81764         * modules/tls: New file.
81765         * MODULES.html.sh (Multithreading): Add tls.
81766
81767 2005-08-16  Bruno Haible  <bruno@clisp.org>
81768
81769         * modules/strnlen1: New file.
81770         * MODULES.html.sh (String handling): Add strnlen1.
81771
81772 2005-08-16  Bruno Haible  <bruno@clisp.org>
81773
81774         * modules/strcase (Files): Add m4/mbrtowc.m4.
81775         (Depends-on): Add strnlen1, mbchar.
81776
81777 2005-08-16  Bruno Haible  <bruno@clisp.org>
81778
81779         * modules/mbiter: New file.
81780         * MODULES.html.sh (Extended multibyte and wide character utilities):
81781         Add mbiter.
81782
81783 2005-08-16  Bruno Haible  <bruno@clisp.org>
81784
81785         * modules/mbfile: New file.
81786         * MODULES.html.sh (Extended multibyte and wide character utilities):
81787         Add mbfile.
81788
81789 2005-08-16  Bruno Haible  <bruno@clisp.org>
81790
81791         * modules/mbchar: New file.
81792         * MODULES.html.sh (Extended multibyte and wide character utilities):
81793         New section.
81794
81795 2005-08-16  Bruno Haible  <bruno@clisp.org>
81796
81797         * m4/tls.m4: New file, from GNU gettext.
81798
81799 2005-08-16  Bruno Haible  <bruno@clisp.org>
81800
81801         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81802         always.
81803         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81804
81805 2005-08-16  Bruno Haible  <bruno@clisp.org>
81806
81807         * m4/mbiter.m4: New file.
81808
81809 2005-08-16  Bruno Haible  <bruno@clisp.org>
81810
81811         * m4/mbfile.m4: New file.
81812
81813 2005-08-16  Bruno Haible  <bruno@clisp.org>
81814
81815         * m4/mbchar.m4: New file.
81816
81817 2005-08-16  Bruno Haible  <bruno@clisp.org>
81818
81819         * lib/tls.h: New file, from GNU gettext.
81820         * lib/tls.c: New file, from GNU gettext.
81821
81822 2005-08-16  Bruno Haible  <bruno@clisp.org>
81823
81824         * lib/strnlen1.h: New file.
81825         * lib/strnlen1.c: New file.
81826
81827 2005-08-16  Bruno Haible  <bruno@clisp.org>
81828
81829         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81830         (mbi_init): Update.
81831         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81832         NUL byte, not after it.
81833
81834 2005-08-16  Bruno Haible  <bruno@clisp.org>
81835
81836         * lib/strcase.h (strcasecmp): Add note in comments.
81837         * lib/strncasecmp.c: Use code from strcasecmp.c.
81838         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81839         (strcasecmp): Work correctly in multibyte locales.
81840
81841 2005-08-16  Bruno Haible  <bruno@clisp.org>
81842
81843         * lib/mbiter.h: New file.
81844
81845 2005-08-16  Bruno Haible  <bruno@clisp.org>
81846
81847         * lib/mbfile.h: New file.
81848
81849 2005-08-16  Bruno Haible  <bruno@clisp.org>
81850
81851         * lib/mbchar.h: New file.
81852         * lib/mbchar.c: New file.
81853
81854 2005-08-16  Bruno Haible  <bruno@clisp.org>
81855
81856         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81857         the valid ones. Makes the comparison operations transitive:
81858         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81859         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81860
81861 2005-08-15  Simon Josefsson  <jas@extundo.com>
81862
81863         * modules/ssize_t (License): Change to 'unlimited'.
81864
81865         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81866
81867 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81868
81869         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81870         Add comments for each pending glibc patch.
81871
81872 2005-08-15  Bruno Haible  <bruno@clisp.org>
81873
81874         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81875         __cplusplus is defined.
81876
81877 2005-08-14  Jim Meyering  <jim@meyering.net>
81878
81879         Sync from coreutils.
81880
81881         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81882         Use the hash-table-based cycle-detection code not just when
81883         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81884         Reported by James Youngman in
81885         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81886         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81887         FTS_TIGHT_CYCLE_CHECK.
81888         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81889         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81890         once again.
81891         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81892         * lib/fts.c (fd_safer): Remove decl.
81893         Include fcntl--.h rather than unistd-safer.h
81894         (fts_safe_changedir): Don't call fd_safer; no longer needed
81895         now that we include fcntl--.h.
81896
81897 2005-08-12  Simon Josefsson  <jas@extundo.com>
81898
81899         * modules/getndelim2: Use ssize_t module.
81900         * modules/getnline: Likewise.
81901         * modules/safe-read: Likewise.
81902         * modules/xreadlink: Likewise.
81903
81904         * modules/ssize_t: New file.
81905
81906 2005-08-12  Simon Josefsson  <jas@extundo.com>
81907
81908         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81909
81910 2005-08-12  Simon Josefsson  <jas@extundo.com>
81911
81912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81913         ssize_t.
81914
81915 2005-08-12  Simon Josefsson  <jas@extundo.com>
81916
81917         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81918         readline, getdelim and check_version.
81919         (Support for systems lacking ISO C 99: Sizes of integer types):
81920         Add size_max.
81921
81922 2005-08-12  Bruno Haible  <bruno@clisp.org>
81923
81924         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81925
81926 2005-08-11  Simon Josefsson  <jas@extundo.com>
81927
81928         * modules/readline: New file.
81929
81930         * modules/strnlen (Files): Add strnlen.h.
81931
81932 2005-08-11  Simon Josefsson  <jas@extundo.com>
81933
81934         * m4/readline.m4: New file.
81935
81936 2005-08-11  Simon Josefsson  <jas@extundo.com>
81937
81938         * lib/readline.h, readline.c: New file.
81939
81940 2005-08-11  Simon Josefsson  <jas@extundo.com>
81941
81942         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81943         gl_AVOID.
81944
81945 2005-08-11  Bruno Haible  <bruno@clisp.org>
81946
81947         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81948
81949 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81950
81951         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81952
81953 2005-08-10  Simon Josefsson  <jas@extundo.com>
81954
81955         * tests/test-iconvme.c: New file.
81956
81957 2005-08-10  Simon Josefsson  <jas@extundo.com>
81958
81959         * m4/strnlen.m4: New file.
81960
81961         * m4/strndup.m4: Don't check for strnlen declaration, done in
81962         strnlen.m4.
81963
81964 2005-08-10  Simon Josefsson  <jas@extundo.com>
81965
81966         * lib/strndup.c: Use strnlen.h.
81967
81968         * lib/strnlen.h: New file.
81969
81970 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81971
81972         * README: Typos.
81973
81974 2005-08-02  Simon Josefsson  <jas@extundo.com>
81975
81976         * modules/readline: New file.
81977
81978 2005-08-02  Simon Josefsson  <jas@extundo.com>
81979
81980         * modules/getdelim: New file.
81981
81982         * modules/getline: Rewrite, don't use getndelim2.
81983
81984 2005-08-02  Simon Josefsson  <jas@extundo.com>
81985
81986         * m4/getline.m4: Separate out getdelim stuff into separate module.
81987
81988         * m4/getdelim.m4: New file.
81989
81990 2005-08-02  Simon Josefsson  <jas@extundo.com>
81991
81992         * lib/getline.h, getline.c: Rewrite.
81993
81994         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81995
81996 2005-07-31  Bruno Haible  <bruno@clisp.org>
81997
81998         * lib/lock.h (gl_lock_initializer): New macro.
81999         (gl_lock_define_initialized): Use it.
82000         (gl_rwlock_initializer): New macro.
82001         (gl_rwlock_define_initialized): Use it.
82002         (gl_recursive_lock_initializer): New macro.
82003         (gl_recursive_lock_define_initialized): Use it.
82004
82005 2005-07-30  Karl Berry  <karl@gnu.org>
82006
82007         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82008         Report from Ben Pfaff, regarding getopt.
82009
82010 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82011
82012         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82013         normal way.
82014         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82015         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82016         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82017         (gl_GETOPT): Use the new macros.  Most of the implementation
82018         is moved to the new macros.  This is for programs like Emacs
82019         that don't want all the functionality of gl_GETOPT.
82020
82021 2005-07-26  Bruno Haible  <bruno@clisp.org>
82022
82023         * m4/lock.m4: Update from GNU gettext.
82024
82025 2005-07-26  Bruno Haible  <bruno@clisp.org>
82026
82027         * lib/lock.h: Update from GNU gettext.
82028         * lib/lock.c: Update from GNU gettext.
82029
82030 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82033         obsolescent AC_TRY_RUN.  Include the default includes files, for
82034         'exit'.
82035
82036 2005-07-24  Bruno Haible  <bruno@clisp.org>
82037
82038         * modules/visibility: New file.
82039         * MODULES.html.sh (Misc): Add visibility.
82040
82041 2005-07-24  Bruno Haible  <bruno@clisp.org>
82042
82043         * m4/visibility.m4: New file.
82044
82045 2005-07-24  Bruno Haible  <bruno@clisp.org>
82046
82047         * doc/visibility.texi: New file.
82048
82049 2005-07-22  Bruno Haible  <bruno@clisp.org>
82050
82051         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82052         $(ALLOCA_H), redundant through BUILT_SOURCES.
82053         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82054         redundant through BUILT_SOURCES.
82055         * modules/byteswap (Makefile.am): Remove explicit dependency on
82056         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82057         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82058         $(FNMATCH_H), redundant through BUILT_SOURCES.
82059         * modules/getopt (Makefile.am): Remove explicit dependency on
82060         $(GETOPT_H), redundant through BUILT_SOURCES.
82061         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82062         redundant through BUILT_SOURCES.
82063         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82064         redundant through BUILT_SOURCES.
82065         * modules/stdbool (Makefile.am): Remove explicit dependency on
82066         $(STDBOOL_H), redundant through BUILT_SOURCES.
82067         * modules/stdint (Makefile.am): Remove explicit dependency on
82068         $(STDINT_H), redundant through BUILT_SOURCES.
82069         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82070         Remove explicit dependency on $(SYSEXITS_H).
82071         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82072
82073 2005-07-18  Simon Josefsson  <jas@extundo.com>
82074
82075         * lib/check-version.c (check_version): Accept identical versions too.
82076
82077 2005-07-18  Bruno Haible  <bruno@clisp.org>
82078
82079         * modules/lock: New file.
82080         * MODULES.html.sh (Multithreading): New section.
82081
82082 2005-07-18  Bruno Haible  <bruno@clisp.org>
82083
82084         * m4/lock.m4: New file, from GNU gettext.
82085
82086 2005-07-18  Bruno Haible  <bruno@clisp.org>
82087
82088         * lib/lock.h: New file, from GNU gettext.
82089         * lib/lock.c: New file, from GNU gettext.
82090
82091 2005-07-18  Bruno Haible  <bruno@clisp.org>
82092
82093         * lib/lock.h (gl_once_t): New type.
82094         (gl_once_define, gl_once): New macros.
82095         * lib/lock.c (fresh_once): New variable.
82096         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82097         functions.
82098
82099 2005-07-16  Simon Josefsson  <jas@extundo.com>
82100
82101         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82102         workaround, suggested by Bruno.
82103
82104 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82105
82106         * modules/xalloc (Depends-on): Add xalloc-die.
82107         * modules/xvasprintf (Depends-on): Add xalloc-die.
82108
82109 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82110
82111         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82112         with a minor change.
82113
82114 2005-07-15  Bruno Haible  <bruno@clisp.org>
82115
82116         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82117         When using lib/poll.c, define poll as rpl_poll.
82118
82119 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82120
82121         * modules/argp (Depends-on): Remove unlocked-io.
82122
82123 2005-07-14  Derek Price  <derek@ximbiot.com>
82124
82125         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82126         for glob symlink bug.
82127
82128 2005-07-14  Bruno Haible  <bruno@clisp.org>
82129
82130         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82131         Instead, test for *_unlocked function declarations directly.
82132
82133 2005-07-11  Simon Josefsson  <jas@extundo.com>
82134
82135         * modules/size_max: New file.
82136
82137         * modules/xsize: Depend on size_max module for size_max.m4.
82138
82139 2005-07-11  Simon Josefsson  <jas@extundo.com>
82140
82141         * lib/size_max.h: New file.
82142
82143 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82144
82145         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82146         copyright symbol and the year.
82147         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82148         (version_etc_va): Use parameterized copyright notice.
82149         Reword to conform to the current GNU coding standards.
82150
82151 2005-07-11  Karl Berry  <karl@gnu.org>
82152
82153         * doc/gnulib.texi (Quoting): new node.
82154         (Initial import): more info, from Patrice.
82155
82156 2005-07-11  Bruno Haible  <bruno@clisp.org>
82157
82158         * gnulib-tool (func_usage): Document option --avoid.
82159         (Command line options): Handle --avoid.
82160         (func_acceptable): New function.
82161         (func_modules_transitive_closure): Use it.
82162
82163 2005-07-11  Bruno Haible  <bruno@clisp.org>
82164
82165         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82166         Reported by Jim Meyering.
82167
82168 2005-07-10  Bruno Haible  <bruno@clisp.org>
82169
82170         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82171         Needed when size_t is smaller than 'unsigned int'.
82172         Reported by Paul Eggert.
82173
82174 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82175
82176         * modules/argp (Depends-on): Add unlocked-io
82177
82178 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82179
82180         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82181         block of defines.
82182
82183 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82184
82185         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82186         fix now.
82187
82188 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82189         and Paul Eggert  <eggert@cs.ucla.edu>
82190
82191         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82192         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82193
82194 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82195
82196         * modules/regex (Files): Add lib/regex_internal.c,
82197         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82198         (Depends-on): Add extensions.
82199         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82200
82201 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82202
82203         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82204         pathconf.
82205         * m4/same.m4 (gl_SAME): Likewise.
82206         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82207
82208         * m4/regex.m4: Adjust to new libc regex implementation.
82209         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82210         all the .c and .h parts of (the new) regex.
82211         Quote the m4 stuff better.
82212         Check for RE_ICASE bug of old gnulib.
82213         Check for REG_STARTEND of recent libc.
82214         Rename local variables from jm_* to gl_*.
82215         Quote operand of "test -f".
82216         Say "recent enough" version of libc, not "version 2".
82217         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82218         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82219         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82220         Remove check for btowc, isascii.
82221         Require AM_LANGINFO_CODESET.
82222
82223 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82224
82225         * lib/regex.c, regex.h: Sync from libc.
82226         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82227         * lib/regexec.c:
82228         New files, synced from libc, except that regex_internal.h
82229         currently has a small porting fix.
82230
82231 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82232
82233         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82234         regex_internal.c, regexec.c.
82235         Add regex_internal.h too, but as a comment, since the libc version
82236         is currently broken in gnulib mode.
82237
82238 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         Support programs like Emacs that use gnulib but not gettext.
82241         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82242         * modules/gettext-h: New file.
82243         * modules/gettext (Files): Remove lib/gettext.h.
82244         (Depends-on): Add gettext-h.
82245         (Makefile.am): Remove lib_SOURCES.
82246         * modules/argmatch, modules/c-stack, modules/closeout:
82247         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82248         * modules/execute, modules/file-type, modules/getaddrinfo:
82249         * modules/getopt, modules/human, modules/javacomp:
82250         * modules/javaexec, modules/mkdir-p, modules/obstack:
82251         * modules/openat, modules/pagealign_alloc, modules/pipe:
82252         * modules/quotearg, modules/regex, modules/rpmatch:
82253         * modules/unicodeio, modules/userspec, modules/version-etc:
82254         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82255         * modules/xsetenv:
82256         Depend on gettext-h, not gettext.
82257
82258 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82259
82260         * gnulib-tool (func_import): Add support for 'public domain' license.
82261         * modules/alloca, modules/atexit, modules/memmove:
82262         Now public domain, not GPL.
82263         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82264         * modules/realloc, modules/strerror, modules/strtod:
82265         Now LGPL, not GPL.
82266
82267 2005-07-05  Bruno Haible  <bruno@clisp.org>
82268
82269         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82270         autoconf CVS. Needed for mingw.
82271
82272 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82273
82274         Remove the dependency of the strftime module on the tzset module.
82275         * modules/strftime (Depends-on): Remove dependency on tzset.
82276
82277 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82278
82279         Remove the dependency of the strftime module on the tzset module.
82280         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82281         gl_FUNC_TZSET_CLOBBER.
82282
82283 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         Remove the dependency of the strftime module on the tzset module.
82286         * lib/strftime.c (my_strftime)
82287         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82288         Copy the input structure, to work around some of the bug with
82289         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82290         Solaris releases, you should also use the tzset module, but we won't
82291         require it as a dependency any more since we don't want LGPLed code
82292         to depend on GPLed code.
82293
82294 2005-07-02  Jim Meyering  <jim@meyering.net>
82295
82296         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82297         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82298         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82299         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82300
82301 2005-07-02  Jim Meyering  <jim@meyering.net>
82302
82303         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82304
82305 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82306
82307         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82308         declares only 'struct timespec;' (!).
82309
82310 2005-07-01  Jim Meyering  <jim@meyering.net>
82311
82312         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82313         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82314         * lib/save-cwd.c, tempname.c:
82315         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82316         and don't include <sys/file.h>).
82317
82318 2005-06-29  Jim Meyering  <jim@meyering.net>
82319
82320         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82321         type name.  Use the variable name instead.
82322         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82323         Likewise.
82324
82325 2005-06-28  Simon Josefsson  <jas@extundo.com>
82326
82327         * modules/check-version (Files): Add check-version.m4.
82328
82329 2005-06-28  Simon Josefsson  <jas@extundo.com>
82330
82331         * m4/check-version.m4: New file, suggested by Jim Meyering
82332         <jim@meyering.net>.
82333
82334 2005-06-28  Simon Josefsson  <jas@extundo.com>
82335
82336         * lib/check-version.h, lib/check-version.c: New files.
82337
82338 2005-06-28  Simon Josefsson  <jas@extundo.com>
82339
82340         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82341         collision with global variable.  Better indentation.  Don't
82342         increment buffer pointer beyond buffer end.  Based on comments
82343         from Paul Eggert <eggert@cs.ucla.edu>.
82344
82345         * lib/base64.h: Indent.
82346
82347 2005-06-28  Simon Josefsson  <jas@extundo.com>
82348
82349         * doc/gnulib.texi (Library version handling): New section.
82350
82351 2005-06-28  Jim Meyering  <jim@meyering.net>
82352
82353         * check-module (find_included_lib_files): Hard-code another
82354         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82355         but modules/fts-lgpl (correctly) does not list those files.
82356
82357         * modules/canonicalize (Files): Add lib/pathmax.h.
82358
82359 2005-06-25  Simon Josefsson  <jas@extundo.com>
82360
82361         * modules/check-version: New file.
82362
82363 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82364
82365         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82366         initializer of struct addrinfo, as an indication that we don't
82367         care how many members the structure has.
82368
82369 2005-06-24  Derek Price  <derek@ximbiot.com>
82370         and Bruno Haible  <bruno@clisp.org>
82371
82372         Remove stat module & update lstat.
82373         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82374         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82375         * m4/stat.m4: Remove this file.
82376
82377 2005-06-24  Derek Price  <derek@ximbiot.com>
82378         and Bruno Haible  <bruno@clisp.org>
82379
82380         Remove stat module & update lstat.
82381         * lib/stat.c: Remove this file...
82382         (slash_aware_lstat): ...moving this content and its support...
82383         * lib/lstat.c (rpl_lstat): ...into here.
82384         * lib/lstat.h: New file.
82385
82386 2005-06-24  Derek Price  <derek@ximbiot.com>
82387         and Bruno Haible  <bruno@clisp.org>
82388
82389         Remove stat module & update lstat.
82390         * config/srclist.txt (libc sources): Remove stat.
82391
82392 2005-06-24  Derek Price  <derek@ximbiot.com>
82393         and Bruno Haible  <bruno@clisp.org>
82394
82395         Remove stat module & update lstat.
82396         * MODULES.html.sh (stat): Remove.
82397         * MODULES.html: Regenerated.
82398         * modules/lstat (Description): Correct function name.
82399         (Files): Add "lstat.h".
82400         (Depends-on): Remove stat, add xalloc, stat-macros.
82401         * modules/stat: Remove this file.
82402         (Include): Add "lstat.h", remove <sys/stat.h>.
82403
82404 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82405
82406         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82407         (ranged_convert): Don't save conversion in a temporary struct.
82408         This causes a warning with GCC 4.0.0, and anyway in the typical
82409         case it's not worth the extra 100 bytes or so of code.
82410         (ranged_convert, __mktime_internal): When calling a function via a
82411         pointer P, use P () rather than (*P) (), as we now assume C89 or
82412         better.
82413
82414 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82417         "who -r" failed to give output.  Problem reported by Tim Waugh.
82418
82419         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82420         (xcalloc): Use it to avoid needless tests.
82421         Problem reported by Jim Meyering.
82422
82423 2005-06-20  Derek Price  <derek@ximbiot.com>
82424
82425         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82426         unnecessary for Autoconfs > 2.59c.
82427
82428 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82429
82430         * lib/argp.h (__option_is_short): Check upper limit of
82431         __key. Isprint() requires its argument to have the value
82432         of an unsigned char or EOF.
82433
82434 2005-06-16  Jim Meyering  <jim@meyering.net>
82435
82436         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82437         when either N or S is zero.
82438
82439 2005-06-16  Derek Price  <derek@ximbiot.com>
82440
82441         * m4/bison.m4: Declare YACC & YFLAGS precious.
82442
82443 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82444
82445         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82446         multibyte string or pattern, fall back on unibyte matching.
82447         Problem reported by James Youngman.
82448
82449 2005-06-08  Bruno Haible  <bruno@clisp.org>
82450
82451         * modules/csharpcomp: New file.
82452         * MODULES.html.sh (C#): Add csharpcomp.
82453
82454 2005-06-08  Bruno Haible  <bruno@clisp.org>
82455
82456         * m4/csharpcomp.m4: New file, from GNU gettext.
82457
82458 2005-06-08  Bruno Haible  <bruno@clisp.org>
82459
82460         * lib/csharpcomp.h: New file, from GNU gettext.
82461         * lib/csharpcomp.c: New file, from GNU gettext.
82462         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82463
82464 2005-06-08  Bruno Haible  <bruno@clisp.org>
82465
82466         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82467         warning on mingw.
82468
82469 2005-06-07  Derek Price  <derek@ximbiot.com>
82470
82471         Sync from CVS.
82472         * lib/glob_.h: Indent nested #ifdef.
82473
82474 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82475
82476         Sync from coreutils.
82477         Use "file name" when talking about file names, instead of "filename"
82478         or "path", as per the GNU coding standards.
82479         * lib/mkdir-p.c: Renamed from makepath.c.
82480         (make_dir_parents): Renamed from make_path.  All callers changed.
82481         * lib/mkdir-p.h: Likewise.  All includers changed.
82482         * lib/filenamecat.c: Renamed from path-concat.c.
82483         (file_name_concat): Renamed from path_concat.  All callers changed.
82484         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82485         * lib/filenamecat.h: Likewise.  All includers changed.
82486         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82487         in comments or local variable names.
82488         * lib/basename.c: Likewise.
82489         * lib/canonicalize.c, canonicalize.h: Likewise.
82490         * lib/dirname.c, dirname.h: Likewise.
82491         * lib/euidaccess.c: Likewise.
82492         * lib/exclude.c: Likewise
82493         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82494         * lib/fsusage.c, fsuage.h: Likewise.
82495         * lib/fts.c, fts_.h: Likewise.
82496         * lib/getcwd.c: Likewise.
82497         * lib/getloadavg.c: Likewise.
82498         * lib/mkstemp.c: Likewise.
82499         * lib/mountlist.c, mountlist.h: Likewise.
82500         * lib/openat.c, openat.h: Likewise.
82501         * lib/readlink-stub.c: Likewise.
82502         * lib/readutmp.c, readutmp.h: Likewise.
82503         * lib/rename.c: Likewise.
82504         * lib/rmdir.c: Likewise.
82505         * lib/same.c: Likewise.
82506         * lib/savedir.c: Likewise.
82507         * lib/stripslash.c: Likewise.
82508         * lib/tempname.c: Likewise.
82509         * lib/xreadlink.c: Likewise.
82510         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82511         All uses changed.
82512         * lib/exclude.h: Likewise.
82513
82514         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82515         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82516         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82517         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82518         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82519         files have been getting away with it for years (MORE/BSD 4.3
82520         is extinct now).
82521         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82522         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82523
82524         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82525         Define to 256, not 255, as per modern POSIX.
82526
82527 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82528
82529         Sync from coreutils.
82530         Use "file name" when talking about file names, instead of "filename"
82531         or "path", as per the GNU coding standards.
82532         * MODULES.html.sh: mkdir-p renamed from makepath.
82533         filenamecat renamed from path-concat.
82534         * modules/filenamecat: Renamed from modules/path-concat.
82535         (Files): filenamecat.h and filenamecat.c renamed from
82536         path-concat.h and path-concat.c.
82537         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82538         (Include): filenamecat.h, not path-concat.h.
82539         * modules/mkdir-p: Renamed from modules/makepath.
82540         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82541         makepath.c.
82542         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82543         (Include): mkdir-p.h, not makepath.h.
82544
82545 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82546
82547         Sync from coreutils.
82548         * m4/mkdir-p.m4: Renamed from makepath.m4.
82549         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82550         Rename files from makepath.c to mkdir-p.c, and from
82551         makepath.h to mkdir-p.h.
82552         * m4/filenamecat.m4: Renamed from path-concat.m4.
82553         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82554         Rename files from path-concat.c to filenamecat.c,
82555         and from path-concat.h to filenamecat.h.
82556         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82557         "file name" in local variables or comments.
82558         * m4/rename.m4: Likewise.
82559
82560 2005-06-01  Bruno Haible  <bruno@clisp.org>
82561
82562         * modules/csharpexec: New file.
82563         * MODULES.html.sh (C#): New section.
82564
82565 2005-06-01  Bruno Haible  <bruno@clisp.org>
82566
82567         * m4/csharp.m4: New file, from GNU gettext.
82568         * m4/csharpexec.m4: New file, from GNU gettext.
82569
82570 2005-06-01  Bruno Haible  <bruno@clisp.org>
82571
82572         * lib/csharpexec.h: New file, from GNU gettext.
82573         * lib/csharpexec.c: New file, from GNU gettext.
82574         * lib/csharpexec.sh.in: New file, from GNU gettext.
82575
82576 2005-05-31  Derek Price  <derek@ximbiot.com>
82577             Paul Eggert  <eggert@cs.ucla.edu>
82578
82579         Sync from cvs.
82580         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82581
82582 2005-05-31  Derek Price  <derek@ximbiot.com>
82583             Paul Eggert  <eggert@cs.ucla.edu>
82584
82585         Sync from cvs.
82586         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82587
82588 2005-05-29  Derek Price  <derek@ximbiot.com>
82589
82590         * config/srclist.txt (glob_.h, glob.c): Add these files.
82591
82592 2005-05-29  Derek Price  <derek@ximbiot.com>
82593
82594         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82595         * modules/glob: New file.
82596         * modules/getlogin_r: Add link to POSIX spec in description.
82597
82598 2005-05-29  Derek Price  <derek@ximbiot.com>
82599             Paul Eggert  <eggert@cs.ucla.edu>
82600
82601         * m4/glob.m4: New file.
82602
82603 2005-05-29  Derek Price  <derek@ximbiot.com>
82604             Paul Eggert  <eggert@cs.ucla.edu>
82605
82606         * lib/glob_.h, lib/glob.c: New files.
82607
82608 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82609
82610         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82611         * modules/fts-lgpl (Depends-on): Remove gettext.
82612
82613 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82614
82615         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82616         and don't require gt_INTTYPES_PRI.
82617
82618 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82619
82620         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82621
82622         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82623         the configuration hassle isn't worth it.
82624         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82625         (LONGEST_MODIFIER, PRIuMAX): Remove.
82626
82627 2005-05-27  Bruno Haible  <bruno@clisp.org>
82628
82629         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82630
82631 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82632
82633         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82634         _POSIX_PTHREAD_SEMANTICS for Solaris.
82635
82636 2005-05-25  Derek Price  <derek@ximbiot.com>
82637
82638         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82639
82640 2005-05-25  Derek Price  <derek@ximbiot.com>
82641             Paul Eggert  <eggert@cs.ucla.edu>
82642
82643         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82644         * lib/getlogin_r.c, getlogin_r.h: New files.
82645
82646 2005-05-25  Bruno Haible  <bruno@clisp.org>
82647             Derek Price  <derek@ximbiot.com>
82648
82649         * lib/getlogin_r.h: Simplify API documentation.
82650
82651 2005-05-23  Derek Price  <derek@ximbiot.com>
82652
82653         * modules/minmax (Files): Add m4/minmax.m4.
82654         (configure.ac): Add gl_MINMAX.
82655
82656 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82657
82658         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82659         so that unistd-safer.h (GPL'ed code) need not be included.
82660
82661 2005-05-22  Bruno Haible  <bruno@clisp.org>
82662
82663         * m4/minmax.m4: New file.
82664         Based on a patch by Derek Price <derek@ximbiot.com>.
82665
82666 2005-05-22  Bruno Haible  <bruno@clisp.org>
82667
82668         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82669         (INT64_MIN): Fix definition.
82670         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82671
82672         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82673         NEED_SIGNED_INT_TYPES.
82674
82675         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82676         HAVE_SYSTEM_INTTYPES.
82677
82678 2005-05-22  Bruno Haible  <bruno@clisp.org>
82679
82680         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82681         Also include <sys/param.h> if it defines MIN, MAX.
82682         Based on a patch by Derek Price <derek@ximbiot.com>.
82683
82684 2005-05-21  Jim Meyering  <jim@meyering.net>
82685
82686         * modules/fts (Files): Add m4/inttypes-pri.m4.
82687         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82688
82689 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82690
82691         New fts module.
82692         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82693         (setup_dir, free_dir): New functions.
82694         (enter_dir, leave_dir): Define trivial
82695         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82696         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82697         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82698         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82699         Move to fts-cycle.c.
82700         (fts_open): Use setup_dir.
82701         (fts_close): Use free_dir.
82702         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82703         This adds a label and some gotos, but the alternatives were messier.
82704         Check for memory allocation failure when entering a dir.
82705         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82706         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82707         (FTS): New member fts_cycle, that is a union that contains the
82708         old active_dir_ht and cycle_state.  All uses changed to mention
82709         fts_cycle.ht and fts_cycle.state.
82710         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82711         fts.c, with the following changes:
82712         (setup_dir, free_dir): New functions.
82713         (enter_dir): Now returns bool.  Return true if successful, false
82714         if memory exhausted.  All callers changed.
82715         Do not bother partly cleaning up on
82716         memory allocation failure; that is free_dir's job.
82717         However, free ad if hash_insert fails, to avoid memory leak.
82718         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82719         fts->fts_options to see which union member to use.
82720
82721 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82722
82723         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82724         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82725
82726 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82727
82728         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82729
82730 2005-05-20  Jim Meyering  <jim@meyering.net>
82731
82732         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82733         Now a macro, to pacify GCC.
82734
82735 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82736
82737         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82738         of -1.
82739
82740 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82741
82742         * lib/chown.c (rpl_chown): Return -1 on failure.
82743
82744 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82745
82746         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82747         Don't check for stddef.h.
82748         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82749         don't use its results.
82750         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82751         since we include them unconditionally.  Don't require
82752         AM_STDBOOL_H, since stdbool is a prerequisite.
82753         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82754         since we assume C89 or better.
82755         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82756         as we don't use their results.
82757         Don't check for fchdir, memmove, memset, strrchr, as we use
82758         them unconditionally.
82759         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82760         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82761
82762 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82763
82764         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82765         Include <stddef.h> unconditionally, since we assume C89 now.
82766         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82767         * lib/fts.c: Include fts_.h first, to check interface.
82768         Do not include intprops.h; no longer needed.
82769         Include cycle-check.h and hash.h, since fts_.h no longer does.
82770         Remove unnecessary casts of closedir to void.
82771         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82772         decide whether to decrement nlinks.
82773         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82774         (FTS): Use struct hash_table * instead of Hash_table, so that
82775         we no longer need to include hash.h here.
82776
82777 2005-05-18  Jim Meyering  <jim@meyering.net>
82778
82779         * modules/dirfd (License): Change to LGPL.  Most of the code
82780         is already in the public domain.
82781
82782 2005-05-18  Jim Meyering  <jim@meyering.net>
82783
82784         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82785         Reported by Yoann Vandoorselaere.
82786
82787 2005-05-17  Jim Meyering  <jim@meyering.net>
82788
82789         * m4/fts.m4: New file, from coreutils.
82790
82791 2005-05-17  Jim Meyering  <jim@meyering.net>
82792
82793         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82794
82795 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82796
82797         Sync from coreutils.
82798         * m4/unlinkdir.m4: New file.
82799
82800 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82801
82802         Sync from coreutils.
82803         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82804         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82805         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82806         White space changes only.
82807         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82808         special.
82809         * lib/yesno.c: Include getline.h, not ctype.h.
82810         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82811         Use getline to remove arbitrary restriction on response length.
82812
82813 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82814
82815         * config/srclist-update: Spell out "Street" in FSF postal
82816         mail address; this is the style the FSF seems to prefer.
82817
82818         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82819         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82820         this updates FSF postal mail address.
82821
82822         Sync from coreutils.
82823         * modules/unlinkdir: New file.
82824         * modules/yesno (Depends-on): Add getline.
82825         * MODULES.html.sh (File system functions): Add unlinkdir.
82826
82827 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82828
82829         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82830         lib/strsep.h:
82831         Change the initial comment to refer to GPL, not LGPL.
82832         gnulib-tool will change it to LGPL as needed.
82833
82834         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82835         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82836         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82837         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82838         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82839         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82840         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82841         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82842         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82843         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82844         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82845         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82846         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82847         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82848         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82849         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82850         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82851         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82852         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82853         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82854         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82855         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82856         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82857         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82858         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82859         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82860         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82861         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82862         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82863         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82864         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82865         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82866         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82867         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82868         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82869         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82870         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82871         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82872         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82873         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82874         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82875         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82876         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82877         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82878         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82879         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82880         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82881         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82882         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82883         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82884         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82885         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82886         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82887         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82888         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82889         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82890         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82891         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82892         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82893         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82894         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82895         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82896         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82897         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82898         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82899         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82900         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82901         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82902         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82903         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82904         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82905         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82906         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82907         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82908         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82909         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82910         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82911         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82912         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82913         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82914         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82915         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82916         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82917         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82918         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82919         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82920         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82921         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82922         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82923         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82924         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82925         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82926         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82927         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82928         lib/yesno.c, lib/yesno.h:
82929         Update FSF postal mail address.
82930
82931 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82932
82933         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82934         tests/test-memmem.c, tests/test-stpncpy.c:
82935         Update FSF postal mail address.
82936
82937 2005-05-13  Bruno Haible  <bruno@clisp.org>
82938
82939         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82940         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82941         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82942         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82943         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82944         Add support for 64-bit integers in the MSVC compiler.
82945
82946 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82947
82948         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82949
82950 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82951
82952         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82953
82954 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82955
82956         * doc/getdate.texi (General date syntax): Don't say that date
82957         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82958         Problem reported by Nic Ferrier.
82959
82960 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82961
82962         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82963         specified in ai_socktype. Fix invalid ai_protocol
82964         check. ai_protocol is usually set to 0 or depending on
82965         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82966         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82967         ai_socktype / ai_protocol in the returned addrinfo structure.
82968
82969 2005-05-10  Simon Josefsson  <jas@extundo.com>
82970
82971         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82972         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82973
82974 2005-05-10  Karl Berry  <karl@gnu.org>
82975
82976         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82977         (from http://www.gnu.org/licenses).
82978         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82979         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82980         fdl.texi suffices.
82981
82982 2005-05-10  Karl Berry  <karl@gnu.org>
82983
82984         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82985         (COPYING.DOC): remove.
82986
82987         * config/srclist-update: new FSF address.
82988
82989 2005-05-10  Derek Price  <derek@ximbiot.com>
82990
82991         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82992         possible.
82993
82994 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82995             Bruno Haible  <bruno@clisp.org>
82996
82997         * modules/inet_ntop: New file.
82998         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82999         inet_ntop.
83000
83001 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83002             Bruno Haible  <bruno@clisp.org>
83003
83004         * m4/inet_ntop.m4: New file.
83005
83006 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83007             Bruno Haible  <bruno@clisp.org>
83008
83009         * lib/inet_ntop.h: New file.
83010         * lib/inet_ntop.c: New file, from glibc with modifications.
83011
83012 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83013
83014         * modules/time_r (License): Change to LGPL.
83015         * modules/extensions (License): Change to LGPL.  Actually,
83016         the license is more permissive than that, but currently gnulib-tool
83017         doesn't know how to handle more-permissive licenses.
83018
83019         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83020         Problem reported by Dave Love.
83021
83022 2005-05-08  Jim Meyering  <jim@meyering.net>
83023
83024         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83025         blank.
83026
83027 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83028
83029         * modules/argmatch (Depends-on): Add stdbool.
83030         * modules/backupfile (Depends-on): Likewise.
83031         * modules/chdir-long (Depends-on): Likewise.
83032         * modules/closeout (Depends-on): Likewise.
83033         * modules/cycle-check (Depends-on): Likewise.
83034         * modules/dirname (Depends-on): Likewise.
83035         * modules/fnmatch (Depends-on): Likewise.
83036         * modules/fsusage (Depends-on): Likewise.
83037         * modules/fwriteerror (Depends-on): Likewise.
83038         * modules/getcwd (Depends-on): Likewise.
83039         * modules/getloadavg (Depends-on): Likewise.
83040         * modules/hard-locale (Depends-on): Likewise.
83041         * modules/makepath (Depends-on): Likewise.
83042         * modules/mountlist (Depends-on): Likewise.
83043         * modules/nanosleep (Depends-on): Likewise.
83044         * modules/posixtm (Depends-on): Likewise.
83045         * modules/quotearg (Depends-on): Likewise.
83046         * modules/readtokens (Depends-on): Likewise.
83047         * modules/readtokens0 (Depends-on): Likewise.
83048         * modules/readutmp (Depends-on): Likewise.
83049         * modules/save-cwd (Depends-on): Likewise.
83050         * modules/strftime (Depends-on): Likewise.
83051         * modules/userspec (Depends-on): Likewise.
83052         * modules/utimecmp (Depends-on): Likewise.
83053         * modules/xgetcwd (Depends-on): Likewise.
83054         * modules/xnanosleep (Depends-on): Likewise.
83055         * modules/xstrtod (Depends-on): Likewise.
83056         * modules/yesno (Depends-on): Likewise.
83057
83058 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83059
83060         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83061         needless checks.
83062
83063 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83064
83065         Merge from coreutils.  Among other things,
83066         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83067         * lib/fd-safer.c: New file.
83068         * lib/fcntl-safer.h, open-safer.c: Remove.
83069         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83070         * lib/dup-safer.c: Include unistd-safer.h first.
83071         Don't include errno.h.
83072         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83073         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83074         * lib/file-type.c: Rely on file-type.h change.
83075         * lib/getloadavg.c: Include unistd-safer.h.
83076         (getloadavg): Use safer open.
83077         * lib/getusershell.c: Include "stdio-safer.h".
83078         (getusershell): Use safer fopen.
83079         * lib/long-options.c (long_options): Use NULL rather than 0.
83080         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83081         'free'.
83082         * lib/modechange.c: Likewise.
83083         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83084         (MODE_DONE): New constant.
83085         (struct mode_change): Remove 'next' member.
83086         (make_node_op_equals): New function; like the old one of the
83087         same name, except it allocates an array.
83088         (mode_compile, mode_create_from_ref): Use it.
83089         (mode_compile): Allocate result as an array, not a linked list.
83090         Parse octal string ourself, so that we catch mistakes like "+0".
83091         (mode_adjust): Arg is an array, not a linked list.
83092         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83093         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83094         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83095         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83096         Remove.  This is now stat-macros.h's job.
83097         (talloc): Remove.  All callers replaced by xalloc, so that
83098         our invokers don't have to worry about reporting memory failures.
83099         (make_node_op_equals): Remove.
83100         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83101         New constants.
83102         (struct mode_change): Moved here from modechange.h.
83103         (mode_append_entry): Remove.
83104         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83105         apps to have incorrect behavior.  Use simpler algorithm for head
83106         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83107         Detect more invalid usages rather than having somewhat-random behavior.
83108         Don't insert an "a=" action, as that leads to incorrect behavior.
83109         (mode_compile, mode_create_from_ref): Return NULL on error instead
83110         of an enum, since now there's only one way to have an error.  All
83111         callers changed.
83112         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83113         at the correct time.  Simplify calculation of "+u" and its ilk.
83114         Don't mishandle "+X".
83115         (mode_free): Remove "register" and localize decls.
83116         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83117         (struct mode_change): Move to modechange.c; callers don't
83118         need to see this stuff.
83119         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83120         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83121         (mode_change, mode_adjust): Reflect the new signatures noted above.
83122         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83123         that might redefine system include files.
83124         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83125         (my_usleep): Use NULL rather than (void *) 0.
83126         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83127         Use siginterrupt to specify that system calls should be interrupted.
83128         (rpl_nanosleep): Move initialization of suspended closer to call of
83129         my_usleep.
83130         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83131         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83132         (desirable_utmp_entry): New function.
83133         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83134         using x2nrealloc, to simplify logic.
83135         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83136         size calculation.  Do not assume utmp file is a regular file.
83137         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83138         (READ_UTMP_CHECK_PIDS): New constant.
83139         * lib/save-cwd.c: Include unistd-safer.h.
83140         (save_cwd): Use fd_safer.
83141         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83142         [!_LIBC] Include "stat-macros.h" instead.
83143         * lib/unistd-safer.h (fd_safer): New decl.
83144
83145 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83146
83147         * modules/getloadavg (Depends-on): Add unistd-safer.
83148         * modules/getusershell (Depends-on): Add stdio-safer.
83149         * modules/lstat (Depends-on): Remove xalloc.
83150         * modules/mkstemp (Depends-on): Add stat-macros.
83151         * modules/modechange (Depends-on): Remove xstrtol.
83152         Add stat-macros, xalloc.
83153         * modules/save-cwd (Depends-on): Add unistd-safer.
83154         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83155         * modules/unistd-safer (Files): Add lib/fd-safer.c
83156         (Makefile.am): Remove lib_SOURCES.
83157
83158         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83159         Remove fcntl-safer; unistd-safer supersedes it.
83160
83161 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83162
83163         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83164         AC_HEADER_STAT.
83165         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83166         (gl_PREREQ_CHOWN): Remove.
83167         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83168         it.  Don't require AC_HEADER_STAT.
83169         (gl_PREREQ_LSTAT): Remove.
83170         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83171         Don't require AC_HEADER_STAT.
83172         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83173         (gl_PREREQ_RMDIR): Remove.
83174         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83175         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83176         the stat-macros module a prerequisite.
83177         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83178         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83179         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83180         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83181         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83182         variable names.
83183         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83184         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83185         variable prefixes.
83186         * m4/fcntl-safer.m4: Remove.
83187         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83188         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83189         Invoke gl_PREREQ_FD_SAFER.
83190         (gl_PREREQ_FD_SAFER): New macro.
83191         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83192         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83193         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83194         Remove duplicate call to AC_LIBOBJ(readutmp).
83195         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83196
83197         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83198         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83199
83200 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83201
83202         * MODULES.html.sh (Misc): Add byteswap.
83203
83204 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83205
83206         * modules/getcwd (Depends-on): Add extensions.
83207         * modules/openat (Depends-on): Likewise.
83208
83209 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83210
83211         * modules/byteswap: New file.
83212
83213 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83214
83215         * m4/byteswap.m4: New file.
83216
83217 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83218
83219         * lib/byteswap_.h: New file.
83220
83221 2005-04-25  Karl Berry  <karl@gnu.org>
83222
83223         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83224
83225 2005-04-25  Albert Chin  <china@thewrittenword.com>
83226
83227         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83228         Toolkit C bug.
83229
83230 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83231
83232         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83233         (func_ln_if_changed): Remove forcibly for no error message
83234         in case file does not exist.
83235
83236 2005-04-19  Simon Josefsson  <jas@extundo.com>
83237
83238         * gnulib-tool (Options): Make --symlink mean --symbolic.
83239
83240 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83241
83242         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83243
83244 2005-04-16  Simon Josefsson  <jas@extundo.com>
83245
83246         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83247
83248 2005-04-15  Simon Josefsson  <jas@extundo.com>
83249
83250         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83251
83252 2005-04-15  Simon Josefsson  <jas@extundo.com>
83253
83254         * gnulib-tool: Rename --symlink to --symbolic.
83255
83256 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83257
83258         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83259         symbolic links to files instead of copying/moving.  Add --aux-dir,
83260         specifying directory relative --dir where auxiliary build tools
83261         are placed.
83262
83263 2005-04-14  Bruno Haible  <bruno@clisp.org>
83264
83265         * modules/allocsa (License): Change to LGPL.
83266         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83267
83268 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83269
83270         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83271         that "UTC +1 second" continues to work.  Problem reported
83272         by Dmitry V. Levin.
83273         (relunit_snumber): New rule.
83274         (relunit): Use it.
83275
83276 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83277
83278         * lib/getdate.y (universal_time_zone_table): New constant.
83279         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83280         universal_time_zone_table.
83281         (lookup_zone): Prefer universal_time_zone_table to
83282         local_time_zone_table, so that "GMT" time stamps are allowed in
83283         London during the summer.  Problem reported by Ian Abbott.
83284
83285 2005-04-12  Jim Meyering  <jim@meyering.net>
83286
83287         * lib/human.c (humblock): Set *options even when returning due to
83288         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83289         warning from gcc-4.
83290
83291 2005-04-09  Jim Meyering  <jim@meyering.net>
83292
83293         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83294         -Wuninitialized: initialize tm0.tm_year.
83295
83296 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83297
83298         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83299         count, since there's no maximum.  All uses changed.
83300         Add member dsts_seen.
83301         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83302         not being INT_MAX.
83303         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83304         Use pc_rels_seen to decide whther a date is absolute.
83305
83306         * lib/getdate.y (number): Don't overwrite year.
83307         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83308         check.
83309
83310 2005-04-02  Simon Josefsson  <jas@extundo.com>
83311
83312         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83313         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83314
83315 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83316
83317         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83318         where no absolute path name can be longer than PATH_MAX.
83319
83320 2005-03-27  Jim Meyering  <jim@meyering.net>
83321
83322         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83323
83324 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83325
83326         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83327         "one's complement" -> "ones' complement" in comment, as per Knuth.
83328         "value of type" -> "type or expression" in comment.
83329         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83330
83331 2005-03-26  Jim Meyering  <jim@meyering.net>
83332
83333         Comment nits.
83334         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83335         Correct typos: s/or/of/.
83336
83337 2005-03-26  Jim Meyering  <jim@meyering.net>
83338
83339         * modules/check-include-files: Move to ../ and rename to...
83340         * check-module: ...this.
83341
83342 2005-03-25  Jim Meyering  <jim@meyering.net>
83343
83344         * modules/xvasprintf (Files): Add xalloc.h.
83345
83346 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83347
83348         * modules/gettext (Files): config/config.rpath ->
83349         build-aux/config.rpath
83350         * modules/iconv (Files): Likewise.
83351         Problem reported by Oskar Liljeblad.
83352
83353 2005-03-23  Jim Meyering  <jim@meyering.net>
83354
83355         * modules/check-include-files: New script to check for
83356         missing dependencies, multiple includes, etc.
83357
83358         * modules/c-strtold (Depends-on): Add xalloc.
83359         * modules/c-strtod (Depends-on): Add xalloc.
83360         * modules/hash (Depends-on): Add xalloc.
83361         (Files): Remove lib/xalloc.h.
83362
83363         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83364         * modules/userspec (Files): Add lib/inttostr.h.
83365
83366 2005-03-23  Jim Meyering  <jim@meyering.net>
83367
83368         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83369
83370 2005-03-22  Jim Meyering  <jim@meyering.net>
83371
83372         * modules/stat-macros: New module.
83373         * modules/canonicalize, modules/euidaccess, modules/file-type,
83374         * modules/filemode, modules/lchown, modules/makepath,
83375         * modules/rmdir, modules/stat: Depend on new stat-macros module
83376         rather than listing lib/stat-macros.h manually.
83377         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83378
83379 2005-03-22  Jim Meyering  <jim@meyering.net>
83380
83381         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83382
83383 2005-03-22  Bruno Haible  <bruno@clisp.org>
83384
83385         * config/srclist.txt: Replace target directory 'config' with
83386         'build-aux'.
83387         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83388         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83389         ../build-aux/.
83390
83391 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83392
83393         * modules/chdir-long (Depends-on): Add mempcpy.
83394
83395         * modules/acl, modules/backupfile, modules/c-strtod,
83396         modules/c-strtold, modules/canon-host, modules/canonicalize,
83397         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83398         modules/exclude, modules/exitfail, modules/file-type,
83399         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83400         modules/getdate, modules/getline, modules/getpagesize,
83401         modules/getpass, modules/getugroups, modules/group-member,
83402         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83403         modules/inttostr, modules/long-options, modules/makepath,
83404         modules/md5, modules/memcasecmp, modules/memcoll,
83405         modules/modechange, modules/mountlist, modules/path-concat,
83406         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83407         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83408         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83409         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83410         modules/strftime, modules/strndup, modules/strverscmp,
83411         modules/timespec, modules/unlocked-io, modules/userspec,
83412         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83413         modules/yesno:
83414         Remove lib_SOURCES line from Makefile.am section, as this is now
83415         done automatically by the corresponding Autoconf macro.
83416
83417 2005-03-21  Jim Meyering  <jim@meyering.net>
83418
83419         Changes imported from coreutils.
83420
83421         * lib/cycle-check.c: Don't include xalloc.h.
83422
83423         * lib/path-concat.c: Don't include assert.h.
83424         (path_concat): Remove assertion that would have triggered
83425         for ABASE starting with more than one slash.
83426         Reported by Andreas Schwab.
83427
83428         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83429         properly when ABASE is an absolute file name.
83430         Correct the description of this function.
83431         Include <assert.h>.
83432         Add an assertion and a test driver.
83433         This fixes a bug introduced on 2004-07-02.
83434         Andreas Schwab reported the resulting failure of cp --parents:
83435         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83436
83437 2005-03-21  Jim Meyering  <jim@meyering.net>
83438
83439         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83440         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83441
83442 2005-03-21  Jim Meyering  <jim@meyering.net>
83443         and  Paul Eggert  <eggert@cs.ucla.edu>
83444
83445         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83446         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83447         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83448         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83449         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83450         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83451         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83452         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83453         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83454         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83455         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83456         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83457         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83458         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83459         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83460         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83461         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83462         for these modules.
83463
83464 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83465
83466         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83467         (which shouldn't happen), generate nothing instead of returning 0
83468         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83469
83470 2005-03-16  Bruno Haible  <bruno@clisp.org>
83471
83472         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83473         HAVE_LONGLONG_64BIT.
83474
83475 2005-03-16  Bruno Haible  <bruno@clisp.org>
83476
83477         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83478         HAVE_LONGLONG_64BIT.
83479
83480 2005-03-16  Bruno Haible  <bruno@clisp.org>
83481
83482         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83483         HAVE_LONGLONG_64BIT.
83484
83485 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83486
83487         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83488         reliably distinguish strftime failure from empty output on POSIX
83489         hosts.
83490
83491 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83492
83493         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83494         (iconv_string): Don't guess a size-zero buffer, as that might cause
83495         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83496         result would be 'too large', where 'too large' is (heuristically)
83497         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83498         overflow concerns.  This will prevent some unwanted malloc failures
83499         when the inputs are very large.
83500
83501 2005-03-15  Karl Berry  <karl@gnu.org>
83502
83503         * config/srclist.txt (config.rpath): from gettext.
83504         * config/config.rpath: update.
83505
83506 2005-03-15  Bruno Haible  <bruno@clisp.org>
83507
83508         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83509         to 'negate'.
83510
83511         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83512         variable.
83513
83514         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83515         results.
83516
83517 2005-03-14  Simon Josefsson  <jas@extundo.com>
83518
83519         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83520         <fx@gnu.org>.
83521
83522 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83523
83524         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83525         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83526         intprops.h.
83527         * lib/strtol.c: Likewise.
83528
83529 2005-03-14  Jim Meyering  <jim@meyering.net>
83530
83531         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83532         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83533         to be nonzero so that we (and caller) can detect the difference
83534         between a valid zero-length expansion and an error return, even
83535         when the underlying strftime fails before writing anything into
83536         that location.
83537
83538 2005-03-14  Bruno Haible  <bruno@clisp.org>
83539
83540         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83541         Update from GNU gettext 0.14.3.
83542
83543 2005-03-10  Jim Meyering  <jim@meyering.net>
83544
83545         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83546
83547 2005-03-10  Jim Meyering  <jim@meyering.net>
83548
83549         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83550         so that this module works on systems without fchdir.
83551
83552 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83553
83554         Factor int-properties macros into a single file, except for
83555         glibc-related files.
83556         * lib/intprops.h: New file.
83557         * lib/getloadavg.c: Include it instead of limits.h.
83558         (INT_STRLEN_BOUND): Remove.
83559         * lib/human.c: Include intprops.h.
83560         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83561         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83562         302/1000.
83563         * lib/inttostr.h: Include intprops.h instead of limits.h.
83564         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83565         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83566         for consistency with intprops.h.
83567         (time_t_is_integer, twos_complement_arithmetic): Use them.
83568         * lib/sig2str.h: Include <signal.h>, intprops.h.
83569         (INT_STRLEN_BOUND): Remove.
83570         * lib/strftime.c (TYPE_SIGNED): Remove.
83571         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83572         * lib/strtol.c: Adjust comments to match intprops.h.
83573         * lib/userspec.c: Include intprops.h.
83574         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83575         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83576         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83577         instead of rolling our own expressions.
83578         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83579
83580         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83581         instead of int.
83582         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83583         the right thing even if adding 1900 would overflow.  Similarly
83584         for tm_mon + 1 and tm_yday + 1.
83585         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83586         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83587         (DO_SIGNED_NUMBER): New macro.
83588         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83589
83590 2005-03-07  Bruno Haible  <bruno@clisp.org>
83591
83592         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83593
83594 2005-03-07  Bruno Haible  <bruno@clisp.org>
83595
83596         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83597
83598 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83599
83600         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83601         (func_import): Only replace files via --import when they have actually
83602         changed.
83603
83604 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83605
83606         * m4/mmap-anon.m4: New file.
83607         * m4/pagealign_alloc.m4: New file.
83608
83609 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83610             Bruno Haible  <bruno@clisp.org>
83611
83612         * modules/pagealign_alloc: New file.
83613         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83614
83615 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83616             Bruno Haible  <bruno@clisp.org>
83617
83618         * lib/pagealign_alloc.h: New file.
83619         * lib/pagealign_alloc.c: New file.
83620
83621 2005-03-03  Bruno Haible  <bruno@clisp.org>
83622
83623         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83624         Use an all-permissive copyright notice, recommended by RMS.
83625
83626 2005-03-02  Bruno Haible  <bruno@clisp.org>
83627
83628         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83629         of AIX, the replacement has to be done only after <string.h> is
83630         included, therefore not in config.h. stpncpy.h does the replacement,
83631         and stpncpy.c uses it.
83632
83633 2005-03-02  Bruno Haible  <bruno@clisp.org>
83634
83635         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83636         stpncpy.c uses it.
83637
83638 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83639
83640         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83641         The workaround isn't strictly needed for POSIX conformance, and
83642         it's too much of a pain to configure and maintain.  We'll ask
83643         people to fix their kernels instead.
83644         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83645         (NANOSLEEP_BUG_WORKAROUND): Remove.
83646         (xnanosleep): Remove the workaround.
83647
83648 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83649
83650         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83651         Reported by Derek Price.
83652         (Include): Add "timespec.h".
83653
83654         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83655
83656 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83657
83658         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83659         to detect nanosleep bug.
83660
83661 2005-03-01  Bruno Haible  <bruno@clisp.org>
83662
83663         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83664
83665 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83666
83667         * modules/gethrxtime: New file.
83668         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83669         (Depends-on): Add gethrxtime.
83670         (configure.ac): Add gl_XNANOSLEEP.
83671         (Makefile.am): Remove lib_SOURCES line.
83672
83673 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83674
83675         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83676         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83677
83678 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83679
83680         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83681         * lib/timespec.h (gettime): Return void, since it always
83682         succeeds now.  All uses changed.
83683         * lib/gettime.c (gettime): Likewise.
83684         [HAVE_NANOTIME]: Prefer nanotime.
83685         Assume gettimeofday succeeds, as POSIX requires.
83686         Assime time () succeeds, since other code already does.
83687         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83688         (timespec_subtract): Remove.
83689         (NANOSLEEP_BUG_WORKAROUND): New constant.
83690         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83691         things considerably.  Use it only on GNU/Linux hosts, since the
83692         workaround shouldn't be needed elsewhere.
83693
83694 2005-02-24  Bruno Haible  <bruno@clisp.org>
83695
83696         * modules/gettext (Files): Add m4/glibc2.m4.
83697
83698 2005-02-24  Bruno Haible  <bruno@clisp.org>
83699
83700         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83701         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83702         * m4/progtest.m4:
83703         Update from GNU gettext 0.14.2.
83704         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83705
83706 2005-02-24  Bruno Haible  <bruno@clisp.org>
83707
83708         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83709         * lib/config.charset: Update from GNU gettext 0.14.2.
83710
83711 2005-02-24  Bruno Haible  <bruno@clisp.org>
83712
83713         * lib/gettext.h: Update from GNU gettext 0.14.2.
83714
83715 2005-02-23  Simon Josefsson  <jas@extundo.com>
83716
83717         * m4/iconvme.m4: New file.
83718
83719 2005-02-23  Jim Meyering  <jim@meyering.net>
83720
83721         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83722         change.
83723         Thanks to Bruno Haible for catching it.
83724
83725 2005-02-22  Simon Josefsson  <jas@extundo.com>
83726
83727         * modules/iconvme: New file.
83728
83729         * MODULES.html.sh: Add iconvme.
83730
83731 2005-02-22  Simon Josefsson  <jas@extundo.com>
83732
83733         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83734
83735 2005-02-22  Simon Josefsson  <jas@extundo.com>
83736
83737         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83738
83739 2005-02-22  Jim Meyering  <jim@meyering.net>
83740
83741         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83742         s/ifndef/ifdef/.
83743
83744 2005-02-20  Neil Conway  <neilc@samurai.com>
83745
83746         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83747         returned by OSX/Darwin if the specified buffer is not large
83748         enough for the hostname.
83749
83750 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83751
83752         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83753         pass it to _help, otherwise the latter coredumps trying to
83754         dereference state.root_argp.
83755
83756 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83757
83758         * modules/chdir-long (Depends-on): Add memrchr.
83759         * modules/memrchr (Files): Add lib/memrchr.h.
83760         (Include): "memrchr.h".
83761
83762 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83763
83764         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83765
83766 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         * lib/memrchr.h: New file.
83769         * lib/chdir-long.c: Include it.
83770         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83771         Don't bother including stddef.h.
83772
83773 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83774
83775         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83776         inclusion.
83777         Include <sys/types.h>, for dev_t.
83778         (ME_DUMMY, ME_REMOTE): Move from here....
83779         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83780         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83781         Dmitry V. Levin.
83782         Include mountlist.h first, to test the interface.
83783
83784 2005-01-29  Bruno Haible  <bruno@clisp.org>
83785
83786         * lib/progname.c (program_name): Initialize.
83787         Needed when linking statically on MacOS X.
83788
83789 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         Sync from coreutils.
83792         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83793         (Depends-on): Add c-strtod.
83794         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83795
83796 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83797
83798         Sync from coreutils.
83799         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83800
83801         Remove files that are specific to coreutils.
83802         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83803
83804 2005-01-28  Bruno Haible  <bruno@clisp.org>
83805
83806         * modules/javacomp: New file.
83807         * MODULES.html.sh (Java): Add javacomp.
83808
83809 2005-01-28  Bruno Haible  <bruno@clisp.org>
83810
83811         * m4/javacomp.m4: New file, from GNU gettext.
83812
83813 2005-01-28  Bruno Haible  <bruno@clisp.org>
83814
83815         * lib/javacomp.sh.in: New file, from GNU gettext.
83816         * lib/javacomp.h: New file, from GNU gettext.
83817         * lib/javacomp.c: New file, from GNU gettext.
83818
83819 2005-01-26  Simon Josefsson  <jas@extundo.com>
83820
83821         * lib/gai_strerror.c: Use GPL in header.
83822
83823 2005-01-26  Bruno Haible  <bruno@clisp.org>
83824
83825         * modules/javaexec: New file.
83826         * MODULES.html.sh (Java): Add javaexec.
83827
83828 2005-01-26  Bruno Haible  <bruno@clisp.org>
83829
83830         * m4/javaexec.m4: New file, from GNU gettext.
83831
83832 2005-01-26  Bruno Haible  <bruno@clisp.org>
83833
83834         * lib/javaexec.sh.in: New file, from GNU gettext.
83835         * lib/javaexec.h: New file, from GNU gettext.
83836         * lib/javaexec.c: New file, from GNU gettext.
83837
83838 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83839
83840         * modules/lchown (Depends-on): Remove lchown.h
83841
83842 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83843
83844         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83845         must be defined if the header file was not found, in order
83846         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83847
83848 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83849
83850         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83851         initializers for struct pentry_state.
83852         (__argp_error): Check return value of __asprintf
83853         (__argp_failure): Translate error message
83854
83855         * lib/argp-parse.c: Removed braces around the expansion of N_()
83856
83857 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83858
83859         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83860         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83861         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83862         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83863         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83864         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83865         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83866         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83867         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83868         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83869         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83870         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83871         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83872         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83873         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83874         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83875         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83876         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83877         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83878         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83879         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83880         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83881         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83882         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83883         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83884         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83885         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83886         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83887         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83888         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83889         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83890         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83891         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83892         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83893         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83894         Use an all-permissive copyright notice, recommended by RMS.
83895
83896 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83897
83898         * modules/chdir-long (Depends-on): Remove mempcpy.
83899
83900 2005-01-21  Jim Meyering  <jim@meyering.net>
83901
83902         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83903         same value as for Solaris 9.
83904
83905         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83906         component length.  This included changing the parameter to be
83907         of type `char *' rather than `char const *'.
83908         * lib/chdir-long.h (chdir_long): Update prototype.
83909
83910         * lib/openat.c (fdopendir, fstatat): New functions.
83911         * lib/openat.h: Include headers required for use of DIR and struct
83912         stat.
83913         [AT_SYMLINK_NOFOLLOW]: Define.
83914         (fdopendir, fstatat): Add prototypes.
83915
83916 2005-01-21  Bruno Haible  <bruno@clisp.org>
83917
83918         * modules/classpath: New file.
83919         * MODULES.html.sh (Java): Add classpath.
83920
83921 2005-01-21  Bruno Haible  <bruno@clisp.org>
83922
83923         * lib/classpath.h: New file, from GNU gettext.
83924         * lib/classpath.c: New file, from GNU gettext.
83925
83926 2005-01-20  Simon Josefsson  <jas@extundo.com>
83927
83928         * modules/version-etc-fsf: New file.
83929
83930 2005-01-20  Simon Josefsson  <jas@extundo.com>
83931
83932         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83933         * lib/version-etc.c: Remove version_etc_copyright.
83934         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83935         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83936
83937 2005-01-20  Simon Josefsson  <jas@extundo.com>
83938
83939         * lib/base64.h (isbase64): Add.
83940
83941         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83942         using a unsigned prototype, don't inline.
83943         (base64_decode): Use it.
83944
83945 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83946
83947         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83948         it.
83949
83950 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83951
83952         * lib/save-cwd.c (save_cwd): Remove code to support the case
83953         where fchdir is missing or flaky.
83954
83955 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83956
83957         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83958
83959 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83960
83961         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83962         AC_LIBSOURCES now does this.
83963         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83964         with new ullong_max module.
83965
83966 2005-01-19  Bruno Haible  <bruno@clisp.org>
83967
83968         * modules/sh-quote: New file.
83969         * MODULES.html.sh (Executing programs): Add sh-quote.
83970
83971 2005-01-19  Bruno Haible  <bruno@clisp.org>
83972
83973         * lib/sh-quote.h: New file, from GNU gettext.
83974         * lib/sh-quote.c: New file, from GNU gettext.
83975
83976 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83977
83978         Merge from coreutils.
83979         * m4/ullong_max.m4: New file.
83980         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83981         (gl_MACROS): Assume localeconv exists.
83982
83983 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83984
83985         Merge changes from coreutils, as described below in several
83986         changelogs dated today.
83987
83988         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83989         (O_DIRECTORY): Remove; not needed here, since "." must be
83990         a directory.  All uses removed.
83991         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83992         universal on Suns, and we also need to test for IRIX.
83993         Revamp code to use 'if' rather than '#if'.
83994         Avoid unnecessary comparison of cwd->desc to 0.
83995
83996         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83997         for known valid error numbers rather than observed invalid ones.
83998
83999 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84000
84001         * modules/ullong_max: New file.
84002
84003         * modules/chdir-long, modules/openat: New files.
84004         * modules/save-cwd (Depends-on): Depend on chdir-long.
84005         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84006
84007 2005-01-18  Jim Meyering  <jim@meyering.net>
84008
84009         Merge from coreutils.
84010         * m4/chdir-long.m4, m4/openat.m4: New files.
84011         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84012         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84013         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84014         is sane and DOES follow symlinks.  Besides, testing 20 different
84015         systems found no broken chown implementations.
84016         Prompted by a change in rsync's copy of this macro.
84017         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84018
84019         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84020
84021         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84022         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84023         NULL-means-set-to-current-time semantics.
84024         Remove temporary file immediately, rather than waiting
84025         for configure's at-exit trap code to do it.
84026
84027 2005-01-18  Jim Meyering  <jim@meyering.net>
84028
84029         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84030
84031         * lib/utimens.c (futimens): Account for the fact that futimes
84032         can also fail with errno == ENOSYS or errno == ENOENT.
84033         Patch from Dmitry V. Levin.
84034
84035         Change the name of the robust chdir function from chdir to chdir_long.
84036         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84037         (restore_cwd): Use chdir_long, not chdir.
84038         * lib/chdir-long.c: Renamed from chdir.c.
84039         * lib/chdir-long.h: Renamed from chdir.h.
84040         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84041         Hurd.
84042
84043 2005-01-18  Bruno Haible  <bruno@clisp.org>
84044
84045         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84046         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84047         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84048         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84049         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84050         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84051         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84052         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84053         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84054         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84055         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84056         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84057         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84058         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84059         Use an all-permissive copyright notice, recommended by RMS.
84060
84061 2005-01-18  Bob Proulx  <bob@proulx.com>
84062
84063         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84064         simplify offsetof() macro construct to avoid compile failure with
84065         native HP-UX 11.0 ANSI C compiler.
84066
84067 2005-01-17  Bruno Haible  <bruno@clisp.org>
84068
84069         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84070         redundant because stpncpy.m4 takes care of it.
84071
84072 2005-01-17  Bruno Haible  <bruno@clisp.org>
84073
84074         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84075
84076 2005-01-17  Bruno Haible  <bruno@clisp.org>
84077
84078         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84079         used.
84080
84081 2005-01-17  Bruno Haible  <bruno@clisp.org>
84082
84083         * lib/fwriteerror.h (fwriteerror): Change specification to include
84084         fclose.
84085         * lib/fwriteerror.c: Include <stdbool.h>.
84086         (fwriteerror): At the end, close the file stream. Record whether
84087         stdout was already closed.
84088
84089 2005-01-17  Bruno Haible  <bruno@clisp.org>
84090
84091         * lib/execute.c (environ): Declare if needed.
84092         * lib/pipe.c (environ): Likewise.
84093         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84094
84095 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84096
84097         * modules/argp: Depend on vsnprintf
84098
84099 2005-01-10  Jim Meyering  <jim@meyering.net>
84100
84101         * modules/closeout (Depends-on): Add atexit.
84102
84103 2005-01-06  Bruno Haible  <bruno@clisp.org>
84104
84105         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84106
84107 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84108
84109         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84110         definitions to be after all include files, to avoid collisions.
84111         Problem reported by Bob Proulx.
84112
84113 2005-01-04  Jim Meyering  <jim@meyering.net>
84114
84115         Changes imported from coreutils.
84116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84117         as the mkstemp template, use a temporary directory and an
84118         8.3-friendly template to avoid trouble on systems like DJGPP.
84119         Reported by Juan M. Guerrero via Stepan Kasal.
84120         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84121         close. Remove the temporary directory right away, rather than waiting
84122         for configure's at-exit trap code to do it.
84123         Suggestion from Stepan Kasal.
84124
84125 2005-01-01  Simon Josefsson  <jas@extundo.com>
84126
84127         * gnulib-tool: Print #include directives when --import'ing.
84128
84129 2004-12-28  Simon Josefsson  <jas@extundo.com>
84130
84131         * tests/test-base64.c: Include required header files.  Remove
84132         unused variables.
84133
84134 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84135
84136         * modules/error (Depends-on): Remove gettext.
84137
84138 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84139
84140         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84141         not needed.  This removes a dependency on the gettext module.
84142         [defined _LIBC]: Do not include <libintl.h>; not needed.
84143
84144 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84145
84146         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84147         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84148
84149 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84150
84151         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84152         HAVE_DECL_STRTOLD.
84153
84154 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84155
84156         * modules/getdate (Depends-on): Remove alloca-opt.
84157
84158 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84159
84160         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84161
84162 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84163
84164         * lib/argp-parse.c: Include <stddef.h>.
84165         (alignof, alignto): New macros.
84166         (parser_init): Don't assume that void * is aligned sufficiently
84167         for struct option.
84168
84169         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84170         need to extend the stack.
84171         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84172         large.
84173
84174 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84175
84176         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84177
84178 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84179
84180         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84181         (2004-10-24) change.  Apparently this was a false alarm.
84182
84183         * modules/getdate: Depend on alloca-opt, not alloca.
84184
84185 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84186
84187         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84188         Remove now-obsolete comment about AIX.
84189         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84190         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84191         (YYMAXDEPTH): New macro.
84192
84193 2004-12-18  Simon Josefsson  <jas@extundo.com>
84194
84195         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84196
84197 2004-12-18  Bruno Haible  <bruno@clisp.org>
84198
84199         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84200
84201 2004-12-18  Bruno Haible  <bruno@clisp.org>
84202
84203         * lib/fatal-signal.c (fatal_signals): Make non-const.
84204         (init_fatal_signals): New function.
84205         (uninstall_handlers, install_handlers): Ignore signals that were set to
84206         SIG_IGN.
84207         (at_fatal_signal): Call init_fatal_signals.
84208         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84209         SIG_IGN.
84210         Reported by Paul Eggert.
84211
84212 2004-12-18  Bruno Haible  <bruno@clisp.org>
84213
84214         * doc/alloca.texi: New file.
84215         * doc/alloca-opt.texi: New file.
84216
84217 2004-12-17  Jim Meyering  <jim@meyering.net>
84218
84219         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84220         Otherwise, install-sh could exit with improper exit status when
84221         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84222
84223 2004-12-16  Simon Josefsson  <jas@extundo.com>
84224
84225         * tests/test-base64.c: Add license.
84226
84227 2004-12-15  Stepan Kasal  <address@hidden>
84228
84229         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84230
84231 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84232
84233         * modules/getcwd (Files): Add m4/d-ino.m4.
84234         Suggested by Mark D. Baushke.
84235
84236 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84237
84238         * lib/getdate.y (textint): New member "negative".
84239         (time_zone_hhmm): New function.
84240         Expect 14 shift-reduce conflicts, not 13.
84241         (o_colon_minutes): New rule.
84242         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84243         (yylex): Set the "negative" member of signed numbers.
84244
84245 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84246
84247         * doc/getdate.texi (Time of day items, Time zone items):
84248         Describe new formats +00:00, UTC+00:00.
84249
84250 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84251
84252         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84253         spurious "-l"s.  Problem reported by Stepan Kasal.
84254
84255 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84256
84257         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84258         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84259
84260 2004-12-04  Simon Josefsson  <jas@extundo.com>
84261
84262         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84263         Vandoorselaere <yoann@prelude-ids.org>.
84264
84265 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84266
84267         Changes imported from coreutils.
84268         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84269         exist.
84270         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84271
84272 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84273
84274         Changes imported from coreutils.
84275         * lib/hard-locale.c: Assume <locale.h> exists.
84276         Include "strdup.h".
84277         (GLIBC_VERSION): New macro.
84278         (hard_locale): Assume setlocale exists.
84279         Rewrite to avoid #ifdef.
84280         Use strdup rather than malloc + strcpy.
84281         * lib/human.c: Assume <locale.h> exists.
84282         (human_readable): Assume localeconv exists.
84283
84284 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84285
84286         * modules/hard-locale (Depends-on): Add strdup.
84287
84288 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84289
84290         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84291         convert T2, not T.  (Imported from libc.)
84292
84293 2004-11-30  Simon Josefsson  <jas@extundo.com>
84294
84295         * modules/restrict (License): Change to LGPL.
84296
84297 2004-11-30  Simon Josefsson  <jas@extundo.com>
84298
84299         * m4/restrict.m4: Add copyright and copying conditions.
84300
84301 2004-11-30  Simon Josefsson  <jas@extundo.com>
84302
84303         * m4/base64.m4: New file.
84304
84305 2004-11-30  Simon Josefsson  <jas@extundo.com>
84306
84307         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84308         base64.
84309
84310         * tests/test-base64.c: New file.
84311
84312         * modules/base64: New file.
84313
84314 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84315
84316         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84317         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84318
84319         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84320
84321 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84324         (__getcwd.c): Don't restore errno; glibc doesn't.
84325         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84326         first, falling back to our code only if its results look suspicious.
84327         Ensure that the resulting buffer is only as large as necessary.
84328
84329         * lib/readutmp.c: Include readutmp.h first.
84330         Include <errno.h>, since readutmp.h no longer does that.
84331         * lib/readutmp.h: Don't include <errno.h>,
84332         <sys/param.h>, <time.h>; not needed to establish interface.
84333         (errno): Remove decl.
84334         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84335         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84336         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84337
84338 2004-11-28  Simon Josefsson  <jas@extundo.com>
84339
84340         * lib/base64.h, base64.c: New file.
84341
84342 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84343
84344         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84345
84346 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84347
84348         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84349         (Depends-on): Remove pathmax, same.  Add mempcpy.
84350         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84351         (Makefile.am): Append getcwd.h to lib_SOURCES.
84352         (Include): Add getcwd.h.
84353         (Maintainer): Change from Jim Meyering to "all, glibc",
84354         since getdate now uses intended-for-glibc code.
84355         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84356         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84357
84358 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84359
84360         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84361         HP's ANSI C compiler.
84362         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84363         Declaring int functions causes warnings on some modern systems and
84364         shouldn't be needed to compile on ancient ones.
84365         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84366         defined.
84367
84368         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84369         with the following changes.
84370         (__set_errno): Parenthesize properly.
84371         Include <stdbool.h>.
84372         (MIN, MAX, MATCHING_INO): New macros.
84373         (__getcwd): Define with prototype, not K&R form.
84374         Use heuristics to allocate default buffer on stack if possible.
84375         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84376         behavior, and to avoid the PATH_MAX limit when computing
84377         ../../../../...
84378         Use MATCHING_INO to compare inode number to file.
84379         Check for arithmetic overflow in size calculations.
84380         Fix bug in reallocation of dot array that caused getcwd to fail
84381         on directories nested deeper than 75.
84382         Be more careful about saving errno on error.
84383         Do not use realloc; use only free+malloc, as this is a bit
84384         more flexible and avoids a needless copy operation.
84385         Do not inspect st_dev and st_ino for symbolic links; POSIX
84386         doesn't specify the latter.
84387         Check for closedir errors.
84388         Avoid needless casts.
84389         Use "#ifdef weak_alias" around weak_alias, to be like other
84390         glibc code.
84391         The following changes to getcwd.c have effect only when used in
84392         gnulib; they have no effect inside glibc proper.
84393         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84394         as alloca isn't used.
84395         (alloca, __alloca): Likewise.
84396         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84397         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84398         unconditionally, as gnulib assumes C89 or better.
84399         Do not include <sys/param.h>.
84400         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84401         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84402         better.
84403         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84404         Include <dirent.h> in a way that is compatible with modern Autoconf.
84405         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84406         New macros, if not already defined.
84407         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84408         Use "_LIBC", not "defined _LIBC", for consistency.
84409         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84410         a mempcpy module.
84411         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84412         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84413         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84414         credit only to Jim Meyering and adjust the copyright dates.
84415         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84416         <stdlib.h>, <unistd.h>, "pathmax.h".
84417         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84418         (INITIAL_BUFFER_SIZE): Remove.
84419         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84420
84421 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84422
84423         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84424         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84425         Use the _ONCE methods, for efficiency.
84426         Check for fcntl.h.  In test program, include <errno.h>
84427         and <fcntl.h> if available.  Remove old K&R cruft from
84428         test program.  Check for common errors in GNU/Linux,
84429         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84430         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84431         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84432         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84433         name accordingly.
84434         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84435         accommodate new getcwd.c.
84436         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84437         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84438         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84439         that's all we need now.
84440
84441 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84442
84443         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84444         argp-parse.c depends on getopt internals, that means we should
84445         always use our getopt, to be on the safe side.
84446         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84447         order not to spoil the result of an eventual previous invocation
84448         of gl_GETOPT_SUBSTITUTE.
84449
84450 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84451
84452         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84453         redefinition warnings. To avoid them, include the defines
84454         in `#if !defined __need_getopt ... #endif'. The only place
84455         where __getopt_argv_const is used is in definitions
84456         of getopt_long and getopt_long_only below, which are as well
84457         protected by `#ifndef __need_getopt'.
84458         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84459         __need_getopt after including <stdio.h> and <unistd.h> These
84460         headers might have defined it.
84461
84462 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84463
84464         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84465
84466 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84467
84468         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84469         (futimens): New function, which uses futimes if available.
84470         (futimens, utimens): Support timespec==NULL, with same semantics
84471         as utime and utimens.
84472         * lib/utimens.h (futimens): New decl.
84473
84474 2004-11-23  Jim Meyering  <jim@meyering.net>
84475
84476         * lib/getopt_.h: Remove trailing blanks.
84477
84478 2004-11-23  Jim Meyering  <jim@meyering.net>
84479
84480         * lib/__fpending.c: Add comment.
84481
84482 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84483
84484         * modules/canonicalize (Depends-on): Add xreadlink.
84485         Problem reported by James Youngman.
84486
84487 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84488
84489         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84490         New macros.
84491         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84492         optopt): Use them instead of invoking ## directly; otherwise, the
84493         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84494
84495 2004-11-19  Bruno Haible  <bruno@clisp.org>
84496
84497         * lib/strtok_r.c: Move comments from here...
84498         * lib/strtok_r.h: ... to here.
84499
84500 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84501
84502         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84503         implementations that mishandle size_t overflow.
84504
84505 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84508         might fail.  Problem reported by Yoann Vandoorselaere.
84509         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84510         implementations that mishandle size_t overflow.
84511
84512 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84513
84514         * modules/canon-host (Depends-on): Add strdup.
84515
84516 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84517
84518         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84519
84520 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84521
84522         * lib/canon-host.c: Include "strdup.h".
84523         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84524         Use strdup instead of malloc/strcpy to duplicate strings.
84525
84526         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84527         (human_space_before_unit): New constant.
84528         * lib/human.c (human_readable): Support it.
84529
84530         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84531         (xgetcwd): Set errno correctly when failing.
84532         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84533         the failure is actually due to a PATH_MAX problem.
84534
84535         Further getopt changes to make it more likely that glibc will
84536         buy the changes back.
84537         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84538         (getopt): Use it, so to preserve glibc semantic
84539         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84540         when compiling for libc.
84541         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84542         (getopt_long, getopt_long_only): Use it.
84543
84544         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84545         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84546         (getopt): Argv is now char * const *, as per standard.
84547         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84548         not char *__getopt_argv_const *.
84549         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84550         _getopt_long_only_r): Likewise.
84551         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84552         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84553         _getopt_long_r, _getopt_long_only_r): Likewise.
84554         * lib/getopt_.h (__getopt_argv_const): Remove.
84555         (getopt): Argv is now char * const *, as per standard.
84556
84557         * lib/getdate.y (tORDINAL): New token.
84558         (day, relunit): Allow it for relative times.
84559         (relative_time_table): Use tORDINAL for ordinals.
84560
84561 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84562
84563         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84564         Document that "second" isn't allowed as an ordinal number.
84565
84566 2004-11-16  Jim Meyering  <jim@meyering.net>
84567
84568         * modules/closeout (Depends-on): Add fpending.
84569
84570 2004-11-15  Jim Meyering  <jim@meyering.net>
84571
84572         * lib/closeout.c: Include "__fpending.h" once again.
84573         Include <stdbool.h>.
84574         (close_stdout): Don't fail just because stdout was closed initially,
84575         since some programs don't write to stdout in the normal course of
84576         operation (other than --version and --help), and we don't want this
84577         function to make e.g. `touch file >&-' fail.
84578         But do fail if it was closed and someone has tried to write to it.
84579         E.g., `printf foo >&-' must fail.
84580
84581 2004-11-13  Jim Meyering  <jim@meyering.net>
84582
84583         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84584
84585 2004-11-12  Simon Josefsson  <jas@extundo.com>
84586
84587         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84588         small doc fix is still pending.
84589
84590 2004-11-11  Simon Josefsson  <jas@extundo.com>
84591
84592         * modules/strtok_r: New file.
84593
84594         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84595         strtok_r.
84596
84597 2004-11-11  Simon Josefsson  <jas@extundo.com>
84598
84599         * m4/strtok_r.m4: New file.
84600
84601         * m4/getopt.m4: Replace opterr.
84602
84603 2004-11-11  Simon Josefsson  <jas@extundo.com>
84604
84605         * lib/strtok_r.h, strtok_r.c: New file.
84606
84607 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84608
84609         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84610         of replacing opterr, getopt, etc.  This should handle the
84611         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84612
84613 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84614
84615         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84616         we can stop lying to compilers about the constness of argv when we
84617         are compiled outside glibc.
84618         (getopt, getopt_long, getopt_long_only): Use it.
84619         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84620         _getopt_internal, getopt): Likewise.
84621         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84622         _getopt_long_only_r): Likewise.
84623         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84624         _getopt_long_r, _getopt_long_only_r): Likewise.
84625
84626         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84627         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84628         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84629         the other external symbols.
84630         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84631         declaration, since the above renaming now works around collisions.
84632
84633 2004-11-11  Jim Meyering  <jim@meyering.net>
84634
84635         * lib/linebreak.c: Remove trailing blanks.
84636         * lib/alloca_.h: Likewise.
84637         * lib/acosl.c: Likewise.
84638         * lib/euidaccess.c: Likewise.
84639         * lib/allocsa.h: Likewise.
84640
84641 2004-11-10  Simon Josefsson  <jas@extundo.com>
84642
84643         * m4/getaddrinfo.m4: New file.
84644
84645 2004-11-10  Simon Josefsson  <jas@extundo.com>
84646
84647         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84648
84649 2004-11-10  Simon Josefsson  <jas@extundo.com>
84650
84651         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84652         getaddrinfo.
84653
84654         * modules/getaddrinfo: New file.
84655
84656 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84657
84658         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84659
84660 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84661
84662         * lib/mktime.c (SHR): New macro, which is a portable
84663         substitute for >> that should work even on Crays.
84664         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84665         Problem reported by Mark D. Baushke in
84666         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84667         * lib/getdate.y (SHR): Likewise.
84668         (tm_diff): Use it.
84669         * lib/strftime.c (SHR): Likewise.
84670         (tm_diff): Use it.
84671         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84672         quote_these_too, so that right shifts are well defined.  All uses
84673         changed.
84674
84675 2004-11-10  Jim Meyering  <jim@meyering.net>
84676
84677         Ensure that no close failure goes unreported.
84678         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84679         return early when it seems there's nothing to flush.
84680         Don't include __fpending.h.
84681
84682 2004-11-10  Jim Meyering  <jim@meyering.net>
84683
84684         * modules/closeout (Depends-on): Remove fpending.
84685
84686 2004-11-10  Jim Meyering  <jim@meyering.net>
84687
84688         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84689
84690 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84691
84692         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84693         gl_FUNC_STRFTIME.
84694         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84695         and AC_REQUIRE when possible, to avoid duplicate checks.
84696         Check for <wchar.h>.
84697
84698 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84699
84700         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84701
84702 2004-11-09  Bruno Haible  <bruno@clisp.org>
84703
84704         * m4/sockpfaf.m4: New file.
84705
84706 2004-11-05  Bruno Haible  <bruno@clisp.org>
84707
84708         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84709         Reported by Mark D. Baushke <mdb@cvshome.org>.
84710
84711 2004-11-04  Bruno Haible  <bruno@clisp.org>
84712
84713         2004-09-11  Bruno Haible  <bruno@clisp.org>
84714                 * allocsa.valgrind: New file.
84715         2004-02-06  Bruno Haible  <bruno@clisp.org>
84716                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84717                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84718                 Reported by Christopher Seip <chris.seip@hp.com>.
84719
84720 2004-11-04  Bruno Haible  <bruno@clisp.org>
84721
84722         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84723         (Makefile.am): Distribute it.
84724
84725 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84726
84727         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84728         with errno == ERANGE if the buffer is too small.
84729         Problem reported by Mark D. Baushke.
84730
84731 2004-11-03  Albert Chin  <china@thewrittenword.com>
84732             Paul Eggert  <eggert@cs.ucla.edu>
84733
84734         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84735         equivalent, substitute $ac_type for equivalent type rather than
84736         blindly using uint32_t *always* which won't work if uint32_t is not
84737         available.  Define _UINT32_T to work around typedef of uint32_t if
84738         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84739         2.5.1.
84740
84741 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84742
84743         * m4/jm-macros.m4: Sync from coreutils.
84744         (gl_MACROS): Check for mbrlen, for pathchk.
84745         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84746
84747 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84748
84749         * lib/xreadlink.c (MAXSIZE): New macro.
84750         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84751         size does not exceed MAXSIZE.  Avoid cast.
84752         As suggested by Mark D. Baushke in
84753         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84754         if readlink fails with buffer size just under MAXSIZE, try again
84755         with MAXSIZE.
84756
84757 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84758
84759         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84760
84761 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84762         and  Paul Eggert  <eggert@cs.ucla.edu>
84763
84764         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84765         (get_date): Overparenthesize to avoid GCC warning.
84766
84767 2004-11-02  Bruno Haible  <bruno@clisp.org>
84768
84769         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84770         returns void.
84771
84772 2004-11-02  Bruno Haible  <bruno@clisp.org>
84773
84774         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84775         function returns void.
84776
84777 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84778
84779         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84780         fflush_unlocked, flockfile, funlockfile, funlockfile,
84781         fputs_unlocked, putc_unlocked.
84782
84783 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84784
84785         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84786         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84787         already declared.
84788
84789 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84790
84791         * modules/getdate (Files): Add doc/getdate.texi.
84792         (Depends-on): Add setenv, xalloc.
84793
84794 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84795
84796         * lib/getdate.y: Add support for TZ="foo" within a date string.
84797         Fix some bugs near time_t boundaries.  Reject dates with
84798         out-of-range components, e.g., "Sept 31".
84799         Include <stdlib.h>, "setenv.h", "xalloc.h".
84800         (ISDIGIT_LOCALE): Remove; unused.
84801         Note that the TZ and time functions used here are not reentrant.
84802         (mktime_ok, get_tz): New functions.
84803         (TZBUFSIZE): New constant.
84804         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84805         This requires that we sometimes generate our own TZ="XXX..." setting.
84806
84807 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84808
84809         * doc/getdate.texi: New file, from coreutils with modifications for
84810         the new TZ parsing.
84811
84812 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84813
84814         * lib/mktime.c (not_equal_tm): Remove redundant check.
84815
84816 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84817
84818         * modules/regex (lib_SOURCES): Add regex.c.
84819         Reported by James Youngman in
84820         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84821
84822 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84823
84824         * lib/getdate.y: Use Bison 1.875 features, and some minor
84825         code cleanups.  This change does not affect semantics.
84826         Don't include <stdlib.h>; no longer needed.
84827         Don't include unlocked-io.h; only the "#if TEST" code uses
84828         stdio, and performance isn't crucial there.
84829         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84830         Bison 1.875 features as described below.
84831         All uses of "PC." replaced by "pc->".
84832         (YYSTYPE): Add a forward declaration.
84833         (yylex, yyerror): Use full prototypes in forward decls.
84834         Use "%pure-parser" rather than obsolescent "%pure_parser".
84835         Use %parse-param and %lex-param instead of obsolescent
84836         YYPARSE_PARAM and YYLEX_PARAM.
84837         (meridian_table, month_and_day_table, time_units_table,
84838         relative_time_table, time_zone_table, military_table,
84839         lookup_zone, lookup_word, get_date):
84840         Use NULL instead of 0 where appropriate.
84841         (to_hour): Avoid abort (), to avoid a dependency on
84842         stdlib.h.
84843         (yyerror, yylex): Now accepts parser_control * arg.
84844         (main) [TEST]: Use '\0' rather than 0 for char.
84845
84846 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84847
84848         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84849
84850 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84853         It's now the caller's responsibility to handle the case where
84854         !HAVE_GETPAGESIZE && !defined getpagesize.
84855
84856         * lib/mktime.c (leapyear): Arg is long int, not int.
84857
84858 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84859
84860         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84861
84862 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84863
84864         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84865         missing.  Problem reported by James Youngman.
84866
84867 2004-10-16  Simon Josefsson  <jas@extundo.com>
84868
84869         * gnulib-tool: Fix comments.  Fix parse problem.
84870         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84871
84872 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84875         implementation of getopt_long.  Problem reported by Alexander Taler in:
84876         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84877
84878 2004-10-15  Bruno Haible  <bruno@clisp.org>
84879
84880         * gnulib-tool: Untabify. Initialize supplied_libname.
84881         (func_usage): More homogenous output.
84882         (func_modules_transitive_closure, func_modules_to_filelist,
84883         func_emit_lib_Makefile_am): New functions.
84884         (func_import): New function, extracted from big case statement. Use
84885         func_get_license, func_modules_transitive_closure,
84886         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84887         opt_lgpl. Don't use test -a, as it's not portable.
84888         (func_create_testdir): Use func_modules_transitive_closure,
84889         func_modules_to_filelist, func_emit_lib_Makefile_am.
84890
84891 2004-10-15  Bruno Haible  <bruno@clisp.org>
84892
84893         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84894
84895 2004-10-15  Bruno Haible  <bruno@clisp.org>
84896
84897         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84898         the portions belonging to each module.
84899         Suggested by Derek Robert Price <derek@ximbiot.com>.
84900
84901 2004-10-12  Simon Josefsson  <jas@extundo.com>
84902
84903         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84904         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84905         to real functions.
84906
84907 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84908
84909         * modules/vsnprintf: New file.
84910
84911 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84912
84913         * m4/vsnprintf.m4: New file.
84914
84915 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84916
84917         * lib/vsnprintf.h: New file.
84918         * lib/vsnprintf.c: New file.
84919
84920 2004-10-11  Bruno Haible  <bruno@clisp.org>
84921
84922         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84923         vsnprintf.
84924
84925 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84926
84927         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84928
84929 2004-10-07  Bruno Haible  <bruno@clisp.org>
84930
84931         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84932         fits into the provided buffer.
84933
84934 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84935
84936         * lib/diacrit.c, diacrit.h: Add GPL notice.
84937
84938         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84939         notice.
84940         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84941         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84942         This avoids a potential constant-folding bug.
84943
84944 2004-10-05  Bruno Haible  <bruno@clisp.org>
84945
84946         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84947         for the declaration of strsep.
84948
84949 2004-10-05  Bruno Haible  <bruno@clisp.org>
84950
84951         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84952
84953 2004-10-04  Simon Josefsson  <jas@extundo.com>
84954
84955         * modules/memmem: New file.
84956         * tests/test-memmem.c: New file.
84957         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84958
84959 2004-10-04  Simon Josefsson  <jas@extundo.com>
84960
84961         * m4/memmem.m4: New file.
84962
84963 2004-10-04  Simon Josefsson  <jas@extundo.com>
84964
84965         * lib/memmem.h: New file.
84966         * lib/memmem.c: New file, taken from glibc.
84967
84968 2004-10-04  Simon Josefsson  <jas@extundo.com>
84969
84970         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84971         '#ifdef USE_UNLOCKED_IO'.
84972
84973 2004-10-04  Simon Josefsson  <jas@extundo.com>
84974
84975         * config/srclist.txt: Add memmem from glibc.
84976
84977 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84978
84979         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84980
84981         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84982         modules/exclude, modules/getdate, modules/getline,
84983         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84984         modules/getusershell, modules/linebuffer, modules/md5,
84985         modules/mountlist, modules/posixtm, modules/readtokens,
84986         modules/readutmp, modules/regex, modules/sha1,
84987         modules/version-etc, modules/yesno:
84988         Remove dependency on unlocked-io.
84989
84990 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84991
84992         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84993
84994         * m4/unlocked-io.m4: Add copyright notice.
84995         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84996
84997 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84998
84999         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85000         * lib/xmalloc.c (xmemdup): Likewise.
85001         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85002         XFREE): Remove these long-obsolescent macros.
85003         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85004         * lib/xstrdup.c: Remove.
85005
85006         * lib/regex.c (re_comp): Cast gettext return value to char *,
85007         Problem reported by Martin Neitzel via Mark D. Baushke.
85008
85009 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85012         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85013         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85014         regex.c, sha1.c, version-etc.c, yesno.c:
85015         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85016         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85017         the includer's responsibility.
85018
85019         Sync from coreutils.
85020
85021         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85022         points to the start of a string, as the C Standard says the
85023         resulting behavior is undefined.
85024
85025         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85026         simple -> simple_backups, numbered_existing ->
85027         numbered_existing_backups, numbered -> numbered_backups
85028         to avoid shadowing problems.  All uses changed.
85029         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85030         * lib/backupfile.c (check_extension, numbered_backup):
85031         Rename locals to avoid shadowing 'basename'.
85032         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85033         once.
85034
85035         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85036         * lib/.cvsignore: Add getopt.h.
85037
85038 2004-10-04  Bruno Haible  <bruno@clisp.org>
85039
85040         * modules/README: New file.
85041         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85042         not a module.
85043
85044 2004-10-02  Jim Meyering  <jim@meyering.net>
85045
85046         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85047
85048 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85049
85050         * modules/strsep: New file.
85051
85052 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85053
85054         * m4/strsep.m4: New file.
85055
85056 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85057
85058         * lib/strsep.h: New file.
85059         * lib/strsep.c: New file.
85060
85061 2004-10-01  Simon Josefsson  <jas@extundo.com>
85062
85063         * lib/snprintf.c (snprintf): Handle size==0.
85064
85065 2004-10-01  Simon Josefsson  <jas@extundo.com>
85066             Bruno Haible  <bruno@clisp.org>
85067
85068         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85069         (snprintf): Declare 'args'.
85070
85071 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85072
85073         * lib/snprintf.c: Remove comments as to why each header is needed.
85074
85075 2004-10-01  Bruno Haible  <bruno@clisp.org>
85076
85077         * MODULES.html.sh: Add strsep.
85078
85079 2004-09-30  Simon Josefsson  <jas@extundo.com>
85080
85081         * modules/snprintf: New file.
85082
85083 2004-09-30  Simon Josefsson  <jas@extundo.com>
85084
85085         * m4/snprintf.m4: New file.
85086
85087 2004-09-30  Simon Josefsson  <jas@extundo.com>
85088
85089         * lib/snprintf.h, lib/snprintf.c: New files.
85090
85091 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85092
85093         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85094         (hol_entry_help): Never translate an empty string.
85095         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85096         * lib/argp.h (OPTION_NO_TRANS): New option.
85097
85098 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85099
85100         * modules/argp (Maintainer): Replace Simon Josefsson
85101         by Sergey Poznyakoff.
85102
85103 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85104
85105         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85106         changes merged back into glibc.
85107
85108 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85109
85110         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85111
85112 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85113
85114         * lib/xvasprintf.c: Include xalloc.h.
85115         (xvasprintf): Use xalloc_die, not xmalloc_die.
85116
85117 2004-09-29  Bruno Haible  <bruno@clisp.org>
85118
85119         * modules/alloca-opt: New file, derived from modules/alloca.
85120         * modules/allocsa: Depend on alloca-opt instead of alloca.
85121         * modules/setenv: Likewise.
85122         * modules/vasnprintf: Likewise.
85123         * MODULES.html.sh: Add alloca-opt.
85124
85125 2004-09-28  Simon Josefsson  <jas@extundo.com>
85126
85127         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85128         LGPL, and to replace license template from GPL to LGPL.
85129
85130 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85131
85132         * modules/dummy: Change license to LGPL.
85133
85134 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85135
85136         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85137
85138 2004-09-24  Simon Josefsson  <jas@extundo.com>
85139
85140         * modules/minmax (License): Change from GPL to LGPL.
85141
85142 2004-09-23  Simon Josefsson  <jas@extundo.com>
85143
85144         * gnulib-tool (--import): Typo.
85145
85146 2004-09-23  Simon Josefsson  <jas@extundo.com>
85147
85148         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85149
85150 2004-09-22  Bruno Haible  <bruno@clisp.org>
85151
85152         * modules/*: Add 'License' field.
85153         * gnulib-tool: Accept --extract-license option.
85154         (func_get_license): New function.
85155
85156 2004-09-21  Bruno Haible  <bruno@clisp.org>
85157
85158         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85159         Reported by Simon Josefsson.
85160
85161 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85162
85163         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85164         gl_AC_TYPE_LONG_LONG.
85165
85166 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85167
85168         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85169
85170 2004-09-18  Simon Josefsson  <jas@extundo.com>
85171         and  Paul Eggert  <eggert@cs.ucla.edu>
85172
85173         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85174         calls with autoreconf.  Define GL_LIB.
85175
85176 2004-09-14  Karl Berry  <karl@gnu.org>
85177
85178         * config/srclist.txt: unsync setenv.c, sigh.
85179
85180 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85181
85182         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85183         Problem reported by Bruno Haible in:
85184         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85185
85186 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85187
85188         * config/srclist.txt: Comment out argp-pvh.c.
85189
85190 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85191
85192         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85193         in case some system header has #define'd it.  Problem reported by
85194         Soeren D. Schulze in
85195         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85196
85197 2004-09-09  Karl Berry  <karl@gnu.org>
85198
85199         * regex.[ch]: delete from the root.  These were supposed to be
85200                 synced with emacs cvs, but this has not happened for about
85201                 a year, and anyway nothing else uses emacs regex.[ch].
85202                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85203                 lib/regex[.ch] is untouched.
85204
85205 2004-09-09  Bruno Haible  <bruno@clisp.org>
85206
85207         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85208
85209 2004-09-09  Bruno Haible  <bruno@clisp.org>
85210
85211         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85212         modifications.
85213         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85214
85215 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85216
85217         * modules/xvasprintf: New file.
85218         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85219
85220 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85221
85222         * lib/xvasprintf.h: New file.
85223         * lib/xvasprintf.c: New file.
85224         * lib/xasprintf.c: New file.
85225
85226 2004-09-08  Bruno Haible  <bruno@clisp.org>
85227
85228         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85229
85230 2004-09-08  Bruno Haible  <bruno@clisp.org>
85231
85232         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85233         length is > INT_MAX.
85234         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85235         more.
85236
85237 2004-09-08  Bruno Haible  <bruno@clisp.org>
85238
85239         * lib/stdint_.h: New file, taken from GNU clisp.
85240
85241 2004-09-08  Bruno Haible  <bruno@clisp.org>
85242             Oskar Liljeblad  <oskar@osk.mine.nu>
85243
85244         * modules/stdint: New file.
85245         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85246
85247 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85248
85249         Import from coreutils.
85250         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85251         strings on unbounded length.  alloca's performance benefits aren't
85252         that important here.
85253         (V_STRDUP): Remove.
85254         (parse_with_separator): New function, with most of the internals
85255         of the old parse_user_spec.  Allow user to omit both user and group,
85256         for compatibility with FreeBSD.
85257         Clone only the user name, not the entire spec.
85258         Do not set *uid, *gid unless entirely successful.
85259         Avoid memory leak in some failing cases.
85260         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85261         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85262         (parse_user_spec): Rewrite to use parse_with_separator.
85263
85264 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85265
85266         * modules/userspec: Don't depend on alloca.
85267
85268 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85269
85270         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85271
85272 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85273
85274         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85275         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85276         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85277
85278 2004-08-16  Simon Josefsson  <jas@extundo.com>
85279
85280         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85281         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85282         Add --dry-run for --import.
85283         Let user provided command line parameters override configure.ac
85284         settings.
85285
85286 2004-08-12  Simon Josefsson  <jas@extundo.com>
85287
85288         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85289         as discussed with Paul Eggert in threads rooted at
85290         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85291         and
85292         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85293         Before, the test was empty, and relied on ELIDE_CODE in source
85294         code.)
85295         (gl_PREREQ_GETOPT): New macro.
85296         (gl_GETOPT): Use them.
85297
85298 2004-08-12  Simon Josefsson  <jas@extundo.com>
85299
85300         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85301         * lib/getopt_.h: Renamed from getopt.h.
85302
85303 2004-08-12  Simon Josefsson  <jas@extundo.com>
85304
85305         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85306         Change default library name from libfoo to libgnu.
85307         Now, if you have a configure.ac that says:
85308                 gl_SOURCE_BASE(gl)
85309                 gl_M4_BASE(gl/m4)
85310                 gl_MODULES(error getopt etcetera)
85311                 gl_INIT
85312         you can import all you need by running:
85313                 ../gnulib/gnulib-tool --import
85314
85315         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85316         (Makefile.am): Rewrite, use logic from argz.
85317         (Include): Use <getopt.h> instead of "getopt.h".
85318
85319 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85320
85321         * modules/argp (Files): Add m4/unlocked-io.m4.
85322         (Depends-on): Add extensions.
85323
85324 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85327         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85328         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85329         Check for program_invocation_name, program_invocation_short_name,
85330         flockfile, funlockfile, features.h, _getopt_long_only_r.
85331
85332 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85333
85334         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85335         its complicated substitute.
85336         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85337         and program_invocation_name.
85338         (__argp_basename) [!_LIBC]: Remove; the only use was
85339         replaced by its body.
85340         (__argp_short_program_name): Change condition from
85341         !defined __argp_short_program_name to
85342         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85343         to match argp-namefrob.h.
85344         (__argp_failure): Don't assume strerror_r returns char *.
85345         * lib/argp-parse.c (N_): Define unconditionally.
85346         (argp_default_options): Fill out initializers with 0 to avoid
85347         gcc warnings.
85348
85349 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85350
85351         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85352         getopt1.c.
85353
85354 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85355
85356         Merge from coreutils.
85357
85358         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85359
85360         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85361         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85362
85363 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         Merge from coreutils.
85366
85367         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85368         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85369         for Reliant Unix 5.43.
85370
85371         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85372         (union fooround): Use uintmax_t, not long int.
85373         The rest is a merge from libc:
85374         [defined _LIBC]: Include <shlib-compat.h>.
85375         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85376
85377         * lib/settime.c (settime): Recode to avoid warning with
85378         Sun Forte C 6U2.
85379
85380         * lib/strverscmp.c: Convert to UTF-8.
85381
85382 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85383
85384         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85385         m4/uintmax_t.m4.
85386
85387 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85388
85389         * modules/xalloc-die: New file.
85390         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85391
85392         * modules/md5 (Files): Add m4/uint32_t.m4.
85393         * modules/sha1: Renamed from modules/sha.
85394         (Files):
85395         Rename lib/sha.h to lib/sha1.h.
85396         Rename lib/sha.c to lib/sha1.c.
85397         Rename m4/sha.m4 to m4/sha1.m4.
85398         (lib_SOURCES): Likewise.
85399         (configure.ac): Rename gl_SHA to gl_SHA1.
85400         (Include): sha.h -> sha1.h.
85401
85402 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85403
85404         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85405         * m4/sha1.m4: Renamed from sha.m4.
85406         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85407
85408 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         * lib/obstack.h (obstack_empty_p):
85411         Don't assume that chunk->contents is suitably aligned.
85412         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85413         Likewise. Problem reported by Benno in
85414         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85415
85416         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85417         readable.  This could be improved further but it'd take some work.
85418
85419 2004-08-08  Simon Josefsson  <jas@extundo.com>
85420
85421         * modules/xgethostname (Depends-on): Remove exit and error (not
85422         used).
85423
85424         * modules/getpass-gnu: Add getpass.h.
85425         (Depends-on): Add stdbool.
85426         * modules/getpass: Add getpass.h.
85427
85428 2004-08-08  Simon Josefsson  <jas@extundo.com>
85429
85430         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85431         Check getpass declaration.
85432
85433 2004-08-08  Simon Josefsson  <jas@extundo.com>
85434
85435         * lib/xgethostname.c: Don't include error.h (not used).
85436
85437         * lib/getpass.h: Add.
85438         * lib/getpass.c: Include getpass.h first.
85439
85440 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85441
85442         * lib/xalloc-die.c: New file.
85443         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85444         All uses removed.
85445         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85446         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85447         xalloc-die.c.
85448         (_, N_, xalloc_die): Move to xalloc-die.c.
85449         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85450         so that we needn't mess with xalloc_msg_memory_exhausted.
85451
85452         * lib/sha1.h: Renamed from sha.h.
85453         (SHA1_H): Renamed from _SHA_H.
85454         (sha1_ctx): Renamed from sha_ctx.
85455         (sha1_init_ctx): Renamed from sha_init_ctx.
85456         (sha1_process_block): Renamed from sha_process_block.
85457         (sha1_process_bytes): Renamed from sha_process_bytes.
85458         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85459         (sha1_read_ctx): Renamed from sha_read_ctx.
85460         (sha1_stream): Renamed from sha_stream.
85461         (sha1_buffer): Renamed from sha_buffer.
85462         * lib/sha1.c: Likewise; renamed from sha.c.
85463         Do not include <sys/types.h>.
85464         Include <stddef.h> rather than <stdlib.h>.
85465
85466 2004-08-08  Bruno Haible  <bruno@clisp.org>
85467
85468         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85469         FILESYSTEM_PREFIX_LEN.
85470         * lib/progreloc.c: Likewise.
85471         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85472
85473 2004-08-06  Simon Josefsson  <jas@extundo.com>
85474
85475         * modules/progname (Depends-on): Don't depend on stdbool.
85476
85477 2004-08-06  Simon Josefsson  <jas@extundo.com>
85478
85479         * modules/getsubopt: New file.
85480         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85481         getsubopt.
85482
85483 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85484
85485         More merge from coreutils.
85486
85487         * m4/utimens.m4, m4/utimecmp.m4: New files.
85488         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85489         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85490         prereq.m4, sha.m4: Import changes from coreutils.
85491
85492 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85493
85494         More merge from coreutils.
85495         * modules/raise, modules/readtokens0, modules/utimens:
85496         * modules/utimecmp, module/xnanosleep: New files.
85497         * modules/strftime: Add lib/strftime.h.
85498         Change include from <time.h> to "strftime.h".
85499         * modules/yesno: Add lib/yesno.h.
85500         * modules/backupfile: Remove lib/addext.c.
85501         * modules/euidaccess: Add stat-macros.h.
85502         * modules/canonicalize, modules/euidaccess,
85503         modules/filemode, modules/lchown, modules/makepath,
85504         modules/rmdir, modules/stat: Likewise.
85505
85506 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85507
85508         Merge from tar.
85509         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85510         SIZE_MAX is a valid preprocessor constant.
85511         (__argp_basename): Change from "#ifndef _LIBC"
85512         to "#ifndef __argp_short_program_name", so that
85513         we don't compile these functions for tar.
85514
85515         More merges from coreutils.
85516         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85517         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85518         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85519         * lib/addext.c: Remove; no longer needed.
85520         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85521         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85522         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85523         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85524         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85525         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85526         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85527         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85528         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85529         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85530         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85531         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85532         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85533         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85534         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85535         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85536         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85537         Import changes from coreutils.
85538
85539 2004-08-05  Simon Josefsson  <jas@extundo.com>
85540
85541         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85542
85543 2004-08-05  Simon Josefsson  <jas@extundo.com>
85544
85545         * m4/getsubopt.m4: New file.
85546
85547 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85548
85549         Merge from coreutils.
85550
85551         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85552         * m4/getcwd-path-max.m4: New files.
85553
85554         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85555         FILESYSTEM_PREFIX_LEN ->
85556         FILE_SYSTEM_PREFIX_LEN.
85557         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85558         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85559         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85560         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85561
85562         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85563         prerequisite modules now handle the DOS stuff.
85564         Don't check for unistd.h.
85565
85566 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85567
85568         Merge from coreutils.
85569
85570         * lib/.gdb-history: Remove; this doesn't belong here.
85571
85572         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85573         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85574         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85575         * lib/getcwd.c: New files.
85576
85577         * lib/dirname.h: Include <stdbool.h>.
85578         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85579         for consistency with POSIX terminology.  All uses changed.
85580         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85581         (strip_trailing_slashes): Use bool for booleans.
85582         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85583
85584         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85585         sometimes returns a positive errno value even when it succeeds.
85586         (print_errno_message) [!LIBC]: Fall back on strerror if
85587         __strerror_r fails.
85588
85589         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85590         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85591         (longest_relative_suffix): New function.
85592         (path_concat): Use it.  Assume first argument is not NULL.
85593         Port to DOS.  Omit redundant separators.
85594         Report an error instead of returning NULL.
85595         Use mempcpy instead of memcpy.
85596         (xpath_concat): Remove: not declared or used.
85597
85598         * lib/same.h: Include <stdbool.h>
85599         (same_name): Return bool, not int.
85600         * lib/same.c (same_name): Likewise.
85601         (errno): Don't declare; we assume C89 or better now.
85602
85603         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85604         if not already defined.
85605
85606         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85607         * lib/dup-safer.c (errno): Likewise.
85608
85609 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85610
85611         Merge from coreutils.
85612         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85613         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85614         * modules/path-concat: Don't depend on strdup.
85615
85616 2004-08-03  Simon Josefsson  <jas@extundo.com>
85617
85618         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85619         * lib/progname.h: Don't include stdbool.h.
85620
85621 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85622
85623         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85624         * MODULES.html.sh (func_all_modules): Remove fatal.
85625
85626 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85627
85628         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85629
85630 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85631
85632         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85633         working.
85634
85635 2004-08-02  Simon Josefsson  <jas@extundo.com>
85636
85637         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85638         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85639         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85640
85641 2004-08-01  Simon Josefsson  <jas@extundo.com>
85642
85643         * lib/xgetdomainname.c: Include stdlib.h, for free().
85644
85645 2004-07-19  Bruno Haible  <bruno@clisp.org>
85646
85647         * MODULES.html.sh (func_all_modules): Add dummy.
85648
85649 2004-07-16  Simon Josefsson  <jas@extundo.com>
85650
85651         * modules/dummy: New file.
85652
85653 2004-07-16  Simon Josefsson  <jas@extundo.com>
85654
85655         * lib/dummy.c: New file.
85656
85657 2004-07-16  Bruno Haible  <bruno@clisp.org>
85658
85659         * lib/backupfile.h: Add extern "C" for C++.
85660         * lib/closeout.h: Likewise.
85661         * lib/copy-file.h: Likewise.
85662         * lib/findprog.h: Likewise.
85663         * lib/full-write.h: Likewise.
85664         * lib/pathname.h: Likewise.
85665         * lib/progname.h: Likewise.
85666         * lib/stpcpy.h: Likewise.
85667         * lib/stpncpy.h: Likewise.
85668         * lib/strcase.h: Likewise.
85669         * lib/strstr.h: Likewise.
85670         * lib/xalloc.h: Likewise.
85671
85672         * lib/mbswidth.h: Add extern "C" for C++.
85673         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85674
85675 2004-07-13  Robert Millan  <robertmh@gnu.org>
85676
85677         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85678
85679 2004-07-09  Simon Josefsson  <jas@extundo.com>
85680
85681         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85682         failed without this.)
85683
85684 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85685
85686         * modules/chown (Files): Add lib/fchown-stub.c, since
85687         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85688
85689 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85690
85691         * lib/fchown-stub.c: New file.
85692
85693 2004-06-24  Jim Meyering  <jim@meyering.net>
85694
85695         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85696
85697 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85698
85699         * modules/argz: Omit "#include".
85700
85701         * MODULES.html.sh (func_all_modules): Add calloc, to match
85702         2004-06-01 addition of calloc module.
85703
85704 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85705
85706         * m4/argz.m4: New file, which is autoupdated from libtool.
85707
85708 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85709
85710         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85711         libtool.
85712
85713 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85714
85715         * config/srclist-update: Don't insist on "USA." before the
85716         close-comment, as libtool omits the period and puts the */ on a
85717         separate line.
85718         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85719         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85720
85721 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85722
85723         * modules/argz: New file.
85724         * MODULES.html.sh (func_all_modules): Add argz.
85725
85726 2004-06-12  Jim Meyering  <jim@meyering.net>
85727         and  Paul Eggert  <eggert@cs.ucla.edu>
85728
85729         * modules/hash (Files): Add lib/xalloc.h.
85730         * modules/pipe (Depends-on): Add wait-process.
85731         * modules/stat (Depends-on): Add xalloc.
85732         * modules/userspec (Files): Add lib/userspec.h.
85733         * modules/xstrto
85734
85735         Upgrade from gettext-0.13.
85736         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85737         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85738         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85739
85740 2004-06-10  Jim Meyering  <jim@meyering.net>
85741
85742         * lib/calloc.c: New file.
85743
85744 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85745
85746         * lib/getdate.y (yylex): Allow space between sign and number.
85747         Problem reported by Dan Jacobson.
85748
85749 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         Merge from coreutils CVS.
85752
85753         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85754         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85755         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85756         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85757         xstrtol.m4: Fix copyright date and/or serial number.
85758
85759         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85760         See if we need an fchown replacement.
85761         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85762         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85763         and use the replacement function if we detect either defect.
85764
85765         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85766         gl_UTIMECMP.
85767
85768 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85769         and  Jim Meyering  <jim@meyering.net>
85770
85771         Merge from coreutils CVS.
85772
85773         * lib/stat-macros.h: New file, with contents from file-type.h
85774         and coreutils' system.h.
85775         * lib/file-type.c: Include "stat-macros.h".
85776         * lib/file-type.h (file_type): Move all macro definitions to new file,
85777         stat-macros.h.
85778
85779         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85780         Wrap old code with this conditional.
85781         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85782         function that does not dereference symlinks.
85783         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85784
85785         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85786         dependency problems.
85787         (xreadlink): Accept new arg SIZE, for efficiency.
85788         All decls and uses changed.
85789         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85790
85791         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85792         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85793
85794         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85795         sysexits.h.
85796
85797 2004-06-01  Jim Meyering  <jim@meyering.net>
85798
85799         * m4/calloc.m4: New file.
85800
85801 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85802
85803         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85804         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85805         Also, fix a typo in a diagnostic.
85806
85807 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85808
85809         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85810         or AC_FUNC_REALLOC.
85811
85812 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85813
85814         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85815         macros to be defined.
85816         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85817         the allocator returns NULL because the requested size is zero.
85818
85819 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85820
85821         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85822         var.  Add comment explaining why libc still defines it.  This
85823         merges the following patch from glibc:
85824         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85825
85826 2004-05-20  Andreas Schwab  <schwab@suse.de>
85827
85828         * m4/free.m4: Replace free if it not known to work, not the other
85829         way round.
85830
85831 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85832
85833         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85834         present in glibc since revision 1.1 of this file.
85835         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85836         obstack_alignment_mask, obstack_alloc, obstack_base,
85837         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85838         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85839         obstack_grow0, obstack_init, obstack_int_grow,
85840         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85841         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85842         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85843         nonexistent functions.
85844
85845 2004-05-18  Karl Berry  <karl@gnu.org>
85846
85847         * config/srclist.txt: break link for vasnprintf.c.
85848
85849 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85850
85851         Port obstack to the AS/400, where pointers are 16 bytes wide and
85852         you cannot cast an integer to a valid pointer.  This patch is
85853         currently waiting to be integrated into glibc; see
85854         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85855
85856         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85857         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85858         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85859         (struct obstack): temp member is now a union of a pointer and
85860         an integer, instead of an integer.  All integer uses changed.
85861         This does not affect the physical layout of struct obstack,
85862         except on hosts (like the AS/400) where the size or alignment of
85863         void * is greater than that of ptrdiff_t.
85864         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85865         __STDC__)]: Store temporary in pointer member of union, not
85866         integer member.
85867         * lib/obstack.c: Include <stddef.h>, for offsetof.
85868         (struct fooalign): Remove; it doesn't need a name.
85869         (union fooround): Change double to long double, and add void *.
85870         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85871         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85872         not a macro.  Hence the values are always int; so remove all
85873         casts-to-int in uses.
85874
85875 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85876
85877         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85878         we can get this patch merged into glibc.
85879
85880 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85881             Paul Eggert  <eggert@cs.ucla.edu>
85882
85883         * m4/argp: Depend on alloca.
85884
85885 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85886             Paul Eggert  <eggert@cs.ucla.edu>
85887
85888         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85889         freecoding.
85890
85891 2004-05-17  Bruno Haible  <bruno@clisp.org>
85892
85893         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85894         precision that consists of a '.' followed by an empty digit string.
85895         Patch by Tor Lillqvist <tml@iki.fi>.
85896
85897 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85898
85899         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85900         for backward compatibility with older code.  We need our own
85901         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85902         it under some other name, and our alloca.h will define it.
85903
85904 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85905             Derek Price  <derek@ximbiot.com>
85906
85907         * lib/alloca.c: Include <alloca.h>, to get our interface.
85908         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85909         include <alloca.h> first.  Use C89 prototype for alloca; this
85910         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85911         Use #elif for simplicity, since we can assume C89 now.
85912         Don't try to source the system alloca.h since it will not be found
85913         and to prevent recursively including its replacement.
85914         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85915         * lib/regex.c: Likewise.
85916
85917 2004-05-16  Derek Price  <derek@ximbiot.com>
85918             Paul Eggert  <eggert@cs.ucla.edu>
85919
85920         getline cleanup.  This changes the getndelim2 API: both order of
85921         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85922         no delimiter).
85923
85924         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85925         interface does that.
85926         (getline): Always use getdelim, so that we don't have two
85927         copies of this code.
85928         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85929         if available.
85930         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85931         (GETNDELIM2_MAXIMUM): New macro.
85932         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85933         instead of the old practice of delim2==0.  All callers changed.
85934         Return -1 on overflow, instead of returning junk.
85935         Do not set *linesize unless allocation succeeds.
85936         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85937         that we include sys/types.h.
85938         * lib/getnline.h: Likewise.
85939         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85940         (getndelim2): Reorder arguments.
85941         * lib/getnline.c (getnline, getndelim):
85942         Don't discard the NMAX argument.
85943         (getnline): Invoke getndelim, to avoid code duplication.
85944         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85945         of (size_t) -1 by callers of the getnline family.
85946
85947 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85948
85949         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85950         Check for gettimeofday.
85951         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85952         Check for settimeofday, stime.
85953
85954 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85955
85956         * lib/nanosleep.c (suspended): Change its type from int to
85957         sig_atomic_t volatile.
85958         (first_call): Make it private to rpl_nanosleep, and have it
85959         be zero initially as that's a bit faster.
85960         (my_usleep): Round up fractional times instead of truncating them,
85961         as this is the usual meaning for 'sleep'.
85962
85963         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85964         doesn't work.
85965         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85966         (ENOSYS): Define if not defined.
85967         (settime): Fall back on stime if it exists and settimeofday fails.
85968         But don't bother with fallbacks if a method fails with errno == EPERM.
85969
85970 2004-05-11  Jim Meyering  <jim@meyering.net>
85971
85972         Prior to this change, the save_cwd caller required read access to the
85973         current directory on most systems (ones with the fchdir function).
85974
85975         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85976         fails, try write-only, and finally, resort to using xgetcwd.
85977
85978 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         * lib/obstack.c, obstack.h: Import changes from libc.
85981
85982 2004-04-28  Bruno Haible  <bruno@clisp.org>
85983
85984         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85985         also implicitly appends .exe to executables.
85986         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85987         accepts Windows pathnames.
85988         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85989         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85990         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85991         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85992         Reported by Derek Robert Price <derek@ximbiot.com>.
85993
85994 2004-04-21  Karl Berry  <karl@gnu.org>
85995
85996         * config/srclist.txt (localcharset.c): break sync.
85997
85998 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85999
86000         * m4/host-os.m4: Add a copyright notice.
86001
86002 2004-04-20  Jim Meyering  <jim@meyering.net>
86003
86004         Change UTILS_ to gl_ in AC_DEFINE'd names.
86005         Change utils_- and jm_-prefixed variables, too.
86006         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86007         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86008         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86009
86010         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86011         Don't emit trailing blanks.
86012         Also rename jm_-prefixed variables to have gl_ prefix.
86013
86014         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86015         Also rename jm_-prefixed variables to have gl_ prefix.
86016
86017         * m4/jm-macros.m4: Reflect the renamings.
86018         * m4/prereq.m4: Likewise.
86019
86020 2004-04-20  Jim Meyering  <jim@meyering.net>
86021
86022         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86023         memory.
86024
86025 2004-04-20  Jim Meyering  <jim@meyering.net>
86026             Bruno Haible  <bruno@clisp.org>
86027
86028         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86029         memory when realloc fails.
86030
86031 2004-04-19  Jim Meyering  <jim@meyering.net>
86032
86033         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86034         now that readutmp.c may call `free (0)'.
86035
86036 2004-04-19  Bruno Haible  <bruno@clisp.org>
86037
86038         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86039         * m4/inttypes_h.m4: Likewise.
86040         * m4/stdint_h.m4: Likewise.
86041         * m4/intmax_t.m4: Likewise.
86042         * m4/uintmax_t.m4: Likewise.
86043
86044 2004-04-18  Jim Meyering  <jim@meyering.net>
86045
86046         * m4/prereq.m4: Don't forbid jm_ prefix.
86047
86048         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86049         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86050         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86051         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86052         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86053         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86054         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86055         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86056         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86057         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86058         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86059         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86060         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86061         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86062         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86063         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86064         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86065         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86066         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86067
86068 2004-04-18  Jim Meyering  <jim@meyering.net>
86069
86070         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86071         failure, don't leak memory and do call END_UTMP_ENT.
86072
86073 2004-04-16  Jim Meyering  <jim@meyering.net>
86074
86075         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86076         coreutils' stat program.
86077         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86078
86079 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86080
86081         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86082         C89.
86083         (CHAR_BIT): Remove, since we assume C89.
86084         Include <stdint.h> if available, as per current Autoconf CVS advice.
86085
86086 2004-03-31  Jim Meyering  <jim@meyering.net>
86087
86088         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86089         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86090         * m4/xalloc.m4: Likewise.
86091
86092 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86093
86094         Merge from coreutils.
86095
86096         * m4/inttostr.m4: New file.
86097         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86098         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86099         Require gl_CLOCK_TIME.
86100         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86101
86102 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86103
86104         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86105         not bool, to be more consistent with Unix conventions.
86106         Suggested by Bruno Haible.
86107
86108         Merge from coreutils.
86109
86110         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86111         * lib/umaxtostr.c: New files.
86112
86113         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86114         the usual <time.h> dance.
86115         (get_date): Change signature to support fractional time stamps.
86116         All callers changed.
86117         * lib/getdate.y: Include "getdate.h" first, as we can now
86118         assume C89 and don't need to worry about 'const'.
86119         Similarly, include "unlocked-io.h" near start, not in middle.
86120         Include <limits.h>.
86121         (textint.value): Use long int rather than int.
86122         (textint.digits): Use size_t rather than int.
86123         (BILLION, LOG10_BILLION): New constants.
86124         (parser_control): New member rel_ns.  Members day_ordinal,
86125         time_zone, month, day, hour, minutes, rel_year, rel_month,
86126         rel_day, rel_hour, rel_minutes, rel_seconds
86127         are now long int, not int.  Member seconds is now struct timespec,
86128         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86129         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86130         not int.
86131         (%union.intval): Now long int, not int.
86132         New member timespec.
86133         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86134         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86135         (spec): Now is a timespec or an item list.
86136         (timespec, items): New nonterminals.
86137         (time, rel, relunit, number, get_date):
86138         Add support for fractional seconds.
86139         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86140         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86141         (to_hour): First arg is now long int, not int.
86142         (to_year): Returns long int, not int.
86143         Don't treat year -70 like 70.
86144         (tm_diff): Returns long int, not int.
86145         (lookup_word): Use bool instead of int when appropriate.
86146         (yylex): Use size_t for count, not int.
86147         Detect overflow when parsing large integer constants.
86148         Add support for fractions.
86149         (get_date): Make pointers 'const' if possible.
86150         Use more-portable code to detect integer overflow.
86151         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86152         Don't use ctime; it's not reliable if the year has >4 digits.
86153
86154         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86155         This is for compatibility with BSD.
86156
86157         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86158         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86159         From coreutils' system.h.
86160
86161         * lib/userspec.c: Don't include "posixver.h".
86162         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86163         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86164         compatible extension.  Simplify code by removing a boolean int
86165         that was always nonzero if a string was nonnull.
86166
86167 2004-03-30  Jim Meyering  <jim@meyering.net>
86168
86169         Merge from coreutils.
86170
86171         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86172         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86173         on some systems one must include <grp.h> before it.
86174         Reported by Christian Krackowizer.
86175
86176 2004-03-30  Jim Meyering  <jim@meyering.net>
86177
86178         Merge from coreutils.
86179
86180         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86181
86182         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86183         an empty input stream.
86184
86185         * lib/readtokens.c: Include <stdbool.h>.
86186         (readtoken): Use `size_t' rather than int/long.
86187         All callers adjusted.
86188         Use `bool' rather than `int' where appropriate.
86189         Use memset rather than an explicit loop.
86190         Use x2nrealloc rather than xrealloc.
86191         Allow the use of `\0' as a delimiter.
86192         (readtokens): Likewise.
86193         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86194
86195 2004-03-30  Jim Meyering  <jim@meyering.net>
86196
86197         * m4/realloc.m4: Remove file, since now it does no more than
86198         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86199         the `configure.ac' section of module/realloc.
86200         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86201
86202 2004-03-30  Bruno Haible  <bruno@clisp.org>
86203
86204         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86205         nonnull.
86206
86207 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86208
86209         Merge changes to getloadavg.c from coreutils and Emacs.
86210
86211         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86212         Define to an expression, not to the empty string.
86213         Include cloexec.h and xalloc.h.
86214         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86215         Use set_cloexec_flag rather than rolling our own.
86216         * lib/cloexec.c, lib/cloexec.h: New files.
86217
86218 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86219
86220         * m4/cloexec.m4: New file.
86221
86222 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86223
86224         * lib/getopt.h: Sync with libc CVS.
86225
86226 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86227             Bruno Haible  <bruno@clisp.org>
86228
86229         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86230         mbswidth.
86231
86232 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86233             Bruno Haible  <bruno@clisp.org>
86234
86235         * lib/mbswidth.h: Include <wchar.h> only if
86236         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86237         <wchar.h>.
86238         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86239
86240 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86241
86242         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86243         Sync with libc CVS.
86244         * lib/getopt_int.h: New file, also synced from libc.
86245
86246 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86247
86248         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86249         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86250         Bring back getopt.c, getopt.h, getopt1.c.
86251
86252 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86253
86254         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86255         All uses changed.  Check for sa_sigaction member; this fixes
86256         a bug first reported by Jason Andrade in
86257         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86258
86259 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86260
86261         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86262         '#if' expressions.  Unlike the code it replaces, it does not
86263         depend on (defined _SC_PAGESIZE).  However, it does depend on
86264         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86265         first reported by Jason Andrade in
86266         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86267
86268 2004-02-25  Simon Josefsson  <jas@extundo.com>
86269
86270         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86271
86272 2004-02-25  Simon Josefsson  <jas@extundo.com>
86273
86274         * lib/strdup.h: New file.
86275         * lib/strdup.c: Include it.
86276         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86277         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86278
86279 2004-02-23  Karl Berry  <karl@gnu.org>
86280
86281         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86282         (from fencepost.gnu.org:/gd/gnuorg).
86283
86284 2004-02-23  Karl Berry  <karl@gnu.org>
86285
86286         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86287         * config/srclist.txt: add maintain/standards documents.
86288
86289 2004-02-18  Bruno Haible  <bruno@clisp.org>
86290
86291         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86292         Reported by Derek Robert Price <derek@ximbiot.com>.
86293
86294 2004-02-16  Karl Berry  <karl@gnu.org>
86295
86296         * config/mkinstalldirs, install-sh: update from automake.
86297
86298 2004-02-06  Karl Berry  <karl@gnu.org>
86299
86300         * m4/po.m4: update from gettext 0.14.1.
86301
86302 2004-02-06  Karl Berry  <karl@gnu.org>
86303
86304         * lib/config.charset: update from gettext 0.14.1.
86305
86306 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86307
86308         Add comments and code, prompted by suggestions from Bruno Haible
86309         for sh-quote.
86310         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86311         describing the enum quoting_style values.
86312         * lib/quotearg.c (quotearg_alloc): New function.
86313         (quotearg_buffer_restyled): Treat lone { and } as special.
86314         Treat = as special.  Work around bug with older shells
86315         that "see" a '\' that is really the 2nd byte of a multibyte char.
86316         Quote empty string with shell_quoting_style.
86317
86318 2004-02-03  Bruno Haible  <bruno@clisp.org>
86319
86320         * m4/pipe.m4: New file, from GNU gettext.
86321
86322 2004-02-03  Bruno Haible  <bruno@clisp.org>
86323
86324         * lib/pipe.h: New file, from GNU gettext.
86325         * lib/pipe.c: New file, from GNU gettext.
86326
86327 2004-01-27  Bruno Haible  <bruno@clisp.org>
86328
86329         * m4/execute.m4: New file, from GNU gettext.
86330
86331 2004-01-27  Bruno Haible  <bruno@clisp.org>
86332
86333         * lib/execute.h: New file, from GNU gettext.
86334         * lib/execute.c: New file, from GNU gettext.
86335         * lib/w32spawn.h: New file, from GNU gettext.
86336
86337 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86338
86339         Merge from diffutils.
86340
86341         * lib/file-type.c (file_type): Add typed memory objects.
86342         * lib/file-type.h (S_TYPEISTMO): New macro.
86343
86344         * lib/c-stack.h (c_stack_action): Remove argv argument.
86345         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86346         (die): Don't calculate message unless segv_action returns.
86347         (get_stack_location, min_address_from_argv, max_address_from_argv,
86348         volatile stack_base, volatile_stack_size): Remove.
86349         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86350         that every segmentation violation is a stack overflow.  (Ouch!)
86351         See Debian bug 136249 (still outstanding) for more info about why
86352         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86353
86354 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86355
86356         Exit-status fix from coreutils.
86357
86358         Use exit_failure consistently in place of EXIT_FAILURE,
86359         so that program exit statuses are consistent on failure.
86360
86361         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86362         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86363         * lib/argmatch.h: Comment fix to match the above.
86364         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86365         Now a macro referring to exit_failure, instead of a separate
86366         variable.  Include "exitfail.h" to get it.
86367         * lib/xstrtol.h: Include "exitfail.h".
86368         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86369
86370         * lib/long-options.c (parse_long_options): Use prototype
86371         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86372         for clarity.
86373
86374 2004-01-21  Jim Meyering  <jim@meyering.net>
86375
86376         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86377         so as not to conflict with a different-sized __mktime_internal
86378         function in GNU libc.
86379         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86380         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86381
86382 2004-01-20  Karl Berry  <karl@gnu.org>
86383
86384         * config/config.guess: update from config.
86385
86386         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86387
86388 2004-01-20  Bruno Haible  <bruno@clisp.org>
86389
86390         Safer stack allocation.
86391         * lib/setenv.c: Include allocsa.h.
86392         (alloca): Remove fallback definition.
86393         (freea): Remove macro.
86394         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86395         instead of freea.
86396
86397 2004-01-20  Bruno Haible  <bruno@clisp.org>
86398
86399         * m4/eealloc.m4: New file, from GNU gettext.
86400
86401 2004-01-20  Bruno Haible  <bruno@clisp.org>
86402
86403         * m4/allocsa.m4: New file, from GNU gettext.
86404
86405 2004-01-20  Bruno Haible  <bruno@clisp.org>
86406
86407         * lib/xallocsa.h: New file, from GNU gettext.
86408         * lib/xallocsa.c: New file, from GNU gettext.
86409
86410 2004-01-20  Bruno Haible  <bruno@clisp.org>
86411
86412         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86413
86414 2004-01-20  Bruno Haible  <bruno@clisp.org>
86415
86416         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86417         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86418         specially.
86419
86420 2004-01-20  Bruno Haible  <bruno@clisp.org>
86421
86422         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86423         patch.
86424
86425 2004-01-20  Bruno Haible  <bruno@clisp.org>
86426
86427         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86428
86429 2004-01-20  Bruno Haible  <bruno@clisp.org>
86430
86431         * lib/eealloc.h: New file.
86432
86433 2004-01-20  Bruno Haible  <bruno@clisp.org>
86434
86435         * lib/binary-io.h: Avoid warnings on Cygwin.
86436
86437 2004-01-20  Bruno Haible  <bruno@clisp.org>
86438
86439         * lib/allocsa.h: New file, from GNU gettext.
86440         * lib/allocsa.c: New file, from GNU gettext.
86441
86442 2004-01-18  Karl Berry  <karl@gnu.org>
86443
86444         * doc/gpl.texi, doc/lgpl.texi: new files.
86445
86446 2004-01-18  Karl Berry  <karl@gnu.org>
86447
86448         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86449         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86450
86451 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86452
86453         Merge from coreutils.
86454
86455         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86456         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86457         (gl_DEFAULT_POSIX2_VERSION): Move
86458         the documentation from 'configure' into 'config.hin',
86459         so that 'configure --help' isn't burdened by it and
86460         we don't have to worry about its formatting there.
86461         Reword the documentation so that it's more succinct
86462         and can be run together into a single paragraph.
86463         * m4/same.m4 (gl_SAME): Check for pathconf.
86464
86465 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86466
86467         Merge from coreutils.
86468
86469         * lib/posixver.c: Include posixver.h.
86470
86471         * lib/same.c: Include <stdbool.h>, <limits.h>.
86472         (_POSIX_NAME_MAX): Define if not defined.
86473         (MIN): New macro.
86474         (same_name): If file names are silently truncated, report
86475         that the file names are the same if they are the same after
86476         the silent truncation.
86477
86478         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86479         conversion function.
86480         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86481         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86482         longer needed.
86483
86484 2004-01-15  Jim Meyering  <jim@meyering.net>
86485
86486         Merge from coreutils.
86487
86488         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86489         if no library is required.
86490         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86491         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86492         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86493         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86494         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86495         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86496         value, $ac_cv_search_crypt, if it's "none required".
86497         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86498         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86499         not gl_FUNC_GETLOADAVG.
86500         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86501         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86502
86503 2004-01-15  Jim Meyering  <jim@meyering.net>
86504
86505         Merge from coreutils.
86506
86507         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86508         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86509         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86510
86511         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86512         optional configure-time default.
86513
86514         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86515
86516         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86517
86518 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86519
86520         Merge from coreutils.
86521
86522         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86523         value, $ac_cv_search_nanosleep, if it's "none required".
86524
86525 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86526
86527         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86528         with like-named macro in fnmatch.c.
86529         (EXT): Use an internal constant instead.
86530
86531         Merge fnmatch patches from glibc.
86532         * lib/fnmatch.c (mbsinit): Remove define.
86533         Add libc_hidden_ver (__fnmatch, fnmatch).
86534         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86535         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86536
86537 2004-01-14  Karl Berry  <karl@gnu.org>
86538
86539         * config/install-sh: update from automake.
86540
86541 2004-01-13  Karl Berry  <karl@gnu.org>
86542
86543         * config/install-sh: update from automake.
86544
86545 2004-01-09  Karl Berry  <karl@gnu.org>
86546
86547         * config/install-sh: update from automake.
86548
86549 2004-01-05  Karl Berry  <karl@gnu.org>
86550
86551         * config/config.{sub,guess}: update from config.
86552
86553 2003-12-31  Karl Berry  <karl@gnu.org>
86554
86555         * config/depcomp: update from automake.
86556
86557 2003-12-14  Karl Berry  <karl@gnu.org>
86558
86559         * lib/config.charset: update from gettext-runtime.
86560
86561 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86562
86563         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86564         Bug reported by Alfred M. Szmidt.
86565
86566 2003-12-03  Bruno Haible  <bruno@clisp.org>
86567
86568         * m4/gettext.m4: Upgrade from gettext-0.13.
86569         * m4/po.m4: Upgrade from gettext-0.13.
86570         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86571         * m4/intmax.m4: New file, from gettext-0.13.
86572         * m4/printf-posix.m4: New file, from gettext-0.13.
86573
86574 2003-11-29  Karl Berry  <karl@gnu.org>
86575
86576         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86577
86578 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86579             Bruno Haible  <bruno@clisp.org>
86580
86581         * lib/printf-parse.h: Don't include sys/types.h.
86582         (ARG_NONE): New macro.
86583         (char_directive): Change type of *arg_index fields to size_t.
86584         * lib/printf-parse.c: Don't include sys/types.h.
86585         (SSIZE_MAX): Remove macro.
86586         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86587         Remove unnecessary overflow check.
86588         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86589         fields.
86590
86591 2003-11-25  Bruno Haible  <bruno@clisp.org>
86592
86593         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86594
86595 2003-11-25  Bruno Haible  <bruno@clisp.org>
86596
86597         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86598         gt_TYPE_SSIZE_T.
86599
86600 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86601
86602         * modules/alloca: Remove dependency on xalloc.
86603
86604 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86605
86606         * lib/alloca.c: Remove dependency on xalloc module.
86607         (xalloc_die): Remove.
86608         (memory_full) [!defined emacs]: New macro.
86609         [!defined emacs]: Don't include xalloc.h.
86610         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86611         address arithmetic overflows.  Change datatypes a bit to avoid
86612         unnecessary casts.
86613
86614 2003-11-22  Jim Meyering  <jim@meyering.net>
86615
86616         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86617         s/size/size_t/.
86618
86619 2003-11-21  Karl Berry  <karl@gnu.org>
86620
86621         * config/config.{sub,guess}: update from config.
86622
86623 2003-11-18  Karl Berry  <karl@gnu.org>
86624
86625         * config/config.{sub,guess}: update from config.
86626
86627         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86628
86629 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86630
86631         * README: Mention that S+T cannot overflow if S is the size of
86632         an existing object and T is sufficiently small.
86633
86634 2003-11-17  Jim Meyering  <jim@meyering.net>
86635
86636         On systems without utime and without a utimes function capable of
86637         dealing with a NULL struct utimbuf* argument, this utime replacement
86638         could -- in unusual circumstances -- leak a file descriptor.
86639         * lib/utime.c: Include <unistd.h> and <errno.h>.
86640         (utime_null): Be sure to close `fd' and to preserve errno.
86641         Reported by Geoff Collyer via Arnold Robbins.
86642
86643 2003-11-17  Bruno Haible  <bruno@clisp.org>
86644
86645         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86646         (Depends-on): Add xsize.
86647
86648 2003-11-17  Bruno Haible  <bruno@clisp.org>
86649
86650         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86651
86652 2003-11-17  Bruno Haible  <bruno@clisp.org>
86653
86654         * lib/vasnprintf.c (alloca): Remove fallback definition.
86655         (freea): Remove definition.
86656         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86657         Reported by Paul Eggert.
86658
86659 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86660             Bruno Haible  <bruno@clisp.org>
86661
86662         Protect against address arithmetic overflow.
86663         * lib/printf-args.h: Include stddef.h.
86664         (arguments): Change type of field 'count' to size_t.
86665         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86666         'unsigned int' where appropriate.
86667         * lib/printf-parse.h: Include sys/types.h.
86668         (char_directive): Change type of *arg_index fields to ssize_t.
86669         (char_directives): Change type of fields 'count', max_*_length to
86670         size_t.
86671         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86672         (SSIZE_MAX): Define fallback value.
86673         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86674         instead of 'int' where appropriate. Check a_allocated, d_allocated
86675         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86676         * lib/vasnprintf.c: Include xsize.h.
86677         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86678         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86679         overflow. Avoid wraparound when converting a width or precision from
86680         decimal to binary.
86681
86682 2003-11-16  Bruno Haible  <bruno@clisp.org>
86683
86684         Update from GNU gettext.
86685         * lib/printf-parse.c: Generalize to it can be compiled for wide
86686         strings.
86687         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86688         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86689         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86690         SNPRINTF): New macros.
86691         Don't include <alloca.h> if the file is used inside libintl.
86692         (local_wcslen): New function, for Solaris 2.5.1.
86693         (VASNPRINTF): Use it instead of wcslen.
86694
86695 2003-11-16  Bruno Haible  <bruno@clisp.org>
86696
86697         * lib/xsize.h (xmax): New function.
86698         (xsum, xsum3, xsum4): Declare as "pure" functions.
86699
86700 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86701
86702         * modules/xalloc (Files): Undo latest change, since xalloc.h
86703         no longer needs SIZE_MAX or PTRDIFF_MAX.
86704
86705 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86706
86707         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86708         gl_PTRDIFF_MAX.
86709
86710 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86711
86712         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86713         "return", to pacify some unknown compiler.  Problem reported
86714         by Joerg Schilling.
86715
86716 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86717
86718         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86719         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86720         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86721         heuristic is just as accurate as far as we know, and it removes a
86722         dependency on size_max.m4 and ptrdiff_max.m4.
86723
86724 2003-11-11  Bruno Haible  <bruno@clisp.org>
86725
86726         * modules/xsize (Files): Add m4/size_max.m4.
86727         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86728
86729 2003-11-11  Bruno Haible  <bruno@clisp.org>
86730
86731         * m4/size_max.m4: New file.
86732         * m4/ptrdiff_max.m4: New file.
86733         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86734         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86735         (gl_XALLOC): Invoke it.
86736
86737 2003-11-11  Bruno Haible  <bruno@clisp.org>
86738
86739         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86740         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86741         defined.
86742
86743 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86744
86745         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86746         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86747         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86748         From Bruno Haible.
86749         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86750         not (size_t) -1, since it's defined here.
86751
86752 2003-11-09  Karl Berry  <karl@gnu.org>
86753
86754         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86755
86756 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86757
86758         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86759         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86760         Reject sizes of exactly SIZE_MAX bytes.
86761         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86762         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86763
86764 2003-11-05  Bruno Haible  <bruno@clisp.org>
86765
86766         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86767         SIZE_MAX defined in <limits.h> on Solaris.
86768
86769 2003-11-04  Jim Meyering  <jim@meyering.net>
86770
86771         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86772         variable names, rather than @VAR@.
86773         * modules/poll: Likewise.
86774
86775 2003-11-04  Bruno Haible  <bruno@clisp.org>
86776
86777         * modules/xsize: New file.
86778         * modules/linebreak: Depend on xsize.
86779         * MODULES.html.sh (func_all_modules): Add xsize.
86780
86781 2003-11-04  Bruno Haible  <bruno@clisp.org>
86782
86783         * m4/xsize.m4: New file.
86784
86785 2003-11-04  Bruno Haible  <bruno@clisp.org>
86786
86787         * lib/xsize.h: New file.
86788         * lib/linebreak.c: Include xsize.h.
86789         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86790         argument for overflow.
86791         Suggested by Paul Eggert.
86792
86793 2003-11-03  Karl Berry  <karl@gnu.org>
86794
86795         * config/config.{guess,sub}: update from config.
86796
86797 2003-11-03  Jim Meyering  <jim@meyering.net>
86798
86799         * modules/userspec (lib_SOURCES): Add userspec.h.
86800         (Include): Add "userspec.h".
86801         Improve description.
86802
86803 2003-11-03  Jim Meyering  <jim@meyering.net>
86804
86805         * lib/userspec.c: Include "userspec.h".
86806         * lib/userspec.h: New file.
86807
86808 2003-11-03  Bruno Haible  <bruno@clisp.org>
86809
86810         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86811
86812 2003-11-03  Bruno Haible  <bruno@clisp.org>
86813
86814         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86815         available, to avoid (extremely rare) race condition.
86816         Suggested by Paul Eggert.
86817
86818 2003-11-02  Karl Berry  <karl@gnu.org>
86819
86820         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86821
86822 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86823
86824         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86825         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86826         (read_filesystem_list): Set and use me_type_malloced.
86827         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86828         whatever the type happens to be), for brevity and consistency.
86829         Check for size calculation overflow on Alphas running OSF/1.
86830
86831 2003-10-31  Jim Meyering  <jim@meyering.net>
86832
86833         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86834
86835         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86836
86837 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86838             Bruno Haible  <bruno@clisp.org>
86839
86840         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86841         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86842
86843 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86844
86845         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86846         netbsd*-gnu*.  Suggested by Robert Millan.
86847
86848 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86849
86850         * modules/group-member: Depend on stdbool.
86851
86852 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86853
86854         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86855
86856 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86857
86858         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86859         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86860         after the 'gnu' in these cases.  This fixes some bugs in the
86861         previous change, and is based on suggestions by Robert Millan.
86862
86863 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86864
86865         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86866         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86867         no longer needed.
86868         * lib/quotearg.c (quotearg_n_options): Use it.
86869         * lib/group-member.c: Include <stdbool.h>.
86870         (free_group_info): Arg is now const *; don't free arg.
86871         (get_group_info): Now returns bool and accepts struct group_info *,
86872         rather than returning a malloc'ed struct group_info *.
86873         All uses changed.  Check for overflow in internal size calculation.
86874
86875         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86876         rather than xmalloc/xrealloc.
86877         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86878         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86879         conformance bug: the old code used a pointer after freeing the
86880         storage that it addressed.
86881         * lib/hash.c (hash_initialize): Simplify the code by using
86882         xalloc_oversized rather than doing it by hand.
86883         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86884         the buffer preserved.  Use free and xmalloc instead.
86885         * lib/quotearg.c (quotearg_n_options): Likewise.
86886         Use a simpler test for size overflow.  Don't use xalloc_oversized
86887         because unsigned int might be wider than size_t (!); this suggests
86888         that we should switch from unsigned int to size_t for slot numbers.
86889
86890 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86891
86892         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86893         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86894         NetBSD kernels.  Requested by Richard Stallman.
86895
86896 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86897
86898         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86899         to allocate the returned structure.  Do not allocate a subarray,
86900         as x2nrealloc will do that.
86901         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86902         instead of xnrealloc.
86903         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86904
86905 2003-10-27  Bruno Haible  <bruno@clisp.org>
86906
86907         * lib/stdbool_.h: Better support for BeOS.
86908
86909 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86910
86911         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86912         now uses inline.
86913
86914 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86915
86916         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86917         callers that want to do their own size-overflow checking.  Include
86918         <stdbool.h>, since xalloc_oversized returns bool.
86919         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86920         to use xalloc_oversized.
86921
86922         Add two functions x2realloc, x2nrealloc, for programs that grow
86923         arrays dynamically by doubling their sizes.
86924         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86925         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86926         New functions.
86927
86928         Port to C99 semantics for 'inline' of external functions.
86929         Bug reported by Bruno Haible.
86930         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86931         with the old contents of xnmalloc.
86932         (xnmalloc, xmalloc): Use it.
86933         (xnrealloc_inline): New static inline function,
86934         with the old contents of xnrealloc.
86935         (xnrealloc, xrealloc): Use it.
86936
86937         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86938         that.
86939
86940 2003-10-26  Karl Berry  <karl@gnu.org>
86941
86942         * config/srclist.txt (COPYING.DOC): no longer available from
86943         /gd/gnuorg; don't know where the ultimate source is.
86944
86945 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86946
86947         Fix several address-calculation bugs in the hash modules,
86948         plus some minor code cleanup.
86949
86950         * lib/hash.h: Include <stdbool.h>, for bool.
86951         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86952         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86953         hash_get_n_entries, hash_get_max_bucket_length,
86954         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86955         hash_rehash): Use size_t rather than unsigned.
86956         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86957         hash_get_n_buckets_used, hash_get_n_entries,
86958         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86959         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86960         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86961         Likewise.
86962         (SIZE_MAX): Define if not defined.
86963         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86964         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86965         hash_print):
86966         Use const * when possible.
86967         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86968         (check_tuning): Fix bug: if tuning parameters were very close to
86969         0 or 1, rounding errors could have caused subscript violations.
86970         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86971         (hash_initialize): Add 'fail:' label
86972         to free table and return NULL, and use it to simplify code.
86973         Use calloc rather than clearing the storage ourself.
86974         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86975         buffer size calculations.
86976         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86977         Include <stddef.h>, for size_t.
86978         * lib/hash-pjw.c (hash_pjw): Likewise.
86979         Switch to method described by Bruno Haible.
86980         Include <limits.h>, for CHAR_BIT.
86981         (SIZE_BITS): New macro.
86982
86983 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86984
86985         * m4/getline.m4 (AM_FUNC_GETLINE):
86986         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86987         hosts.  Problem reported by Derek Robert Price in
86988         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86989         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86990         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86991
86992 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86993
86994         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86995         ceiling the allocation at NMAX bytes rather than silently
86996         discarding input bytes before NMAX is reached.  This makes
86997         a difference only if NMAX exceeds SIZE_MAX / 2.
86998
86999         * lib/obstack.c: Merge from glibc.
87000         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87001         Add libc_hidden_def (_obstack_newchunk).
87002         (_obstack_free) [! defined _LIBC]: Remove.
87003         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87004         a clone of the function body.
87005         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87006         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87007
87008         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87009         glibc.
87010         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87011         arg to memcpy.
87012
87013         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87014         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87015         Don't use lvalue casts, as GCC plans to remove support for them
87016         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87017         was also present in the non-GCC version, indicating that this
87018         code had always been buggy and had never been widely used.
87019         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87020         Use the fast variant of each macro, rather than copying the
87021         definiens of the fast variant; that way, we'll be more likely to
87022         catch future bugs in the fast variants.
87023
87024 2003-10-20  Bruno Haible  <bruno@clisp.org>
87025
87026         * modules/wait-process: New file.
87027         * MODULES.html.sh (func_all_modules): Add wait-process.
87028
87029 2003-10-20  Bruno Haible  <bruno@clisp.org>
87030
87031         * m4/wait-process.m4: New file.
87032
87033 2003-10-20  Bruno Haible  <bruno@clisp.org>
87034
87035         * lib/wait-process.h: New file, from GNU gettext.
87036         * lib/wait-process.c: New file, from GNU gettext.
87037
87038 2003-10-19  Jim Meyering  <jim@meyering.net>
87039
87040         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87041         HPUX 10.20.
87042
87043 2003-10-18  Karl Berry  <karl@gnu.org>
87044
87045         * config/config.guess: update from config.
87046
87047 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87048
87049         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87050         (getgroups): First arg is int, not size_t.
87051         Don't let 'free' mangle errno.
87052
87053 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87054
87055         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87056
87057 2003-10-16  Karl Berry  <karl@gnu.org>
87058
87059         * config/config.{guess,sub}: update from config.
87060
87061 2003-10-16  Jim Meyering  <jim@meyering.net>
87062
87063         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87064         memcpy.
87065
87066 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87067
87068         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87069         (SIZE_MAX): Remove.
87070         (new_exclude, add_exclude_file): Initial size no longer needs to
87071         be a power of 2.
87072         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87073         our own address arithmetic overflow checking.
87074
87075         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87076         (fnmatch): Do not alloca more than 2000 wide characters;
87077         instead, use malloc for large buffers.
87078         Check for address arithmetic overflow, and return -1
87079         with errno set to ENOMEM in that case.
87080         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87081         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87082         instead, return -1.  Check for address arithmetic overflow.
87083
87084 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87085
87086         Handle invalid suffixes and overflow independently, so that
87087         callers can treat them independently as needed.  Fix some bugs in
87088         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87089         suffix for a human-readable blocksize.  The major caller-visible
87090         change is the addition of a new
87091         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87092         that both overflow and suffix chars were found.
87093
87094         * lib/human.c (humblock): Don't check separately for invalid suffix
87095         char; that is xstrtoumax's job (now that its bug is fixed).
87096         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87097         INTMAX_MAX]: New macros.
87098         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87099         TYPE_MAXIMUM): New macros.
87100         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87101         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87102         if overflow occurs, as it's what __strtol does and it's more useful
87103         in practice.
87104         (__xstrtol): If __strtol reports some error other than ERANGE,
87105         reflect it to the caller as LONGINT_INVALID.  If it reports
87106         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87107         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87108         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87109         value.
87110         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87111         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87112         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87113         [defined UINTMAX_MAX]: New macros.
87114
87115 2003-10-14  Bruno Haible  <bruno@clisp.org>
87116
87117         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87118
87119 2003-10-14  Bruno Haible  <bruno@clisp.org>
87120
87121         * m4/sig_atomic_t: New file, from GNU gettext.
87122         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87123
87124 2003-10-14  Bruno Haible  <bruno@clisp.org>
87125
87126         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87127         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87128         Also use volatile where needed.
87129
87130 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87131
87132         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87133         Change maintainer from Bruno Haible to 'all'.
87134
87135 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87136
87137         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87138
87139 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87140
87141         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87142         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87143         and define in terms of the other primitives.
87144         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87145         (SIZE_MAX): Define if not already defined.
87146         (array_size_overflow): New function.
87147         (xalloc_die): Abort instead of exiting if 'error' returns.
87148         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87149         (xmalloc, xrealloc): Use them.
87150         (xcalloc): Check for address arithmetic overflow.
87151         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87152         a bit faster than strcpy.
87153
87154 2003-10-10  Simon Josefsson  <jas@extundo.com>
87155
87156         * modules/argp (Depends-on): Add restrict and strcase.
87157
87158 2003-10-10  Simon Josefsson  <jas@extundo.com>
87159
87160         * m4/argp.m4: Add AC_C_INLINE.
87161
87162 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87163
87164         Merge getpass from libc, plus a few fixes.
87165
87166         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87167         Include <stdbool.h>.
87168         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87169         __fsetlocking to empty.
87170         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87171         do include <bits/libc-lock.h>.
87172         Do not include <fcntl.h>; not needed.
87173         [_LIBC]: Include <wchar.h>.
87174         (NOTCANCEL_MODE): New macro.
87175         (flockfile, funlockfile) [_LIBC]: New macros.
87176         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87177         [!_LIBC]: New macros.
87178         (call_fclose): New function.
87179         (getpass): Use it.  Save tty stream separately; this simplifies the
87180         code and makes it more reliable if stdin happens to equal stdout.
87181         Invoke __fsetlocking on tty.
87182         Handle thread cancellation if needed.
87183         Namespace cleanup (use __tcgetattr, __getline).
87184         Use bool for Booleans.
87185         [USE_IN_LIBIO]: Handle wide streams.
87186         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87187         stream might go where.
87188
87189         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87190         doesn't have to include <stdio.h> before us.
87191         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87192         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87193         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87194         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87195         if not declared, so that we can use getpass.c code from libc without
87196         rewriting it.
87197         (flockfile, ftrylockfile, funlockfile): New macros.
87198
87199 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87200
87201         * modules/getpass: Depend on stdbool.
87202
87203 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87204
87205         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87206
87207 2003-10-07  Karl Berry  <karl@gnu.org>
87208
87209         * config/config.{guess,sub}: update from config.
87210
87211 2003-10-06  Jim Meyering  <jim@meyering.net>
87212             Bruno Haible  <bruno@clisp.org>
87213
87214         This lets translators provide better translations for the
87215         "Written by ..." part of --version output.
87216         * lib/version-etc.h: Include stdarg.h.
87217         (version_etc_copyright): Declare as readonly.
87218         (version_etc): Make this function variadic with a NULL-terminated list
87219         of author name strings.
87220         (version_etc_va): New declaration.
87221         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87222         (version_etc_copyright): Declare as readonly.
87223         (version_etc_va): New function. Provide a different translatable string
87224         for each possible number of authors < 10. Abbreviate when there are 10
87225         authors or more.
87226         (version_etc): Make this function variadic. Call version_etc_va.
87227         Suggestion from Gary V. Vaughan.
87228
87229         * lib/long-options.h (parse_long_options): Change prototype: the
87230         authors string is moved to the end and becomes variadic.
87231         * lib/long-options.c: Include stdarg.h.
87232         (parse_long_options): Make this function variadic, too.
87233         Call version_etc_va, not version_etc.
87234
87235 2003-10-06  Bruno Haible  <bruno@clisp.org>
87236
87237         * modules/version-etc-2: Remove file.
87238         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87239
87240 2003-10-06  Bruno Haible  <bruno@clisp.org>
87241
87242         * modules/fatal-signal: New file.
87243         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87244
87245 2003-10-06  Bruno Haible  <bruno@clisp.org>
87246
87247         * m4/fatal-signal.m4: New file.
87248         * m4/signalblocking.m4: New file, from GNU gettext.
87249
87250 2003-10-06  Bruno Haible  <bruno@clisp.org>
87251
87252         * lib/version-etc-2.h: Remove file.
87253         * lib/version-etc-2.c: Remove file.
87254
87255 2003-10-06  Bruno Haible  <bruno@clisp.org>
87256
87257         * lib/fatal-signal.h: New file, from GNU gettext.
87258         * lib/fatal-signal.c: New file, from GNU gettext.
87259
87260 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87261
87262         * README: Rework advice for preventing empty .o files.
87263         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87264         not <sys/types.h>.
87265
87266 2003-10-04  Karl Berry  <karl@gnu.org>
87267
87268         * lib/argp*: update from libc.
87269
87270 2003-10-04  Karl Berry  <karl@gnu.org>
87271
87272         * config/config.{guess,sub}: update from config.
87273
87274 2003-10-02  Bruno Haible  <bruno@clisp.org>
87275
87276         * modules/lchown (Include): Add lchown.h.
87277         * modules/time_r (Include): Use "..." syntax.
87278         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87279
87280 2003-10-01  Simon Josefsson  <jas@extundo.com>
87281
87282         * MODULES.html.sh (func_all_modules): Move gethostname from section
87283         'based on' to section 'lacking' POSIX:2001.
87284
87285 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87286
87287         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87288         to output mode on the same stream.
87289
87290 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87291
87292         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87293         Fix arg typo in previous patch.
87294
87295 2003-09-28  Jim Meyering  <jim@meyering.net>
87296
87297         * lib/error.c: Correct cpp indentation.
87298
87299 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87300
87301         * modules/free: New file.
87302
87303 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87304
87305         * m4/free.m4: New file.
87306
87307 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87308
87309         * lib/minmax.h (MIN, MAX)
87310         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87311         Omit the special code that used __typeof__, since we worry that
87312         it could be more trouble than it's worth.  See:
87313         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87314         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87315
87316         * lib/free.c: New file.
87317
87318 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87319
87320         Trivial fixes to Makefile.am parts of module listings.
87321         * modules/strstr: Append strstr.h to lib_SOURCES.
87322         * modules/strcase: Likewise, for strcase.h.
87323
87324 2003-09-27  Karl Berry  <karl@gnu.org>
87325
87326         * config/mkinstalldirs: update from automake.
87327
87328 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87329
87330         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87331         (error_tail): Do not loop, reallocating temporary buffer, since
87332         the output cannot contain more wide characters than the input
87333         contains bytes, the size must be big enough already.  This avoids
87334         one potential size overflow calculation.  Check for size overflow
87335         when calculating temporary buffer size.  Free temporary buffer
87336         when done, if it was allocated with malloc; this plugs a memory
87337         leak.  Remove casts from void * to pointers, that are no longer
87338         needed now that we're assuming C89 or better.
87339
87340         Merge error changes from glibc.
87341
87342         * lib/error.c, error.h: Update copyright notice header to match glibc.
87343         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87344         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87345         Disable cancellation while printing error.
87346         * lib/error.h: Prepend __ to parameter names.
87347
87348 2003-09-26  Jim Meyering  <jim@meyering.net>
87349
87350         * lib/error.c (error_tail): Move some declarations
87351         into inner scope where the local variables are used.
87352
87353 2003-09-26  Bruno Haible  <bruno@clisp.org>
87354
87355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87356         stpncpy().
87357         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87358
87359 2003-09-26  Bruno Haible  <bruno@clisp.org>
87360
87361         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87362         (stpncpy): Define as alias for gnu_stpncpy.
87363         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87364
87365 2003-09-25  Simon Josefsson  <jas@extundo.com>
87366
87367         * lib/xgetdomainname.h: New file.
87368         * lib/xgetdomainname.c: New file.
87369
87370 2003-09-25  Simon Josefsson  <jas@extundo.com>
87371             Bruno Haible  <bruno@clisp.org>
87372
87373         * modules/getdomainname: New file.
87374         * modules/xgetdomainname: New file.
87375         * MODULES.html.sh (func_all_modules): Add getdomainname,
87376         xgetdomainname.
87377
87378 2003-09-25  Simon Josefsson  <jas@extundo.com>
87379             Bruno Haible  <bruno@clisp.org>
87380
87381         * m4/getdomainname.m4: New file.
87382
87383 2003-09-25  Simon Josefsson  <jas@extundo.com>
87384             Bruno Haible  <bruno@clisp.org>
87385
87386         * lib/getdomainname.h: New file.
87387         * lib/getdomainname.c: New file.
87388
87389 2003-09-25  Karl Berry  <karl@gnu.org>
87390
87391         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87392
87393 2003-09-25  Karl Berry  <karl@gnu.org>
87394
87395         * config/install-sh: update from automake.
87396
87397 2003-09-25  Bruno Haible  <bruno@clisp.org>
87398
87399         * modules/version-etc-2: New file, from modules/version-etc with
87400         modifications.
87401         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87402
87403 2003-09-25  Bruno Haible  <bruno@clisp.org>
87404
87405         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87406         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87407
87408 2003-09-24  Simon Josefsson  <jas@extundo.com>
87409
87410         * modules/xgethostname: Add xgethostname.h.
87411
87412 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87413
87414         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87415         the buffer associated with the argument.  Bug reported by
87416         Simon Josefsson.
87417
87418 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87419
87420         * README: Document assumptions that 'int' is at least 32 bits
87421         wide, that integer arithmetic is 2's complement without overflow,
87422         that there are no holes in integer values, that adding sizes of
87423         two nonoverlapping objects can't overflow, and that all-bits-zero
87424         yields scalar zero.  Fix spelling and capitalization typos.
87425
87426 2003-09-19  Karl Berry  <karl@gnu.org>
87427
87428         * lib/argp.h: update from libc.
87429
87430 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87431
87432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87433         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87434         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87435
87436 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87437
87438         * gnulib-tool: Use "test -h", not "test -L", for portability
87439         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87440         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87441         (sed_extract_prog): Issue s commands one-by-one, rather than
87442         using \| in one s command.
87443
87444 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87445
87446         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87447         input error, instead of returning NULL the next time we are called
87448         (and therefore losing track of errno).
87449
87450 2003-09-16  Bruno Haible  <bruno@clisp.org>
87451
87452         * gnulib-tool (func_create_testdir): Warn about duplicated
87453         dependencies.
87454
87455 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87456
87457         * modules/argmatch, modules/fatal, modules/obstack,
87458         modules/xalloc, modules/xgethostname: Sort dependencies by
87459         importance, not alphabetically.
87460
87461 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87462
87463         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87464         fails, so that the caller gets the proper errno.
87465
87466         * lib/readutmp.c (read_utmp): Likewise.
87467         Check for fstat error.  Close stream and free storage
87468         when failing.
87469
87470 2003-09-14  Karl Berry  <karl@gnu.org>
87471
87472         * config/srclist.txt (strdup.c): disable for c89 changes.
87473
87474 2003-09-14  Jim Meyering  <jim@meyering.net>
87475
87476         * lib/getloadavg.c: Correct cpp indentation.
87477         * lib/strdup.c: Likewise.
87478         * lib/vasnprintf.c: Likewise.
87479
87480 2003-09-14  Bruno Haible  <bruno@clisp.org>
87481
87482         * modules/fwriteerror: New file.
87483         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87484
87485 2003-09-14  Bruno Haible  <bruno@clisp.org>
87486
87487         * lib/fwriteerror.h: New file.
87488         * lib/fwriteerror.c: New file.
87489
87490 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87491
87492         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87493         modules/xgethostname, modules/xalloc: Depend on exit.
87494
87495 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87496
87497         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87498
87499         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87500         and AC_MINIX, too, so that their extensions are available.
87501
87502         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87503         This macro has been superseded by gl_BACKUPFILE.
87504
87505         More patches to assume C89 or better.
87506
87507         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87508
87509         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87510         unconditionally.
87511         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87512         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87513         Include <string.h>, <stdlib.h> unconditionally.
87514         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87515         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87516         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87517         headers or for string.h.
87518         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87519         or strtoul.
87520
87521         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87522         headers.
87523         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87524         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87525         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87526         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87527         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87528         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87529         memcpy, memset.
87530         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87531         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87532         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87533         strtol.
87534         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87535         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87536         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87537         strtoul.
87538
87539 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87540
87541         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87542         * lib/obstack.c [!defined _LIBC]: Likewise.
87543         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87544         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87545         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87546
87547         More changes to assume C89 or better.
87548
87549         * lib/error.c (error_tail): Assume vprintf.
87550
87551         * lib/argmatch.c (getenv): Remove decl.
87552         * lib/progreloc.c (get_full_program_name): Define via prototype.
87553         * lib/setenv.c (clearenv): Likewise.
87554         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87555         needed.
87556         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87557         (malloc, memcpy): Remove decls.
87558         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87559         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87560         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87561         (memcpy): Remove macro.
87562         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87563         (__P): Remove.  All uses removed.
87564         (PTR): Remove.  All uses changed to void *.
87565         (CHAR_BIT, NULL): Remove.
87566         (spaces, zeros, memset_space, memset_zero)
87567         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87568         Remove.
87569         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87570         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87571         Define with prototype.
87572         Remove now-unnecessary prototype decl.
87573         (extra_args_spec): Assume ANSI C.  All uses changed.
87574         (extra_args_spec_iso): Remove.
87575         (my_strftime, emacs_strftimeu): Define via prototype.
87576         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87577         unconditionally.
87578         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87579         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87580         (strtoul, strtol): Remove decls.
87581         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87582         LONG_MAX): Remove.
87583         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87584         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87585         (LOCALE_PARAM_PROTO): New macro.
87586         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87587         (INTERNAL (strtol), strtol): Define with a prototype.
87588         (PARAMS): Remove.  All uses removed.
87589         * lib/tempname.c: Include <string.h> unconditionally.
87590         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87591         * lib/xgethostname.c (main): Define with a prototype.
87592         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87593         Include <stdlib.h> unconditionally.
87594         (calloc, malloc, realloc, free): Remove decls.
87595         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87596         Include <stdlib.h> unconditionally.  Sort include file names.
87597         (strtod): Remove.
87598         (xstrtod): Define with a prototype.
87599         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87600         (strtol, strtoul): Remove decls.
87601
87602 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87603
87604         More patches to assume C89 or better.
87605         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87606         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87607         string.h, memchr, STDC_HEADERS.
87608
87609 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87610
87611         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87612         Include <stdlib.h>, <string.h> unconditionally.
87613         Remove now-unnecessary cast to char *.
87614         * lib/strnlen.c: Include <string.h> unconditionally.
87615         * lib/yesno.c (yesno): Define with a prototype.
87616
87617 2003-09-11  Bruno Haible  <bruno@clisp.org>
87618
87619         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87620
87621 2003-09-10  Jim Meyering  <jim@meyering.net>
87622
87623         * lib/error.c: Correct indentation of cpp directives.
87624
87625 2003-09-10  Bruno Haible  <bruno@clisp.org>
87626
87627         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87628         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87629         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87630         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87631         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87632         <stdlib.h> and <string.h> checks.
87633         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87634         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87635
87636 2003-09-10  Bruno Haible  <bruno@clisp.org>
87637
87638         * lib/strcspn.c: Include <string.h> unconditionally.
87639         * lib/strpbrk.c: Include <string.h> unconditionally.
87640         * lib/strstr.c: Include <string.h> unconditionally.
87641         * lib/unicodeio.c: Include <string.h> unconditionally.
87642         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87643         * lib/unsetenv.c: Likewise.
87644         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87645         * lib/yesno.c: Include <stdlib.h> unconditionally.
87646         (rpmatch): Add prototype.
87647
87648 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87649
87650         More patches to assume C89 or better.
87651         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87652         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87653         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87654         or for string.h.
87655         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87656         stdlib.h.
87657         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87658         C headers.
87659         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87660         string.h.
87661         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87662         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87663         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87664         or for string.h.
87665         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87666         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87667         C headers.
87668         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87669         memcpy.
87670         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87671         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87672         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87673         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87674         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87675         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87676         string.h, free.
87677         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87678         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87679         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87680         C headers, or for string.h.
87681         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87682         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87683         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87684         headers, memory.h, stdlib.h, string.h, strings.h.
87685         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87686         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87687         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87688         strchr.
87689         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87690         headers, memory.h, string.h.
87691         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87692         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87693         free.
87694         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87695         headers.
87696         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87697         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87698         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87699         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87700         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87701
87702 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87703
87704         More K&R removal.
87705
87706         * lib/acosl.c (main): Use a prototype.
87707         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87708         tanl.c: Likewise.
87709
87710         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87711
87712         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87713         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87714         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87715         with a prototype.
87716         * lib/getopt.c (const): Remove macro.
87717         Include <string.h> unconditionally.
87718         (my_index): Remove; all uses changed to strchr.
87719         (strlen): Remove decl.
87720         (exchange): Remove forward decl; no longer needed.
87721         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87722         Define with prototype.
87723         * lib/getopt1.c (const): Remove macro.
87724         (getopt_long, getopt_long_only, main): Define with prototype.
87725
87726         * lib/getugroups.c: Include <string.h> unconditionally.
87727
87728         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87729         (getusershell, setusershell, endusershell, readname, main):
87730         Define with prototypes.
87731
87732         * lib/group-member.c: Include group-member.h first.
87733         Include <stdlib.h> unconditionally.
87734
87735         * lib/hard-locale.c: Include hard-locale.h first.
87736         Include <stdlib.h>, <string.h> unconditionally.
87737
87738         * lib/hash.c (free, malloc): Remove decls.
87739         Include <stdlib.h> unconditionally.
87740
87741         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87742         (getenv): Do not declare.
87743
87744         * lib/idcache.c: Include <string.h> unconditionally.
87745
87746         * lib/long-options.c: Include long-options.h first, to test interface.
87747         Include <stdlib.h> unconditionally.
87748
87749         * lib/makepath.c: Include makepath.h first, to test interface.
87750         Include <stdlib.h> and <string.h> unconditionally.
87751
87752         * lib/linebuffer.c: Include <stdlib.h>.
87753         (free): Remove decl.
87754
87755         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87756         stddef.h. rpl_malloc returns void *, not char *.
87757         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87758         prototype.
87759
87760         * lib/md5.h: Include <limits.h> unconditionally.
87761         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87762         (__P): Remove; all uses removed.
87763         * lib/md5.c: Include "md5.h" first.
87764         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87765         md5_buffer, md5_process_bytes, md5_process_block):
87766         Define with prototypes.
87767         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87768         * lib/sha.c: Include "sha.h" first.
87769         Include <stdlib.h>, <string.h> unconditionally.
87770
87771         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87772         * lib/memcmp.c (__ptr_t): Likewise.
87773         * lib/memrchr.c (__ptr_t): Likewise.
87774         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87775         Include <string.h> unconditionally.
87776         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87777         * lib/memchr.c: Include <stdlib.h> unconditionally.
87778         * lib/memchr.c (LONG_MAX): Remove.
87779         * lib/memrchr.c (LONG_MAX): Likewise.
87780         * lib/memchr.c (__memchr): Define via a prototype.
87781         * lib/memrchr.c (__memrchr): Likewise.
87782         * lib/memcmp.c (__P): Remove, and remove all uses.
87783         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87784         Remove forward decls; no longer needed.
87785         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87786         Use types required by C89 in prototype.
87787
87788         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87789         * lib/savedir.c: Likewise.
87790         * lib/mkdir.c (free): Remove decl.
87791         * lib/rmdir.c (rmdir): Define with a prototype.
87792         * lib/savedir.c: Include savedir.h first, to test interface.
87793
87794         * lib/mktime.c (STDC_HEADERS): Remove.
87795         Include <stdlib.h>, <string.h> unconditionally.
87796
87797         * lib/modechange.c: Include <stdlib.h> unconditionally.
87798         (malloc): Remove decl.
87799
87800         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87801         (free): Remove decl.
87802
87803         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87804         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87805         (This type really should be intptr_t, but that's a C99ism.)
87806         (_obstack_memcpy): Remove: all uses changed to memcpy.
87807         Include <string.h> unconditionally.
87808         (struct obstack): Assume __STDC__ for types of members
87809         chunkfun, freefun, extra_arg.
87810         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87811         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87812         obstack_begin, obstack_specify_allocation,
87813         obstack_specify_allocation_with_arg, obstack_chunkfun,
87814         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87815         Remove unprototyped decls and the macros that use them.
87816         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87817         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87818         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87819         (defined __STDC__ && __STDC__)]:
87820         Remove nonprototyped code.
87821         Include <stdlib.h> unconditionally.
87822         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87823         _obstack_allocated_p, _obstack_free, obstack_free,
87824         _obstack_memory_used, print_and_abort):
87825         Define using prototypes.
87826         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87827         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87828         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87829         obstack_next_free, obstack_object_size, obstack_room) [0]:
87830         Remove unused, unprototyped code.
87831
87832         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87833
87834         * lib/physmem.c (physmem_total, physmem_available, main): Define
87835         with prototypes.
87836
87837         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87838         (main): Define with a prototype.
87839
87840         * lib/posixver.c (getenv): Remove decl.
87841
87842         * lib/putenv.c (malloc): Returns void *, not char *.
87843         Include <string.h> unconditionally.
87844         (strchr, memcpy, NULL): Do not define.
87845
87846         * lib/readtokens.c: Include readtokens.h first, to test interface.
87847         Include <stdlib.h>, <string.h> unconditionally.
87848         (init_tokenbuffer): Define with a prototype.
87849
87850         * lib/regex.c (PARAMS): Remove.  All uses removed.
87851         All uses of _RE_ARGS removed, too.
87852         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87853         unconditionally.
87854         (bzero): Assume memset exists.
87855         (memcmp, memcpy, NULL): Remove.
87856         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87857         char, or assignments to local vars of type signed char.
87858         (init_syntax_once, PREFIX(extract_number_and_incr),
87859         PREFIX(print_partial_compiled_pattern),
87860         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87861         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87862         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87863         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87864         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87865         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87866         wcs_compile_range, byte_compile_range, truncate_wchar,
87867         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87868         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87869         count_mbs_length, wcs_re_match_2_internal,
87870         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87871         PREFIX(alt_match_null_string_p),
87872         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87873         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87874         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87875         now-unnecessary declaration, if any.
87876         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87877         regcomp, regexec):
87878         Remove now-unnecessary casts among pointer types.
87879         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87880
87881         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87882         (free): Remove decl.
87883
87884         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87885
87886         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87887         (free): Remove decl.
87888
87889         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87890         * lib/xgetcwd.c: Likewise.
87891
87892         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87893         (free): Remove decl.
87894
87895         * lib/strchrnul.c (strchrnul): Define with a prototype.
87896         Fix bug: c_in was not converted to char before searching.
87897
87898         The following changes are not K&R related:
87899
87900         * lib/group-member.h: Include <sys/types.h>, so that this file is
87901         self-contained.
87902         * lib/makepath.h: Likewise.
87903
87904         * lib/getusershell.c (readname, default_index, line_size, readname):
87905         Use size_t, not int, for sizes.
87906         (readname): If the size overflows, report an error instead of
87907         looping forever.
87908
87909 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87910
87911         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87912         libc.
87913
87914 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87915
87916         * README: New section: portability guidelines.
87917
87918 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87919
87920         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87921         C89 spec.
87922
87923 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87924
87925         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87926
87927 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87928
87929         Assume C89 or better; remove K&R cruft.
87930         A few of these changes were first proposed by Derek Robert Price
87931         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87932
87933         * lib/addext.c: Include <string.h> unconditionally.
87934         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87935         Don't declare getenv or malloc.
87936
87937         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87938         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87939         (NULL): Remove.
87940         (find_stack_direction, alloca): Use prototypes.
87941
87942         * lib/atexit.c (atexit): Define using a prototype.
87943
87944         * lib/basename.c, dirname.c, stripslash.c:
87945         Include <string.h> unconditionally.
87946
87947         * lib/bcopy.c: Include <stddef.h>.
87948         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87949
87950         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87951
87952         * lib/error.h (error, error_at_line, error_print_progname)
87953         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87954         * lib/error.c: Include error.h first, to check interface.
87955         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87956         (VA_START): Remove; all uses changeed to va_start.
87957         (exit, strerror): Remove decls.
87958         (error_print_progname): Prototype uncondionally.
87959         Don't include <errno.h>; no longer needed.
87960         (private_strerror): Remove.
87961         (error_tail): Always define.
87962         (error, error_at_line): Assume C89 or better; always use prototypes.
87963         * lib/fatal.c: Include "fatal.h" first, to test interface.
87964         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87965         (VA_START): Remove; all uses changed to va_start.
87966         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87967         this case.
87968         (exit): Remove decl.
87969         (fatal): Prototype unconditionally.  Assume va_start works.
87970         Abort at end, to pacify gcc.
87971
87972         * lib/euidaccess.c (main): Define with a prototype.
87973
87974         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87975
87976         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87977
87978         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87979         prototypes.
87980         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87981         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87982         (getenv): Remove decl.
87983         (fnmatch): Define using a prototype.
87984         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87985         (FCT): Define using a prototype.
87986
87987         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87988
87989         * lib/gethostname.c: Include <stddef.h>.
87990         (gethostname): Define with prototype.  Length is size_t, not int.
87991
87992 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87993
87994         Assume C89 or better; remove K&R cruft.
87995         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87996         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87997         string.h, getenv, malloc.
87998         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87999         headers.
88000         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88001         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88002         do not check for strerror.
88003         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88004         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88005         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88006         do not check for doprnt or vprintf.
88007         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88008         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88009
88010 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88011
88012         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88013         getversion.c should have been removed then, but was accidentally
88014         preserved.
88015
88016         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88017         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88018
88019 2003-09-08  Karl Berry  <karl@gnu.org>
88020
88021         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88022                 config, forget about prep.
88023
88024         * config/depcomp, missing: update from automake.
88025
88026 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88027
88028         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88029         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88030
88031 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88032
88033         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88034         copy_tm_result.  Bug reported by Simon Josefsson in
88035         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88036
88037 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88038
88039         * m4/time_r.m4: New file.
88040         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88041         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88042         is. Check for timegm declaration.
88043         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88044         Do not check for gmtime_r.
88045         Replace mktime if __mktime_internal does not exist and if mktime
88046         hasn't been replaced already.
88047
88048 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88049
88050         * lib/time_r.c, lib/time_r.h: New files.
88051
88052         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88053         __localtime_r.
88054         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88055         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88056
88057         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88058         __gmtime_r.
88059         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88060         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88061         Include <time_r.h>.
88062
88063         * lib/timegm.c: Switch to glibc implementation, with the following
88064         changes:
88065         [defined HAVE_CONFIG_H]: Include <config.h>.
88066         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88067         (__mktime_internal) [!defined _LIBC]: New decl.
88068         (__gmtime_r) [!defined _LIBC]: New macro and function.
88069         (timegm): Use a prototype, since gnulib assumes C89.
88070         Do not bother declaring tmp to be const, as it's not really usefu.
88071         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88072         (timegm): Declare only if HAVE_DECL_TIMEGM.
88073
88074 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88075
88076         * MODULES.html.sh (func_all_modules): Add time_r.
88077         * modules/time_r: New file.
88078         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88079         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88080
88081 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88082
88083         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88084         Bug reported by Lute Kamstra in
88085         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88086
88087         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88088         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88089         course with correspondingly smaller numbers for tomorrow and
88090         yesterday.  From Tadayoshi Funaba.  Originally installed into
88091         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88092         coreutils merge?).
88093
88094 2003-08-31  Simon Josefsson  <jas@extundo.com>
88095
88096         * modules/timegm: New file.
88097         * MODULES.html.sh (func_all_modules): Add timegm.
88098
88099 2003-08-31  Simon Josefsson  <jas@extundo.com>
88100
88101         * m4/timegm.m4: New file.
88102
88103 2003-08-31  Simon Josefsson  <jas@extundo.com>
88104
88105         * lib/timegm.h: New file.
88106         * lib/timegm.c: New file.  Based on
88107         wget-1.8.2/src/http.c:mktime_from_utc.
88108
88109 2003-08-31  Karl Berry  <karl@gnu.org>
88110
88111         * lib/argp.h: update from libc.
88112
88113 2003-08-28  Bruno Haible  <bruno@clisp.org>
88114
88115         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88116         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88117         followed by '#define fnmatch fnmatch_posix' gives an error.
88118
88119 2003-08-28  Bruno Haible  <bruno@clisp.org>
88120
88121         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88122         warning on QNX, which defines O_BINARY to 000000.
88123
88124 2003-08-27  Jim Meyering  <jim@meyering.net>
88125
88126         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88127         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88128         would fail after 32.  Reported by Danny Levinson.  Details here:
88129         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88130
88131 2003-08-24  Bruno Haible  <bruno@clisp.org>
88132
88133         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88134         MSVC7 <stdio.h> is included later.
88135
88136 2003-08-22  Simon Josefsson  <jas@extundo.com>
88137
88138         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88139
88140 2003-08-20  Karl Berry  <karl@gnu.org>
88141
88142         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88143
88144 2003-08-20  Bruno Haible  <bruno@clisp.org>
88145
88146         * modules/progname: New file.
88147         * MODULES.html.sh (func_all_modules): Add progname.
88148
88149 2003-08-20  Bruno Haible  <bruno@clisp.org>
88150
88151         * lib/progname.h: New file, from GNU gettext.
88152         * lib/progname.c: New file, from GNU gettext.
88153         * lib/progreloc.c: New file, from GNU gettext.
88154
88155 2003-08-19  Jim Meyering  <jim@meyering.net>
88156
88157         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88158         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88159
88160 2003-08-19  Bruno Haible  <bruno@clisp.org>
88161
88162         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88163         more.
88164
88165 2003-08-19  Bruno Haible  <bruno@clisp.org>
88166
88167         * lib/xstrdup.c: Assume <string.h> exists.
88168
88169 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88170
88171         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88172         in makefile rules.
88173
88174 2003-08-18  Jim Meyering  <jim@meyering.net>
88175
88176         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88177         * m4/lib-ld.m4: Likewise.
88178
88179 2003-08-18  Jim Meyering  <jim@meyering.net>
88180
88181         * lib/setenv.h: Indent nested cpp directive.
88182         * lib/vasnprintf.c: Remove trailing blanks.
88183
88184 2003-08-17  Simon Josefsson  <jas@extundo.com>
88185
88186         * modules/xstrndup: New file.
88187         * MODULES.html.sh (func_all_modules): Add xstrndup.
88188
88189 2003-08-17  Simon Josefsson  <jas@extundo.com>
88190
88191         * modules/argp: Fix autoconf macro name. Add more dependencies.
88192
88193 2003-08-17  Simon Josefsson  <jas@extundo.com>
88194
88195         * m4/xstrndup.m4: New file.
88196
88197 2003-08-17  Simon Josefsson  <jas@extundo.com>
88198
88199         * m4/argp.m4: New file.
88200
88201 2003-08-17  Simon Josefsson  <jas@extundo.com>
88202             Bruno Haible  <bruno@clisp.org>
88203
88204         * lib/xstrndup.h: New file.
88205         * lib/xstrndup.c: New file.
88206
88207 2003-08-17  Bruno Haible  <bruno@clisp.org>
88208
88209         * modules/strndup (Files, Include): Add lib/strndup.h.
88210
88211 2003-08-17  Bruno Haible  <bruno@clisp.org>
88212
88213         * modules/euidaccess (Files): Add lib/euidaccess.h.
88214
88215 2003-08-17  Bruno Haible  <bruno@clisp.org>
88216
88217         * lib/strndup.h: New file.
88218
88219 2003-08-17  Bruno Haible  <bruno@clisp.org>
88220
88221         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88222         like AC_GNU_SOURCE.
88223         * modules/extensions (configure.ac): Comment out the invocation of
88224         gl_USE_SYSTEM_EXTENSIONS.
88225
88226 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88227
88228         Merges from coreutils, etc.
88229         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88230         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88231         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88232         fixing a typo.
88233         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88234         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88235
88236 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88237
88238         Document merge from coreutils.
88239         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88240         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88241         * modules/utime: Add m4/utimes-null.m4.
88242
88243 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88244
88245         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88246         space, undoing this 2003-08-12 change:
88247         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88248
88249 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88250
88251         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88252         strtoul.c from libc, undoing this 2003-08-12 change:
88253         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88254
88255 2003-08-16  Jim Meyering  <jim@meyering.net>
88256
88257         Merges from coreutils.
88258         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88259         prefix.  Adjust cache variables similarly.  Create 500 rather than
88260         just 300 files, to exercise bug on Darwin6.5, too.
88261         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88262         $missing_dir.
88263         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88264         AM_SYS_POSIX_TERMIOS.
88265         Reported by mkc@mathdogs.com.
88266         Also change use of $am_cv_sys_posix_termios
88267         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88268         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88269         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88270         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88271         in /proc/mounts until it finds one with matching device number.  This
88272         is unnecessary when the FILE argument *is* a mount point.  No stat call
88273         is necessary in that case.  So, disable the statvfs-testing code on
88274         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88275         as RedHat bug# 84846.
88276         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88277         to 1MB, so as not to render systems with no stack size limit (e.g.,
88278         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88279         Include <unistd.h>.  On some systems,
88280         it is required for the definition of _SC_PAGESIZE.
88281
88282 2003-08-16  Jim Meyering  <jim@meyering.net>
88283
88284         Merge from coreutils.
88285         * lib/xstrtoimax.c: #else #if -> #elif.
88286         * lib/xstrtoumax.c: Likewise.
88287
88288 2003-08-16  Jim Meyering  <jim@meyering.net>
88289
88290         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88291         * m4/utimes.m4: Removed.
88292         * m4/utimes-null.m4: Renamed from utimes.m4.
88293
88294         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88295         to 1MB, so as not to render systems with no stack size limit (e.g.,
88296         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88297         Include <unistd.h>.  On some systems,
88298         it is required for the definition of _SC_PAGESIZE.
88299
88300 2003-08-16  Jim Meyering  <jim@meyering.net>
88301         and Paul Eggert  <eggert@cs.ucla.edu>
88302
88303         Merges from coreutils, etc.
88304
88305         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88306         using the latest version from cvs.  This avoids problems with #line
88307         directives using a vendor (Sun) compiler.
88308         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88309         Don't set GETGROUPS_LIB here; now it's
88310         done via getgroups.m4's wrapper function.
88311         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88312         rather than just in sh-util/configure.in, so that the
88313         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88314         same.
88315         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88316         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88317         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88318         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88319         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88320         Remove code that is now done by the newly-required macros.
88321         Append $(EXEEXT) to DF_PROG.
88322         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88323         Do not invoke or require the following here,
88324         since prereq.m4 or some gnulib .m4 now does this for us:
88325         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88326         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88327         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88328         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88329         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88330         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88331         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88332         AC_FUNC_OBSTACK.
88333         Do not replace the following functions, as this is now the job
88334         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88335         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88336         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88337         atexit getpass, strdup, getpagesize.
88338         Replace 'raise'.
88339         Do not check for the following functions, as this is now the job
88340         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88341         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88342         setregid.
88343         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88344         Check for sys/sysctl.h.
88345         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88346         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88347         of checking for ssize_t ourselves.
88348
88349         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88350         Require every macro that gnulib/modules/* suggests for us.
88351         (jm_PREREQ_ADDEXT): New macro.
88352         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88353         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88354
88355         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88356         (gl_PHYSMEM): Use it.
88357         Also check for `table' function.
88358         Check for new headers and functions.
88359         Add check for sys/sysmp.h.
88360         With suggestions from Kaveh Ghazi.
88361         Ignore headers that are present but cannot be compiled.  This
88362         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88363         C 5.4.
88364
88365 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88366
88367         Document merge from coreutils.
88368         * modules/userspec: Depend on posixver.
88369         * modules/strftime: Depend on tzset.
88370
88371 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88372
88373         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88374         rather than tab, after '#' in shell-script copyright notices.
88375         Suggested by Bruno Haible.
88376
88377 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88378
88379         * config/srclist-update: Use three spaces, rather than tab, after '#'
88380         in shell-script copyright notices.  Suggested by Bruno Haible.
88381         Remove unnecessary parenthesization in regular expression.
88382
88383 2003-08-15  Jim Meyering  <jim@meyering.net>
88384
88385         Merge from coreutils.
88386         * lib/xgethostname.c: Include <stdlib.h>.
88387         (xghostname): Don't exit for anything other than memory-related
88388         failure; just return NULL.
88389         * lib/userspec.c: Include "posixver.h".
88390         (parse_user_spec): Accept `.' as a separator only
88391         in pre-POSIX-200112 mode.
88392         * lib/strtoimax.c: Use #elif rather than #else #if.
88393         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88394         Remove function, now that we can rely on a working tzset function.
88395         [!_LIBC]: Ensure that the required autoconf test has been run.
88396         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88397         Use underlying_strftime for %r.
88398         * lib/sha.c: Merge in some clean-up and optimization changes from
88399         glibc.
88400         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88401         Ensure that it is a multiple of 64.
88402         Rearrange loop exit tests so as to avoid performing an
88403         additional fread after encountering an error or EOF.
88404         * lib/realloc.c: Update copyright date.
88405
88406 2003-08-15  Jim Meyering  <jim@meyering.net>
88407         and Paul Eggert  <eggert@twinsun.com>
88408
88409         Merge from coreutils.
88410         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88411         member but strut utmpx does not.  Needed for AIX 4.3.3.
88412         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88413
88414 2003-08-15  Jim Meyering  <jim@meyering.net>
88415         and Paul Eggert  <eggert@cs.ucla.edu>
88416
88417         Merges from coreutils, etc.
88418         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88419         Require gl_FUNC_TZSET_CLOBBER.
88420         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88421         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88422         members.
88423
88424 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88425
88426         Help the merge from coreutils.
88427         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88428         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88429         * m4/tzset.m4: Use it too.
88430
88431 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88432
88433         * modules/tzset: New file.
88434
88435 2003-08-14  Jim Meyering  <jim@meyering.net>
88436
88437         Merges from coreutils.
88438         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88439         variable names, rather than @FNMATCH_H@.
88440         * modules/alloca: Likewise for $(ALLOCA_H).
88441
88442         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88443         the three copies of the literal target, `fnmatch.h'.
88444         * modules/alloca (alloca.h): Likewise.
88445
88446 2003-08-14  Jim Meyering  <jim@meyering.net>
88447
88448         Merge from coreutils.
88449         * m4/tzset.m4: New file.
88450         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88451         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88452         otherwise, AIX 5.1 systems would end up using the latter.
88453         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88454         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88455         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88456         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88457
88458 2003-08-14  Jim Meyering  <jim@meyering.net>
88459
88460         Merge from coreutils.
88461         * lib/obstack.h: Whitespace changes.
88462         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88463         and xcalloc return values.
88464         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88465         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88466         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88467         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88468         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88469         error from mntctl.
88470         Use mntctl's return value to drive the entry-processing loop, since
88471         we can't rely on the value of the vmt_length member in the last
88472         entry.  On some systems doing so could result in exhausting
88473         virtual memory.  Based in part on a patch from Mike Jetzer.
88474
88475 2003-08-14  Jim Meyering  <jim@meyering.net>
88476         and Paul Eggert  <eggert@twinsun.com>
88477
88478         Merges from coreutils, plus other fixes.
88479         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88480         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88481         for credits and details.  Thanks to Kaveh Ghazi for helping
88482         to keep these files in sync.
88483         (ARRAY_SIZE): Define it.
88484         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88485         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88486         (memcasecmp): Don't assume size_t fits in unsigned int.
88487         Remove casts and duplicate code.
88488         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88489         (memcpy): Remove definition.
88490         Merge in some clean-up and optimization changes from glibc.
88491         [BLOCKSIZE]: Move definition to top of file.
88492         Ensure that it is a multiple of 64.
88493         Rearrange loop exit tests so as to avoid performing an
88494         additional fread after encountering an error or EOF.
88495         * lib/md5.h (md5_uintptr): Define.
88496         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88497         return to the initial working directory.  Preserve errno
88498         for caller.
88499         * lib/idcache.c: Include "xalloc.h".
88500         (xmalloc, xrealloc): Remove decls.
88501         (getuser): Remove casts no longer required in C89.
88502         * lib/human.c: Include stdio.h, for sprintf.
88503         * lib/group-member.c: Include "xalloc.h".
88504         (xmalloc, xrealloc): Remove decls.
88505         (get_group_info): Remove casts no longer required in C89.
88506         * lib/getusershell.c (readname): Remove casts no longer required in
88507         C89.
88508         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88509         * lib/getline.c: Whitespace fix, from coreutils.
88510
88511 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88512
88513         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88514         Check for isascii.
88515
88516         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88517         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88518         Undo previous (whitespace-only) change.
88519
88520 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88521
88522         * lib/exclude.c: Include <ctype.h>
88523         (IN_CTYPE_DOMAIN): New macro.
88524         (is_space): New fn.
88525         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88526         and empty lines.
88527
88528         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88529         Undo previous (whitespace-only) change.
88530
88531 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88532
88533         * config/srclist-update: Change update back to the old behavior,
88534         leaving whitespace alone.  Use one 'sed' command rather than a
88535         pipeline.
88536         (fixlicense): Now a variable, not a function.
88537         (remove_trailing_blanks): Remove.
88538         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88539         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88540         Undo previous (whitespace-only) change.
88541
88542 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88543
88544         Merge from coreutils.
88545         * modules/euidaccess: Add lib_SOURCES, include for new
88546         file euidaccess.h
88547
88548 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88549
88550         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88551         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88552         Normalize leading white space and remove trailing white space.
88553
88554         Merge from coreutils
88555         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88556
88557         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88558         0.12.1.  These files are now being upgraded automatically by
88559         ../config/srclist-update.
88560
88561 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88562
88563         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88564         Normalize leading white space and remove trailing white space.
88565         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88566         notice, as per ../config/srclist-update.
88567
88568         Merge from coreutils.
88569         * lib/euidaccess.h: New file.
88570         * lib/euidaccess.c: Include it.
88571         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88572         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88573         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88574
88575 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88576
88577         * config/srclist-update: Add copyright notice.
88578         (remove_id_lines, remove_trailing_blanks): New constants.
88579         (fixfile): Use them to normalize spacing a bit in copied files.
88580         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88581         Normalize leading white space and remove trailing white space.
88582
88583         * config/texinfo.tex: Sync with texinfo.
88584
88585         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88586         strtoul.c from libc, to merge coreutils whitespace changes.
88587
88588         * config/srclist.txt: Get the following m4 files from gettext:
88589         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88590         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88591         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88592         wint_t.m4.
88593
88594 2003-08-12  Karl Berry  <karl@gnu.org>
88595
88596         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88597         been made.
88598
88599 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88600
88601         * modules/gnu-source, m4/gnu-source.m4:
88602         Remove; we're assuming Autoconf 2.54 or later now.
88603         Suggested by Bruno Haible.
88604         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88605
88606 2003-08-11  Bruno Haible  <bruno@clisp.org>
88607
88608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88609
88610 2003-08-11  Bruno Haible  <bruno@clisp.org>
88611
88612         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88613         (vasnprintf): Use it instead of wcslen.
88614
88615 2003-08-11  Bruno Haible  <bruno@clisp.org>
88616
88617         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88618         value to ensure that _Bool promotes to int. Use #define for _Bool when
88619         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88620
88621 2003-08-10  Karl Berry  <karl@gnu.org>
88622
88623         * lib/regex.h: update from libc (whitespace fix).
88624
88625 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88626
88627         Merge some files from coreutils.  These changes were
88628         originally made by Jim Meyering.
88629         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88630         many older Unixes require this.
88631         * lib/alloca.c (alloca): Remove cast to argument of free;
88632         no longer needed in C89.
88633         * lib/alloca_.h, regex.h: Fix white space to match
88634         what GNU indent does.
88635
88636 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88637
88638         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88639         apparently Emacs's Unicode mode got confused before my 2003-08-05
88640         checkin.
88641
88642 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88643
88644         * m4/extensions.m4: New file.
88645         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88646         Require gl_USE_SYSTEM_EXTENSIONS.
88647         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88648         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88649
88650 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88651
88652         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88653         * modules/extensions, modules/gnu-source: New files.
88654         * modules/timespec, modules/unlocked-io: Depend on extensions.
88655
88656 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88657
88658         * modules/restrict: New file.
88659         * MODULES.html.sh (func_all_modules): Add restrict.
88660         * modules/regex: Depend on restrict.
88661
88662 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88663
88664         * m4/restrict.m4: New file.
88665         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88666
88667 2003-08-07  Bruno Haible  <bruno@clisp.org>
88668
88669         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88670         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88671
88672 2003-08-07  Bruno Haible  <bruno@clisp.org>
88673
88674         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88675         makes the module 'getndelim2' compatible with the module 'getline'.
88676
88677 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88678
88679         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88680         byte with "\201" to avoid glitches when editing that source file
88681         with multi-gnome-terminal.
88682
88683 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88684
88685         * lib/bumpalloc.h: Remove.
88686
88687 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88688
88689         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88690         * modules/bumpalloc: Remove.
88691
88692 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88693
88694         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88695         GNU coding style.
88696
88697         Merge from coreutils.
88698         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88699         1. From glibc.
88700         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88701         from Karl Berry, implemented by Jim Meyering.
88702         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88703         from Dmitry V. Levin.
88704         Remove anachronistic cast of xrealloc.
88705         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88706         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88707         type. Otherwise, it wouldn't compile with at least /bin/cc on
88708         ymp-cray-unicos9.0.2.X.
88709         Combine two mostly-identical uses of alloca into one.
88710         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88711
88712 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88713
88714         [From Emacs.]
88715
88716         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88717         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88718         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88719         obsolete NLIST_NAME_UNION.
88720         [__GNU__]: Undef BSD and FSCALE.
88721         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88722
88723 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88724
88725         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88726         an enum type, so that it's guaranteed to promote to int.  See:
88727         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88728
88729 2003-08-03  Karl Berry  <karl@gnu.org>
88730
88731         * config/depcomp: update from automake.
88732
88733 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88734
88735         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88736         (strerror): Don't assume that a printable int fits in 14 bytes.
88737
88738 2003-07-31  Bruno Haible  <bruno@clisp.org>
88739
88740         * modules/getpass-gnu: New file.
88741         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88742
88743 2003-07-31  Bruno Haible  <bruno@clisp.org>
88744
88745         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88746
88747 2003-07-24  Karl Berry  <karl@gnu.org>
88748
88749         * config/missing: update from automake.
88750
88751 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88752             Bruno Haible  <bruno@clisp.org>
88753
88754         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88755         * lib/getline.c (getline, getdelim): Likewise.
88756         Remove _GNU_SOURCE define; now it's defined in config.h through
88757         m4/getline.m4.
88758
88759 2003-07-23  Karl Berry  <karl@gnu.org>
88760
88761         * config/config.sub: update from prep.
88762
88763 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88764
88765         * modules/xalloc (Depends-on): Add exitfail.
88766         * modules/xmemcoll: Likewise.
88767
88768 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88769
88770         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88771         over-parenthesization in macros.
88772
88773         Sync with coreutils.
88774
88775         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88776         required by C99.
88777
88778         Use `exit_failure' for xalloc and xmemcoll instead of their own
88779         private exit-failure variables.
88780         * lib/xalloc.h (xalloc_exit_failure): Remove.
88781         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88782         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88783         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88784         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88785         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88786
88787 2003-07-20  Jim Meyering  <jim@meyering.net>
88788
88789         * modules/closeout (Depends-on): Add exitfail.
88790         Suggestion from Bruno Haible.
88791
88792 2003-07-19  Karl Berry  <karl@gnu.org>
88793
88794         * config/config.sub: update from prep.
88795
88796 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88797
88798         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88799         Remove.
88800         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88801         to test that it can stand by itself.  Include "exitfail.h".
88802         Clients should set exit_failure instead.
88803         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88804
88805 2003-07-18  Bruno Haible  <bruno@clisp.org>
88806
88807         * modules/getndelim2: New file.
88808         * modules/getline: Share files with module getndelim2.
88809         * modules/getnline: Depend on getndelim2 instead of sharing files with
88810         it. Add getnline.c to lib_SOURCES.
88811         * MODULES.html.sh (func_all_modules): Add getndelim2.
88812
88813 2003-07-18  Bruno Haible  <bruno@clisp.org>
88814
88815         * m4/getndelim2.m4: New file.
88816         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88817         invoke gl_PREREQ_GETNDELIM2.
88818         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88819         gl_PREREQ_GETNDELIM2.
88820         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88821         gl_GETNDELIM2.
88822
88823 2003-07-18  Bruno Haible  <bruno@clisp.org>
88824
88825         * lib/getndelim2.h: New file.
88826         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88827         getndelim2.h.
88828         (getndelim2): Make non-static. Change return type to ssize_t.
88829         * lib/getline.h: Change argument names.
88830         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88831         * lib/getnline.c: Include getndelim2.h.
88832
88833 2003-07-18  Andreas Schwab  <schwab@suse.de>
88834
88835         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88836
88837 2003-07-17  Karl Berry  <karl@gnu.org>
88838
88839         * config/config.sub: update from prep.
88840
88841 2003-07-17  Bruno Haible  <bruno@clisp.org>
88842
88843         * modules/getnline: New file.
88844         * modules/getline: Add lib/getndelim2.c to source file list.
88845         * MODULES.html.sh (func_all_modules): Add getnline.
88846
88847 2003-07-17  Bruno Haible  <bruno@clisp.org>
88848
88849         * m4/getnline.m4: New file.
88850
88851 2003-07-17  Bruno Haible  <bruno@clisp.org>
88852
88853         * m4/Makefile.am.in: Remove file.
88854         * m4/Makefile.am: Remove file.
88855         * m4/Makefile.in: Remove file.
88856
88857 2003-07-17  Bruno Haible  <bruno@clisp.org>
88858
88859         * lib/getnline.h: New file.
88860         * lib/getnline.c: New file.
88861         * lib/getndelim2.c: New file, extracted from getline.c.
88862         (getndelim2): Renamed from getdelim2, with added nmax argument.
88863         * lib/getline.c: Include getndelim2.c.
88864         (getdelim2): Moved out to getndelim2.c.
88865         (getline, getdelim): Update.
88866
88867 2003-07-17  Bruno Haible  <bruno@clisp.org>
88868
88869         * lib/Makefile.am: Remove file.
88870         * lib/Makefile.in: Remove file.
88871
88872 2003-07-17  Bruno Haible  <bruno@clisp.org>
88873
88874         * configure.in: Remove file.
88875         * Makefile.in: Remove file.
88876
88877 2003-07-17  Bruno Haible  <bruno@clisp.org>
88878
88879         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88880
88881 2003-07-16  Karl Berry  <karl@gnu.org>
88882
88883         * config/srclist-update: was running fixlicense twice, which caused
88884                 texinfo.tex to be nullified for some reason.  Simplify,
88885                 $gplsrc is no longer needed as far as I can see?
88886
88887 2003-07-16  Jim Meyering  <jim@meyering.net>
88888
88889         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88890
88891 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88892
88893         * config/srclist.txt: Get the following files from gettext-runtime/intl
88894         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88895         ref-del.sin.  From Bruno Haible.
88896         * config/srclist-update (fixfile): Change grep pattern again, since the
88897         previous fix didn't work (there was another trailing $).  Use
88898         '[$]' to escape the $s.
88899
88900 2003-07-15  Karl Berry  <karl@gnu.org>
88901
88902         * lib/vasnprintf.c: update from gettext.
88903
88904 2003-07-15  Karl Berry  <karl@gnu.org>
88905
88906         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88907         gets expanded when surrounded by '$'.
88908
88909 2003-07-15  Jim Meyering  <jim@meyering.net>
88910
88911         * modules/save-cwd: Don't depend on error.  From Derek Price.
88912
88913 2003-07-15  Jim Meyering  <jim@meyering.net>
88914
88915         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88916
88917 2003-07-14  Simon Josefsson  <jas@extundo.com>
88918
88919         * modules/mempcpy: New file.
88920         * MODULES.html.sh (func_all_modules): Add mempcpy.
88921
88922 2003-07-14  Simon Josefsson  <jas@extundo.com>
88923
88924         * m4/mempcpy.m4: New file.
88925
88926 2003-07-14  Simon Josefsson  <jas@extundo.com>
88927
88928         * lib/mempcpy.h: New file.
88929         * lib/mempcpy.c: New file.
88930
88931 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88932
88933         * modules/getdate, modules/posixtm: Depend on mktime.
88934
88935 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88936
88937         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88938         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88939         unicodeio.c, unicodeio.h, unlocked-io.h:
88940         Switch from LGPL to GPL.
88941
88942 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88943
88944         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88945         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88946         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88947         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88948         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88949         updated automatically by ../config/srclist-update.  This changes
88950         their license from LPGL to GPL.
88951
88952 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88953
88954         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88955         assumed to refer to the root of the most recent stable gettext version.
88956         * config/srclistvars.sh: Add defaults for eggert.
88957         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88958         Match "This program" as well as "The program".  This is needed
88959         for gettext.
88960
88961 2003-07-14  Jim Meyering  <jim@meyering.net>
88962
88963         Don't emit diagnostics.  Let callers do that.
88964         * lib/save-cwd.c: Don't include "error.h".
88965         (save_cwd): Don't call error.  Ensure that errno is valid
88966         when returning nonzero.
88967
88968         * lib/save-cwd.h (restore_cwd): Update prototype.
88969         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88970         Simplify.  Don't call error upon failure.  Let callers do that.
88971         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88972         when auditing is enabled.  But don't bother updating the #if.
88973
88974 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88975
88976         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88977         it breaks C++ compilation.
88978         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88979
88980 2003-07-10  Simon Josefsson  <jas@extundo.com>
88981
88982         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88983
88984 2003-07-10  Jim Meyering  <jim@meyering.net>
88985
88986         * m4/clock_time.m4: Remove trailing blank.
88987         * m4/intmax_t.m4: Likewise.
88988
88989 2003-07-10  Jim Meyering  <jim@meyering.net>
88990
88991         * lib/vasnprintf.c: Remove trailing blanks.
88992         Make cpp indentation consistent.
88993
88994 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88995
88996         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88997         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88998         Switch from LGPL to GPL.
88999
89000 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89001
89002         * config/srclist.txt: Sort sublists.  Add
89003         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89004         that differ from gnulib for one reason or another; we'd like this list
89005         to be smaller but for now let's document what we have.
89006
89007 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89008
89009         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89010         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89011         and sweeter "eval x=$x".
89012         * config/srclist.txt: Get lib/argp* from glibc.
89013
89014 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89015
89016         * lib/mktime.c: Fix some boundary cases and remove need for floating
89017         point.
89018
89019         Issue a compile-time diagnostic if time_t is floating point, or if
89020         two's complement arithmetic is not in effect, or if arithmetic
89021         right shift does not propagate the sign.  These assumptions were
89022         all in the original code but they weren't checked.
89023
89024         (TIME_T_MIDPOINT, verify): New macros.
89025         (__isleap): Remove; it has integer overflow problems.
89026         (leapyear): New function, without those problems.
89027         (ydhms_tm_diff): Remove; splitting into two parts.
89028         (ydhms_diff): New function, containing the arithmetic part of
89029         the old ydhms_tm_diff function.  Issue a compile-time
89030         diagnostic if we are not using C99 integer division.
89031         Avoid casts when possible.
89032         (guess_time_tm): New function, containing the checking part of
89033         the old ydhms_tm_diff function.  Return the new value, rather than
89034         the difference between it and the old.  Accept a new argument T
89035         so that *T specifies the old value.  Check for overflow in the result.
89036
89037         (__mktime_internal): Use a time_t offset, not a long int offset.
89038         This undoes the 2003-06-04 change, which is no longer needed now
89039         that we have better overflow checking.
89040         (localtime_offset): Likewise.
89041
89042         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89043         and long are 64-bit but int is only 32-bit.
89044         (ydhms_diff): Use long int to store year1 and yday1.
89045         Issue a compile-time diagnostic if long int is not wide enough.
89046
89047         (__mktime_internal): Use long int to store adjusted year and yday.
89048         Use plain C rather than preprocessor commands, if that doesn't
89049         affect efficiency.
89050         Check for overflow (and try to repair) after each probe
89051         rather than checking only at the very end.  This avoids some bugs
89052         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89053         does not equal GMT offset at maximum time).
89054         Use integer to check for overflow rather than floating point; this
89055         is more portable to non-IEEE hosts, and is a tad faster.
89056         When we detect that we are oscillating between two values,
89057         don't check whether tm_isdst has the requested value, since
89058         we already know the answer.  When tm_isdst has the wrong value,
89059         use a different heuristic to find the right one, based on the
89060         extreme values actually observed in practice in tz2003a,
89061         rather than the (overly optimistic) "previous 3 calendar quarters".
89062
89063         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89064         "T const" to accommodate glibc style.
89065         (check_result): Use less-confusing report format.  "long" -> "long int.
89066         (main): Likewise.
89067         Don't loop if the iteration overflows time_t.
89068         Allow a negative step in the iteration.
89069
89070 2003-07-06  Karl Berry  <karl@gnu.org>
89071
89072         * config/depcomp: update from automake.
89073         * config/config.sub: update from prep.
89074
89075 2003-07-03  Karl Berry  <karl@gnu.org>
89076
89077         * config/config.guess: update from prep.
89078
89079 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89080
89081         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89082         xreadlink.c now includes it unconditionally.
89083
89084 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89085
89086         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89087         having it depend on HAVE_SYS_TYPES_H.
89088
89089 2003-07-01  Bruno Haible  <bruno@clisp.org>
89090
89091         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89092         <sys/types.h> should be sufficient.
89093         Reported by Paul Eggert.
89094
89095 2003-06-26  Karl Berry  <karl@gnu.org>
89096
89097         * config/depcomp: update from automake.
89098
89099 2003-06-26  Bruno Haible  <bruno@clisp.org>
89100
89101         * modules/human: Depend on module stdbool.
89102
89103 2003-06-25  Bruno Haible  <bruno@clisp.org>
89104
89105         * modules/readlink: New file.
89106         * modules/xreadlink: Depend on it.
89107         * MODULES.html.sh (func_all_modules): Add readlink.
89108
89109 2003-06-25  Bruno Haible  <bruno@clisp.org>
89110
89111         * m4/readlink.m4: New file.
89112
89113 2003-06-25  Bruno Haible  <bruno@clisp.org>
89114
89115         * lib/readlink.c: New file.
89116
89117 2003-06-22  Karl Berry  <karl@gnu.org>
89118
89119         * config/srclist.txt: update mkinstalldirs from automake.
89120         * config/mkinstalldirs: update.
89121
89122 2003-06-22  Bruno Haible  <bruno@clisp.org>
89123
89124         Portability to mingw32.
89125         * m4/ssize_t.m4: New file, from GNU gettext.
89126         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89127         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89128
89129 2003-06-22  Bruno Haible  <bruno@clisp.org>
89130
89131         * modules/safe-read: Add m4/ssize_t.m4.
89132         * modules/xreadlink: Add m4/ssize_t.m4.
89133
89134 2003-06-20  Bruno Haible  <bruno@clisp.org>
89135
89136         Assume C89, so PARAMS isn't needed.
89137         * lib/unicodeio.h (PARAMS): Remove.
89138         * lib/unicodeio.c: Don't use PARAMS.
89139
89140 2003-06-18  Karl Berry  <karl@gnu.org>
89141
89142         * config/config.{guess,sub}: update from prep.
89143
89144 2003-06-18  Jim Meyering  <jim@meyering.net>
89145
89146         Merge changes from coreutils.
89147         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89148         Remove explicit declarations of xmalloc and realloc.
89149         Include xalloc.h.
89150         (read_utmp): Remove anachronistic cast of xmalloc.
89151
89152 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89153
89154         Assume C89, so PARAMS isn't needed.
89155         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89156         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89157         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89158         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89159         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89160         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89161         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89162         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89163         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89164         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89165         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89166         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89167         no longer needed. Anyway, config.h should always be included before any
89168         other file.
89169
89170 2003-06-11  Simon Josefsson  <jas@extundo.com>
89171
89172         * modules/sysexits: New file.
89173         * MODULES.html.sh (func_all_modules): Add sysexits.
89174
89175 2003-06-11  Simon Josefsson  <jas@extundo.com>
89176
89177         * lib/sysexit_.h: New file.
89178
89179 2003-06-11  Derek Price  <derek@ximbiot.com>
89180
89181         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89182         necessary.
89183
89184 2003-06-11  Bruno Haible  <bruno@clisp.org>
89185
89186         * m4/sysexits.m4: New file.
89187
89188 2003-06-10  Simon Josefsson  <jas@extundo.com>
89189
89190         * lib/argp.h: New file, from glibc.
89191         * lib/argp-ba.c: New file, from glibc.
89192         * lib/argp-eexst.c: New file, from glibc.
89193         * lib/argp-fmtstream.c: New file, from glibc.
89194         * lib/argp-fmtstream.h: New file, from glibc.
89195         * lib/argp-fs-xinl.c: New file, from glibc.
89196         * lib/argp-help.c: New file, from glibc.
89197         * lib/argp-namefrob.h: New file, from glibc.
89198         * lib/argp-parse.c: New file, from glibc.
89199         * lib/argp-pv.c: New file, from glibc.
89200         * lib/argp-pvh.c: New file, from glibc.
89201         * lib/argp-xinl.c: New file, from glibc.
89202
89203 2003-06-10  Simon Josefsson  <jas@extundo.com>
89204
89205         * modules/strchrnul: New file.
89206
89207 2003-06-10  Simon Josefsson  <jas@extundo.com>
89208
89209         * modules/argp: New file.
89210
89211 2003-06-10  Simon Josefsson  <jas@extundo.com>
89212
89213         * m4/strchrnul.m4: New file.
89214
89215 2003-06-10  Simon Josefsson  <jas@extundo.com>
89216
89217         * lib/strchrnul.h: New file.
89218         * lib/strchrnul.c: New file.
89219
89220 2003-06-10  Bruno Haible  <bruno@clisp.org>
89221
89222         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89223
89224 2003-06-07  Karl Berry  <karl@gnu.org>
89225
89226         * config/config.{guess,sub}: update from prep.
89227
89228 2003-06-07  Jim Meyering  <jim@meyering.net>
89229
89230         * modules/strtod: Use $(...) notation, not @...@ for
89231         AC_REPLACE'd variables.
89232         * modules/localcharset: Likewise.
89233
89234 2003-06-07  Jim Meyering  <jim@meyering.net>
89235
89236         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89237         in place of my name in the copyright comment.
89238         Remove definition and uses of __P.
89239
89240         From coreutils.
89241         * lib/stat.c: Don't declare xmalloc explicitly.
89242         Instead, include "xalloc.h".
89243         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89244         xrealloc, and xcalloc return values.
89245         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89246         Improve comment.
89247         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89248
89249 2003-06-07  Bruno Haible  <bruno@clisp.org>
89250
89251         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89252         avoid AC_CONFIG_LINKS.
89253         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89254         fnmatch.h, to avoid AC_CONFIG_LINKS.
89255         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89256
89257 2003-06-07  Bruno Haible  <bruno@clisp.org>
89258
89259         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89260         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89261         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89262         directory.
89263         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89264         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89265         directory.
89266
89267 2003-06-06  Jim Meyering  <jim@meyering.net>
89268
89269         Merge from coreutils.
89270         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89271         Consolidate declarations and initializations of *_base* locals.
89272
89273         Merge from coreutils.
89274         This avoids a core dump on systems without GNU putenv,
89275         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89276         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89277         (unsetenv): New static function, from GNU libc.
89278         (rpl_putenv): Use it.
89279
89280         * lib/modechange.c: Remove trailing blanks.
89281
89282         Merge from coreutils.
89283         * lib/fsusage.c: Remove declaration of statfs.
89284         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89285
89286         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89287
89288 2003-06-06  Jim Meyering  <jim@meyering.net>
89289
89290         * lib/stdbool_.h: Renamed from stdbool.h.in.
89291
89292 2003-06-06  Jim Meyering  <jim@meyering.net>
89293             Bruno Haible  <bruno@clisp.org>
89294
89295         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89296         Adjust Makefile.am snippet not to redirect directly to target.
89297         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89298
89299 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89300
89301         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89302         mismatch, look in future quarters as well as past.  This fixes a
89303         bug when processing fall-backwards gaps immediately after a long
89304         period of daylight-saving time.
89305
89306         * lib/mktime.c: Assume freestanding C89 or better.
89307         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89308         (__P): Remove; not used.
89309         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89310         (mktime, not_equal_tm, print_tm, check_result,
89311         main): Use prototypes.  Use const * where appropriate.
89312         (main): Fix typo in testing code that uncovered by above changes.
89313         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89314
89315 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89316
89317         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89318         locale.h, localeconv.  This merges changes from coreutils.
89319
89320         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89321         It can be removed after the next Autoconf is released.
89322         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89323         needed.
89324
89325 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89326
89327         * lib/mktime.c: Fix Debian bug 177940
89328         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89329         (localtime_offset): Now long int, not time_t, because we want it
89330         to be guaranteed to be signed.  All uses changed.
89331         (__mktime_internal): If overflow would occur when adding offset,
89332         don't add it.
89333
89334         Merge 'human' changes from coreutils.  Rewrite to support
89335         locale-specific notations like thousands separators.
89336         * lib/human.c: Simplify authorship notice.
89337         Include human.h immediately after config.h.
89338         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89339         <limits.h>: Do not include, since human.h does.
89340         (SIZE_MAX, UINTMAX_MAX): New macros.
89341         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89342         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89343         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89344         (power_letter): Renamed from suffixes.
89345         (generate_suffix_backwards): Remove.
89346         (adjust_value): Now takes int style (because of human.h changes)
89347         and long double value (for greater precision on some platforms).
89348         (group_number): New function.
89349         (human_readable): Use it.  Use integer options, not enum.
89350         Put the options before the sizes in the arg list.
89351         Support all the new options.
89352         The old human_readable function has been removed;
89353         use inttostr.h instead.
89354         (human_readable, default_block_size, humblock):
89355         Use uintmax_t, not int, for block sizes.
89356         (human_readable_inexact, block_size_types): Remove.
89357         (block_size_opts): New constant.
89358         (human_options): Renamed from human_block_size, with new signature
89359         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89360         * lib/human.h: Add copyright and authorship notice.
89361         Include <limits.h> and <stdbool.h> unconditionally.
89362         (PARAMS): Remove.  All uses removed.
89363         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89364         (enum human_inexact_style): Remove tag; now a nameless enum.
89365         (human_floor, human_ceiling, human_round_to_even): Now have
89366         values 2, 0, 1 rather than -1, 1, 0.
89367         (human_group_digits, human_suppress_point_zero, human_autoscale,
89368         human_base_1024, human_SI, human_B): New constants.
89369         (human_readable_inexact, human_block_size): Remove.
89370         (human_readable): Size args are now uintmax_t, not int.
89371         (human_options): New decl.
89372
89373         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89374         unnecessary now that we assume C89 or better.  This change
89375         imported from coreutils.
89376
89377         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89378         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89379         in the 2003-05-30 sync from glibc.
89380
89381         .h files should stand alone, but we shouldn't include <sys/types.h>
89382         if we can get away with just <stddef.h>.
89383
89384         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89385         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89386         rather than <sys/types.h>, as we merely need size_t.
89387         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89388         to get size_t.
89389         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89390         Include <stdio.h>, to get FILE.
89391         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89392         memcasecmp.h has included <stddef.h> and all we need is size_t.
89393         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89394         our interface, instead of including <sys/types.h>
89395
89396 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89397
89398         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89399         now, as glibc mktime is buggy on non-glibc systems.
89400
89401 2003-06-03  Karl Berry  <karl@gnu.org>
89402
89403         * config/config.sub: update from prep.
89404
89405 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89406
89407         [from coreutils]
89408         Fix some minor time-related bugs with POSIX time arguments.
89409         Some valid time stamps were being rejected (notably -1, and
89410         time stamps before 1900 on 64-bit hosts).  And some invalid
89411         time stamps were being accepted, e.g. September 31.
89412
89413         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89414         that we can return (time_t) -1 successfully.
89415         * lib/posixtm.c: Likewise.
89416         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89417         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89418         (t): Remove static var.
89419         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89420         of static var.  All uses changed.
89421         (year): Do not reject years before 1900; they can occur with
89422         64-bit time_t.
89423         (posix_time_parse): Do not check for out-of-range components;
89424         that is now the caller's responsibility, since our checks were
89425         only approximations.
89426         (posixtime): Use mktime to check for out-of-range components,
89427         since it knows them exactly.
89428         If mktime returns (time_t) -1, check whether an error actually occurred
89429         by invoking localtime on -1.
89430         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89431         posixtime failures better.
89432         Improve the test data (in comments only).
89433
89434 2003-06-02  Karl Berry  <karl@gnu.org>
89435
89436         * config/mkinstalldirs (version): new variable.
89437         (--version): new option.
89438         (usage): improve message.
89439
89440 2003-05-30  Karl Berry  <karl@gnu.org>
89441
89442         * lib/mktime.c: update from libc.
89443
89444 2003-05-30  Bruno Haible  <bruno@clisp.org>
89445
89446         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89447         * config/config.rpath: Upgrade to gettext-0.12.1.
89448
89449 2003-05-30  Bruno Haible  <bruno@clisp.org>
89450
89451         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89452         * m4/nls.m4: New file, from gettext-0.12.1.
89453         * m4/po.m4: New file, from gettext-0.12.1.
89454         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89455
89456 2003-05-30  Bruno Haible  <bruno@clisp.org>
89457
89458         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89459         * lib/localcharset.h: Likewise.
89460         * lib/localcharset.c: Likewise.
89461
89462 2003-05-29  Karl Berry  <karl@gnu.org>
89463
89464         * config/config.rpath: update from gettext.
89465
89466 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89467
89468         Assume the headers required for C89 freestanding compilers.
89469         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89470         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89471         * m4/human.m4 (gl_HUMAN): Likewise.
89472         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89473         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89474         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89475         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89476         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89477         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89478
89479 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89480
89481         Assume the headers required for C89 freestanding compilers.
89482         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89483         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89484         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89485         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89486         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89487         define, since <limits.h> is guaranteed to do that.
89488         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89489         * lib/exclude.c: Include <stdbool.h> unconditionally.
89490         * lib/tempname.c: Include <stddef.h> unconditionally.
89491         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89492         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89493         <stddef.h> does that.
89494         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89495         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89496         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89497         needed.
89498         * lib/xstrtol.c: Likewise.
89499         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89500         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89501
89502         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89503         warnings on some platforms.
89504
89505         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89506         arbitrarily.
89507
89508 2003-05-26  Jim Meyering  <jim@meyering.net>
89509
89510         Merge in a change from coreutils:
89511         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89512         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89513         that condition, rather than `-1' which is slightly misleading.
89514         Change the name of the cache variable to have the gl_ prefix.
89515         Prompted by a patch from Richard Dawe for DJGPP.
89516
89517 2003-05-24  Karl Berry  <karl@gnu.org>
89518
89519         * config/config.guess: update from prep.
89520
89521 2003-05-22  Karl Berry  <karl@gnu.org>
89522
89523         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89524
89525 2003-05-20  Karl Berry  <karl@gnu.org>
89526
89527         * config/config.guess: update from prep.
89528
89529 2003-05-18  Karl Berry  <karl@gnu.org>
89530
89531         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89532         might actually be set by the user.
89533
89534         * config/depcomp, install-sh, mdate-sh: update from automake.
89535
89536 2003-05-17  Bruno Haible  <bruno@clisp.org>
89537
89538         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89539         invalid expansion for AC_EGREP_CPP.
89540         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89541         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89542         Suggested by Akim Demaille <akim@epita.fr> in
89543         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89544
89545 2003-05-12  Jim Meyering  <jim@meyering.net>
89546
89547         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89548         the space-padded-by-default conversion specifiers, %e, %k, %l.
89549
89550 2003-05-12  Bruno Haible  <bruno@clisp.org>
89551
89552         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89553         the string is longer than 4 KB.
89554
89555 2003-05-11  Karl Berry  <karl@gnu.org>
89556
89557         * config/config.{guess,sub}: update from prep.
89558
89559 2003-05-09  Bruno Haible  <bruno@clisp.org>
89560
89561         * modules/error: Add m4/strerror_r.m4 to file list.
89562
89563 2003-05-03  Bruno Haible  <bruno@clisp.org>
89564
89565         Upgrade to Unicode-4.0.
89566         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89567         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89568         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89569         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89570         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89571         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89572         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89573         Change width of U+E0100..U+E01EF from 1 to 0.
89574
89575 2003-04-25  Jim Meyering  <jim@meyering.net>
89576
89577         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89578         of type size_t, not int.
89579
89580 2003-04-25  Bruno Haible  <bruno@clisp.org>
89581
89582         * lib/copy-file.c: Include <stddef.h>, for size_t.
89583
89584 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89585
89586         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89587         code which expansion is under static control.  Patch imported from
89588         Akim Demaille's patch to Bison; see
89589         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89590
89591 2003-04-14  Bruno Haible  <bruno@clisp.org>
89592
89593         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89594
89595 2003-04-11  Jim Meyering  <jim@meyering.net>
89596
89597         Merge changes from Coreutils.
89598
89599         2003-03-22  Jim Meyering  <jim@meyering.net>
89600
89601         * lib/strftime.c (widen): Cast alloca return value to proper type.
89602
89603         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89604
89605         From GNU libc.
89606         * lib/strftime.c (my_strftime): Handle very large width
89607         specifications for numeric values correctly.  Improve checks for
89608         overflow.
89609
89610         2003-01-19  Jim Meyering  <jim@meyering.net>
89611
89612         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89613         definitions.
89614         (nl_get_alt_digit) [! defined my_strftime]: Define.
89615         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89616         _nl_get_alt_digit and _nl_get_walt_digit.
89617
89618         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89619         libc. These changes have no effect outside of _LIBC.
89620
89621 2003-04-10  Bruno Haible  <bruno@clisp.org>
89622
89623         * modules/findprog: New file.
89624         * MODULES.html.sh (func_all_modules): Add it.
89625
89626 2003-04-10  Bruno Haible  <bruno@clisp.org>
89627
89628         * m4/findprog.m4: New file.
89629         * m4/eaccess.m4: New file.
89630
89631 2003-04-10  Bruno Haible  <bruno@clisp.org>
89632
89633         * lib/findprog.h: New file, from GNU gettext.
89634         * lib/findprog.c: New file, from GNU gettext.
89635
89636 2003-04-05  Jim Meyering  <jim@meyering.net>
89637
89638         Merge changes from Coreutils.
89639
89640         * lib/exclude.h (PARAMS): Remove definition and uses.
89641         * lib/exclude.c: Remove uses of `PARAMS'.
89642
89643         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89644         Add test-cases for DOS filenames. Declare program_name.
89645         (main): Set up program_name.  Patch by Rich Dawe.
89646
89647         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89648         error from mntctl.
89649         Use mntctl's return value to drive the entry-processing loop, since
89650         we can't rely on the value of the vmt_length member in the last
89651         entry.  On some systems doing so could result in exhausting
89652         virtual memory.  Based in part on a patch from Mike Jetzer.
89653
89654 2003-04-04  Bruno Haible  <bruno@clisp.org>
89655
89656         * modules/linebreak: New file.
89657         * MODULES.html.sh (func_all_modules): Add it.
89658
89659 2003-04-04  Bruno Haible  <bruno@clisp.org>
89660
89661         * m4/linebreak.m4: New file.
89662
89663 2003-04-04  Bruno Haible  <bruno@clisp.org>
89664
89665         * lib/linebreak.h: New file, from GNU gettext.
89666         * lib/linebreak.c: New file, from GNU gettext with slight
89667         modifications.
89668         * lib/lbrkprop.h: New file, from GNU gettext.
89669
89670 2003-04-03  Bruno Haible  <bruno@clisp.org>
89671
89672         * modules/utf8-ucs4: New file.
89673         * modules/utf16-ucs4: New file.
89674         * modules/ucs4-utf8: New file.
89675         * modules/ucs4-utf16: New file.
89676         * MODULES.html.sh (func_all_modules): Add them.
89677
89678 2003-04-03  Bruno Haible  <bruno@clisp.org>
89679
89680         * m4/utf-ucs4.m4: New file.
89681         * m4/ucs4-utf.m4: New file.
89682
89683 2003-04-03  Bruno Haible  <bruno@clisp.org>
89684
89685         * lib/utf8-ucs4.h: New file, from GNU gettext.
89686         * lib/utf16-ucs4.h: New file, from GNU gettext.
89687         * lib/ucs4-utf8.h: New file, from GNU gettext.
89688         * lib/ucs4-utf16.h: New file, from GNU gettext.
89689
89690 2003-04-02  Bruno Haible  <bruno@clisp.org>
89691
89692         * modules/binary-io: New file.
89693         * MODULES.html.sh (func_all_modules): Add it.
89694
89695 2003-04-02  Bruno Haible  <bruno@clisp.org>
89696
89697         * lib/binary-io.h: New file, from GNU gettext.
89698
89699 2003-04-01  Bruno Haible  <bruno@clisp.org>
89700
89701         * modules/pathname: New file.
89702         * MODULES.html.sh (func_all_modules): Add it.
89703
89704 2003-04-01  Bruno Haible  <bruno@clisp.org>
89705
89706         * lib/pathname.h: New file, from GNU gettext.
89707         * lib/concatpath.c: New file, from GNU gettext.
89708
89709 2003-03-30  Bruno Haible  <bruno@clisp.org>
89710
89711         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89712
89713 2003-03-30  Bruno Haible  <bruno@clisp.org>
89714
89715         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89716         function chown() doesn't exist.
89717
89718 2003-03-28  Bruno Haible  <bruno@clisp.org>
89719
89720         * modules/copy-file: New file.
89721         * MODULES.html.sh (func_all_modules): Add it.
89722
89723 2003-03-28  Bruno Haible  <bruno@clisp.org>
89724
89725         * m4/copy-file.m4: New file.
89726
89727 2003-03-28  Bruno Haible  <bruno@clisp.org>
89728
89729         * lib/copy-file.h: New file, from GNU gettext.
89730         * lib/copy-file.c: New file, from GNU gettext.
89731
89732 2003-03-18  Jim Meyering  <jim@meyering.net>
89733
89734         * lib/quote.c (quote_n): Fix typo in comment.
89735
89736 2003-03-18  Bruno Haible  <bruno@clisp.org>
89737
89738         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89739         checking.
89740         * m4/onceonly_2_57.m4: Likewise.
89741
89742 2003-03-17  Bruno Haible  <bruno@clisp.org>
89743
89744         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89745         (m4_quote): Remove macro.
89746         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89747
89748 2003-03-14  Jim Meyering  <jim@meyering.net>
89749
89750         Merge changes from Coreutils.
89751         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89752         to be const, in order to avoid warnings.
89753         (obstack_room): Likewise.
89754         (obstack_empty_p): Likewise.
89755
89756 2003-03-14  Bruno Haible  <bruno@clisp.org>
89757
89758         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89759         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89760
89761 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89762
89763         Merge changes from Bison.
89764         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89765         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89766         when compiling Bison 1.875's `bitset bset = obstack_alloc
89767         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89768         * lib/hash.c: Include <stdbool.h> unconditionally.
89769
89770 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89771
89772         * m4/onceonly.m4 (m4_quote): New macro.
89773         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89774         Quote AC_FOREACH variable-expansions properly.
89775
89776 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89777
89778         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89779
89780 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89781
89782         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89783         Reported by Bruce Becker; see:
89784         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89785
89786 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89787             Bruno Haible  <bruno@clisp.org>
89788
89789         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89790         Reported by John Hughes, see
89791         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89792
89793 2003-02-20  Bruno Haible  <bruno@clisp.org>
89794
89795         * MODULES.html.sh (func_all_modules): Add poll.
89796
89797 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89798
89799         * modules/poll: New file.
89800
89801 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89802
89803         * lib/poll_.h: New file.
89804         * lib/poll.c: New file.
89805
89806 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89807
89808         * m4/poll.m4: New file.
89809
89810 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89811
89812         * modules/mathl: New file.
89813
89814 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89815
89816         * lib/mathl.h: New file.
89817         * lib/acosl.c: New file.
89818         * lib/asinl.c: New file.
89819         * lib/atanl.c: New file.
89820         * lib/ceill.c: New file.
89821         * lib/cosl.c: New file.
89822         * lib/expl.c: New file.
89823         * lib/floorl.c: New file.
89824         * lib/frexpl.c: New file.
89825         * lib/ldexpl.c: New file.
89826         * lib/logl.c: New file.
89827         * lib/sincosl.c: New file.
89828         * lib/sinl.c: New file.
89829         * lib/sqrtl.c: New file.
89830         * lib/tanl.c: New file.
89831         * lib/trigl.c: New file.
89832         * lib/trigl.h: New file.
89833
89834 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89835
89836         * m4/mathl.m4: New file.
89837
89838 2003-02-18  Bruno Haible  <bruno@clisp.org>
89839
89840         * MODULES.html.sh (func_all_modules): Add mathl.
89841
89842 2003-02-17  Bruno Haible  <bruno@clisp.org>
89843
89844         * modules/mkdtemp: New module.
89845         * MODULES.html.sh (func_all_modules): Add it.
89846
89847 2003-02-17  Bruno Haible  <bruno@clisp.org>
89848
89849         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89850
89851 2003-02-17  Bruno Haible  <bruno@clisp.org>
89852
89853         * lib/mkdtemp.h: New file, from GNU gettext.
89854         * lib/mkdtemp.c: New file, from GNU gettext.
89855
89856 2003-02-02  Jim Meyering  <jim@meyering.net>
89857
89858         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89859         e.g. glibc-2.2.93.
89860
89861 2003-01-31  Bruno Haible  <bruno@clisp.org>
89862
89863         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89864         'rpl_rename'.
89865         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89866         'rpl_strnlen'.
89867         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89868         'rpl_strtod'.
89869         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89870         'rpl_utime'.
89871
89872 2003-01-31  Bruno Haible  <bruno@clisp.org>
89873
89874         * lib/rename.c: #undef rename before defining rpl_rename.
89875         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89876
89877 2003-01-30  Bruno Haible  <bruno@clisp.org>
89878
89879         * modules/vasnprintf, modules/vasprintf: New modules.
89880         * MODULES.html.sh (func_all_modules): Add them.
89881
89882 2003-01-30  Bruno Haible  <bruno@clisp.org>
89883
89884         * m4/signed.m4: New file, from GNU gettext.
89885         * m4/longdouble.m4: New file, from GNU gettext.
89886         * m4/wchar_t.m4: New file, from GNU gettext.
89887         * m4/wint_t.m4: New file, from GNU gettext.
89888         * m4/vasnprintf.m4: New file.
89889         * m4/vasprintf.m4: New file.
89890
89891 2003-01-30  Bruno Haible  <bruno@clisp.org>
89892
89893         * lib/printf-args.h: New file, from GNU gettext.
89894         * lib/printf-args.c: New file, from GNU gettext.
89895         * lib/printf-parse.h: New file, from GNU gettext.
89896         * lib/printf-parse.c: New file, from GNU gettext.
89897         * lib/vasnprintf.h: New file, from GNU gettext.
89898         * lib/vasnprintf.c: New file, from GNU gettext.
89899         * lib/asnprintf.c: New file, from GNU gettext.
89900         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89901         * lib/vasprintf.c: New file, from GNU gettext.
89902         * lib/asprintf.c: New file, from GNU gettext.
89903
89904 2003-01-29  Bruno Haible  <bruno@clisp.org>
89905
89906         * modules/stpncpy: New module.
89907         * MODULES.html.sh (func_all_modules): Add it.
89908
89909 2003-01-29  Bruno Haible  <bruno@clisp.org>
89910
89911         * m4/stpncpy.m4: New file.
89912
89913 2003-01-29  Bruno Haible  <bruno@clisp.org>
89914
89915         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89916         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89917
89918 2003-01-28  Bruno Haible  <bruno@clisp.org>
89919
89920         * modules/c-ctype: New module.
89921         * MODULES.html.sh (func_all_modules): Add it.
89922
89923 2003-01-28  Bruno Haible  <bruno@clisp.org>
89924
89925         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89926         Paul Eggert.
89927         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89928         Paul Eggert.
89929
89930 2003-01-27  Bruno Haible  <bruno@clisp.org>
89931
89932         * modules/xsetenv: New module.
89933         * MODULES.html.sh (func_all_modules): Add it.
89934
89935 2003-01-27  Bruno Haible  <bruno@clisp.org>
89936
89937         * lib/xsetenv.h: New file, from GNU gettext.
89938         * lib/xsetenv.c: New file, from GNU gettext.
89939
89940 2003-01-23  Jim Meyering  <jim@meyering.net>
89941
89942         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89943         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89944
89945 2003-01-23  Bruno Haible  <bruno@clisp.org>
89946
89947         * modules/minmax: New module.
89948         * MODULES.html.sh (func_all_modules): Add it.
89949
89950 2003-01-23  Bruno Haible  <bruno@clisp.org>
89951
89952         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89953         Eggert.
89954
89955 2003-01-22  Bruno Haible  <bruno@clisp.org>
89956
89957         * modules/exit: New module.
89958         * MODULES.html.sh (func_all_modules): Add it.
89959
89960 2003-01-22  Bruno Haible  <bruno@clisp.org>
89961
89962         * lib/exit.h: New file, from GNU gettext.
89963
89964 2003-01-19  Bruno Haible  <bruno@clisp.org>
89965
89966         * gnulib-tool: Recognize option --extract-maintainer.
89967         (func_get_maintainer): New function.
89968         * modules/*: Add Maintainer entry.
89969
89970 2003-01-16  Jim Meyering  <jim@meyering.net>
89971
89972         * m4/regex.m4: The `regex' struct is both input and output.
89973         Initialize it before each use.  Patch by Tim Waugh.
89974
89975 2003-01-16  Bruno Haible  <bruno@clisp.org>
89976
89977         * MODULES.html.sh: Add a table of contents. Add the module name as
89978         leftmost column. Add hyperlinks.
89979
89980 2003-01-15  Bruno Haible  <bruno@clisp.org>
89981
89982         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89983
89984 2003-01-15  Bruno Haible  <bruno@clisp.org>
89985
89986         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89987         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89988         suffix.
89989
89990 2003-01-15  Bruno Haible  <bruno@clisp.org>
89991
89992         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89993
89994 2003-01-15  Bruno Haible  <bruno@clisp.org>
89995
89996         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89997         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89998
89999 2003-01-14  Jim Meyering  <jim@meyering.net>
90000
90001         * lib/same.c (same_name): Tweak a comment.
90002
90003 2003-01-14  Bruno Haible  <bruno@clisp.org>
90004
90005         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90006         when a string comparison is sufficient.
90007
90008 2003-01-14  Bruno Haible  <bruno@clisp.org>
90009
90010         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90011         'unsigned int'.
90012
90013 2003-01-14  Bruno Haible  <bruno@clisp.org>
90014
90015         * lib/hash-pjw.c: Add comment about low quality of this function.
90016
90017 2003-01-13  Bruno Haible  <bruno@clisp.org>
90018
90019         * modules/stpcpy: Distribute lib/stpcpy.h.
90020         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90021
90022 2003-01-13  Bruno Haible  <bruno@clisp.org>
90023
90024         * modules/*: Add a description.
90025         * modules/strpbrk: Fix Makefile.am snippet.
90026         * modules/strtoimax: Fix dependencies.
90027         * modules/strtoumax: Likewise.
90028
90029 2003-01-13  Bruno Haible  <bruno@clisp.org>
90030
90031         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90032         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90033         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90034
90035 2003-01-13  Bruno Haible  <bruno@clisp.org>
90036
90037         * gnulib-tool (func_create_testdir): Store config/* files in the main
90038         directory.
90039         * config.rpath: Move to ...
90040         * config/config.rpath: ... here.
90041         * modules/gettext: Contains config/config.rpath, not config.rpath.
90042         * modules/iconv: Likewise.
90043
90044 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90045
90046         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90047         to avoid collisions with libcurses and libreadline.
90048
90049         * m4/getstr.m4: Remove.
90050         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90051
90052 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90053
90054         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90055         to avoid collisions with libcurses and libreadline.
90056
90057         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90058         * lib/getstr.h, getstr.c: Remove.
90059         * lib/getline.c: Include "getline.h", to check interface.
90060         Move body of old getstr.c here: this defines MIN_CHUNK and
90061         declares getdelim2, which is renamed from getstr.
90062         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90063
90064         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90065         All uses changed.
90066         * lib/linebuffer.h: Likewise.
90067         (readline): Remove backward-compatibility macro.
90068
90069 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90070
90071         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90072         to avoid collisions with libcurses and libreadline.
90073         * getstr: Remove.
90074         * MODULES.html.sh: Remove getstr.
90075         * modules/getline: Depend on unlocked-io, not getstr.
90076
90077 2003-01-12  Jim Meyering  <jim@meyering.net>
90078
90079         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90080
90081 2003-01-10  Bruno Haible  <bruno@clisp.org>
90082
90083         * modules/alloca: Change Makefile.am requirements. Simplify Include
90084         requirements. Add lib/alloca_.h to file list.
90085
90086 2003-01-10  Bruno Haible  <bruno@clisp.org>
90087
90088         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90089
90090 2003-01-10  Bruno Haible  <bruno@clisp.org>
90091
90092         * lib/alloca_.h: New file.
90093         * lib/getdate.y: Unconditionally include alloca.h.
90094         * lib/makepath.c: Likewise.
90095         * lib/setenv.c: Likewise.
90096         * lib/userspec.c: Likewise.
90097
90098 2003-01-09  Karl Berry  <karl@gnu.org>
90099
90100         * MODULES.html.sh: include `dirname $0` in PATH, to find
90101         gnulib-tool.
90102
90103 2003-01-09  Bruno Haible  <bruno@clisp.org>
90104
90105         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90106         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90107
90108 2003-01-09  Bruno Haible  <bruno@clisp.org>
90109
90110         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90111
90112 2003-01-09  Bruno Haible  <bruno@clisp.org>
90113
90114         * lib/stdbool.h.in: New file.
90115
90116 2003-01-09  Bruno Haible  <bruno@clisp.org>
90117
90118         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90119         * MODULES.html.sh: Likewise.
90120
90121 2003-01-08  Jim Meyering  <jim@meyering.net>
90122
90123         * lib/full-write.c: Undefine and define-away `const' after inclusion
90124         of errno.h, not before.  Suggestion from Bruno Haible.
90125
90126 2003-01-08  Bruno Haible  <bruno@clisp.org>
90127
90128         * modules/full-read: Depend on full-write.
90129
90130 2003-01-08  Bruno Haible  <bruno@clisp.org>
90131
90132         * lib/safe-read.c: Include specification header first, to ensure its
90133         selfcontainedness.
90134         * lib/full-write.c: Likewise.
90135
90136 2003-01-07  Jim Meyering  <jim@meyering.net>
90137
90138         * lib/full-write.c: Rework so that it may serve to define full_read,
90139         too.
90140         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90141
90142 2003-01-07  Bruno Haible  <bruno@clisp.org>
90143
90144         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90145         <inttypes.h>.
90146         * lib/xstrtol.h: Likewise.
90147         * lib/xstrtoimax.c: Likewise.
90148         * lib/xstrtoumax.c: Likewise.
90149         * lib/human.h: Likewise.
90150
90151         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90152         on systems that have <inttypes.h> but not <stdint.h>.
90153
90154 2003-01-07  Bruno Haible  <bruno@clisp.org>
90155
90156         * MODULES.html.sh: Add copyright notice.
90157         (missed_files): Omit CVS directory entries.
90158         (func_module): Make it work with sed-3.02.
90159         * MODULES.txt: Remove file.
90160
90161 2003-01-06  Jim Meyering  <jim@meyering.net>
90162
90163         * lib/version-etc.c: Update year in translatable copyright string.
90164
90165 2003-01-03  Karl Berry  <karl@gnu.org>
90166
90167         * config/config.{guess,sub}: update from prep.
90168
90169 2003-01-02  Karl Berry  <karl@gnu.org>
90170
90171         * doc/COPYING.DOC: belatedly updated to 1.2.
90172
90173 2003-01-01  Karl Berry  <karl@gnu.org>
90174
90175         * gnulib-tool (func_verify_module): report module name $module in
90176         error message, not $1.
90177         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90178         be created, only if it doesn't exist.
90179         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90180
90181 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90182
90183         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90184
90185 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90186
90187         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90188         memcmp if strcoll doesn't work.
90189
90190 2002-12-31  Bruno Haible  <bruno@clisp.org>
90191
90192         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90193         nonempty.
90194
90195 2002-12-31  Bruno Haible  <bruno@clisp.org>
90196
90197         * lib/memcoll.c (STRCOLL): New macro.
90198         (memcoll): Use it.
90199
90200 2002-12-31  Bruno Haible  <bruno@clisp.org>
90201
90202         * lib/localcharset.h: New file.
90203         * lib/localcharset.c: Include it.
90204         * lib/unicodeio.c: Likewise.
90205
90206 2002-12-31  Bruno Haible  <bruno@clisp.org>
90207
90208         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90209         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90210
90211 2002-12-31  Bruno Haible  <bruno@clisp.org>
90212
90213         * lib/getline.h: Include <stddef.h>, for size_t.
90214
90215         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90216         * lib/unicodeio.c: Don't include <stddef.h>.
90217
90218 2002-12-31  Bruno Haible  <bruno@clisp.org>
90219
90220         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90221         HAVE_TM_ZONE.
90222
90223 2002-12-24  Karl Berry  <karl@gnu.org>
90224
90225         * config/config.guess: update from prep.
90226
90227 2002-12-24  Bruno Haible  <bruno@clisp.org>
90228
90229         General infrasructure.
90230         * m4/README: Rewritten.
90231         * m4/onceonly.m4: New file.
90232         * m4/onceonly_2_57.m4: New file.
90233
90234         Module atexit.
90235         * m4/atexit.m4: New file.
90236
90237         Module strtod.
90238         * m4/strtod.m4: New file.
90239
90240         Module strtol.
90241         * m4/strtol.m4: New file.
90242
90243         Module strtoul.
90244         * m4/strtoul.m4: New file.
90245
90246         Module memchr.
90247         * m4/memchr.m4: New file.
90248
90249         Module memcmp.
90250         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90251         (jm_FUNC_MEMCMP): Invoke it.
90252
90253         Module memcpy.
90254         * m4/memcpy.m4: New file.
90255
90256         Module memmove.
90257         * m4/memmove.m4: New file.
90258
90259         Module memset.
90260         * m4/memset.m4: New file.
90261
90262         Module strcspn.
90263         * m4/strcspn.m4: New file.
90264
90265         Module strpbrk.
90266         * m4/strpbrk.m4: New file.
90267
90268         Module strstr.
90269         * m4/strstr.m4: New file.
90270
90271         Module strerror.
90272         * m4/strerror.m4: New file.
90273
90274         Module mktime.
90275         * m4/mktime.m4: Renamed from jm-mktime.m4.
90276         (gl_PREREQ_MKTIME): New macro.
90277         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90278
90279         Module malloc.
90280         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90281         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90282         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90283
90284         Module realloc.
90285         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90286         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90287         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90288
90289         Module strftime.
90290         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90291         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90292         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90293         gl_TM_GMTOFF.
90294         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90295
90296         Module xalloc.
90297         * m4/xalloc.m4: New file.
90298
90299         Module alloca.
90300         * m4/alloca.m4: New file.
90301
90302         Module putenv.
90303         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90304         (jm_FUNC_PUTENV): Invoke it.
90305
90306         Module setenv.
90307         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90308         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90309         when invoked twice.
90310         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90311         gt_FUNC_SETENV.
90312
90313         Module memrchr.
90314         * m4/memrchr.m4: New file.
90315
90316         Module stpcpy.
90317         * m4/stpcpy.m4: New file.
90318
90319         Module strcase.
90320         * m4/strcase.m4: New file.
90321
90322         Module strdup.
90323         * m4/strdup.m4: New file.
90324
90325         Module strnlen.
90326         * m4/strnlen.m4: New file.
90327
90328         Module strndup.
90329         * m4/strndup.m4: New file.
90330
90331         Module xstrtod.
90332         * m4/xstrtod.m4: New file.
90333
90334         Module xstrtol.
90335         * m4/xstrtol.m4: New file.
90336
90337         Module getdate.
90338         * m4/getdate.m4: New file.
90339
90340         Module unlocked-io.
90341         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90342         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90343         * m4/jm-glibc-io.m4n: Remove file.
90344
90345         Module long-options.
90346         * m4/long-options.m4: New file.
90347
90348         Module md5.
90349         * m4/md5.m4: New file.
90350
90351         Module sha.
90352         * m4/sha.m4: New file.
90353
90354         Module getstr.
90355         * m4/getstr.m4: New file.
90356
90357         Module getline.
90358         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90359         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90360         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90361         simply getline. Infoke gl_PREREQ_GETLINE.
90362
90363         Module obstack.
90364         * m4/obstack.m4: New file.
90365
90366         Module hash.
90367         * m4/hash.m4: New file.
90368
90369         Module readtokens.
90370         * m4/readtokens.m4: New file.
90371
90372         Module strverscmp.
90373         * m4/strverscmp.m4: New file.
90374
90375         Module stdbool.
90376         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90377         OSF/1.
90378
90379         Module strtoll.
90380         * m4/strtoll.m4: New file.
90381
90382         Module strtoull.
90383         * m4/strtoull.m4: New file.
90384
90385         Module strtoimax.
90386         * m4/strtoimax.m4: New file.
90387
90388         Module strtoumax.
90389         * m4/strtoumax.m4: New file.
90390
90391         Module xstrtoimax.
90392         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90393         jm_AC_PREREQ_XSTRTOIMAX.
90394         Moved the strtol prerequisites to strtol.m4.
90395         Moved the strtoll prerequisites to strtoll.m4.
90396         Moved the strtoimax prerequisites to strtoimax.m4.
90397
90398         Module xstrtoumax.
90399         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90400         jm_AC_PREREQ_XSTRTOUMAX.
90401         Moved the strtoul prerequisites to strtoul.m4.
90402         Moved the strtoull prerequisites to strtoull.m4.
90403         Moved the strtoumax prerequisites to strtoumax.m4.
90404
90405         Module chown.
90406         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90407         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90408
90409         Module dup2.
90410         * m4/dup2.m4: New file.
90411
90412         Module ftruncate.
90413         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90414         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90415
90416         Module getgroups.
90417         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90418         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90419
90420         Module gettimeofday.
90421         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90422         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90423         gl_PREREQ_GETTIMEOFDAY.
90424
90425         Module mkdir.
90426         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90427         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90428
90429         Module mkstemp.
90430         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90431         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90432         jm_AC_TYPE_UINTMAX_T.
90433         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90434
90435         Module stat.
90436         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90437         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90438
90439         Module lstat.
90440         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90441         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90442
90443         Module timespec.
90444         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90445         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90446         * m4/st_mtim.m4: Indentation.
90447
90448         Module nanosleep.
90449         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90450         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90451         gl_PREREQ_NANOSLEEP.
90452
90453         Module regex.
90454         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90455         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90456         (gl_REGEX): New macro.
90457
90458         Module rename.
90459         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90460         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90461
90462         Module rmdir.
90463         * m4/rmdir.m4: New file.
90464
90465         Module utime.
90466         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90467         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90468         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90469
90470         Module dirname.
90471         * m4/dirname.m4: New file.
90472
90473         Module getopt.
90474         * m4/getopt.m4: New file.
90475
90476         Module unistd-safer.
90477         * m4/unistd-safer.m4: New file.
90478
90479         Module fnmatch.
90480         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90481         declaration.
90482         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90483         (gl_FUNC_FNMATCH_POSIX): New macro.
90484         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90485         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90486         simply fnmatch.
90487
90488         Module exclude.
90489         * m4/exclude.m4: New file.
90490
90491         Module human.
90492         * m4/human.m4: New file.
90493
90494         Module acl.
90495         * m4/acl.m4: Nop.
90496
90497         Module backupfile.
90498         * m4/backupfile.m4: New file.
90499         * m4/d-ino.m4: Indentation.
90500
90501         Module fsusage.
90502         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90503         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90504         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90505
90506         Module dirfd.
90507         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90508         requirements.
90509
90510         Module euidaccess.
90511         * m4/euidaccess.m4: New file.
90512
90513         Module file-type.
90514         * m4/file-type.m4: New file.
90515
90516         Module fileblocks.
90517         * m4/fileblocks.m4: New file.
90518
90519         Module filemode.
90520         * m4/filemode.m4: New file.
90521
90522         Module isdir.
90523         * m4/isdir.m4: New file.
90524
90525         Module lchown.
90526         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90527         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90528
90529         Module makepath.
90530         * m4/makepath.m4: New file.
90531
90532         Module modechange.
90533         * m4/modechange.m4: New file.
90534
90535         Module mountlist.
90536         * m4/mountlist.m4: New file.
90537         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90538         Indentation.
90539
90540         Module path-concat.
90541         * m4/path-concat.m4: New file.
90542
90543         Module pathmax.
90544         * m4/pathmax.m4: New file.
90545
90546         Module same.
90547         * m4/same.m4: New file.
90548
90549         Module save-cwd.
90550         * m4/save-cwd.m4: New file.
90551
90552         Module savedir.
90553         * m4/savedir.m4: New file.
90554
90555         Module xgetcwd.
90556         * m4/xgetcwd.m4: New file.
90557         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90558
90559         Module xreadlink.
90560         * m4/xreadlink.m4: New file.
90561
90562         Module safe-read.
90563         * m4/safe-read.m4: New file.
90564
90565         Module safe-write.
90566         * m4/safe-write.m4: New file.
90567
90568         Module closeout.
90569         * m4/closeout.m4: New file.
90570
90571         Module stdio-safer.
90572         * m4/stdio-safer.m4: New file.
90573
90574         Module getpass.
90575         * m4/getpass.m4: New file.
90576
90577         Module getugroups.
90578         * m4/getugroups.m4: New file.
90579
90580         Module group-member.
90581         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90582         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90583
90584         Module idcache.
90585         * m4/idcache.m4: New file.
90586
90587         Module userspec.
90588         * m4/userspec.m4: New file.
90589
90590         Module gettime.
90591         * m4/clock_time.m4: New file.
90592         * m4/gettime.m4: New file.
90593
90594         Module settime.
90595         * m4/settime.m4: New file.
90596
90597         Module posixtm.
90598         * m4/posixtm.m4: New file.
90599
90600         Module gethostname.
90601         * m4/gethostname.m4: New file.
90602
90603         Module canon-host.
90604         * m4/canon-host.m4: New file.
90605
90606         Module gettext.
90607         * m4/codeset.m4: New file, from gettext-0.11.5.
90608         * m4/gettext.m4: New file, from gettext-0.11.5.
90609         * m4/glibc21.m4: New file, from gettext-0.11.5.
90610         * m4/iconv.m4: New file, from gettext-0.11.5.
90611         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90612         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90613         * m4/inttypes.m4: New file, from gettext-0.11.5.
90614         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90615         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90616         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90617         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90618         * m4/lib-link.m4: New file, from gettext-0.11.5.
90619         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90620         * m4/progtest.m4: New file, from gettext-0.11.5.
90621         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90622         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90623         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90624
90625         Module localcharset.
90626         * m4/localcharset.m4: New file.
90627
90628         Module hard-locale.
90629         * m4/hard-locale.m4: New file.
90630
90631         Module mbswidth.
90632         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90633         onceonly macros.
90634         * m4/mbrtowc.m4: Add comment.
90635
90636         Module memcasecmp.
90637         * m4/memcasecmp.m4: New file.
90638
90639         Module memcoll.
90640         * m4/memcoll.m4: New file.
90641
90642         Module unicodeio.
90643         * m4/unicodeio.m4: New file.
90644
90645         Module rpmatch.
90646         * m4/rpmatch.m4: New file.
90647
90648         Module yesno.
90649         * m4/yesno.m4: New file.
90650
90651         Module exitfail.
90652         * m4/exitfail.m4: New file.
90653
90654         Module c-stack.
90655         * m4/c-stack.m4 (gl_C_STACK): New macro.
90656         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90657
90658         Module error.
90659         * m4/error.m4 (gl_ERROR): New macro.
90660         (jm_PREREQ_ERROR): Use onceonly macros.
90661
90662         Module fatal.
90663         * m4/fatal.m4: New file.
90664
90665         Module getloadavg.
90666         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90667         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90668
90669         Module getpagesize.
90670         * m4/getpagesize.m4: New file.
90671
90672         Module getusershell.
90673         * m4/getusershell.m4: New file.
90674
90675         Module physmem.
90676         * m4/physmem.m4: New file.
90677
90678         Module posixver.
90679         * m4/posixver.m4: New file.
90680
90681         Module quotearg.
90682         * m4/quotearg.m4: New file.
90683
90684         Module quote.
90685         * m4/quote.m4: New file.
90686
90687         Module readutmp.
90688         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90689
90690         Module sig2str.
90691         * m4/sig2str.m4: New file.
90692
90693         Other.
90694         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90695         ulonglong.m4.
90696         * m4/intmax_t.m4: New file.
90697         * m4/d-type.m4: Indentation.
90698         * m4/jm-macros.m4: Update.
90699         * m4/prereq.m4 (jm_PREREQ): Update.
90700         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90701         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90702         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90703         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90704         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90705         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90706         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90707         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90708         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90709         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90710         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90711         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90712         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90713         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90714         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90715         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90716         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90717         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90718         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90719
90720 2002-12-24  Bruno Haible  <bruno@clisp.org>
90721
90722         * MODULES.txt: Update according to m4/ changes.
90723
90724         Module gettext.
90725         * config.rpath: New file, from gettext-0.11.5.
90726
90727         * modules/*: New module descriptions.
90728         * gnulib-tool: New file.
90729         * MODULES.html.sh: New file.
90730
90731 2002-12-21  Karl Berry  <karl@gnu.org>
90732
90733         * doc/fdl.texi: update to version 1.2.
90734
90735 2002-12-19  Karl Berry  <karl@gnu.org>
90736
90737         * config/config.guess: update from prep.
90738
90739 2002-12-18  Bruno Haible  <bruno@clisp.org>
90740
90741         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90742         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90743
90744 2002-12-17  Bruno Haible  <bruno@clisp.org>
90745
90746         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90747         stdlib.h, string.h.
90748
90749 2002-12-17  Bruno Haible  <bruno@clisp.org>
90750
90751         * lib/canon-host.c (strdup): Remove unused declaration.
90752
90753         * lib/fsusage.c: Include full_read.h.
90754         (get_fs_usage): Use full_read instead of safe_read.
90755
90756         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90757
90758 2002-12-12  Karl Berry  <karl@gnu.org>
90759
90760         * config/config.guess: update from prep.
90761
90762 2002-12-11  Bruno Haible  <bruno@clisp.org>
90763
90764         * m4/setenv.m4: New file, from gettext-0.11.5.
90765
90766 2002-12-11  Bruno Haible  <bruno@clisp.org>
90767
90768         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90769         not unsetenv().
90770         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90771         modifications:
90772
90773         2002-12-11  Bruno Haible  <bruno@clisp.org>
90774
90775                 * setenv.c (alloca): Fall back to malloc.
90776                 (freea): New macro.
90777                 (setenv): Use freea() to free memory allocated with alloca().
90778
90779         2002-11-13  Bruno Haible  <bruno@clisp.org>
90780
90781                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90782                 function declarations.
90783                 * unsetenv.c (unsetenv): Likewise.
90784
90785         2002-03-04  Bruno Haible  <bruno@clisp.org>
90786
90787                 Portability to AIX 4.3.3.
90788                 * unsetenv.c: New file, extracted from setenv.c.
90789                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90790
90791         2001-12-20  Bruno Haible  <bruno@clisp.org>
90792
90793                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90794                 use malloc instead. For SunOS 4.
90795
90796         2001-12-11  Bruno Haible  <bruno@clisp.org>
90797
90798                 * setenv.c: Declare alloca.
90799                 (compar_fn_t): New typedef.
90800                 (KNOWN_VALUE, STORE_VALUE): Use it.
90801
90802         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90803         setenv.h.
90804
90805 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90806
90807         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90808         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90809         Choose values that are less likely to collide with system fnmatch
90810         options.
90811         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90812         defined (e.g., a pure POSIX system).
90813         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90814         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90815
90816 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90817
90818         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90819         a pain in practice to deal with generated m4 files.  This change
90820         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90821
90822         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90823         and jm-glibc-io.m4, as they are no longer a special case.
90824         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90825         kludge and the auto-generation stuff.  Check only whether the
90826         functions are declared, not whether they exist, since older hosts
90827         that don't declare the functions can't use the optimization anyway.
90828
90829 2002-12-06  Jim Meyering  <jim@meyering.net>
90830
90831         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90832
90833         Merge in changes from libc's misc/error.c, in preparation
90834         for the merge of gnulib's changes back into libc.
90835
90836         * lib/error.c (_): Define only if not already defined.
90837         Move definition to follow all #include directives.
90838         Include unlocked-io.h only if !_LIBC.
90839         [_LIBC]: Include <libio/libioP.h>.
90840         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90841         (fflush): Tweak definition to use INTUSE.
90842         (putc): Define.
90843
90844 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90845
90846         * lib/alloca.c [defined emacs]: Include "lisp.h".
90847         (xalloc_die) [defined emacs]: New macro.
90848         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90849         [! defined emacs]: Include <xalloc.h>.
90850         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90851         (pointer): Typedef to POINTER_TYPE *.
90852         (malloc): Remove decl; we now always use xmalloc.
90853         (alloca): Use old-style definition, since Emacs needs this.
90854         Check for arithmetic overflow when computing combined size.
90855
90856 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90857
90858         Do not generate unlocked-io.h automatically, since it's easier to
90859         maintain it by hand.
90860
90861         * lib/unlocked-io.h: New file, from GNU diffutils,
90862         but with proper copyright notice and attribution.
90863         * lib/gen-uio: Remove.
90864         * lib/Makefile.am: Add copyright notice.
90865         (libfetish_a_SOURCES): Add unlocked-io.h.
90866         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90867         (DISTCLEANFILES, io_functions): Remove macros.
90868         (EXTRA_DIST): Remove gen_uio.
90869         (unlocked-io.h): Remove rule.
90870
90871 2002-12-04  Jim Meyering  <jim@meyering.net>
90872
90873         Reflect the fact that stat.c and lstat.c are no longer generated.
90874         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90875         (DISTCLEANFILES): Likewise.
90876         (EXTRA_DIST): Likewise.
90877         (all_local): Don't depend on stat.c or lstat.c.
90878         (stat.c, lstat.c): Remove rules.
90879         (EXTRA_DIST): Remove xstat.in.
90880
90881         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90882         * lib/stat.c: New file.  Contents mostly from xstat.in.
90883         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90884         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90885
90886         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90887         too.
90888         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90889
90890 2002-12-03  Jim Meyering  <jim@meyering.net>
90891
90892         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90893         but not semantics, to minimize the differences between these two files.
90894         (safe_read): Change comment to mention SAFE_READ_ERROR.
90895
90896         * lib/safe-read.c (IS_EINTR): Define.
90897         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90898
90899 2002-12-02  Jim Meyering  <jim@meyering.net>
90900
90901         * lib/safe-read.c (EINTR): Define.
90902         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90903         (INT_MAX): Provide fallback.
90904         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90905
90906         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90907
90908 2002-12-02  Bruno Haible  <bruno@clisp.org>
90909
90910         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90911         Define, taken from safe-read.c.
90912         (INT_MAX): Provide fallback.
90913         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90914         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90915
90916         * lib/safe-read.c (EINTR): Remove definition.
90917         (safe_read): Don't use EINTR if it is absent.
90918
90919 2002-12-01  Jim Meyering  <jim@meyering.net>
90920
90921         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90922         zero.
90923         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90924
90925 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90926
90927         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90928         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90929         with `if (! (value < limit)) abort ();', for readability.
90930
90931 2002-11-26  Karl Berry  <karl@gnu.org>
90932
90933         * lib/strdup.c: copy from libc again, with jim's ok.
90934         * lib/.cppi-disable: re-add strdup.c
90935
90936 2002-11-25  Karl Berry  <karl@gnu.org>
90937
90938         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90939         instead of "strtol.c".
90940
90941 2002-11-25  Karl Berry  <karl@gnu.org>
90942
90943         * config/install-sh: update from automake for variable quoting, $0 in
90944         error msgs, etc.
90945
90946         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90947         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90948         entry.
90949
90950 2002-11-25  Jim Meyering  <jim@meyering.net>
90951
90952         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90953
90954 2002-11-24  Karl Berry  <karl@gnu.org>
90955
90956         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90957         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90958
90959 2002-11-24  Jim Meyering  <jim@meyering.net>
90960
90961         Update from coreutils:
90962
90963         * lib/mktime.c: Merge in changes from libc.
90964
90965         Avoid a link-time failure on some Linux systems.
90966         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90967         (otherwise).
90968         (__mon_yday): Declare with the STATIC attribute.
90969         (__mktime_internal): Likewise.
90970         Based on a report from Greg Schafer.
90971
90972 2002-11-23  Jim Meyering  <jim@meyering.net>
90973
90974         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90975         Use `unsigned', not `int', as type of index.
90976
90977         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90978
90979         * lib/fsusage.c: Remove unneeded parentheses around operands of
90980         `defined'.
90981
90982 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90983
90984         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90985         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90986         so that we can be included first.
90987         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90988         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90989         No need to include stddef.h or sys/types.h any more.
90990         Surround local include files with "", not "<>".
90991         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90992         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90993         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90994         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90995         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90996         (ISPRINT): Remove; no longer needed now that we assume C89.
90997
90998         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90999         Preserve errno.
91000
91001         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91002         quotearg_char): Use SIZE_MAX rather than
91003         (size_t) -1 when we are talking about "infinity".
91004
91005         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91006
91007 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91008
91009         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91010         hint that one should use `if (! x) abort ();' rather than `assert
91011         (x);', and anyway it's one less thing to worry about configuring.
91012         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91013         hash_rehash, hash_insert): Use abort rather than assert.
91014
91015 2002-11-22  Bruno Haible  <bruno@clisp.org>
91016
91017         * lib/safe-read.h: Assume C89. Add comments.
91018         (safe_read): Change return type to size_t.
91019         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91020         byte counts > SSIZE_MAX correctly.
91021         * lib/safe-write.h: New file.
91022         * lib/safe-write.c: New file.
91023         * lib/full-read.h: New file.
91024         * lib/full-read.c: New file.
91025         * lib/full-write.h: Assume C89. Add comments.
91026         * lib/full-write.c: Include safe-write.h.
91027         (full_write): Rewritten to use safe_write.
91028         Suggested by Jim Meyering and Paul Eggert.
91029
91030 2002-11-21  Jim Meyering  <jim@meyering.net>
91031
91032         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91033
91034         Merge in changes from the coreutils.
91035
91036         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91037         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91038         <stdint.h>.
91039         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91040         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91041         int.  Work more efficiently if X is the same width as uintmax_t.
91042         Do not compare X to -1, to avoid bogus compiler warning.
91043         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91044         Don't assume that f_frsize and f_bsize are the same type.
91045
91046         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91047         warning on FreeBSD.
91048
91049         * lib/makepath.c (make_path): Restore umask *before* creating the final
91050         component.
91051         (make_path): Minor reformatting.
91052
91053         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91054         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91055         HAVE_MALLOC/HAVE_REALLOC.
91056
91057         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91058         dummy ones.  At least on GNU/Linux systems, `auto' means something
91059         else.
91060         From Michael Stone.
91061
91062 2002-11-21  Bruno Haible  <bruno@clisp.org>
91063
91064         Remove case insensitive option matching.
91065         * lib/argmatch.h (argcasematch): Remove declaration.
91066         (ARGCASEMATCH): Remove macro.
91067         (__xargmatch_internal): Remove case_sensitive argument.
91068         (XARGMATCH): Update.
91069         (XARGCASEMATCH): Remove macro.
91070         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91071         case_sensitive argument.
91072         (argcasematch): Remove function.
91073         (__xargmatch_internal): Remove case_sensitive argument.
91074         (main): Use XARGMATCH instead of XARGCASEMATCH.
91075
91076         * lib/xmalloc.c: Change compile-time error message. Add comment about
91077         required autoconf version.
91078
91079 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91080
91081         Merge argmatch cleanups from Bison.  Assume C89.
91082
91083         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91084         Include stdlib.h, for EXIT_FAILURE.
91085         Always include <string.h>, since we assume C89.
91086         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91087         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91088         Include <stddef.h> instead, since it's all we need for size_t.
91089         (PARAMS): Remove.  All uses removed.
91090         (ARRAY_CARDINALITY): Do not bother to #undef.
91091         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91092         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91093         Remove unnecessary parentheses.
91094         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91095         Insert necessary parentheses.
91096         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91097         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91098
91099 2002-11-19  Bruno Haible  <bruno@clisp.org>
91100
91101         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91102         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91103
91104         * lib/mbswidth.h (PARAMS): Remove macro.
91105         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91106         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91107
91108         * lib/gcd.h (PARAMS): Remove macro.
91109         (gcd): Use ANSI C function declarations.
91110         * lib/gcd.c (gcd): Likewise.
91111
91112 2002-11-15  Bruno Haible  <bruno@clisp.org>
91113
91114         * lib/strcspn.c: Include <stddef.h>.
91115         (strcspn): Use ANSI C function declaration. Change return type to
91116         size_t. Use NULL.
91117         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91118         (strpbrk): Use NULL.
91119         * lib/strpbrk.h (PARAMS): Remove macro.
91120         (strpbrk): Use ANSI C function declaration.
91121         * lib/strstr.c: Don't include <sys/types.h>.
91122         * lib/strstr.h (PARAMS): Remove macro.
91123         (strstr): Use ANSI C function declarations.
91124
91125 2002-11-14  Karl Berry  <karl@gnu.org>
91126
91127         * config/mkinstalldirs: `do' on separate line, instead of
91128         `for var; do'.
91129
91130 2002-11-06  Bruno Haible  <bruno@clisp.org>
91131
91132         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91133         * lib/gcd.c (gcd): Likewise.
91134
91135 2002-11-05  Bruno Haible  <bruno@clisp.org>
91136
91137         * lib/gcd.h: New file, from gettext-0.11.5.
91138         * lib/gcd.c: New file, from gettext-0.11.5.
91139
91140 2002-11-05  Bruno Haible  <bruno@clisp.org>
91141
91142         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91143         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91144         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91145         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91146
91147         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91148         <libintl.h>.
91149         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91150         <libintl.h>.
91151
91152         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91153         * lib/human.c: Include gettext.h instead of <libintl.h>.
91154         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91155         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91156         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91157         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91158         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91159         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91160         (textdomain): Remove definition.
91161         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91162
91163         * lib/long-options.c: Remove include of <libintl.h> and definition of
91164         _.
91165         * lib/same.c: Remove include of <libintl.h> and definition of _.
91166
91167 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91168
91169         * lib/config.charset: A few additions for Solaris.
91170
91171 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91172
91173         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91174         * lib/localcharset.c (locale_charset): Declare as extern "C".
91175
91176 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91177
91178         * lib/config.charset: msdos in uk_UA uses CP1125.
91179
91180 2002-11-04  Bruno Haible  <bruno@clisp.org>
91181
91182         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91183         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91184         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91185         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91186         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91187
91188 2002-11-04  Bruno Haible  <bruno@clisp.org>
91189
91190         * lib/localcharset.c (locale_charset): Don't return an empty string.
91191
91192 2002-11-04  Bruno Haible  <bruno@clisp.org>
91193
91194         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91195         aliases.
91196
91197 2002-11-04  Bruno Haible  <bruno@clisp.org>
91198
91199         * lib/config.charset: Update for newest glibc. Add canonical names
91200         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91201
91202 2002-11-04  Bruno Haible  <bruno@clisp.org>
91203
91204         * lib/config.charset: Add support for NetBSD.
91205
91206 2002-11-04  Bruno Haible  <bruno@clisp.org>
91207
91208         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91209
91210 2002-11-01  Bruno Haible  <bruno@clisp.org>
91211
91212         * configure.in: Add AC_CONFIG_AUX_DIR call.
91213         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91214         test/Makefile.
91215         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91216
91217 2002-09-28  Karl Berry  <karl@gnu.org>
91218
91219         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91220         installed automake until the next release, since changes have been
91221         made.
91222
91223 2002-09-25  Karl Berry  <karl@gnu.org>
91224
91225         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91226         * lib/getopt*: copy from libc/posix.
91227         * lib/gettext.h: copy from gettext.
91228         * lib/.cppi-disable: add strdup.c, gettext.h.
91229
91230 2002-09-25  Karl Berry  <karl@gnu.org>
91231
91232         * config/srclist.txt: enable gettext.h check.
91233         * config/config.{guess,sub}: update from prep.
91234         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91235                 from automake 1.6.3.
91236         See srclist*.
91237
91238 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91239
91240         * regex.c (PATFETCH): Remove the translating fetch.
91241         (PATFETCH_RAW): Rename to PATFETCH.
91242         (set_image_of_range): New fun.
91243         (SET_RANGE_TABLE_WORK_AREA): Use it.
91244         (regex_compile): Don't translate the pattern chars so eagerly.
91245         Only do it when inserting an `exactn' bytecode or when handling
91246         a char-range.
91247         (mutually_exclusive_p): Avoid empty statement.
91248
91249 2002-07-06  Jim Meyering  <meyering@lucent.com>
91250
91251         * m4/README: Don't mention Makefile.am.in.
91252         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91253
91254 2002-07-01  Jim Meyering  <meyering@lucent.com>
91255
91256         * lib/c-stack.c: Include sys/time.h.
91257         From Volker Borchert.
91258
91259 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91260
91261         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91262
91263 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91264
91265         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91266         New macro.  Use it uniformly instead of
91267         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91268         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91269         reported by Vin Shelton.
91270
91271 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91272
91273         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91274         Do not assume SA_SIGINFO behavior.
91275         Bug reported by Jim Meyering on NetBSD 1.5.2.
91276
91277 2002-06-22  Jim Meyering  <meyering@lucent.com>
91278
91279         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91280         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91281
91282         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91283         now that configure.ac uses AC_GNU_SOURCE.
91284         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91285         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91286
91287         Update to latest tools.  Suggestions from Paul Eggert.
91288         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91289         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91290         * m4/fnmatch.m4: Likewise.
91291         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91292         to AC_HEADER_STDBOOL
91293
91294 2002-06-22  Jim Meyering  <meyering@lucent.com>
91295
91296         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91297         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91298
91299 2002-06-22  Jim Meyering  <meyering@lucent.com>
91300
91301         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91302
91303         * lib/exitfail.c, exitfail.h: Likewise.
91304         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91305
91306         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91307         of fnmatch.h.
91308         (EXTRA_DIST): Add fnmatch_loop.c.
91309         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91310
91311         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91312         * lib/fnmatch.c: Update from diffutils-2.8.2.
91313         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91314         * lib/fnmatch.h: Remove file.
91315
91316 2002-06-21  Jim Meyering  <meyering@lucent.com>
91317
91318         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91319         * m4/mbrtowc.m4: Likewise.
91320
91321         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91322         * m4/mbswidth.m4: Reflect name change:
91323         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91324         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91325
91326         * m4/lib-link.m4: Update from gettext-0.11.2.
91327         * m4/gettext.m4: Likewise.
91328
91329         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91330         From Alfred M. Szmidt.
91331
91332 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91333
91334         * lib/file-type.h: Report an error if neither S_ISREG nor
91335         S_IFREG is defined, instead of using a test specific to glibc
91336         2.2.  This should be safe, since POSIX requires S_ISREG and
91337         Unix Version 7 had S_IFREG.  We don't need to check for
91338         <sys/types.h> since we don't use any symbols that it defines.
91339
91340 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91341
91342         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91343         $@-t, so that each temporary file name is unique and valid in the first
91344         8 characters, for operation under DOS.
91345
91346 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91347
91348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91349
91350 2002-06-15  Jim Meyering  <meyering@lucent.com>
91351
91352         Work even with DJGPP 2.03, which lacks support for symlinks.
91353         From Richard Dawe.
91354         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91355         is defined.
91356         * lib/lchown.c (S_ISLNK): Likewise.
91357
91358 2002-06-15  Jim Meyering  <meyering@lucent.com>
91359
91360         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91361         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91362         have been included before this file.
91363
91364 2002-06-14  Jim Meyering  <meyering@lucent.com>
91365
91366         * lib/file-type.h: Use the version from diffutils-2.8.2.
91367         * lib/file-type.c: Likewise.
91368
91369 2002-06-07  Jim Meyering  <meyering@lucent.com>
91370
91371         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91372         They're needed at least for NetBSD 1.5.2.
91373         ($statxfs_includes): Include those same headers.
91374         ($statxfs_includes): Include sys/vfs.h if available.
91375         ($statxfs_includes): Likewise for sys/statvfs.h.
91376         Check for the following members in both structs statfs and statvfs:
91377         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91378
91379 2002-06-01  Jim Meyering  <meyering@lucent.com>
91380
91381         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91382         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91383
91384 2002-05-28  Jim Meyering  <meyering@lucent.com>
91385
91386         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91387         Reported by Volker Borchert.
91388
91389 2002-05-27  Jim Meyering  <meyering@lucent.com>
91390
91391         Fix a problem seen only on nonconforming systems whereby ls.c's
91392         use of localtime, and then of gettimeofday would cause trouble:
91393         the localtime call used to initialize rpl_gettimeofday's save
91394         mechanism would clobber ls's current local time information so
91395         that in any long listing the first file would always be listed
91396         with date 1970-01-01.  Analysis by Volker Borchert.
91397
91398         * lib/gettimeofday.c (localtime): Undefine.
91399         (rpl_localtime): New function.
91400
91401 2002-05-27  Jim Meyering  <meyering@lucent.com>
91402
91403         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91404         localtime.
91405
91406         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91407         use the replacement function; it wouldn't resolve at link time.
91408         Reported by Volker Borchert.
91409
91410 2002-05-22  Jim Meyering  <meyering@lucent.com>
91411
91412         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91413         file-type.h.
91414         * lib/file-type.h: New file.
91415         * lib/file-type.c (file_type): New file/function.  Extracted from
91416         diffutils.
91417
91418 2002-04-30  Jim Meyering  <meyering@lucent.com>
91419
91420         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91421
91422 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91423
91424         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91425
91426 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91427
91428         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91429         Do not check for alloca.h (no longer used) or stdbool.h (was never
91430         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91431
91432 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91433
91434         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91435
91436 2002-04-29  Jim Meyering  <meyering@lucent.com>
91437
91438         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91439         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91440         Use AC_FUNC_STRNLEN here instead.
91441
91442         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91443         With autoconf-2.53a, it's part of AC_PROG_CC.
91444
91445 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91446
91447         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91448         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91449
91450 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91451
91452         * lib/sig2str.h, lib/sig2str.c: New files.
91453         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91454
91455 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91456
91457         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91458         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91459         of 127, since 64 is the largest conceivable number for ancient
91460         nonstandard hosts.
91461         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91462
91463 2002-04-28  Jim Meyering  <meyering@lucent.com>
91464
91465         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91466
91467 2002-04-24  Jim Meyering  <meyering@lucent.com>
91468
91469         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91470         (jm_PREREQ): Use it.
91471
91472         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91473         mach/mach.h fcntl.h.
91474         Check for this function: setlocale.
91475
91476 2002-04-24  Jim Meyering  <meyering@lucent.com>
91477
91478         * lib/gettext.h: New file, from Gettext.
91479         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91480         (libfetish_a_SOURCES): Add gettext.h.
91481
91482 2002-04-16  Jim Meyering  <meyering@lucent.com>
91483
91484         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91485         ut_pid, ut_id, ut_exit.
91486
91487 2002-04-16  Jim Meyering  <meyering@lucent.com>
91488
91489         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91490         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91491         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91492
91493 2002-04-12  Jim Meyering  <meyering@lucent.com>
91494
91495         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91496         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91497         existence of the getmntinfo function.  Needed for Darwin 5.3.
91498
91499         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91500         This is necessary at least on Darwin 5.3.
91501
91502         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91503         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91504         strnlen.o in the library, and that makes some versions of ranlib
91505         object.
91506
91507 2002-04-12  Jim Meyering  <meyering@lucent.com>
91508
91509         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91510
91511 2002-04-09  Jim Meyering  <meyering@lucent.com>
91512
91513         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91514         to be more precise.  Rather than saying we're checking whether the
91515         function `works', say what we're testing.
91516         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91517         Reported by Bruno Haible.
91518
91519 2002-03-10  Jim Meyering  <meyering@lucent.com>
91520
91521         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91522         Suggestion from Santiago Vila.
91523
91524 2002-03-08  Jim Meyering  <meyering@lucent.com>
91525
91526         * lib/rename.c: Mention that this wrapper is needed also on
91527         mips-dec-ultrix4.4 systems.
91528
91529 2002-03-02  Jim Meyering  <meyering@lucent.com>
91530
91531         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91532         not HAVE_CLOCK_SETTIME.
91533
91534 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91535
91536         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91537         Check for clock_settime.
91538
91539 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91540
91541         * lib/nanosleep.h: Rename to....
91542         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91543
91544         * lib/gettime.c: New file.
91545         * lib/settime.c: New file.
91546         * lib/stime.c: Remove.
91547
91548         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91549         timespec.h.  Remove nanosleep.h.
91550
91551 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91552
91553         * m4/acl.m4: New file.
91554         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91555         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91556
91557 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91558
91559         * lib/acl.c, lib/acl.h: New files.
91560         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91561
91562 2002-02-24  Jim Meyering  <meyering@lucent.com>
91563
91564         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91565         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91566         cause trouble.  Reported by Nelson Beebe.
91567
91568 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91569
91570         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91571         compilers that don't know that xalloc_die never returns.
91572
91573 2002-02-20  Jim Meyering  <meyering@lucent.com>
91574
91575         * lib/getdate.c: Regenerate using bison-1.33.
91576
91577 2002-02-17  Jim Meyering  <meyering@lucent.com>
91578
91579         * config/config.guess (main): Don't use `head -1'; it's no longer
91580         portable. Use `sed 1q' instead.
91581
91582 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91583
91584         * m4/codeset.m4: Upgrade to gettext-0.11.
91585         * m4/gettext.m4: Upgrade to gettext-0.11.
91586         * m4/glibc21.m4: Upgrade to gettext-0.11.
91587         * m4/iconv.m4: Upgrade to gettext-0.11.
91588         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91589         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91590         * m4/lib-ld.m4: New file, from gettext-0.11.
91591         * m4/lib-link.m4: New file, from gettext-0.11.
91592         * m4/lib-prefix.m4: New file, from gettext-0.11.
91593         * m4/progtest.m4: Upgrade to gettext-0.11.
91594
91595 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91596
91597         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91598         (jm_PREREQ): Use it.
91599
91600 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91601
91602         * lib/posixver.c, lib/posixver.h: New files.
91603         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91604
91605 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91606             Bruno Haible  <bruno@clisp.org>
91607
91608         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91609         (fwrite_success_callback): New declaration.
91610         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91611         print_unicode_char. Call failure callback instead of error.
91612         (fwrite_success_callback): New function.
91613         (exit_failure_callback): New function.
91614         (fallback_failure_callback): New function.
91615         (print_unicode_char): Call unicode_to_mb.
91616
91617 2002-01-26  Jim Meyering  <meyering@lucent.com>
91618
91619         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91620         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91621
91622 2002-01-26  Jim Meyering  <meyering@lucent.com>
91623
91624         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91625
91626 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91627
91628         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91629
91630 2002-01-22  Jim Meyering  <meyering@lucent.com>
91631
91632         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91633         Otherwise, some versions of automake would omit the rule that makes
91634         Makefile from Makefile.in.
91635
91636 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91637
91638         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91639         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91640         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91641         (memcoll): Set errno to zero if there is no error.
91642
91643         * lib/quotearg.c (quotearg_buffer_restyled):
91644         Fix bug with quoting buffers containing NUL when backslashing escapes.
91645         This bug was exposed by the other changes in this patch.
91646         (quotearg_n_options): New arg ARGSIZE.
91647         All callers changed.
91648         (quoting_options_from_style): New function.
91649         (quotearg_n_style): Use it.
91650         (quotearg_n_style_mem): New function.
91651
91652         * lib/quotearg.h (quotearg_n_style_mem): New function.
91653
91654 2002-01-19  Jim Meyering  <meyering@lucent.com>
91655
91656         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91657         Remove useless quotes: DF_PROG="df".
91658         * m4/strnlen.m4: New file.
91659
91660 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91661
91662         * lib/backupfile.c (ISDIGIT): Comment fix.
91663         * lib/getdate.y (ISDIGIT): Likewise.
91664         * lib/posixtm.c (ISDIGIT, year): Likewise.
91665         * lib/strverscmp.c (ISDIGIT): Likewise.
91666         * lib/userspec.c (ISDIGIT): Likewise.
91667
91668 2002-01-16  Jim Meyering  <meyering@lucent.com>
91669
91670         * lib/getdate.y: Add three semicolons, each just before a closing
91671         brace. Bison (as of version 1.31) no longer papers over that mistake.
91672
91673 2002-01-05  Jim Meyering  <meyering@lucent.com>
91674
91675         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91676
91677 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91678
91679         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91680         not silently exit merely because the output buffer happens to
91681         have nothing pending.
91682
91683 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91684
91685         See the big note in ../ChangeLog.
91686         * lib/human.c (suffixes): Prefer K to k for 1024.
91687         (generate_suffix_backwards): New function.
91688         (human_readable_inexact): Use it.
91689         * lib/xstrtol.c (__xstrtol): If there is no number but there
91690         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91691         Accept 'K' as well as 'k'.
91692
91693 2001-12-15  Jim Meyering  <meyering@lucent.com>
91694
91695         * lib/regex.h (__restrict_arr): Update from libc.
91696
91697         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91698         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91699         (STREQ): Define.
91700
91701 2001-12-14  Jim Meyering  <meyering@lucent.com>
91702
91703         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91704         Suggestion from Bruno Haible.
91705
91706 2001-12-10  Jim Meyering  <meyering@lucent.com>
91707
91708         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91709         xrealloc, Instead, include "xalloc.h".
91710         (initbuffer): Don't cast xmalloc return value to char*.
91711         (readline): Reword comment.
91712         Don't cast xrealloc return value to char*
91713         Return NULL, not 0.
91714
91715 2001-12-09  Jim Meyering  <meyering@lucent.com>
91716
91717         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91718         about `signed and unsigned type in conditional expression'.
91719         * lib/posixtm.c (posix_time_parse): Likewise.
91720
91721         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91722
91723         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91724         to avoid a pedantic warning.
91725
91726         * lib/getstr.c: Don't include assert.h.
91727         (getstr): Remove warning-evoking assertions.
91728         Return -1 if offset parameter is out of bounds.
91729         Change the type of a local from int to size_t.
91730
91731         * lib/strftime.c (my_strftime_localtime_r): Include this function
91732         definition in the `#if ! HAVE_TM_GMTOFF' block.
91733
91734         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91735         Include xalloc.h instead.
91736
91737 2001-12-02  Jim Meyering  <meyering@lucent.com>
91738
91739         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91740         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91741         included.
91742
91743         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91744         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91745
91746 2001-11-30  Akim Demaille  <akim@epita.fr>
91747
91748         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91749         before being defined.
91750
91751 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91752
91753         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91754         First arg is int, not unsigned.
91755         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91756         (SIZE_MAX, UINT_MAX): New macros.
91757         (quotearg_n_options): Abort if N is negative.
91758         Avoid overflow check on hosts where size_t is 64 bits and int
91759         is 32 bits, as overflow is impossible there.
91760         Fix off-by-one typo that caused unnecessary reallocation.
91761
91762 2001-11-27  Jim Meyering  <meyering@lucent.com>
91763
91764         * lib/tempname.c: Merge with version from libc.
91765         * lib/regex.c: Likewise.
91766
91767         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91768         systems for which STDC_HEADERS is 0, it was not included, resulting in
91769         a warning about an integer-to-pointer conversion problem with getenv.
91770         Reported by Volker Borchert.
91771
91772 2001-11-26  Jim Meyering  <meyering@lucent.com>
91773
91774         * lib/gtod.h: Remove file.
91775         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91776         * lib/gettimeofday.c: Don't include gtod.h.
91777         (GTOD_init): Remove function.
91778         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91779         Suggestion from Volker Borchert.
91780
91781 2001-11-23  Jim Meyering  <meyering@lucent.com>
91782
91783         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91784         it.
91785         * lib/hash.c (struct hash_table): Define it here instead.
91786
91787 2001-11-22  Jim Meyering  <meyering@lucent.com>
91788
91789         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91790
91791 2001-11-20  Jim Meyering  <meyering@lucent.com>
91792
91793         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91794         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91795
91796 2001-11-19  Jim Meyering  <meyering@lucent.com>
91797
91798         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91799         directory.  Use "conftestXXXXXX" as the template.
91800         Suggestion from Paul Eggert.
91801
91802         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91803         immediately, so the test doesn't mistakenly hit the max-open-files
91804         limit.
91805
91806 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91807
91808         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91809         (TEMPORARIES): New macro.
91810         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91811         removes an artificial limitation (e.g. HP-UX 10.20, where
91812         TMP_MAX is 17576).
91813
91814 2001-11-18  Jim Meyering  <meyering@lucent.com>
91815
91816         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91817
91818 2001-11-18  Jim Meyering  <meyering@lucent.com>
91819
91820         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91821         on SunOS 4.
91822
91823         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91824         files will be created before anything else.
91825
91826 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91827
91828         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91829         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91830
91831 2001-11-17  Jim Meyering  <meyering@lucent.com>
91832
91833         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91834         Prompted by a report from Bob Proulx.
91835
91836         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91837         Instead, require UTILS_FUNC_MKSTEMP.
91838
91839 2001-11-17  Jim Meyering  <meyering@lucent.com>
91840
91841         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91842         Now, that's done as part of AC_FUNC_STRTOD.
91843
91844 2001-11-17  Jim Meyering  <meyering@lucent.com>
91845
91846         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91847         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91848         rather than group writable.  Patch by Juan F. Codagnone.
91849
91850         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91851         xrealloc, Instead, include "xalloc.h".
91852
91853         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91854         Remove explicit declarations of xmalloc, xrealloc,
91855         and xstrdup.  Instead, include "xalloc.h".
91856
91857         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91858         unlocked-io.h.
91859         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91860         Likewise.
91861         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91862
91863         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91864         Reported by Padraig Brady.
91865
91866         * lib/mkstemp.c: #undef mkstemp.
91867         Include config.h.
91868         (rpl_mkstemp): Rename from mkstemp.
91869         Protoize.
91870
91871 2001-11-16  Jim Meyering  <meyering@lucent.com>
91872
91873         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91874         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91875         determine the amount of total physical memory, use pstat_getstatic.
91876         HPUX-11 doesn't define _SC_PHYS_PAGES.
91877         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91878         If sysconf couldn't be used to determine the amount of available
91879         physical memory, use both pstat_getstatic and pstat_getdynamic.
91880         Based on a patch from Bob Proulx.
91881
91882 2001-11-10  Jim Meyering  <meyering@lucent.com>
91883
91884         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91885         (jm_PREREQ): Use it.
91886
91887 2001-11-09  Jim Meyering  <meyering@lucent.com>
91888
91889         * m4/jm-macros.m4: Require autoconf-2.52f.
91890         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91891         Use these AC_-prefixed names, not the AM_-prefixed ones.
91892
91893         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91894
91895 2001-11-05  Jim Meyering  <meyering@lucent.com>
91896
91897         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91898
91899 2001-11-04  Jim Meyering  <meyering@lucent.com>
91900
91901         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91902         $DEFS.
91903
91904 2001-11-03  Jim Meyering  <meyering@lucent.com>
91905
91906         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91907         of AC_DEFUN.
91908
91909         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91910         know the name of the variable in the macro definition.
91911
91912 2001-11-03  Jim Meyering  <meyering@lucent.com>
91913
91914         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91915         in argmatch_to_argument call.
91916
91917         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91918         argument.
91919
91920         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91921         e.g., a fault due to an attempt to free a NULL pointer.
91922
91923 2001-11-01  Jim Meyering  <meyering@lucent.com>
91924
91925         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91926         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91927
91928 2001-11-01  Jim Meyering  <meyering@lucent.com>
91929
91930         * lib/dirfd.c, lib/dirfd.h: New files.
91931         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91932
91933         * lib/hash.c (hash_print) [TESTING]: Clean up.
91934
91935 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91936
91937         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91938         to avoid a warning if -Wall.
91939
91940 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91941
91942         * README: New file
91943         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91944         (per RMS's instructions, this is now the canonical source)
91945         * lgpl/, gpl/: New directories.
91946
91947 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91948
91949         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91950
91951 2001-10-21  Jim Meyering  <meyering@lucent.com>
91952
91953         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91954         this code would end up calling gettext even in packages built
91955         with --disable-nls.
91956         * lib/getopt.c (_): Likewise.
91957         * lib/regex.c (_): Likewise.
91958
91959 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91960
91961         * m4/error.m4 (jm_PREREQ_ERROR):
91962         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91963         AC_FUNC_STRERROR_R does that.
91964         Check for strerror declaration.
91965
91966         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91967         are supposed to have them these days.
91968         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91969         Merge changes from latest Autoconf CVS.
91970         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91971         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91972         POSIX decided to standardize on the int flavor of strerror_r.
91973
91974 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91975
91976         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91977         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91978         Use strerror_r that is only a macro, even if it is not a function.
91979         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91980         (private_strerror): Use prototypes, not old-style function definition.
91981         (print_errno_message): New function.
91982         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91983         char*-flavored one.
91984         (error_tail, error, error_at_line): Use it.
91985
91986 2001-10-11  Jim Meyering  <meyering@lucent.com>
91987
91988         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91989         and quote_n (1, ... to avoid clobbering a buffer.
91990
91991 2001-10-05  Jim Meyering  <meyering@lucent.com>
91992
91993         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91994         hash-pjw.h.
91995         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91996         * lib/hash-pjw.h: New file.
91997
91998 2001-09-30  Jim Meyering  <meyering@lucent.com>
91999
92000         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92001         `struct fsstat' has the `f_fstypename' member.
92002         Use that to define FS_TYPE, which is now used to make
92003         the getfsstat link test tighter.
92004
92005 2001-09-30  Jim Meyering  <meyering@lucent.com>
92006
92007         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92008         Include <sys/ucred.h>, for Apple Darwin.
92009         Include sys/mount.h and sys/fs_types.h only if available.
92010         (FS_TYPE): Define.
92011         (read_filesystem_list): Use FS_TYPE.
92012
92013 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92014
92015         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92016         a boolean context.
92017
92018 2001-09-29  Jim Meyering  <meyering@lucent.com>
92019
92020         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92021         [one-argument getmntent function]): Include stdio.h before mntent.h.
92022         SunOS 4.1.x needs it for the declaration of `FILE'.
92023         Patch by Volker Borchert.
92024
92025         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92026         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92027         sys/fs_types.h, and make the link-test for getfsstat guard #include
92028         directives with appropriate #if HAVE_*_H tests so that we can
92029         detect getfsstat on Apple Darwin1.3.7 systems.
92030         Reported by Nelson Beebe.
92031         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92032
92033 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92034
92035         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92036         #defines strtoimax.  Also treat the other strto* functions
92037         like strtoimax.
92038
92039         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92040         Check for strtoul and strtoumax,
92041         as those declarations are made even in the signed case.
92042         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92043         Likewise, for strtol and strtoimax.
92044
92045 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92046
92047         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92048         #defines strtoimax.  Also treat the other strto* functions
92049         like strtoimax.
92050
92051         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92052         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92053         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92054
92055 2001-09-26  Jim Meyering  <meyering@lucent.com>
92056
92057         Most macros in unlocked-io.h had the wrong number of arguments.
92058         * lib/gen-uio: New script.
92059         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92060         * lib/unlocked-io.hin: Remove file.
92061         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92062         rather than trying to embed it here.
92063         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92064         Reported by Padraig Brady.
92065
92066 2001-09-25  Volker Borchert  <bt@teknon.de>
92067
92068         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92069         `result'.
92070
92071 2001-09-24  Jim Meyering  <meyering@lucent.com>
92072
92073         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92074
92075 2001-09-23  Jim Meyering  <meyering@lucent.com>
92076
92077         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92078         instead of the mere test for existence of mntent.h.  The latter
92079         would get a false-positive on AIX 3.4 systems.
92080         In the outer getmntent if-block, don't die if neither of the getmntent
92081         tests succeeds.  Instead, just fall through and continue with the
92082         remaining tests.
92083
92084 2001-09-23  Jim Meyering  <meyering@lucent.com>
92085
92086         * lib/mountlist.c: Remove useless parentheses in #if directives.
92087         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92088         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92089
92090 2001-09-22  Jim Meyering  <meyering@lucent.com>
92091
92092         * m4/gettext.m4: New file.  From gettext.
92093         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92094         * m4/progtest.m4: Likewise
92095         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92096         * m4/glibc21.m4: Likewise.
92097
92098         * m4/libintl.m4: Remove.  No longer used.
92099
92100 2001-09-22  Jim Meyering  <meyering@lucent.com>
92101
92102         * lib/localcharset.c: Update from latest gettext.
92103         * lib/config.charset: Likewise.
92104
92105 2001-09-20  Jim Meyering  <meyering@lucent.com>
92106
92107         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92108         strtoimax.
92109         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92110         strtoumax.
92111
92112 2001-09-20  Jim Meyering  <meyering@lucent.com>
92113
92114         * lib/xstrtol.c (strtoimax): Guard declaration with
92115         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92116         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92117         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92118         (strtoumax): Likewise, for completeness (it wasn't necessary).
92119
92120 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92121
92122         * lib/strtoimax.c (HAVE_LONG_LONG):
92123         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92124         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92125         to work around bug in IBM C compiler.
92126
92127 2001-09-17  Jim Meyering  <meyering@lucent.com>
92128
92129         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92130         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92131         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92132         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92133         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92134         whenever the right hand side need not be expanded by the shell.
92135
92136 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92137
92138         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92139         library.  It's not correct, as some older glibcs are buggy.
92140         fnmatch wasn't fixed until glibc 2.2.
92141
92142         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92143         special shell magic here.
92144
92145 2001-09-16  Jim Meyering  <meyering@lucent.com>
92146
92147         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92148         * m4/jm-macros.m4: Require it.
92149
92150 2001-09-16  Jim Meyering  <meyering@lucent.com>
92151
92152         * lib/mkdir.c: New file.
92153
92154 2001-09-15  Jim Meyering  <meyering@lucent.com>
92155
92156         * m4/jm-macros.m4: Check for help2man.
92157
92158 2001-09-11  Jim Meyering  <meyering@lucent.com>
92159
92160         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92161         The body, by Paul Eggert, was moved here from configure.in.
92162         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92163
92164 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92165
92166         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92167         (jm_PREREQ): Use it.
92168
92169 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92170
92171         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92172         Use ssize_t, not int, to store result of readlink.
92173         Check for ssize_t overflow as well as size_t overflow,
92174         as POSIX says the result of readlink is implementation-defined
92175         when ssize_t overflows.
92176         Remove unnecessary cast to char*.
92177         Use free+malloc instead of realloc, as the storage doesn't need
92178         to be preserved and it's clearer and can be more efficient that way.
92179         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92180         * lib/xreadlink.h (xreadlink): Update prototype.
92181
92182 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92183
92184         * lib/xgetcwd.c: Revert some of the previous change; intead,
92185         fix the HAVE_GETCWD_NULL code to behave more like the
92186         !HAVE_GETCWD_NULL code used to.
92187
92188         Include "xalloc.h".
92189         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92190         invoke xalloc_die.
92191
92192 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92193
92194         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92195         sys/param.h, as pathmax.h includes them.
92196
92197 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92198
92199         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92200         (jm_PREREQ_XGETCWD): New macro.
92201
92202         * m4/getcwd.m4: New file.
92203
92204 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92205
92206         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92207         like the HAVE_GETCWD_NULL code.
92208         Include pathmax.h if not HAVE_GETCWD.
92209         Do not include xalloc.h.
92210         (INITIAL_BUFFER_SIZE): New symbol.
92211         Do not use xmalloc / xrealloc, since the caller is responsible for
92212         handling errors.  Preserve errno around `free' during failure.
92213         Do not overrun buffer when using getwd.
92214
92215 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92216
92217         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92218         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92219         getcwd (NULL, 0).
92220
92221 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92222
92223         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92224         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92225         spotted by Jim Meyering.
92226
92227 2001-09-03  Jim Meyering  <meyering@lucent.com>
92228
92229         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92230         failure.
92231
92232 2001-09-02  Jim Meyering  <meyering@lucent.com>
92233
92234         * lib/error.c: Update from GNU libc.
92235
92236 2001-09-01  Jim Meyering  <meyering@lucent.com>
92237
92238         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92239         Used by df.
92240
92241 2001-09-01  Jim Meyering  <meyering@lucent.com>
92242
92243         * lib/xreadlink.c: New file.
92244         * lib/xreadlink.h: New file.
92245         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92246         xreadlink.h.
92247
92248         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92249         doesn't conflict with sparc Solaris 7's definition in
92250         /usr/include/sys/int_types.h.
92251
92252         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92253         files.
92254         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92255         and strncasecmp as r-values.  Unixware didn't have declarations.
92256
92257 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92258
92259         * lib/xstrtol.h: Add copyright notice.
92260         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92261         LONGINT_INVALID_SUFFIX_CHAR.
92262
92263 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92264
92265         * lib/xstrtol.c (strtoimax): New decl.
92266
92267 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92268
92269         * lib/xgetcwd.c: Don't include pathmax.h.
92270         Include stdlib.h and unistd.h if available.
92271         Include xalloc.h.
92272         (xmalloc, xstrdup, free): Remove decls.
92273         (xgetcwd): Don't assume sizes fit in unsigned.
92274         Check for overflow when computing sizes.
92275         Simplify reallocation code.
92276
92277 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92278
92279         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92280         a directory's st_size can have an arbitrary value, so the old
92281         usage could waste an arbitrary amount of memory.  All uses
92282         changed.
92283         * lib/savedir.h: Update prototype.
92284
92285 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92286
92287         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92288
92289         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92290         old strtoimax.c.
92291
92292         Also, make the following further changes to make this file's
92293         configuration more similar to that of strtol.c:
92294         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92295         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92296         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92297         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92298         changed to signed values.
92299
92300         And make the following changes as well:
92301         Fix copyright notice, as 1999 was missing.
92302         (verify): New macro.
92303         (strtoimax): Check sizes at compile-time, not run-time.
92304         Prefer strtol to strtoll if both work.
92305         (main): Remove; it was not that useful and was a pain to maintain.
92306
92307         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92308
92309 2001-08-31  Jim Meyering  <meyering@lucent.com>
92310
92311         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92312         Use an initial, malloc'd, buffer of length 128 rather than
92313         a statically allocated one of length 1024.
92314
92315 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92316
92317         Simplify code, partly by assuming autoconf 2.52 semantics.
92318
92319         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92320
92321         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92322         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92323         All uses removed.
92324         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92325         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92326         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92327         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92328         jm_AC_HEADER_INTTYPES_H.
92329         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92330
92331         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92332
92333         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92334         Quote first arg of AC_DEFUN.
92335         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92336         since they are needed to parse the include file even if we need
92337         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92338         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92339         but with opposite signedness.
92340
92341 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92342
92343         Merge 'exclude' changes from tar 1.13.22.
92344         This fixes one or two unlikely storage allocation overflow bugs,
92345         but doesn't change user-visible behavior otherwise.
92346
92347 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92348
92349         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92350         (jm_PREREQ_EXCLUDE): New macro.
92351
92352 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92353
92354         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92355         tm to be declared.
92356
92357 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92358
92359         * lib/hash.c: Remove '2001' from copyright notice.
92360
92361 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92362
92363         * lib/full-write.h: New file.
92364         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92365         * lib/full-write.c: Correct credits, as cccp.c no longer
92366         exists and anyway it was so heavily changed from the old cccp
92367         code as to be unrecognizable.  Include full-write.h.
92368         (full_write): Return size_t, with short writes meaning failure.
92369         All callers changed.  This fixes a bug with large buffers
92370         on 64-bit hosts.
92371         * lib/utime.c: Include full-write.h.
92372
92373 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92374
92375         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92376         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92377         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92378         Include if available.
92379         (<xalloc.h>): Include
92380         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92381         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92382         collide with FNM macros.
92383         (struct patopts): New struct.
92384         (struct exclude): Use it, as exclude patterns now come with options.
92385         (new_exclude): Support above changes.
92386         (new_exclude, add_exclude_file):
92387         Initial size must now be a power of two to simplify overflow checking.
92388         (free_exclude, fnmatch_no_wildcards): New function.
92389         (excluded_filename): No longer requires options arg, as the options
92390         are determined by add_exclude.  Now returns bool, not int.
92391         (excluded_filename, add_exclude):
92392         Add support for the fancy new exclusion options.
92393         (add_exclude, add_exclude_file): Now takes int options arg.
92394         Check for arithmetic overflow when computing sizes.
92395         (add_exclude_file): xrealloc might modify errno, so don't
92396         realloc until after errno might be used.
92397
92398         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92399         New macros.
92400         (free_exclude): New decl.
92401         (add_exclude, add_exclude_file): Now takes int options arg.
92402         (excluded_filename): No longer requires options arg, as the options
92403         are determined by add_exclude.  Now returns bool, not int.
92404
92405 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92406
92407         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92408
92409 2001-08-27  Jim Meyering  <meyering@lucent.com>
92410
92411         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92412
92413         * lib/version-etc.c (N_): Remove definition.
92414         Revert most of last change.
92415         Instead, simply don't mark the `Copyright...' string for translation.
92416         Based on advice from Paul Eggert.
92417
92418         * lib/strtoxmax.c: Tweak comment.
92419
92420 2001-08-26  Jim Meyering  <meyering@lucent.com>
92421
92422         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92423
92424         * m4/xstrtoimax.m4: New file.
92425         * m4/xstrtoumax.m4: Add comments explaining why we
92426         AC_REPLACE_FUNCS(strtol).
92427
92428 2001-08-26  Jim Meyering  <meyering@lucent.com>
92429
92430         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92431         of copyright with `%s' so translators don't get an untranslated
92432         message in 2002.
92433         (COPYRIGHT_YEAR): Define.
92434         (version_etc): Use fprintf rather than fputs.
92435         Suggestion from Ulrich Drepper.
92436
92437         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92438
92439         * lib/strtoll.c: New file, from GNU libc.
92440         * lib/xstrtoimax.c: New file.
92441
92442         * lib/xstrtol.h: Add xstrtoimax.
92443         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92444         * lib/strtoimax.c: New file.  Likewise, but first define
92445         STRTOUXMAX_SIGNED.
92446
92447         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92448         ...
92449         * lib/strtoxmax.c: ... then renamed to this.
92450
92451 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92452
92453         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92454         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92455         (jm_AC_TYPE_INTMAX_T): New macro.
92456         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92457
92458         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92459
92460         * m4/longlong.m4: Renamed from ulonglong.m4.
92461         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92462         * m4/uintmax_t.m4: Removed.
92463
92464 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92465
92466         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92467         Port to Solaris 8, where 'sed' requires a space after the 'r'
92468         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92469         Redirect output to $tmp just once.
92470
92471 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92472
92473         * lib/addext.c (<errno.h>): Include.
92474         (errno): Declare if not defined.
92475         (addext): Work correctly when pathconf returns -1 and leaves
92476         errno alone because there is no limit.  Also, work even if
92477         pathconf returns a value greater than SIZE_MAX.
92478
92479 2001-08-12  Jim Meyering  <meyering@lucent.com>
92480
92481         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92482         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92483         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92484         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92485         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92486         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92487         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92488         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92489         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92490         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92491         utime.m4, utimes.m4, xstrtoumax.m4:
92492         Quote the first argument in each use of AC_DEFUN.
92493
92494 2001-08-12  Jim Meyering  <meyering@lucent.com>
92495
92496         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92497         Simply `return getcwd (NULL, 0);'.
92498         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92499         Use 1300 as initial value for length, not PATH_MAX.
92500
92501         * lib/pathmax.h: Clean up cpp syntax.
92502
92503 2001-08-12  Jim Meyering  <meyering@lucent.com>
92504
92505         * lib/gettimeofday.c: New file.
92506         * lib/gtod.h: New file.
92507         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92508
92509 2001-08-05  Jim Meyering  <meyering@lucent.com>
92510
92511         * m4/jm-macros.m4: Require autoconf-2.52.
92512
92513 2001-08-04  Jim Meyering  <meyering@lucent.com>
92514
92515         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92516         stmt, to get in sync with glibc.
92517
92518 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92519
92520         The following changes are from gettext 0.10.39 as maintained by
92521         Bruno Haible.
92522
92523         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92524         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92525         with inverted sense.  All uses changed.
92526
92527         * lib/mbswidth.c: Don't include <limits.h>.
92528         Include <stdlib.h> and <string.h> unconditionally.
92529         (iswcntrl, mbsinit, ISCNTRL): New macros.
92530         (mbsnwidth): Use K&R style function declarations.
92531         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92532         can optimize it when MB_CUR_MAX == 1.
92533         The width of control characters is zero, not 1.
92534
92535 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92536
92537         The following changes are from gettext 0.10.39 as maintained by
92538         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92539
92540         * m4/codeset.m4: Upgrade to serial AM1.
92541         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92542         all uses changed.  Quote first arg of AC_DEFUN.
92543         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92544
92545         * m4/iconv.m4: Upgrade to serial AM2.
92546         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92547         Add --with-libconv-prefix.
92548         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92549         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92550         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92551         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92552         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92553
92554         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92555         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92556         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92557         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92558         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92559         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92560         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92561         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92562         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92563
92564         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92565         string.h any more.
92566
92567         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92568         not the default value.
92569
92570         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92571         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92572         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92573         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92574         Also check for iswcntrl, used for wcwidth fallback.
92575         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92576         to Autoconf 2.13.
92577
92578 2001-08-03  Jim Meyering  <meyering@lucent.com>
92579
92580         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92581         as it was in the original.  Reported by Paul Eggert.
92582
92583 2001-07-16  Jim Meyering  <meyering@lucent.com>
92584
92585         * m4/gettimeofday.m4: New file.
92586         Prompted by a report from Bernhard Baehr.
92587
92588 2001-07-15  Jim Meyering  <meyering@lucent.com>
92589
92590         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92591         stuff. Now it's in ../Makefile.cfg.
92592
92593 2001-07-15  Jim Meyering  <meyering@lucent.com>
92594
92595         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92596         (BUILT_SOURCES): Add unlocked-io.h.
92597         (io_functions): Define.
92598         (unlocked-io.h): New rule.
92599         (DISTCLEANFILES): Add unlocked-io.h.
92600         (all-local): Depend on unlocked-io.h, to ensure it is created.
92601
92602         * lib/unlocked-io.hin: New file
92603
92604         * lib/regex.c: Update from glibc.
92605
92606 2001-07-05  Jim Meyering  <meyering@lucent.com>
92607
92608         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92609         recommendation.
92610         (libfetish_a_SOURCES): Put all .h files here instead.
92611         Remove a thus-exposed (better checks in automake) duplicate and
92612         two unnecessary .h files.
92613
92614 2001-07-04  Jim Meyering  <meyering@lucent.com>
92615
92616         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92617         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92618         distcheck failure.
92619
92620 2001-07-02  Jim Meyering  <meyering@lucent.com>
92621
92622         The following changes were prompted by suggestions from Bruno Haible.
92623
92624         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92625         is now generated.
92626         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92627         definition of EXTRA_DIST.
92628         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92629         ensure that the generated file is created/updated whenever the list
92630         of $(unlocked_functions) is changed.
92631         (jm-glibc-io.m4): New rule.
92632         (unlocked-io.h): New rule -- currently unused.
92633
92634 2001-06-24  Jim Meyering  <meyering@lucent.com>
92635
92636         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92637         unmatched right bracket, rather than kludging it with an extra,
92638         falsely-matching quote in a comment.  Patch by Akim Demaille.
92639
92640 2001-06-11  Jim Meyering  <meyering@lucent.com>
92641
92642         * lib/regex.c: Update from GNU libc.
92643
92644 2001-05-27  Jim Meyering  <meyering@lucent.com>
92645
92646         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92647         Check for ut_type in struct utmp.
92648
92649 2001-05-27  Jim Meyering  <meyering@lucent.com>
92650
92651         * lib/readutmp.h (UT_TYPE): Define.
92652
92653 2001-05-24  Jim Meyering  <meyering@lucent.com>
92654
92655         * lib/argmatch.c: Include "quote.h".
92656         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92657         quote function.  Reported by Göran Uddeborg.
92658
92659 2001-05-22  Jim Meyering  <meyering@lucent.com>
92660
92661         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92662         now that we use the package-supplied version unconditionally.
92663         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92664
92665 2001-05-21  Jim Meyering  <meyering@lucent.com>
92666
92667         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92668         shell syntax errors.
92669
92670 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92671
92672         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92673
92674 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92675
92676         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92677         Don't bother to check library strftime, since
92678         we'll be using our own my_strftime function anyway.
92679         Define my_strftime instead of strftime.
92680
92681 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92682
92683         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92684         which is not yet declared.
92685
92686 2001-05-15  Jim Meyering  <meyering@lucent.com>
92687
92688         * m4/regex.m4: Use proper quoting so brackets appear in the test
92689         program.
92690         Reported by, and with help from, Bruno Haible.
92691
92692 2001-05-13  Jim Meyering  <meyering@lucent.com>
92693
92694         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92695         undefined.
92696
92697 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92698
92699         dirname code cleanup.  base_name now behaves more compatibly
92700         with POSIX basename when given file names that have trailing
92701         slashes, and similarly for dir_name.  Add new primitives
92702         base_len and dir_len.  Put the directory-name-related decls
92703         into dirname.h.
92704
92705         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92706         * lib/backupfile.c (base_name): Likewise.
92707         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92708         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92709         * lib/makepath.c (strip_trailing_slashes): Likewise.
92710         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92711         ISSLASH): Likewise.
92712         * lib/rename.c (strip_trailing_slashes): Likewise.
92713         * lib/same.c (base_name): Likewise.
92714         * lib/stripslash.c (ISSLASH): Likewise.
92715
92716         * lib/addext.c: Include <dirname.h> after size_t is defined.
92717         * lib/backupfile.c: Likewise.
92718
92719         * lib/addext.c (addext): Use base_len to trim redundant
92720         trailing slashes instead of doing it ourselves.
92721         But do not trim the last slash if it is not redundant.
92722
92723         * lib/backupfile.c (find_backup_file_name,
92724         max_backup_version): Use base_len instead of rolling it ourselves.
92725         Handle the case of "" and (on DOS) "C:" correctly.
92726
92727         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92728         needed. Include <string.h>, <dirname.h>.
92729         (base_name): Allow file names ending in slashes, other than names
92730         that are all slashes.  In this case, return the basename followed
92731         by the slashes.  This is more general, and can be used in places
92732         where the original base_name purposely had an assertion failure.
92733         (base_len): New function.
92734
92735         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92736         Do not include <assert.h>; no longer needed.
92737         Include xalloc.h.
92738         (memrchr): Remove decl.
92739         (dir_name_r): Remove.
92740         (dir_len): Renamed from dirlen.  All callers changed.
92741         Rewrite in terms of base_name, for simplicity and consistency.
92742         (dir_name): Never return NULL.  All callers changed.
92743         Do not include <stdlib.h> in test program; no longer needed.
92744         return 0; is fine for test program.
92745
92746         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92747         New macros.
92748         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92749
92750         * lib/path-concat.c (path_concat): Use base_len to compute
92751         base length, not strlen; this means we cannot rely on memcpy
92752         to null-terminate.
92753
92754         * lib/same.c (STREQ): Remove.
92755         (same_name): Handle the case where the basename ends in trailing '/'.
92756
92757         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92758         a slash was stripped.  Do not strip the last slash after a
92759         file system prefix.
92760
92761 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92762
92763         * lib/Makefile.am (libfetish_a_SOURCES):
92764         Add strftime.c, since we now compile it on all hosts.
92765
92766         * lib/strftime.c (my_strftime):
92767         Define to nstrftime if emacs, but only if my_strftime is not defined.
92768         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92769         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92770         Add one more extra argument: a nanoseconds value.
92771         All uses changed.
92772         (ns): New macro.
92773         (my_strftime function): Add %N format.
92774         (emacs_strftimeu): Renamed from emacs_strftime,
92775         with extra ut argument.
92776
92777 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92778
92779         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92780
92781 2001-04-21  Jim Meyering  <meyering@lucent.com>
92782
92783         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92784         doesn't interfere.
92785
92786 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92787
92788         * m4/ftruncate.m4: Check for chsize.
92789         Link with ftruncate.o unconditionally if ftruncate is missing.
92790         This was required when cross-compiling to i586-mingw32msvc.
92791
92792 2001-04-08  Jim Meyering  <meyering@lucent.com>
92793
92794         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92795         recomputed; that's necessary when the offset spans a DST transition.
92796         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92797
92798 2001-04-02  Jim Meyering  <meyering@lucent.com>
92799
92800         * lib/regex.h, regex.c: Update from GNU libc.
92801
92802 2001-03-24  Jim Meyering  <meyering@lucent.com>
92803
92804         * m4/jm-macros.m4: Require autoconf-2.49d.
92805
92806 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92807
92808         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92809
92810 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92811
92812         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92813
92814 2001-03-17  Jim Meyering  <meyering@lucent.com>
92815
92816         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92817         now that the version in autoconf is equivalent.
92818         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92819
92820         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92821         Suggestion from Akim Demaille.
92822
92823         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92824         (jm_PREREQ_TEMPNAME): New function.
92825
92826 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92827
92828         * lib/tempname.c (uint64_t): Define to uintmax_t if
92829         not defined, and if UINT64_MAX is not defined.
92830         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92831         Reported by John David Anglin.
92832
92833 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92834
92835         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92836         resolve alias if codeset is empty.
92837         * lib/config.charset (BeOS): Use wildcard syntax.
92838
92839 2001-03-13  Jim Meyering  <meyering@lucent.com>
92840
92841         * lib/path-concat.c (path_concat)
92842         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92843         concatenating e.g., `C:' and `foo'.
92844         From Bruno Haible.
92845
92846 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92847
92848         * lib/localcharset.c (locale_charset): Don't use
92849         setlocale(LC_CTYPE,NULL). Don't return NULL.
92850         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92851
92852 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92853
92854         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92855         support for DOS/DJGPP.
92856
92857 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92858
92859         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92860         lacks mkstemp.  Compile our own tempname.c if we compile our own
92861         mkstemp.c, as mkstemp relies on tempname.
92862
92863 2001-03-01  Jim Meyering  <meyering@lucent.com>
92864
92865         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92866         AH_VERBATIM really does output its argument verbatim.
92867
92868 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92869
92870         * lib/Makefile.am (libfetish_a_SOURCES):
92871         Add dup-safer.c, fopen-safer.c.
92872         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92873
92874         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92875         * lib/unistd-safer.h: New files.
92876
92877 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92878
92879         The mkstemp replacement is taken from glibc 2.2.2, with some
92880         portability fixes for use outside glibc, as follows:
92881
92882         * lib/tempname.c (struct_stat64): New macro.
92883         (direxists, __gen_tempname): Use it.
92884         This avoids a portability problem with Solaris 8.
92885
92886         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92887         (<stddef.h>, <stdint.h>, <string.h>):
92888         Include only if STDC_HEADERS || _LIBC.
92889         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92890         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92891         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92892         (__set_errno): Define this macro if <errno.h> doesn't.
92893         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92894         Define these macros if <stdio.h> doesn't.
92895         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92896         Define these macros if <sys/stat.h>
92897         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92898         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92899         __xstat64): Define if not _LIBC.
92900         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92901         (__gen_tempname): Invoke gettimeofday only if
92902         HAVE_GETTIMEOFDAY || _LIBC;
92903         otherwise, fall back on plain "time".
92904         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92905
92906         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92907
92908         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92909
92910 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92911
92912         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92913
92914 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92915
92916         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92917         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92918         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92919         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92920
92921 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92922
92923         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92924         Remove workaround macros for hosts that have mbrtowc but not
92925         mbstate_t, as we now insist on proper declarations for both
92926         before using mbrtowc.
92927
92928 2001-02-17  Jim Meyering  <meyering@lucent.com>
92929
92930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92931         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92932         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92933         UnixWare 7.1.1.
92934
92935         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92936         rather than AC_CACHE_VAL.
92937
92938 2001-02-17  Jim Meyering  <meyering@lucent.com>
92939
92940         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92941         around included file name.
92942
92943         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92944
92945         * lib/strftime.c: Update from GNU libc (the only changes were to
92946         comments).
92947
92948 2001-02-17  Jim Meyering  <meyering@lucent.com>
92949
92950         * lib/regex.c: Update from libc.
92951
92952 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92953
92954         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92955         clash.
92956
92957 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92958
92959         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92960         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92961         Reported by Mark Hounschell via Paul Eggert.
92962
92963 2001-02-07  Jim Meyering  <meyering@lucent.com>
92964
92965         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92966
92967 2001-02-05  Jim Meyering  <meyering@lucent.com>
92968
92969         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92970         it includes the patch required for `large file' support with at least
92971         HP-UX's 10.20 /bin/cc.
92972
92973 2001-02-03  Jim Meyering  <meyering@lucent.com>
92974
92975         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92976         AS_IF, now that it works once again (mysteriously).
92977         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92978
92979 2001-01-30  Jim Meyering  <meyering@lucent.com>
92980
92981         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92982         * m4/chown.m4: Rename conftestchown to conftest.chown.
92983         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92984         s/conftestdir2/conftest.d2/.
92985         * m4/utimes.m4: s/conftestdata/conftest.data/
92986         Inspired by Pavel Roskin's change in autoconf.
92987
92988 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92989
92990         * lib/config.charset: Update for FreeBSD 4.2.
92991
92992 2001-01-27  Jim Meyering  <meyering@lucent.com>
92993
92994         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92995         a use of AS_IF.
92996         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92997
92998 2001-01-26  Jim Meyering  <meyering@lucent.com>
92999
93000         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93001         quotearg.c includes it.
93002
93003 2001-01-26  Jim Meyering  <meyering@lucent.com>
93004
93005         * lib/quotearg.c: Include stddef.h.
93006         * lib/quote.c: Include stddef.h.
93007         Reported by Axel Kittenberger.
93008
93009         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93010         line in double quotes so that it evokes a better diagnostic.
93011         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93012         Reported by Axel Kittenberger.
93013
93014 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93015
93016         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93017         as if it was a `charset'.
93018
93019 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93020
93021         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93022         has const.
93023
93024 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93025
93026         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93027         to avoid a warning.  Add back 'const' to inptr.
93028
93029 2001-01-20  Jim Meyering  <meyering@lucent.com>
93030
93031         Be sure that headers are checked before used in code compiled
93032         for the type checks.
93033         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93034         In place of that, invoke jm_CHECK_ALL_TYPES.
93035         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93036         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93037         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93038         The check for ssize_t was mistakenly run before the test for unistd.h.
93039
93040         The configure-time check for stdbool.h was missing.
93041         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93042         (jm_PREREQ_HASH): New function.
93043
93044 2001-01-17  Jim Meyering  <meyering@lucent.com>
93045
93046         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93047         for autoconf-2.49c.
93048         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93049
93050 2001-01-16  Jim Meyering  <meyering@lucent.com>
93051
93052         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93053         From Bruno Haible.
93054
93055 2001-01-14  Jim Meyering  <meyering@lucent.com>
93056
93057         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93058         foo and bar.  Create conftestdir/ in the script, not in the C code.
93059         Remove directories in the script, not in the C code.
93060         Remove conftestdir{,2} before trying to create the directory.
93061         Make the entire configure script fail if the mkdir fails.
93062
93063 2001-01-14  Jim Meyering  <meyering@lucent.com>
93064
93065         * lib/rename.c: New file.  From Volker Borchert.
93066         Include stdlib.h, string.h or strings.h, and xalloc.h.
93067         Use strip_trailing_slashes rather than open-coding it.
93068
93069 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93070
93071         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93072
93073 2001-01-03  Jim Meyering  <meyering@lucent.com>
93074
93075         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93076         of local `inptr' to avoid warning with some system declarations of
93077         iconv.
93078
93079 2001-01-02  Volker Borchert  <bt@teknon.de>
93080
93081         * m4/rename.m4: New file.
93082         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93083
93084 2001-01-01  Jim Meyering  <meyering@lucent.com>
93085
93086         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93087         even on systems with utmpx.h.  It's necessary for the declaration of
93088         utmp's ut_user member.  Reported by Andreas Jaeger.
93089
93090         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93091         available. They are required for the declarations of getgrgid and
93092         getpwuid resp.
93093         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93094         Reported by Andreas Jaeger.
93095
93096 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93097
93098         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93099         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93100         so `make install' also works in VPATH builds.
93101
93102 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93103
93104         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93105         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93106         can be used in subdirectories.
93107
93108 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93109
93110         * lib/modechange.c: Do not assume that mode_t uses the
93111         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93112         the other-execute bit of FOO even if S_IXOTH != 1.
93113
93114         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93115         WOTH, XOTH, ALLM): New macros.
93116         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93117          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93118         Use them.
93119         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93120         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93121         (mode_compile):
93122         No need to use uintmax_t; unsigned long is long enough.
93123         Don't bother to get suffix since we don't use it.
93124
93125 2000-12-26  Jim Meyering  <meyering@lucent.com>
93126
93127         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93128         better with autoheader.
93129
93130 2000-12-24  Jim Meyering  <meyering@lucent.com>
93131
93132         * lib/hash.c (is_prime): Return explicit boolean values.
93133         (hash_get_first): Return NULL to appease Irix5.6's 89.
93134         Reported by Nelson Beebe.
93135
93136 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93137
93138         * lib/localcharset.c (locale_charset): Add support for Win32.
93139
93140 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93141
93142         * lib/physmem.h, lib/physmem.c: New files.
93143
93144         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93145         (noinst_HEADERS): Add physmem.h.
93146
93147         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93148         't' for compatibility with Solaris 8 sort.
93149
93150 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93151
93152         * lib/config.charset: Add support for BeOS.
93153
93154 2000-12-17  Jim Meyering  <meyering@lucent.com>
93155
93156         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93157         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93158
93159 2000-12-16  Jim Meyering  <meyering@lucent.com>
93160
93161         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93162         N and M) would have treated it like `chown N:N FILE'.
93163
93164         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93165
93166 2000-12-16  Jim Meyering  <meyering@lucent.com>
93167
93168         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93169         SHELLS_FILE to a file name that's useful on djgpp systems.
93170         Include stdlib.h.
93171         (ADDITIONAL_DEFAULT_SHELLS): Define.
93172         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93173         Based mostly on a patch from Prashant TR.
93174
93175 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93176
93177         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93178         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93179         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93180
93181 2000-12-08  Andreas Schwab  <schwab@suse.de>
93182
93183         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93184         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93185
93186 2000-12-07  Jim Meyering  <meyering@lucent.com>
93187
93188         * lib/stripslash.c (ISSLASH): Define.
93189         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93190         `/'.
93191         From Prashant TR.
93192
93193         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93194         (dir_name_r): Declare this function as static.
93195         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93196         manifest itself on a name containing a mix of slashes and
93197         backslashes.
93198         Make this function work with names starting with a DOS-style
93199         drive letter and colon prefix.
93200         (dir_name): Append `.' if necessary.
93201         Based mostly on patches from Prashant TR and Eli Zaretskii.
93202
93203         * lib/dirname.h (dir_name_r): Remove prototype.
93204
93205 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93206
93207         * m4/off_t-format.m4: Remove this file.
93208         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93209
93210 2000-12-06  Jim Meyering  <meyering@lucent.com>
93211
93212         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93213         replacement strtoull, we may well need the replacement strtoul, too.
93214         Check for declarations of strtoul and strtoull.
93215         Check for strtol.  Mainly as a cue to cause automake to include
93216         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93217         Check for limits.h -- strtol.c needs it.
93218
93219 2000-12-05  Jim Meyering  <meyering@lucent.com>
93220
93221         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93222
93223 2000-12-04  Jim Meyering  <meyering@lucent.com>
93224
93225         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93226         Also include memory.h, stdlib.h, unistd.h if appropriate.
93227         Reported by Andreas Jaeger (conflicting declaration of malloc).
93228
93229 2000-12-02  Jim Meyering  <meyering@lucent.com>
93230
93231         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93232         * m4/jm-macros.m4 (jm_MACROS): require it.
93233
93234 2000-12-02  Jim Meyering  <meyering@lucent.com>
93235
93236         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93237
93238 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93239
93240         * lib/memrchr.c: Include <config.h> before any system include file.
93241
93242 2000-11-30  Jim Meyering  <meyering@lucent.com>
93243
93244         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93245
93246 2000-11-30  Jim Meyering  <meyering@lucent.com>
93247
93248         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93249
93250 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93251
93252         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93253
93254 2000-11-26  Jim Meyering  <meyering@lucent.com>
93255
93256         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93257
93258 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93259
93260         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93261         size of (size_t) -1; it's not portable.
93262
93263 2000-11-17  Jim Meyering  <meyering@lucent.com>
93264
93265         * lib/strstr.c: Update from GNU libc.
93266
93267 2000-11-17  Akim Demaille  <akim@epita.fr>
93268
93269         * lib/obstack.h: Formatting changes.
93270         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93271         prevent type checking.
93272         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93273         cast the value to (void *): assigning a `foo *' to a `void *'
93274         variable is valid.
93275         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93276
93277 2000-11-16  Jim Meyering  <meyering@lucent.com>
93278
93279         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93280
93281 2000-11-11  Jim Meyering  <meyering@lucent.com>
93282
93283         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93284
93285 2000-11-10  Jim Meyering  <meyering@lucent.com>
93286
93287         * lib/obstack.h: Update from GNU libc.
93288         * lib/obstack.c: Likewise.
93289
93290 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93291
93292         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93293
93294 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93295
93296         * lib/getusershell.c (setusershell): Use rewind rather than
93297         fseek/fseeko, to avoid configuration hassles with fseeko.
93298         Don't bother opening SHELLS_FILE if shellstream is NULL;
93299         it's not necessary.
93300
93301 2000-11-05  Jim Meyering  <meyering@lucent.com>
93302
93303         * lib/makepath.h (make_dir): Declare.
93304         * lib/makepath.c (make_dir): Remove `static' attribute.
93305         Tweak a comment.
93306
93307 2000-11-04  Jim Meyering  <meyering@lucent.com>
93308
93309         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93310
93311 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93312
93313         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93314         last one in a bucket, advance to the next bucket.
93315
93316 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93317
93318         * lib/fnmatch.c: Do not comment out all the code if we are using
93319         the GNU C library, because in some cases we are replacing buggy
93320         code in the GNU C library itself.
93321
93322 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93323
93324         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93325         (regex_compile): Catch bogus \(\1\).
93326
93327 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93328
93329         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93330         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93331         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93332
93333 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93334
93335         * lib/error.h, getline.h, modechange.h:
93336         Remove "2000" from Copyright line, as the file hasn't been
93337         changed this year other than in the copyright notice.
93338
93339         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93340         was changed this year.
93341
93342 2000-10-29  Jim Meyering  <meyering@lucent.com>
93343
93344         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93345         renaming.
93346         * m4/ls-mntd-fs.m4: Likewise
93347
93348 2000-10-29  Jim Meyering  <meyering@lucent.com>
93349
93350         * lib/xstat.in: Fix grammar in comment.
93351
93352 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93353
93354         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93355         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93356         doesn't define __restrict_arr.
93357
93358 2000-10-28  Jim Meyering  <meyering@lucent.com>
93359
93360         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93361         (jm_PREREQ_MEMCHR): New function.
93362
93363 2000-10-28  Jim Meyering  <meyering@lucent.com>
93364
93365         * lib/memchr.c: Update from libc.
93366         Adjust for portability:
93367         [HAVE_STDLIB_H]: Include stdlib.h.
93368         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93369         Undef __memchr, too.
93370         [!weak_alias]: Define __memchr to memchr.
93371
93372         * lib/regex.c: Update from libc.
93373         * lib/regex.h: Likewise.
93374         * lib/getopt1.c: Likewise.
93375         * lib/memcmp.c: Likewise.
93376
93377         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93378         Avoid using fseek, when possible -- it's broken by design.
93379         Patch by Ulrich Drepper.
93380
93381 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93382
93383         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93384         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93385         Giving in to popular pressure to shut up the compiler with casts.
93386
93387 2000-10-26  Jim Meyering  <meyering@lucent.com>
93388
93389         * lib/strftime.c: Update from libc.
93390
93391 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93392
93393         * regex.c: More `unsigned char' -> `re_char' changes.
93394         Also change several `int' into `re_wchar_t'.
93395         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93396         (PUSH_FAILURE_POINTER): Don't cast any more.
93397         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93398         We want GCC to complain, since this piece of code makes
93399         re_match non-reentrant, which *should* be fixed.
93400         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93401         (EXTEND_BUFFER): Use RETALLOC.
93402         (SET_LIST_BIT): Don't cast.
93403         (re_wchar_t): New type.
93404         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93405         that those two functions will always properly return.
93406         (IMMEDIATE_QUIT_CHECK): Cast to void.
93407         (analyse_first): Use recursion rather than an explicit stack.
93408         (re_compile_fastmap): Can't fail anymore.
93409         (re_search_2): Don't check re_compile_fastmap for failure.
93410         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93411         Now also sets the new value (passed in a new argument).
93412         (re_match_2_internal): Use it.
93413         Also, use a new var `reg' of type size_t when looping through regs
93414         rather than reuse the inappropriate `mcnt'.
93415
93416 2000-10-25  Jim Meyering  <meyering@lucent.com>
93417
93418         * lib/obstack.c: Update from libc.
93419
93420 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93421
93422         * regex.c (regex_compile): Change the way of handling a range from
93423         a char less than 256 to a char not less than 256.
93424
93425 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93426
93427         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93428         NT-Emacs only.
93429         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93430         so that re_search functions only quit when callers expect them to.
93431
93432 2000-10-23  Jim Meyering  <meyering@lucent.com>
93433
93434         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93435         wrong.  That set_locale call must not have any side effects.
93436         From Paul Eggert.
93437
93438 2000-10-22  Jim Meyering  <meyering@lucent.com>
93439
93440         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93441         [CYCLIC]: Remove now-unused definition.
93442
93443         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93444         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93445         Suggestion from Ulrich Drepper.
93446
93447 2000-10-21  Jim Meyering  <meyering@lucent.com>
93448
93449         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93450         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93451         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93452
93453 2000-10-21  Jim Meyering  <meyering@lucent.com>
93454
93455         * lib/dirname.c (memrchr): Declare if necessary.
93456         (dir_name): Remove the restriction that there be no
93457         trailing slashes.  Now, this code skips past them, effectively
93458         ignoring them.
93459         [TEST_DIRNAME] (main): New unit tests.
93460
93461         * lib/memrchr.c: New file from GNU libc.
93462         Undef __memrchr, too.
93463         [!weak_alias]: Define __memrchr to memrchr.
93464         Guard weak_alias use with `#ifdef weak_alias'.
93465
93466 2000-10-21  Jim Meyering  <meyering@lucent.com>
93467
93468         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93469         (dir_name): Use dir_name_r.
93470         * lib/dirname.h (dir_name_r): Declare it.
93471
93472 2000-10-17  Jim Meyering  <meyering@lucent.com>
93473
93474         * lib/quote.h (PARAMS): Define and use.
93475         Reported by Akim Demaille.
93476
93477         * lib/getopt.c: Update from libc.
93478
93479 2000-10-16  Jim Meyering  <meyering@lucent.com>
93480
93481         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93482         setlocale.
93483         From Jan Fedak.
93484
93485 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93486
93487         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93488
93489 2000-09-25  Jim Meyering  <meyering@lucent.com>
93490
93491         * lib/md5.h (rol): Define (from GnuPG).
93492
93493         * lib/sha.c: Give credit (GnuPG) where due.
93494         (M): Use rol rather than open-coding it.
93495         Add a FIXME comment.
93496
93497 2000-09-21  Jim Meyering  <meyering@lucent.com>
93498
93499         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93500         Reported by Michael Stone.
93501
93502 2000-09-20  Jim Meyering  <meyering@lucent.com>
93503
93504         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93505         (noinst_HEADERS): Add sha.h.
93506         Based on code from Scott G. Miller and from GnuPG.
93507
93508 2000-09-18  Jim Meyering  <meyering@lucent.com>
93509
93510         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93511         LIBS. Otherwise, everyone ends up linking with -lelf for some
93512         configurations.
93513         Reported by Mike Stone.
93514
93515 2000-09-15  Jim Meyering  <meyering@lucent.com>
93516
93517         * lib/regex.c: Update from libc.
93518
93519 2000-09-10  Jim Meyering  <meyering@lucent.com>
93520
93521         * lib/getopt.c (_getopt_internal): Update from glibc.
93522
93523 2000-09-09  Jim Meyering  <meyering@lucent.com>
93524
93525         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93526         think it should be used as a general replacement for isascii.
93527         * lib/fnmatch.c: Likewise.
93528         * lib/mbswidth.c: Likewise
93529         * lib/regex.c: Likewise.
93530
93531         Don't use atoi.
93532         * lib/userspec.c: Include sys/param.h and limits.h.
93533         Include xstrtol.h.
93534         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93535         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93536         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93537         UID, GID.  Check range.
93538
93539 2000-09-06  Jim Meyering  <meyering@lucent.com>
93540
93541         * lib/getopt.c (_getopt_internal): Update from glibc.
93542
93543 2000-08-30  Jim Meyering  <meyering@lucent.com>
93544
93545         * lib/strftime.c: Merge in changes from GNU libc.
93546
93547 2000-08-26  Jim Meyering  <meyering@lucent.com>
93548
93549         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93550         * m4/fpending.m4: New file.
93551
93552 2000-08-26  Jim Meyering  <meyering@lucent.com>
93553
93554         * lib/closeout.c: Include "__fpending.h".
93555         (close_stdout_status): Return right away if there's nothing to flush.
93556
93557         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93558         * lib/__fpending.c: New file.
93559         * lib/__fpending.h: New file.
93560
93561 2000-08-20  Jim Meyering  <meyering@lucent.com>
93562
93563         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93564         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93565         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93566
93567 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93568
93569         Improve fileutils installation on systems where running
93570         programs (like install) can't be unlinked.
93571         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93572         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93573
93574 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93575
93576         Standardize on "memory exhausted" instead of "Memory exhausted"
93577         or "virtual memory exhausted".
93578         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93579         "virtual memory exhausted".
93580         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93581         our own message.
93582         * lib/userspec.c (parse_user_spec): Likewise.
93583         * lib/bumpalloc.h: comment fix
93584         * lib/same.c, userspec.c: Include xalloc.h.
93585
93586         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93587         not char *const and pointing to a constant array.
93588         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93589         (xrealloc): Comment fix.
93590
93591         * lib/userspec.c (parse_user_spec):
93592         Don't translate a message until just before returning,
93593         to avoid unnecessary translation.
93594
93595 2000-08-07  Jim Meyering  <meyering@lucent.com>
93596
93597         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93598         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93599         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93600         getgroups.c, gethostname.c, getopt.h, group-member.c,
93601         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93602         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93603         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93604         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93605         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93606         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93607         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93608         yesno.c: Back out Copyright date changes for each file with no change
93609         this year.  This eases coordination with other programs using the same
93610         source code modules.  From Paul Eggert.
93611
93612 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93613
93614         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93615         not char, for compatibility with glibc 2.1.3 strftime.c.
93616
93617 2000-08-03  Greg McGary  <greg@mcgary.org>
93618
93619         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93620         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93621         (EXTEND_BUFFER): Use them.
93622
93623 2000-08-01  Jim Meyering  <meyering@lucent.com>
93624
93625         * lib/dirname.c (ISSLASH): Define.
93626         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93627         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93628         both `\' and `/' may be use as path separators.
93629         Based on a patch from Prashant TR.
93630
93631 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93632
93633         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93634         slot vector a constant, since it might get modified.
93635
93636 2000-07-31  Jim Meyering  <meyering@lucent.com>
93637
93638         * lib/xmalloc.c: Use `virtual memory exhausted', not
93639         `Memory exhausted'.
93640         * lib/obstack.c (print_and_abort): Likewise.
93641
93642 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93643
93644         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93645         buffer, so that the caller can always quote one small
93646         component of a "memory exhausted" message in slot 0.
93647         From a suggestion by Jim Meyering.
93648
93649 2000-07-30  Jim Meyering  <meyering@lucent.com>
93650
93651         * lib/makepath.c (make_path): Quote the other instance, too.
93652
93653         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93654         (STATIC_BUF_SIZE): Define.
93655         (quotearg_n_options): Use only statically allocated storage when
93656         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93657         than STATIC_BUF_SIZE.
93658
93659 2000-07-29  Jim Meyering  <meyering@lucent.com>
93660
93661         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93662         * lib/dirname.c (dir_name): Likewise.
93663
93664         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93665         `/'.
93666
93667         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93668         (dir_name): Assert that there are no trailing slashes.
93669
93670 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93671
93672         * lib/mbswidth.h (mbswidth): Add a flags argument.
93673         (mbswidth): New declaration.
93674         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93675         * lib/mbswidth.c (mbswidth): Add a flags argument.
93676         (mbsnwidth): New function.
93677
93678 2000-07-24  Jim Meyering  <meyering@lucent.com>
93679
93680         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93681
93682 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93683
93684         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93685
93686 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93687
93688         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93689         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93690         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93691         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93692         invoke multibyte primitives.
93693
93694 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93695
93696         * lib/quotearg.c:
93697         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93698         so that mbstate_t is always defined.
93699
93700         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93701         be 1 in at least one GCC installation, and this configuration
93702         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93703         performance on hosts that have mbrtowc but have only unibyte
93704         locales, but I assume these hosts are rare.
93705
93706 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93707
93708         * lib/mbswidth.c (_XOPEN_SOURCE):
93709         Don't define; this causes problems on Solaris 7.
93710         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93711
93712 2000-07-23  Jim Meyering  <meyering@lucent.com>
93713
93714         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93715         too: getgrgid, getpwuid, getuid.
93716
93717 2000-07-23  Jim Meyering  <meyering@lucent.com>
93718
93719         * lib/basename.c (base_name): Add an assertion.
93720
93721 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93722
93723         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93724         shadow its mbsinit function.
93725
93726 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93727
93728         * lib/mbswidth.h: New file.
93729         * lib/mbswidth.c: New file.
93730         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93731         (noinst_HEADERS): Add mbswidth.h.
93732
93733 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93734
93735         * lib/config.charset: Add support for FreeBSD. Improve support for
93736         HP-UX and IRIX 6.
93737
93738 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93739
93740         * m4/mbswidth.m4: New file.
93741         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93742
93743 2000-07-15  Jim Meyering  <meyering@lucent.com>
93744
93745         * lib/makepath.c: Include quote.h.
93746         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93747         corresponding argument in a `quote (...)' call.
93748         Give better diagnostics.
93749
93750         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93751         (noinst_HEADERS): Add quote.h.
93752
93753         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93754         from tar's src/misc.c.
93755         * lib/quote.h: New file.  Prototypes for same.
93756
93757 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93758
93759         From a suggestion by Bruno Haible.
93760         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93761         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93762         to decide whether to define the BeOS workaround macro;
93763         this adjusts to the change to AC_MBSTATE_T.
93764
93765 2000-07-14  Jim Meyering  <meyering@lucent.com>
93766
93767         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93768         jm_AC_TYPE_UINTMAX_T.
93769
93770 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93771
93772         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93773
93774         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93775         quotearg_buffer_restyled): Add support for
93776         clocale_quoting_style.  Undo previous change to
93777         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93778         and "{RIGHT QUOTATION MARK}" msgids.
93779
93780 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93781
93782         From a suggestion by Bruno Haible.
93783         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93784         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93785         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93786         and mbstate_t, to a single-part test that simply defines mbstate_t.
93787         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93788         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93789
93790 2000-07-10  Jim Meyering  <meyering@lucent.com>
93791
93792         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93793
93794         * m4/gnu-source.m4: Output to confdefs.h directly.
93795         Suggestion from Akim Demaille.
93796
93797 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93798
93799         The old behavior of quoting `like this' doesn't look good with
93800         newer, ISO-style fonts.  See:
93801         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93802
93803         Instead, quote "like this" by default.  Let the translator
93804         tailor the locale-specific quoting behavior by providing
93805         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93806
93807         * lib/quotearg.c (N_): New macro.
93808         (gettext_default): New function.
93809         (quotearg_buffer_restyled): Use
93810         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93811         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93812
93813 2000-07-09  Jim Meyering  <meyering@lucent.com>
93814
93815         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93816         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93817
93818         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93819         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93820
93821 2000-07-09  Jim Meyering  <meyering@lucent.com>
93822
93823         * lib/Most files: Update copyright dates to include 2000.
93824
93825 2000-07-08  Jim Meyering  <meyering@lucent.com>
93826
93827         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93828         if not defined.
93829         (xgethostname): Remove now-unnecessary #ifdef.
93830         Move declaration of `err' into loop where it's used.
93831
93832 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93833         and Bruno Haible  <haible@clisp.cons.org>
93834
93835         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93836         only if the test for an object-type mbstate_t fails.  This
93837         prevents us from mistakenly reporting that mbstate_t is a
93838         system object type after we "#define mbstate_t int" to work
93839         around its lack.
93840
93841 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93842         and Bruno Haible  <haible@clisp.cons.org>
93843
93844         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93845
93846 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93847
93848         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93849         to strerror_r.
93850         Include <ctype.h> for use of isalpha.
93851
93852 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93853
93854         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93855         by allocating a larger buffer. Test the gethostname return value for
93856         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93857         returns an error and ENAMETOOLONG isn't defined.
93858
93859 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93860
93861         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93862         dimension.
93863
93864 2000-07-04  Jim Meyering  <meyering@lucent.com>
93865
93866         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93867         of the deprecated AC_CHECKING.
93868
93869 2000-07-04  Jim Meyering  <meyering@lucent.com>
93870
93871         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93872         Reported by Bruno Haible.
93873
93874 2000-07-04  Jim Meyering  <meyering@lucent.com>
93875
93876         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93877         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93878         lacks mbrtowc.
93879
93880 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93881
93882         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93883         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93884
93885 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93886         and Bruno Haible  <haible@clisp.cons.org>
93887
93888         * lib/quotearg.c (mbrtowc):
93889         Assign to *pwc, and return 1 only if result is nonzero.
93890         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93891
93892 2000-07-03  Jim Meyering  <meyering@lucent.com>
93893
93894         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93895
93896 2000-07-03  Jim Meyering  <meyering@lucent.com>
93897
93898         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93899         This is necessary to get a definition of e.g., UTMP_FILE on
93900         HP-UX 10.20.
93901         From Bob Proulx.
93902
93903 2000-07-02  Jim Meyering  <meyering@lucent.com>
93904
93905         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93906
93907         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93908         AC_LIBOBJ(function_name).
93909         * m4/chown.m4: Likewise.
93910         * m4/fnmatch.m4: Likewise.
93911         * m4/ftruncate.m4: Likewise.
93912         * m4/getgroups.m4: Likewise.
93913         * m4/getline.m4: Likewise.
93914         * m4/group-member.m4: Likewise.
93915         * m4/jm-macros.m4: Likewise.
93916         * m4/lstat.m4: Likewise.
93917         * m4/malloc.m4: Likewise.
93918         * m4/memcmp.m4: Likewise.
93919         * m4/nanosleep.m4: Likewise.
93920         * m4/putenv.m4: Likewise.
93921         * m4/realloc.m4: Likewise.
93922         * m4/regex.m4: Likewise.
93923         * m4/stat.m4: Likewise.
93924         * m4/strftime.m4: Likewise.
93925
93926 2000-07-02  Jim Meyering  <meyering@lucent.com>
93927
93928         * lib/quotearg.c (mbstate_t): Don't define here.
93929
93930 2000-07-02  Jim Meyering  <meyering@lucent.com>
93931
93932         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93933
93934 2000-07-01  Jim Meyering  <meyering@lucent.com>
93935
93936         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93937
93938 2000-07-01  Jim Meyering  <meyering@lucent.com>
93939
93940         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93941         problem.
93942
93943 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93944
93945         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93946         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93947
93948 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93949
93950         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93951         per change in ../m4/ls-mntd-fs.m4.
93952         (read_filesystem_list): Ignore symbolic links.
93953
93954 2000-06-29  Jim Meyering  <meyering@lucent.com>
93955
93956         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93957         for declaration of strcmp.
93958
93959         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93960
93961         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93962         Avoid warning by casting result to `char *' to remove `const'.
93963
93964 2000-06-28  Jim Meyering  <meyering@lucent.com>
93965
93966         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93967         included by quotearg.c, for which we perform this test.  From
93968         Bruno Haible.
93969
93970 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93971
93972         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93973         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93974         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93975
93976 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93977
93978         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93979
93980 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93981
93982         savedir now sets errno on failure and invokes xmalloc to get memory.
93983         Fix a couple of other minor bugs while we're at it.
93984
93985         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93986         (NAMLEN): Remove macro.
93987         (malloc, realloc): Remove decls.
93988         (stpcpy): Likewise.
93989         ("xalloc.h"): Include.
93990         (NAME_SIZE_DEFAULT): New macro.
93991         (savedir): Use xmalloc / xrealloc to allocate memory.
93992         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93993         Skip "" directory entries.
93994         Use strlen to calculate directory entry length, since the old method
93995         is rarely used these days and isn't worth supporting.
93996         Don't use a pointer after freeing it.
93997         Check for integer overflow when calculating allocation size.
93998         Use memcpy to copy entries, instead of stpcpy.
93999         Set errno properly when returning NULL.
94000         Check for readdir error.
94001
94002 2000-06-26  Jim Meyering  <meyering@lucent.com>
94003
94004         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94005
94006 2000-06-25  Jim Meyering  <meyering@lucent.com>
94007
94008         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94009         Linux header bug when _XOPEN_SOURCE is defined to 500.
94010
94011 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94012
94013         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94014         deficiency.
94015
94016 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94017
94018         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94019         Include xalloc.h.
94020         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94021
94022 2000-06-24  Jim Meyering  <meyering@lucent.com>
94023
94024         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94025         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94026         for which strerror does return char*, but which lacks a conveniently
94027         accessible declaration of the function.  If the compile-test says
94028         strerror_r doesn't work, then resort to a `run'-test that works on
94029         BeOS and segfaults on DEC Unix.
94030
94031 2000-06-24  Jim Meyering  <meyering@lucent.com>
94032
94033         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94034
94035 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94036
94037         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94038         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94039
94040 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94041
94042         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94043         (mbrtowc, mbstate_t): Define substitutes if
94044         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94045         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94046         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94047
94048 2000-06-23  Jim Meyering  <meyering@lucent.com>
94049
94050         * m4/afs.m4: Add missing AC_MSG_RESULT.
94051         Reported by Bruno Haible.
94052
94053         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94054         Suggestion from Bruno Haible.
94055
94056 2000-06-23  Jim Meyering  <meyering@lucent.com>
94057
94058         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94059
94060 2000-06-21  Jim Meyering  <meyering@lucent.com>
94061
94062         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94063
94064 2000-06-21  Jim Meyering  <meyering@lucent.com>
94065
94066         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94067         (noinst_HEADERS): Add getstr.h.
94068
94069         * lib/getline.c (getstr): Move into a separate file.
94070         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94071         the following changes: new parameter, delim2; both delim[12]
94072         parameters have type `int', not `char'.  The latter would lose
94073         with 8-bit delimiters.
94074         * lib/getstr.h: New file.
94075
94076 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94077
94078         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94079         than 1024, return a memory chunk of least possible size, instead
94080         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94081         Use free/xmalloc instead of xrealloc to avoid copying for very long
94082         paths.
94083
94084 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94085
94086         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94087         the empty string.
94088
94089 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94090
94091         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94092         address, not strdup.  Include <stdlib.h> and don't declare free().
94093
94094 2000-06-19  Jim Meyering  <meyering@lucent.com>
94095
94096         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94097
94098 2000-06-18  Jim Meyering  <meyering@lucent.com>
94099
94100         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94101
94102         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94103         `checking whether...' message to be consistent with that of the
94104         lstat test.
94105
94106 2000-06-18  Jim Meyering  <meyering@lucent.com>
94107
94108         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94109         Besides, these days every porting target provides a mkdir function.
94110
94111         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94112         needed. (this snippet comes from src/system.h).
94113
94114 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94115
94116         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94117
94118 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94119
94120         * lib/human.c (adjust_value): New function.
94121         (human_readable_inexact): Apply rounding style even when
94122         printing approximate values.
94123
94124 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94125
94126         * lib/human.c (human_readable_inexact): Allow an input block
94127         size that is not a multiple of the output block size, and vice versa.
94128         Reported by Piergiorgio Sartor.
94129
94130 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94131
94132         * lib/getdate.y (get_date): Apply relative times after time
94133         zone indicator, not before.  Reported by Todd A. Jacobs.
94134
94135 2000-06-13  Jim Meyering  <meyering@lucent.com>
94136
94137         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94138
94139         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94140
94141 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94142
94143         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94144
94145 2000-06-12  Jim Meyering  <meyering@lucent.com>
94146
94147         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94148         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94149         optional argument.
94150         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94151         the optional argument, `lib'.
94152
94153 2000-06-08  Jim Meyering  <meyering@lucent.com>
94154
94155         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94156
94157 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94158
94159         Rewrite largefile configuration so that we don't need to run
94160         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94161         AC_CANONICAL_HOST in configure.in -- jmm]
94162
94163         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94164         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94165         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94166         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94167         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94168         All uses changed.
94169         Instead of inspecting the output of getconf, try to compile the
94170         test program without and with the macro definition.
94171         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94172         for getconf.  Instead, check for the needed flags by compiling
94173         test programs.
94174
94175 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94176
94177         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94178
94179 2000-06-04  Jim Meyering  <meyering@lucent.com>
94180
94181         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94182         SunOS 4.1.4 for which gid_t is an unsigned type.
94183
94184 2000-06-03  Jim Meyering  <meyering@lucent.com>
94185
94186         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94187         now that autoconf requires that.
94188
94189         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94190         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94191         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94192
94193 2000-06-03  Jim Meyering  <meyering@lucent.com>
94194
94195         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94196
94197 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94198
94199         * m4/glibc21.m4: New file.
94200         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94201
94202 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94203
94204         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94205         newer, don't install charset.alias.
94206         * lib/config.charset: Change the Linux/glibc rules so they become empty
94207         on glibc-2.1 or newer.
94208
94209 2000-06-02  Jim Meyering  <meyering@lucent.com>
94210
94211         * lib/mountlist.c: Back out last change.  Instead, do this...
94212         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94213         me_dummy member using the same `ignore'-testing code.
94214         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94215         fs_type strings.
94216         From Mark D. Roth.
94217
94218 2000-05-29  Jim Meyering  <meyering@lucent.com>
94219
94220         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94221         mounts with the `ignore' attribute.  Based on a patch from
94222         Mark D. Roth.
94223
94224 2000-05-28  Jim Meyering  <meyering@lucent.com>
94225
94226         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94227         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94228         * m4/stat.m4: Likewise.
94229         * m4/lstat.m4: Likewise.
94230         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94231
94232         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94233         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94234
94235 2000-05-26  Jim Meyering  <meyering@lucent.com>
94236
94237         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94238
94239 2000-05-24  Jim Meyering  <meyering@lucent.com>
94240
94241         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94242         autoconf requires that.
94243         * m4/lib-check.m4: Likewise.
94244         * m4/jm-macros.m4: Likewise.
94245         * m4/strftime.m4: Likewise.
94246
94247         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94248         AC_CHECK_DECLS, now that autoconf requires that.
94249
94250 2000-05-22  Jim Meyering  <meyering@lucent.com>
94251
94252         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94253         * m4/lstat.m4: Likewise.
94254
94255 2000-05-22  Jim Meyering  <meyering@lucent.com>
94256
94257         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94258
94259 2000-05-20  Jim Meyering  <meyering@lucent.com>
94260
94261         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94262         (jm_PREREQ): Use it.
94263
94264 2000-05-18  Jim Meyering  <meyering@lucent.com>
94265
94266         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94267         back, too, since it may have been modified by allocate_entry.
94268         (hash_delete): Rewrite to use neither the assignment operator
94269         nor the comma operator in an if-expression.
94270
94271 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94272
94273         * lib/closeout.c:
94274         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94275         Remove; no longer needed.
94276         "quotearg.h": Add include.
94277         (file_name): Do not bother to explicitly initialize to NULL; it's less
94278         efficient on some hosts.
94279         (close_stdout_status): Remove test as to whether stdout was already
94280         closed; it breaks for the case "echo x | sort >&-".
94281         Quote file name colons.
94282         Do not assume that _("write error") lacks format strings.
94283
94284 2000-05-15  Jim Meyering  <meyering@lucent.com>
94285
94286         * lib/version-etc.c (version_etc_copyright): Update the copyright
94287         string used in all --version output.
94288
94289 2000-05-14  Jim Meyering  <meyering@lucent.com>
94290
94291         * lib/closeout.c (close_stdout_set_file_name): New function.
94292         (close_stdout_status): Use new file-scoped global.
94293         Return right away if fstat says the stdout file descriptor is invalid.
94294         * lib/closeout.h (close_stdout_set_file_name): Declare.
94295
94296 2000-05-10  Jim Meyering  <meyering@lucent.com>
94297
94298         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94299         (close_stdout_set_status): New function.
94300         * lib/closeout.h (close_stdout_set_status): Declare.
94301
94302 2000-05-09  Jim Meyering  <meyering@lucent.com>
94303
94304         * m4/gettext.m4: Rename this...
94305         * m4/libintl.m4: ...to this.
94306
94307 2000-05-08  Jim Meyering  <meyering@lucent.com>
94308
94309         * lib/long-options.c: Don't include closeout.h.
94310         (parse_long_options): Don't call close_stdout for --version.
94311
94312 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94313
94314         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94315         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94316         2.1.3 bug.  This avoids a clash when files like regex.c define
94317         _GNU_SOURCE.
94318
94319 2000-05-06  Jim Meyering  <meyering@lucent.com>
94320
94321         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94322         (AC_REPLACE_FUNCS): Add strnlen.
94323
94324         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94325         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94326
94327         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94328         AC_SEARCH_LIBS call for nanosleep.
94329         (LIB_NANOSLEEP): Set and AC_SUBST.
94330
94331 2000-05-06  Jim Meyering  <meyering@lucent.com>
94332
94333         * lib/strnlen.c: Undefine __strnlen and strnlen.
94334         [!weak_alias]: Define __strnlen to strnlen.
94335
94336         * lib/atexit.c: New file, from libiberty.
94337
94338 2000-05-06  Jim Meyering  <meyering@lucent.com>
94339
94340         * lib/closeout.c (close_stdout_status): Also check for errors on the
94341         stderr stream.
94342
94343 2000-05-05  Jim Meyering  <meyering@lucent.com>
94344
94345         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94346         AC_SEARCH_LIBS call for clock_gettime.
94347         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94348
94349         * m4/search-libs.m4: Update from autoconf.
94350
94351         su doesn't work on Solaris 2.6.
94352         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94353         <shadow.h>.  Reported by Dragos Harabor.
94354
94355 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94356
94357         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94358         memcpy instead of xmalloc, xrealloc, path_concat.
94359         (locale_charset): Treat empty environment variables as absent.
94360         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94361
94362 2000-05-04  Jim Meyering  <meyering@lucent.com>
94363
94364         * lib/getopt.c: Update from glibc.
94365         * lib/obstack.c: Likewise.
94366         * lib/obstack.h: Likewise.
94367         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94368         file
94369
94370         * lib/regex.h: Likewise.
94371         * lib/strndup.c: Likewise.
94372         * lib/strnlen.c: New file, from glibc.
94373
94374 2000-05-03  Jim Meyering  <meyering@lucent.com>
94375
94376         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94377
94378 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94379
94380         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94381         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94382         compile-time test, rather than inspecting host and OS, to
94383         decide whether to define _LARGEFILE_SOURCE.
94384
94385 2000-05-01  Jim Meyering  <meyering@lucent.com>
94386
94387         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94388
94389         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94390         Based on a patch from Bruno Haible.
94391
94392 2000-05-01  Jim Meyering  <meyering@lucent.com>
94393
94394         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94395
94396 2000-04-29  Jim Meyering  <meyering@lucent.com>
94397
94398         * lib/path-concat.c: Declare strdup only if it's not defined.
94399         * lib/canon-host.c: Likewise.
94400
94401 2000-04-28  Jim Meyering  <meyering@lucent.com>
94402
94403         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94404         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94405         is included first, then limits.h is included by locale.h by libintl.h.
94406         From John David Anglin.
94407
94408 2000-04-25  Jim Meyering  <meyering@lucent.com>
94409
94410         * lib/makepath.c (S_IRWXUGO): Define.
94411         (make_path): Always perform explicit chmod if MODE specifies any
94412         of the `special' permission bits.  Prompted by a bug report against
94413         install from Mate Wierdl and Joost van Baal.
94414
94415 2000-04-18  Jim Meyering  <meyering@lucent.com>
94416
94417         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94418         (jm_PREREQ): Use it.
94419
94420 2000-04-18  Jim Meyering  <meyering@lucent.com>
94421
94422         * lib/README: New file.
94423
94424         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94425         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94426
94427 2000-04-17  Jim Meyering  <meyering@lucent.com>
94428
94429         Get it right :-)
94430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94431         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94432         Suggestion from Akim Demaille.
94433
94434 2000-04-17  Jim Meyering  <meyering@lucent.com>
94435
94436         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94437         the definition of it to rpl_strftime also defined-away the system's
94438         declaration.
94439
94440 2000-04-15  Jim Meyering  <meyering@lucent.com>
94441
94442         Use `C' to denote so-called `contiguous' files, the same way
94443         that tar does.
94444         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94445         (ftypelet): Use S_ISCTG.
94446         From Michael Deutschmann.
94447
94448 2000-04-14  Jim Meyering  <meyering@lucent.com>
94449
94450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94451         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94452         clobbered.
94453
94454 2000-04-14  Jim Meyering  <meyering@lucent.com>
94455
94456         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94457
94458 2000-04-13  Jim Meyering  <meyering@lucent.com>
94459
94460         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94461         AH_VERBATIM to insert required #ifndef into config.h.in.
94462         Suggestion from Akim Demaille.
94463
94464 2000-04-12  Jim Meyering  <meyering@lucent.com>
94465
94466         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94467         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94468         Christian Krackowizer.
94469
94470         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94471         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94472         (AC_SYS_LARGEFILE): Require.
94473         (AM_C_PROTOTYPES): Require.
94474
94475 2000-04-08  Jim Meyering  <meyering@lucent.com>
94476
94477         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94478         names don't conflict.  Reported by Eli Zaretskii.
94479
94480 2000-04-07  Jim Meyering  <meyering@lucent.com>
94481
94482         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94483         sys/types.h, to work around system header problems on AIX 3.2.5.
94484         From Bruno Haible.
94485
94486 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94487
94488         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94489         bug.  Deal with the different error behavior of Irix iconv.
94490
94491 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94492
94493         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94494         IRIX if the installer said otherwise.
94495
94496 2000-04-05  Jim Meyering  <meyering@lucent.com>
94497
94498         Portability tweaks required for ultrix4.3.
94499         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94500         (jm_CHECK_DECLS): Add getutent to the list of functions.
94501         (_jm_DECL_HEADERS): Add utmpx.h.
94502         From John David Anglin.
94503
94504         * m4/strftime.m4: Back out the 2000-04-02 change.
94505         Instead of that change, simply undefine putenv in the test program.
94506
94507 2000-04-05  Jim Meyering  <meyering@lucent.com>
94508
94509         Portability tweaks required for ultrix4.3.
94510         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94511         getutent.
94512         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94513         * lib/canon-host.c: Declare strdup.
94514         * lib/path-concat.c: Likewise.
94515         From John David Anglin.
94516
94517 2000-04-04  Jim Meyering  <meyering@lucent.com>
94518
94519         Be more DOS 8.3-friendly.
94520         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94521         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94522         * lib/Makefile.am: Reflect renaming.
94523         Reported by Eli Zaretskii.
94524
94525         Use a temporary file name that won't clash with `charset.alias'
94526         in the DOS 8.3 name space.
94527         * lib/Makefile.am (charset_tmp): Define.
94528         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94529         (uninstall-local): Likewise.
94530         Reported by Eli Zaretskii.
94531
94532 2000-04-03  Jim Meyering  <meyering@lucent.com>
94533
94534         * m4/gettext.m4: Fix typo in comment.
94535
94536         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94537         textutils/configure.in).  Suggestion from Paul Eggert.
94538         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94539
94540 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94541
94542         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94543         variable in the shell rather than using putenv, which isn't
94544         portable.  This avoids the configure-time inter-test dependency
94545         on the potentially-renamed putenv function.
94546
94547 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94548
94549         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94550         before checking struct stat.st_blksize, so that
94551         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94552
94553 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94554
94555         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94556         since strftime.c uses HAVE_STRFTIME to decide whether to use
94557         the underlying strftime.
94558
94559 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94560
94561         * lib/time/strftime.c (my_strftime): Make sure we call the system
94562         strftime, not ourselves, when invoking the underlying strftime.
94563
94564 2000-03-24  Jim Meyering  <meyering@lucent.com>
94565
94566         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94567         (charset_alias): Define.
94568         (install-exec-local): Factor out common code.
94569         (uninstall-local): Split lines longer than 80.
94570         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94571         (SUFFIXES): Define.
94572         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94573         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94574
94575 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94576
94577         * lib/config.charset: Output a line containing "Packages using this
94578         file".
94579         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94580         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94581         ref-del.sed): New rules.
94582
94583 2000-03-17  Jim Meyering  <meyering@lucent.com>
94584
94585         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94586         Otherwise, include <strings.h>
94587
94588 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94589
94590         * lib/unicodeio.c (utf8_wctomb): New function.
94591         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94592         format instead of in UCS-4 with platform dependent endianness.
94593
94594 2000-03-10  Jim Meyering  <meyering@lucent.com>
94595
94596         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94597         From Marco Franzen.
94598
94599 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94600
94601         * lib/savedir.c (savedir): Work even if directory size is
94602         negative; this can happen with some screwy NFS configurations.
94603
94604 2000-03-06  Jim Meyering  <meyering@lucent.com>
94605
94606         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94607         if it's NULL (because we ran out of memory).  From Bruno Haible.
94608
94609 2000-03-05  Jim Meyering  <meyering@lucent.com>
94610
94611         * lib/localcharset.c ("path-concat.h"): Include.
94612         (get_charset_aliases): Use path_concat instead of ANSI string
94613         concatenation.
94614
94615         * lib/unicodeio.h (PARAMS): Define.
94616         Use it to guard prototype.
94617
94618 2000-03-04  Jim Meyering  <meyering@lucent.com>
94619
94620         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94621         for lib/localcharset.c.
94622
94623 2000-03-04  Jim Meyering  <meyering@lucent.com>
94624
94625         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94626         installing into it.
94627         (uninstall-local): Uncomment this rule so `make distcheck' works
94628         once again.
94629
94630         * lib/unicodeio.c (<errno.h>): Include it.
94631         (errno): Declare if not defined.
94632
94633         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94634
94635         * lib/config.charset: New version, incorporating remarks from a linux
94636         i18n mailing list.  From Bruno Haible.
94637
94638 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94639
94640         * m4/codeset.m4: New file.
94641         * m4/iconv.m4: New file.
94642         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94643
94644 2000-03-03  Jim Meyering  <meyering@lucent.com>
94645
94646         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94647
94648 2000-03-02  Jim Meyering  <meyering@lucent.com>
94649
94650         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94651         the messages come out on separate lines.
94652
94653         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94654         rather than jm_CHECK_DECLARATIONS.
94655         * m4/decl.m4: Remove now-unused file.
94656
94657         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94658         geteuid.
94659
94660 2000-03-02  Jim Meyering  <meyering@lucent.com>
94661
94662         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94663
94664 2000-03-01  Jim Meyering  <meyering@lucent.com>
94665
94666         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94667         * lib/unicodeio.c: Likewise.
94668
94669 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94670
94671         * lib/config.charset: New file.
94672         * lib/localcharset.c: New file.
94673         * lib/unicodeio.h, lib/unicodeio.c: New files.
94674         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94675         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94676         (noinst_HEADERS): Add unicodeio.h.
94677         (all-local, install-exec-local, charset.alias): New targets.
94678
94679 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94680
94681         * lib/quotearg.c (ALERT_CHAR): New macro.
94682         (quotearg_buffer_restyled): Use it.
94683
94684 2000-02-27  Jim Meyering  <meyering@lucent.com>
94685
94686         * m4/check-decl.m4: Add getenv to the list.
94687
94688 2000-02-27  Jim Meyering  <meyering@lucent.com>
94689
94690         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94691         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94692
94693         * lib/backupfile.c: Guard inclusion of stdlib.h with
94694         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94695         Declare malloc if needed.
94696
94697         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94698         `#ifndef HAVE_DECL..'
94699         now that autoconf always defines the HAVE_DECL_ symbols.
94700         * lib/human.c: Likewise.
94701         * lib/same.c: Likewise.
94702         * lib/strtoumax.c: Likewise.
94703
94704         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94705         declaration check was not run.
94706         * lib/hash.c: Likewise.
94707         * lib/human.c: Likewise.
94708         * lib/same.c: Likewise.
94709         * lib/strtoumax.c: Likewise.
94710
94711         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94712         `.', then first look up the entire `.'-containing string as a login
94713         name.
94714
94715 2000-02-23  Jim Meyering  <meyering@lucent.com>
94716
94717         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94718         in place of my hack.
94719
94720 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94721
94722         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94723         (textint): New typedef.
94724         (parser_control): Member year changed from int to textint.
94725         All uses changed.
94726         (YYSTYPE): Removed; replaced by %union with int and textint members.
94727         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94728         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94729         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94730         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94731         (date, number, to_year): Use width of number in digits, not its value,
94732         to determine whether it's a 2-digit year, or a 2-digit time.
94733         (yylex): Store number of digits of numeric tokens.
94734         Reported by John Kendall.
94735
94736         (parser_control): Changed from struct parser_control to typedef (for
94737         consistency).  All uses changed.
94738
94739         (tID): Removed; not used.
94740         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94741
94742 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94743
94744         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94745         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94746
94747 2000-02-12  Jim Meyering  <meyering@lucent.com>
94748
94749         * lib/userspec.c (ISDIGIT): Define it.
94750         (isdigit): Remove definition.
94751         (is_number): Use ISDIGIT, not isdigit.
94752         <libintl.h>: Include.
94753         (_ and N_): Define.
94754         (parse_user_spec): Mark translatable strings.
94755
94756 2000-02-10  Jim Meyering  <meyering@lucent.com>
94757
94758         With these changes, nanosleep.[ch] are finally enough like the other
94759         lib/* replacement files to compile on a few more losing systems.
94760
94761         * lib/nanosleep.h: Don't include config.h.
94762         Remove prototype from declaration of nanosleep.
94763         (PARAMS): Remove now-unneeded definition.
94764         * lib/nanosleep.c: #undef nanosleep.
94765         (rpl_nanosleep): Rename from nanosleep.
94766
94767 2000-02-10  Jim Meyering  <meyering@lucent.com>
94768
94769         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94770         gnu_nanosleep to rpl_nanosleep.
94771
94772 2000-02-09  Jim Meyering  <meyering@lucent.com>
94773
94774         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94775         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94776
94777 2000-02-08  Akim Demaille  <akim@epita.fr>
94778
94779         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94780         `[' and `]' and remove uses of `changequote'.
94781         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94782         (AC_SYS_LARGEFILE): Likewise.
94783         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94784         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94785         of changequote.
94786         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94787         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94788         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94789         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94790
94791 2000-02-05  Jim Meyering  <meyering@lucent.com>
94792
94793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94794         Remove explicit use of AC_HEADER_TIME.  It is required by
94795         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94796         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94797         in autoconf whereby the expansion of the latter ended up preceding
94798         the expansion of its prerequisite, AC_HEADER_TIME.
94799         Reported by Volker Borchert.
94800
94801 2000-02-03  Jim Meyering  <meyering@lucent.com>
94802
94803         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94804
94805 2000-02-03  Jim Meyering  <meyering@lucent.com>
94806
94807         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94808         rather than with `#if HAVE_UTMPNAME'.
94809
94810 2000-02-02  Jim Meyering  <meyering@lucent.com>
94811
94812         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94813         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94814         Reported by Eli Zaretskii.
94815
94816 2000-02-01  Jim Meyering  <meyering@lucent.com>
94817
94818         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94819
94820 2000-01-31  Jim Meyering  <meyering@lucent.com>
94821
94822         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94823         functions.  Add the time.h and sys/time.h headers along with the
94824         AC_REQUIRE'ment of AC_HEADER_TIME.
94825
94826 2000-01-31  Jim Meyering  <meyering@lucent.com>
94827
94828         * lib/nanosleep.h (nanosleep): Guard declaration with
94829         `#if ! HAVE_DECL_NANOSLEEP'.
94830         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94831         the declaration in that vendor's sys/timers.h.
94832         Reported by Christian Krackowizer.
94833
94834         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94835         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94836         (ISPRINT): Likewise.
94837         Reported by Tom Tromey.
94838
94839 2000-01-30  Jim Meyering  <meyering@lucent.com>
94840
94841         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94842
94843         * m4/prereq.m4 (utmp_includes): Define.
94844         Check for ut_user and ut_name members in both struct utmpx
94845         and struct utmp.
94846
94847 2000-01-30  Jim Meyering  <meyering@lucent.com>
94848
94849         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94850         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94851         header files where only utmpx.ut_user is declared.
94852
94853         * lib/readutmp.h (UT_USER): Define.
94854
94855 2000-01-29  Jim Meyering  <meyering@lucent.com>
94856
94857         * m4/lib-check.m4: New file containing library-related checks from
94858         fileutils and sh-utils (textutils had none).
94859
94860 2000-01-28  Jim Meyering  <meyering@lucent.com>
94861
94862         * m4/perl.m4: Change format of warning message to look more like that
94863         from the missing script.  Suggestion from François Pinard.
94864
94865 2000-01-25  Jim Meyering  <meyering@lucent.com>
94866
94867         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94868         well as time.h in the compile check.
94869         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94870         Fix typo in cross-compiling case: s/yes/no/.
94871
94872 2000-01-23  Jim Meyering  <meyering@lucent.com>
94873
94874         * m4/jm-macros.m4: Move df-related tests here from
94875         fileutils/configure.in
94876
94877         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94878         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94879
94880         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94881         s/space/ac_fsusage_space/.
94882         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94883
94884         * m4/ftruncate.m4: New file (derived from part of
94885         fileutils/configure.in).
94886         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94887         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94888
94889         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94890         AC_SUBST these here, rather than just in sh-util/configure.in, so
94891         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94892         all the same.
94893         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94894         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94895         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94896         (AC_SUBST(POW_LIBM)): Likewise.
94897         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94898
94899 2000-01-23  Jim Meyering  <meyering@lucent.com>
94900
94901         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94902         obstack.c.
94903
94904 2000-01-22  Jim Meyering  <meyering@lucent.com>
94905
94906         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94907
94908         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94909
94910         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94911         configure.in
94912         (AC_CHECK_HEADERS): Likewise for sh-utils.
94913         (AC_CHECK_HEADERS): Likewise for textutils.
94914         Merge the three lists of headers.
94915
94916         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94917         from fileutils' configure.in.
94918
94919         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94920         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94921         check-decl.m4.
94922
94923         * m4/check-decl.m4: Use #if rather than #ifdef.
94924         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94925         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94926         (_jm_DECL_HEADERS): Define new function.
94927         (jm_CHECK_DECLARATIONS): Require it.
94928
94929 2000-01-22  Jim Meyering  <meyering@lucent.com>
94930
94931         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94932         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94933         Required for some AIX systems.  Reported by Christian Krackowizer.
94934         [TESTING] (main): New function.
94935
94936         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94937         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94938         letters.
94939
94940         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94941         iswprint.
94942
94943         * lib/strverscmp.c (ISDIGIT): Define.
94944         (strverscmp): Use ISDIGIT, not isdigit.
94945
94946 2000-01-19  Jim Meyering  <meyering@lucent.com>
94947
94948         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94949         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94950         defines `struct timespec' in <sys/time.h>
94951
94952         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94953         Thanks to Akim for explaining.
94954
94955 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94956
94957         * lib/nanosleep.c (nanosleep):
94958         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94959         POSIX.1 doesn't require SA_INTERRUPT and some systems
94960         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94961         it's been part of POSIX.1 since day 1 (in 1988).
94962
94963 2000-01-17  Jim Meyering  <meyering@lucent.com>
94964
94965         * lib/interlock: Remove unused file.  Reported by François Pinard.
94966
94967 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94968
94969         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94970         alert, backslash, formfeed, and vertical tab unnecessarily in
94971         shell quoting style.
94972
94973 2000-01-16  Jim Meyering  <meyering@lucent.com>
94974
94975         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94976         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94977         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94978         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94979
94980 2000-01-16  Jim Meyering  <meyering@lucent.com>
94981
94982         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94983         because the latter didn't work.
94984
94985 2000-01-15  Jim Meyering  <meyering@lucent.com>
94986
94987         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94988         (AC_REPLACE_FUNCS): Add memcpy and memset.
94989         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94990         Add strpbrk.
94991         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94992
94993 2000-01-12  Jim Meyering  <meyering@lucent.com>
94994
94995         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94996         (jm_PREREQ): Use it.
94997         (jm_PREREQ_READUTMP): New macro.
94998         (jm_PREREQ): Use it.
94999
95000 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95001
95002         Quote multibyte characters correctly.
95003         * m4/c-bs-a.m4: New file.
95004         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95005         (jm_PREREQ): Use it.
95006
95007 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95008
95009         * m4/uintmax_t.m4: Port to autoconf 2.13.
95010
95011 2000-01-08  Jim Meyering  <meyering@ascend.com>
95012
95013         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95014         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95015
95016 2000-01-04  Jim Meyering  <meyering@ascend.com>
95017
95018         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95019         jm_STRUCT_DIRENT_D_TYPE.
95020         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95021         jm_STRUCT_DIRENT_D_INO.
95022         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95023         jm_STRUCT_UTIMBUF.
95024         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95025         renamings.
95026         * m4/utime.m4: Likewise.
95027
95028         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95029         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95030
95031 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95032
95033         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95034         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95035
95036 2000-01-02  Jim Meyering  <meyering@ascend.com>
95037
95038         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95039         remember if this is necessary.
95040
95041 1999-12-26  Jim Meyering  <meyering@ascend.com>
95042
95043         * m4/jm-macros.m4: Use it here.
95044         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95045
95046 1999-12-23  Jim Meyering  <meyering@ascend.com>
95047
95048         * m4/jm-macros.m4: Check for clock_gettime (moved from
95049         fileutils/configure.in)
95050         Check for gettimeofday.
95051
95052 1999-12-20  Jim Meyering  <meyering@ascend.com>
95053
95054         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95055         autoconf-2.14a-1999-12-20.
95056
95057 1999-12-19  Jim Meyering  <meyering@ascend.com>
95058
95059         * m4/lstat-slash.m4: New file.
95060         * m4/jm-macros.m4: Use the new macro:
95061         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95062
95063 1999-12-07  Jim Meyering  <meyering@ascend.com>
95064
95065         * m4/perl.m4: Require that File::Compare be available, too.
95066         Too many systems seem to lack it.
95067
95068         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95069         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95070
95071 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95072
95073         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95074         problem with the QNX 4.25 shell, which doesn't propagate exit
95075         status of failed commands inside shell assignments.
95076
95077 1999-11-17  Jim Meyering  <meyering@ascend.com>
95078
95079         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95080
95081 1999-11-07  Jim Meyering  <meyering@ascend.com>
95082
95083         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95084
95085 1999-11-06  Jim Meyering  <meyering@ascend.com>
95086
95087         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95088         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95089
95090 1999-11-05  Jim Meyering  <meyering@ascend.com>
95091
95092         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95093         configure.in of textutils, fileutils, and sh-utils into this one
95094         (shared between those packages) file.
95095         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95096         AC_STRUCT_ST_BLKSIZE.
95097
95098 1999-11-03  Jim Meyering  <meyering@ascend.com>
95099
95100         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95101         of AC_CHECK_TYPE checks includes unistd.h.
95102         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95103         Suggestion from Akim Demaille.
95104
95105 1999-10-30  Jim Meyering  <meyering@ascend.com>
95106
95107         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95108         m4-quoted string.
95109         * m4/ls-mntd-fs.m4: Likewise.
95110         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95111         * m4/jm-winsz1.m4: Likewise.
95112
95113         * m4/const.m4: Remove file, since the fix made it into the experimental
95114         version of autoconf.
95115         * m4/mktime.m4: Likewise.
95116
95117         * m4/check-type.m4: Remove file, now that the latest version of
95118         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95119
95120         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95121         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95122         AC_CHECK_TYPE.
95123
95124 1999-10-04  Jim Meyering  <meyering@ascend.com>
95125
95126         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95127
95128 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95129
95130         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95131         2.95.1 bug with HP-UX 10.20.
95132
95133 1999-09-17  Jim Meyering  <meyering@ascend.com>
95134
95135         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95136         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95137         due to missing strdup (against sh-utils-2.0).
95138
95139 1999-08-29  Jim Meyering  <meyering@ascend.com>
95140
95141         * m4/jm-macros.m4: Require jm_BISON.
95142         * m4/bison.m4: New file.
95143
95144 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95145
95146         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95147         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95148
95149 1999-08-05  Jim Meyering  <meyering@ascend.com>
95150
95151         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95152         to avoid conflicts with `conftest' on 8+3 filesystems.
95153         Suggestion from Eli Zaretskii.
95154
95155 1999-08-04  Jim Meyering  <meyering@ascend.com>
95156
95157         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95158         fileutils and sh-utils (textutils's getline test was inadequate).
95159         (AM_FUNC_GETLINE): Run this test.
95160         (AC_CHECK_FUNCS): Check for getdelim.
95161         Reported by Bob Proulx.
95162
95163 1999-08-02  Jim Meyering  <meyering@ascend.com>
95164
95165         * m4/jm-macros.m4: Add a comment.
95166
95167 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95168
95169         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95170         <inttypes.h> defines strtoumax as a macro (and not as a
95171         function).
95172
95173 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95174
95175         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95176         that we can shift, multiply and divide unsigned long long
95177         values; Ultrix cc can't do it.
95178
95179 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95180
95181         * m4/mktime.m4: New file, which is a preview of what should appear
95182         in the next public autoconf release.
95183
95184 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95185
95186         * m4/lfs.m4: Remove this file.
95187         * m4/largefile.m4: New file.  It contains the old contents of
95188         lfs.m4, except that all names with prefix AC_LFS have been
95189         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95190         compatible with future autoconf versions.  Also, some minor m4
95191         quoting problems have been fixed.
95192
95193 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95194
95195         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95196         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95197         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95198         and simplify the shell code.
95199
95200 1999-08-01  Jim Meyering  <meyering@ascend.com>
95201
95202         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95203         m4.
95204
95205 1999-07-20  Jim Meyering  <meyering@ascend.com>
95206
95207         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95208
95209 1999-07-15  Jim Meyering  <meyering@ascend.com>
95210
95211         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95212
95213 1999-05-22  Jim Meyering  <meyering@ascend.com>
95214
95215         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95216
95217 1999-05-20  Jim Meyering  <meyering@ascend.com>
95218
95219         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95220         Add a colon after each `then' in case $4 is empty.
95221
95222 1999-05-16  Jim Meyering  <meyering@ascend.com>
95223
95224         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95225
95226 1999-05-10  Jim Meyering  <meyering@ascend.com>
95227
95228         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95229
95230         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95231         AC_FUNC_MKTIME.
95232
95233 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95234
95235         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95236
95237 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95238
95239         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95240         not CPPFLAGS, so that linking works correctly in IRIX.
95241
95242 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95243
95244         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95245
95246 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95247
95248         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95249         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95251         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95252         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95253
95254         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95255
95256 1999-04-20  Jim Meyering  <meyering@ascend.com>
95257
95258         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95259         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95260         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95261
95262 1999-04-18  Jim Meyering  <meyering@ascend.com>
95263
95264         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95265         * m4/jm-macros.m4: Use it.
95266
95267 1999-04-06  Jim Meyering  <meyering@ascend.com>
95268
95269         * m4/strftime.m4: Remove test for %f.
95270
95271 1999-03-29  Jim Meyering  <meyering@ascend.com>
95272
95273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95274         superset of the AC_TYPE_* checks in the textutils, fileutils,
95275         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95276         AC_TYPE_PID_T.
95277
95278 1999-03-28  Jim Meyering  <meyering@ascend.com>
95279
95280         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95281         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95282         replaced e.g., in the *.sh files of the sh-utils.
95283
95284 1999-03-20  Jim Meyering  <meyering@ascend.com>
95285
95286         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95287         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95288         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95289
95290 1999-03-19  Jim Meyering  <meyering@ascend.com>
95291
95292         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95293
95294 1999-03-12  Jim Meyering  <meyering@ascend.com>
95295
95296         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95297
95298 1999-03-07  Jim Meyering  <meyering@ascend.com>
95299
95300         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95301         declared.
95302
95303 1999-02-17  Jim Meyering  <meyering@ascend.com>
95304
95305         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95306         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95307
95308 1999-02-07  Jim Meyering  <meyering@ascend.com>
95309
95310         * m4/group-member.m4: New file -- extracted from sh-utils'
95311         configure.in.
95312
95313         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95314         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95315
95316 1999-02-06  Jim Meyering  <meyering@ascend.com>
95317
95318         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95319         * m4/fnmatch.m4: Likewise.
95320         * m4/getgroups.m4: Likewise.
95321         * m4/lstat.m4: Likewise.
95322         * m4/malloc.m4: Likewise.
95323         * m4/putenv.m4: Likewise.
95324         * m4/realloc.m4: Likewise.
95325         * m4/regex.m4: Likewise.
95326         * m4/stat.m4: Likewise.
95327         * m4/strftime.m4: Likewise.
95328         Suggestion from Alain Magloire.
95329
95330         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95331         * m4/fnmatch.m4: Likewise.
95332         * m4/getgroups.m4: Likewise.
95333         * m4/getline.m4: Likewise.
95334         * m4/lstat.m4: Likewise.
95335         * m4/malloc.m4: Likewise.
95336         * m4/memcmp.m4: Likewise.
95337         * m4/putenv.m4: Likewise.
95338         * m4/realloc.m4: Likewise.
95339         * m4/regex.m4: Likewise.
95340         * m4/stat.m4: Likewise.
95341         * m4/strftime.m4: Likewise.
95342         Suggestion from Alain Magloire.
95343
95344         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95345         an argument.
95346
95347         * m4/regex.m4: Add a run-time Test for proper operation of
95348         re_compile_pattern.
95349
95350 1999-01-31  Jim Meyering  <meyering@ascend.com>
95351
95352         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95353
95354 1999-01-30  Jim Meyering  <meyering@ascend.com>
95355
95356         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95357
95358         * m4/jm-mktime.m4: Make this a wrapper around the official
95359         AM_FUNC_MKTIME rather than my private copy, now that the official one
95360         is up to date.
95361         * m4/mktime.m4: Remove file.
95362
95363         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95364         * m4/uptime.m4: Likewise.
95365         * m4/uintmax_t.m4: Likewise.
95366
95367 1999-01-28  Jim Meyering  <meyering@ascend.com>
95368
95369         * m4/jm-macros.m4: Use jm_AFS.
95370         * m4/afs.m4: New file (from fileutils' configure.in).
95371
95372         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95373         * m4/chown.m4: Likewise.
95374         * m4/d-ino.m4: Likewise.
95375         * m4/d-type.m4: Likewise.
95376         * m4/fnmatch.m4: Likewise.
95377         * m4/getgroups.m4: Likewise.
95378         * m4/gettext.m4: Likewise.
95379         * m4/jm-mktime.m4: Likewise.
95380         * m4/jm-winsz2.m4: Likewise.
95381         * m4/lcmessage.m4: Likewise.
95382         * m4/ls-mntd-fs.m4: Likewise.
95383         * m4/malloc.m4: Likewise.
95384         * m4/memcmp.m4: Likewise.
95385         * m4/putenv.m4: Likewise.
95386         * m4/realloc.m4: Likewise.
95387         * m4/st_mtim.m4: Likewise.
95388         * m4/strftime.m4: Likewise.
95389
95390 1999-01-16  Jim Meyering  <meyering@ascend.com>
95391
95392         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95393         (ARGMATCH_DIE_DECL): Define.
95394
95395 1999-01-12  Jim Meyering  <meyering@ascend.com>
95396
95397         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95398         Reported by Lars Hecking.
95399
95400 1999-01-10  Jim Meyering  <meyering@ascend.com>
95401
95402         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95403         gross kludge.
95404         * m4/inttypes_h.m4: Likewise.
95405         * m4/lstat.m4: Likewise.
95406         * m4/malloc.m4: Likewise.
95407         * m4/readdir.m4: Likewise.
95408         * m4/realloc.m4: Likewise.
95409         * m4/st_dm_mode.m4: Likewise.
95410         * m4/stat.m4: Likewise.
95411         * m4/utimbuf.m4: Likewise.
95412         * m4/utimes.m4: Likewise.
95413
95414         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95415         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95416         comments in config.h.in are meaningful.
95417
95418         * m4/jm-macros.m4: Require autoconf-2.13 here.
95419
95420         * m4/regex.m4: By default, don't use the included regex.c on systems
95421         with glibc 2.  Suggestion from Uli Drepper.
95422
95423 1999-01-02  Jim Meyering  <meyering@ascend.com>
95424
95425         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95426
95427 1998-12-18  Jim Meyering  <meyering@ascend.com>
95428
95429         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95430         Based on a suggestion from Lars Hecking.
95431
95432 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95433
95434         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95435
95436 1998-11-16  Jim Meyering  <meyering@ascend.com>
95437
95438         * m4/lfs.m4: Double-quote the `uname...` expression.
95439
95440 1998-11-14  Jim Meyering  <meyering@ascend.com>
95441
95442         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95443         * m4/stat.m4: Likewise.
95444
95445 1998-11-03  Jim Meyering  <meyering@ascend.com>
95446
95447         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95448         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95449
95450 1998-10-18  Jim Meyering  <meyering@ascend.com>
95451
95452         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95453
95454 1998-10-17  Jim Meyering  <meyering@ascend.com>
95455
95456         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95457         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95458         calls for those previously hard-coded headers.  Instead, take a new
95459         parameter.
95460         (jm_CHECK_DECLARATIONS): Reflect interface change.
95461         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95462         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95463
95464         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95465
95466 1998-10-14  Jim Meyering  <meyering@ascend.com>
95467
95468         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95469         instead of "TZ=America/Vancouver".  From Paul Eggert.
95470
95471 1998-10-11  Jim Meyering  <meyering@ascend.com>
95472
95473         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95474         This adds a test for a recently added compatibility fix for mktime.c.
95475         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95476
95477 1998-09-27  Jim Meyering  <meyering@ascend.com>
95478
95479         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95480
95481         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95482         ../configure.in, including a change from Gordon Matzigkeit to allow
95483         cross-compiling for the Hurd.
95484
95485         * m4/glibc.m4: New file/macro to test for the GNU C Library
95486         versions 1 and 2.  From Gordon Matzigkeit.
95487         Indent.
95488
95489 1998-09-21  Jim Meyering  <meyering@ascend.com>
95490
95491         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95492
95493 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95494
95495         Port nanosecond-resolution times to UnixWare 2.1.2 and
95496         pedantic Solaris 2.6.
95497
95498         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95499         AC_STRUCT_ST_MTIM.
95500         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95501         Generate name of ns member, instead of just 1 or undef.
95502         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95503
95504 1998-08-15  Jim Meyering  <meyering@ascend.com>
95505
95506         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95507         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95508         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95509         instead of jm_TYPE_SSIZE_T.
95510
95511 1998-08-12  Jim Meyering  <meyering@ascend.com>
95512
95513         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95514
95515 1998-08-02  Jim Meyering  <meyering@ascend.com>
95516
95517         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95518         in acconfig.h manually.
95519
95520 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95521
95522         * m4/st_mtim.m4: New file.
95523
95524 1998-07-28  Jim Meyering  <meyering@ascend.com>
95525
95526         * m4/utimes.m4: Undef stat.
95527
95528 1998-07-25  Jim Meyering  <meyering@ascend.com>
95529
95530         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95531         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95532
95533 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95534
95535         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95536         uid and gid actually remain unchanged.
95537
95538 1998-07-07  Jim Meyering  <meyering@ascend.com>
95539
95540         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95541
95542 1998-07-04  Jim Meyering  <meyering@ascend.com>
95543
95544         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95545         to prove that this macro can be used in packages without regex.c.
95546
95547 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95548
95549         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95550         is to be used.
95551
95552 1998-07-03  Jim Meyering  <meyering@ascend.com>
95553
95554         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95555
95556         * m4/gettext.m4: New file -- from gettext-0.10.35.
95557         * m4/lcmessage.m4: Likewise.
95558         * m4/progtest.m4: Likewise.
95559
95560         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95561         * m4/jm-macros.m4: Require the new macro.
95562
95563 1998-06-29  Jim Meyering  <meyering@ascend.com>
95564
95565         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95566         for the definition of NGROUPS (used in a system header included
95567         by sys/mount.h).
95568
95569 1998-06-28  Jim Meyering  <meyering@ascend.com>
95570
95571         * m4/ls-mntd-fs.m4: New file.
95572         * m4/fstypename.m4: New file.
95573
95574         * m4/jm-macros.m4: Require the new macro.
95575         * m4/jm-glibc-io.m4: New file.
95576
95577 1998-05-19  Jim Meyering  <meyering@ascend.com>
95578
95579         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95580         * m4/lchown.m4: New file.
95581
95582         * m4/Makefile.am.in: New file.
95583         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95584
95585 1998-05-14  Jim Meyering  <meyering@ascend.com>
95586
95587         * m4/Makefile.am (EXTRA_DIST): Add them.
95588         * m4/jm-macros.m4: New file.
95589         * m4/utimbuf.m4: New file.
95590
95591 1998-05-12  Jim Meyering  <meyering@ascend.com>
95592
95593         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95594
95595 1998-05-11  Jim Meyering  <meyering@ascend.com>
95596
95597         * m4/isc-posix.m4: New file.
95598
95599 1998-05-10  Jim Meyering  <meyering@ascend.com>
95600
95601         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95602
95603 1998-05-09  Jim Meyering  <meyering@ascend.com>
95604
95605         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95606         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95607         with automake.
95608
95609         * m4/ssize_t.m4: New file.
95610         * m4/mktime.m4: Remove file -- the new automake has this now.
95611
95612 1998-04-26  Jim Meyering  <meyering@ascend.com>
95613
95614         * m4/assert.m4: New file.
95615         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95616
95617 1998-04-05  Jim Meyering  <meyering@ascend.com>
95618
95619         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95620         (jm_PREREQ): Use it here.
95621
95622 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95623
95624         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95625         in acconfig.h.
95626
95627 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95628
95629         * m4/prereq.m4: New file.
95630         * m4/error.m4: New file.
95631         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95632
95633 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95634
95635         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95636         cache-check for the same variable -- that defeated the purpose of
95637         the test; the test program was never run.  This was a problem only
95638         on systems with losing getline functions -- HP-UX 10.20 is one.
95639         Reported by Bjorn Helgaas.
95640
95641 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95642
95643         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95644
95645 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95646
95647         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95648
95649         * m4/const.m4: New file.  Use an initializer in this declaration
95650         typedef int charset[2]; const charset x;
95651         Reported by Bob Glickstein.
95652
95653 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95654
95655         * m4/chown.m4: Fix reversed types on -1 args to chown.
95656         From Kaveh Ghazi.
95657
95658 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95659
95660         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95661         Add lseek and memchr.
95662
95663         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95664         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95665         have a 20-character limit on names.
95666
95667 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95668
95669         * m4/inttypes_h.m4: New file.
95670         * m4/uintmax_t.m4: New file.
95671         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95672
95673
95674         -----
95675
95676         Local Variables:
95677         coding: utf-8
95678         End:
95679
95680         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95681
95682         Copying and distribution of this file, with or without
95683         modification, are permitted provided the copyright notice
95684         and this notice are preserved.